proto-daisy-db 0.1.78 → 0.1.79

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.
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  const NAMESPACE = 'proto-daisy-db';
4
- const BUILD = /* proto-daisy-db */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
4
+ const BUILD = /* proto-daisy-db */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, updatable: true};
5
5
 
6
6
  /*
7
- Stencil Client Platform v4.37.1 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.38.0 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
  var __defProp = Object.defineProperty;
10
10
  var __export = (target, all) => {
@@ -29,13 +29,17 @@ var registerHost = (hostElement, cmpMeta) => {
29
29
  $flags$: 0,
30
30
  $hostElement$: hostElement,
31
31
  $cmpMeta$: cmpMeta,
32
- $instanceValues$: /* @__PURE__ */ new Map()
32
+ $instanceValues$: /* @__PURE__ */ new Map(),
33
+ $serializerValues$: /* @__PURE__ */ new Map()
33
34
  };
34
35
  {
35
36
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
36
37
  hostElement["s-p"] = [];
37
38
  hostElement["s-rc"] = [];
38
39
  }
40
+ {
41
+ hostRef.$fetchedCbList$ = [];
42
+ }
39
43
  const ref = hostRef;
40
44
  hostElement.__stencil__getHostRef = () => ref;
41
45
  return ref;
@@ -792,6 +796,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
792
796
  }
793
797
  let maybePromise;
794
798
  if (isInitialLoad) {
799
+ {
800
+ if (hostRef.$fetchedCbList$.length) {
801
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
802
+ }
803
+ }
795
804
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
796
805
  } else {
797
806
  maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
@@ -948,7 +957,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
948
957
  var proxyComponent = (Cstr, cmpMeta, flags) => {
949
958
  var _a, _b;
950
959
  const prototype = Cstr.prototype;
951
- if (cmpMeta.$members$ || BUILD.watchCallback) {
960
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
952
961
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
953
962
  members.map(([memberName, [memberFlags]]) => {
954
963
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -982,8 +991,6 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
982
991
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
983
992
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
984
993
  newValue = ref.$instanceValues$.get(memberName);
985
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
986
- ref.$instanceValues$.set(memberName, currentValue);
987
994
  }
988
995
  origSetter.apply(this, [
989
996
  parsePropertyValue(
@@ -998,7 +1005,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
998
1005
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
999
1006
  setValue(this, memberName, newValue, cmpMeta);
1000
1007
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1001
- ref.$onReadyPromise$.then(() => {
1008
+ ref.$fetchedCbList$.push(() => {
1002
1009
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1003
1010
  ref.$lazyInstance$[memberName] = newValue;
1004
1011
  }
@@ -1019,7 +1026,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1019
1026
  if (ref.$lazyInstance$) {
1020
1027
  setterSetVal();
1021
1028
  } else {
1022
- ref.$onReadyPromise$.then(() => setterSetVal());
1029
+ ref.$fetchedCbList$.push(() => {
1030
+ setterSetVal();
1031
+ });
1023
1032
  }
1024
1033
  }
1025
1034
  }
@@ -1032,14 +1041,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1032
1041
  plt.jmp(() => {
1033
1042
  var _a2;
1034
1043
  const propName = attrNameToPropName.get(attrName);
1044
+ const hostRef = getHostRef(this);
1035
1045
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1036
1046
  newValue = this[propName];
1037
1047
  delete this[propName];
1038
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1048
+ }
1049
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1039
1050
  this[propName] == newValue) {
1040
1051
  return;
1041
1052
  } else if (propName == null) {
1042
- const hostRef = getHostRef(this);
1043
1053
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1044
1054
  if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1045
1055
  const instance = hostRef.$lazyInstance$ ;
@@ -1054,7 +1064,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1054
1064
  }
1055
1065
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1056
1066
  newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1057
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1067
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1058
1068
  this[propName] = newValue;
1059
1069
  }
1060
1070
  });
@@ -1164,7 +1174,7 @@ var connectedCallback = (elm) => {
1164
1174
  }
1165
1175
  if (cmpMeta.$members$) {
1166
1176
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1167
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1177
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1168
1178
  const value = elm[memberName];
1169
1179
  delete elm[memberName];
1170
1180
  elm[memberName] = value;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-ya0OipzQ.js');
3
+ var index = require('./index-Bon1HOBk.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  const defineCustomElements = async (win, options) => {
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-ya0OipzQ.js');
3
+ var index = require('./index-Bon1HOBk.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
7
  /*
8
- Stencil Client Patch Browser v4.37.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.38.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
  var patchBrowser = () => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-ya0OipzQ.js');
3
+ var index = require('./index-Bon1HOBk.js');
4
4
 
5
5
  const KEY = 'proto-daisy-db:app-data';
6
6
  const promisedParseJSON = (json) => {
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "compiler": {
10
10
  "name": "@stencil/core",
11
- "version": "4.37.1",
11
+ "version": "4.38.0",
12
12
  "typescriptVersion": "5.5.4"
13
13
  },
14
14
  "collections": [],
@@ -45,7 +45,6 @@ export class ProtoDaisyDB {
45
45
  return {
46
46
  "emitter": {
47
47
  "type": "string",
48
- "attribute": "emitter",
49
48
  "mutable": false,
50
49
  "complexType": {
51
50
  "original": "string",
@@ -61,6 +60,7 @@ export class ProtoDaisyDB {
61
60
  "getter": false,
62
61
  "setter": false,
63
62
  "reflect": false,
63
+ "attribute": "emitter",
64
64
  "defaultValue": "undefined"
65
65
  }
66
66
  };
@@ -22,7 +22,6 @@ export class ProtoFauxKeys {
22
22
  return {
23
23
  "data": {
24
24
  "type": "unknown",
25
- "attribute": "data",
26
25
  "mutable": false,
27
26
  "complexType": {
28
27
  "original": "object",
@@ -22,7 +22,6 @@ export class ProtoFauxStamp {
22
22
  return {
23
23
  "data": {
24
24
  "type": "unknown",
25
- "attribute": "data",
26
25
  "mutable": false,
27
26
  "complexType": {
28
27
  "original": "object",
@@ -48,7 +48,6 @@ export class ProtoFauxTrigger {
48
48
  return {
49
49
  "emitter": {
50
50
  "type": "string",
51
- "attribute": "emitter",
52
51
  "mutable": false,
53
52
  "complexType": {
54
53
  "original": "string",
@@ -64,11 +63,11 @@ export class ProtoFauxTrigger {
64
63
  "getter": false,
65
64
  "setter": false,
66
65
  "reflect": false,
66
+ "attribute": "emitter",
67
67
  "defaultValue": "undefined"
68
68
  },
69
69
  "data": {
70
70
  "type": "unknown",
71
- "attribute": "data",
72
71
  "mutable": true,
73
72
  "complexType": {
74
73
  "original": "object",
@@ -30,7 +30,6 @@ export class ProtoFauxType {
30
30
  return {
31
31
  "emitter": {
32
32
  "type": "string",
33
- "attribute": "emitter",
34
33
  "mutable": false,
35
34
  "complexType": {
36
35
  "original": "string",
@@ -46,11 +45,11 @@ export class ProtoFauxType {
46
45
  "getter": false,
47
46
  "setter": false,
48
47
  "reflect": false,
48
+ "attribute": "emitter",
49
49
  "defaultValue": "undefined"
50
50
  },
51
51
  "eventType": {
52
52
  "type": "string",
53
- "attribute": "event-type",
54
53
  "mutable": true,
55
54
  "complexType": {
56
55
  "original": "string",
@@ -66,6 +65,7 @@ export class ProtoFauxType {
66
65
  "getter": false,
67
66
  "setter": false,
68
67
  "reflect": false,
68
+ "attribute": "event-type",
69
69
  "defaultValue": "undefined"
70
70
  }
71
71
  };
@@ -1,8 +1,8 @@
1
1
  const NAMESPACE = 'proto-daisy-db';
2
- const BUILD = /* proto-daisy-db */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
2
+ const BUILD = /* proto-daisy-db */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, updatable: true};
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.37.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.38.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -27,13 +27,17 @@ var registerHost = (hostElement, cmpMeta) => {
27
27
  $flags$: 0,
28
28
  $hostElement$: hostElement,
29
29
  $cmpMeta$: cmpMeta,
30
- $instanceValues$: /* @__PURE__ */ new Map()
30
+ $instanceValues$: /* @__PURE__ */ new Map(),
31
+ $serializerValues$: /* @__PURE__ */ new Map()
31
32
  };
32
33
  {
33
34
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
34
35
  hostElement["s-p"] = [];
35
36
  hostElement["s-rc"] = [];
36
37
  }
38
+ {
39
+ hostRef.$fetchedCbList$ = [];
40
+ }
37
41
  const ref = hostRef;
38
42
  hostElement.__stencil__getHostRef = () => ref;
39
43
  return ref;
@@ -790,6 +794,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
790
794
  }
791
795
  let maybePromise;
792
796
  if (isInitialLoad) {
797
+ {
798
+ if (hostRef.$fetchedCbList$.length) {
799
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
800
+ }
801
+ }
793
802
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
794
803
  } else {
795
804
  maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
@@ -946,7 +955,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
946
955
  var proxyComponent = (Cstr, cmpMeta, flags) => {
947
956
  var _a, _b;
948
957
  const prototype = Cstr.prototype;
949
- if (cmpMeta.$members$ || BUILD.watchCallback) {
958
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
950
959
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
951
960
  members.map(([memberName, [memberFlags]]) => {
952
961
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -980,8 +989,6 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
980
989
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
981
990
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
982
991
  newValue = ref.$instanceValues$.get(memberName);
983
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
984
- ref.$instanceValues$.set(memberName, currentValue);
985
992
  }
986
993
  origSetter.apply(this, [
987
994
  parsePropertyValue(
@@ -996,7 +1003,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
996
1003
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
997
1004
  setValue(this, memberName, newValue, cmpMeta);
998
1005
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
999
- ref.$onReadyPromise$.then(() => {
1006
+ ref.$fetchedCbList$.push(() => {
1000
1007
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1001
1008
  ref.$lazyInstance$[memberName] = newValue;
1002
1009
  }
@@ -1017,7 +1024,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1017
1024
  if (ref.$lazyInstance$) {
1018
1025
  setterSetVal();
1019
1026
  } else {
1020
- ref.$onReadyPromise$.then(() => setterSetVal());
1027
+ ref.$fetchedCbList$.push(() => {
1028
+ setterSetVal();
1029
+ });
1021
1030
  }
1022
1031
  }
1023
1032
  }
@@ -1030,14 +1039,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1030
1039
  plt.jmp(() => {
1031
1040
  var _a2;
1032
1041
  const propName = attrNameToPropName.get(attrName);
1042
+ const hostRef = getHostRef(this);
1033
1043
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1034
1044
  newValue = this[propName];
1035
1045
  delete this[propName];
1036
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1046
+ }
1047
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1037
1048
  this[propName] == newValue) {
1038
1049
  return;
1039
1050
  } else if (propName == null) {
1040
- const hostRef = getHostRef(this);
1041
1051
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1042
1052
  if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1043
1053
  const instance = hostRef.$lazyInstance$ ;
@@ -1052,7 +1062,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1052
1062
  }
1053
1063
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1054
1064
  newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1055
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1065
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1056
1066
  this[propName] = newValue;
1057
1067
  }
1058
1068
  });
@@ -1162,7 +1172,7 @@ var connectedCallback = (elm) => {
1162
1172
  }
1163
1173
  if (cmpMeta.$members$) {
1164
1174
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1165
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1175
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1166
1176
  const value = elm[memberName];
1167
1177
  delete elm[memberName];
1168
1178
  elm[memberName] = value;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-BVYO4VRz.js';
2
- export { s as setNonce } from './index-BVYO4VRz.js';
1
+ import { b as bootstrapLazy } from './index-BJEYYD6C.js';
2
+ export { s as setNonce } from './index-BJEYYD6C.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-BVYO4VRz.js';
2
- export { s as setNonce } from './index-BVYO4VRz.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-BJEYYD6C.js';
2
+ export { s as setNonce } from './index-BJEYYD6C.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.37.1 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.38.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
 
9
9
  var patchBrowser = () => {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-BVYO4VRz.js';
1
+ import { r as registerInstance, h } from './index-BJEYYD6C.js';
2
2
 
3
3
  const KEY = 'proto-daisy-db:app-data';
4
4
  const promisedParseJSON = (json) => {
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},n=(e,t)=>{t&&(e.__stencil__getHostRef=()=>t,t.t=e)},o=(e,t)=>t in e,l=(e,t)=>(0,console.error)(e,t),i=new Map,s=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},a=e=>Promise.resolve(e),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!!f&&(()=>!!c.document&&Object.getOwnPropertyDescriptor(c.document.adoptedStyleSheets,"length").writable)(),h=!1,p=[],m=[],v=(e,t)=>n=>{e.push(n),h||(h=!0,t&&4&u.o?$(b):u.raf(b))},y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},b=()=>{y(p),y(m),(h=p.length>0)&&u.raf(b)},$=e=>a().then(e),w=v(m,!0),g=e=>"object"==(e=typeof e)||"function"===e;function S(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>O,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function O(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return k(e.value);throw"should never get here"}var E,C=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value};function x(){const e=this.attachShadow({mode:"open"});void 0===E&&(E=null),E&&(d?e.adoptedStyleSheets.push(E):e.adoptedStyleSheets=[...e.adoptedStyleSheets,E])}var P=new WeakMap,R=e=>"sc-"+e.i,D=(e,t,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!g(o))&&(o+=""),i&&s?r[r.length-1].u+=o:r.push(i?U(null,o):o),s=i)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=U(e,null);return u.h=t,r.length>0&&(u.p=r),u.m=l,u},U=(e,t)=>({o:0,v:e,u:t,$:null,p:null,h:null,m:null}),W={},A=e=>{const t=(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(e);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};A("::slotted"),A(":host"),A(":host-context");var N,L=(e,t)=>null==e||g(e)?e:1&t?e+"":e,T=(e,t,n,l,i,s)=>{if(n===l)return;let r=o(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,o=H(n);let i=H(l);t.remove(...o.filter((e=>e&&!i.includes(e)))),t.add(...i.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const o=g(l);if(r||o&&null!==l)try{if(e.tagName.includes("-"))e[t]!==l&&(e[t]=l);else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||i)&&!o&&1===e.nodeType&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(c,a)?a.slice(2):a[2]+t.slice(3),n||l){const o=t.endsWith(V);t=t.replace(q,""),n&&u.rel(e,t,n,o),l&&u.ael(e,t,l,o)}},z=/\s/,H=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(z):[]),V="Capture",q=RegExp(V+"$"),F=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.h||{},i=t.h||{};for(const e of G(Object.keys(l)))e in i||T(o,e,l[e],void 0,n,t.o);for(const e of G(Object.keys(i)))T(o,e,l[e],i[e],n,t.o)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var I=!1,Y=(e,t,n)=>{const o=t.p[n];let l,i,s=0;if(null!==o.u)l=o.$=c.document.createTextNode(o.u);else{if(!c.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.$=c.document.createElement(o.v),F(null,o,I),o.p)for(s=0;s<o.p.length;++s)i=Y(e,o,s),i&&l.appendChild(i)}return l["s-hn"]=N,l},_=(e,t,n,o,l,i)=>{let s,r=e;for(r.shadowRoot&&r.tagName===N&&(r=r.shadowRoot);l<=i;++l)o[l]&&(s=Y(null,n,l),s&&(o[l].$=s,Q(r,s,t)))},B=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;e&&e.remove()}}},J=(e,t,n=!1)=>e.v===t.v&&(n?(n&&!e.m&&t.m&&(e.m=t.m),!0):e.m===t.m),K=(e,t,n=!1)=>{const o=t.$=e.$,l=e.p,i=t.p,s=t.u;null===s?(F(e,t,I),null!==l&&null!==i?((e,t,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=t.length-1,d=t[0],h=t[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(J(d,m,l))K(d,m,l),d=t[++r],m=o[++c];else if(J(h,v,l))K(h,v,l),h=t[--f],v=o[--p];else if(J(d,v,l))K(d,v,l),Q(e,d.$,h.$.nextSibling),d=t[++r],v=o[--p];else if(J(h,m,l))K(h,m,l),Q(e,h.$,d.$),h=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===m.m){u=a;break}u>=0?(s=t[u],s.v!==m.v?i=Y(t&&t[c],n,u):(K(s,m,l),t[u]=void 0,i=s.$),m=o[++c]):(i=Y(t&&t[c],n,c),m=o[++c]),i&&Q(d.$.parentNode,i,d.$)}r>f?_(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&B(t,r,f)})(o,l,t,i,n):null!==i?(null!==e.u&&(o.textContent=""),_(o,null,t,i,0,i.length-1)):!n&&null!==l&&B(l,0,l.length-1)):e.u!==s&&(o.data=s)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),X=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},Z=(e,t)=>{if(e.o|=16,4&e.o)return void(e.o|=512);X(e,e.j);const n=()=>ee(e,t);if(!t)return w(n);queueMicrotask((()=>{n()}))},ee=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t?(e.k.length&&e.k.forEach((e=>e(n))),l=re(o,"componentWillLoad",void 0,n)):l=re(o,"componentWillUpdate",void 0,n),l=te(l,(()=>re(o,"componentWillRender",void 0,n))),te(l,(()=>oe(e,o,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,oe=async(e,t,n)=>{var o;const l=e.$hostElement$,i=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=R(t),l=s.get(o);if(!c.document)return o;if(e=11===e.nodeType?e:c.document,l)if("string"==typeof l){let i,s=P.get(e=e.head||e);if(s||P.set(e,s=new Set),!s.has(o)){{i=c.document.createElement("style"),i.innerHTML=l;const o=null!=(n=u.C)?n:S(c.document);if(null!=o&&i.setAttribute("nonce",o),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(f){const t=new CSSStyleSheet;t.replaceSync(l),d?e.adoptedStyleSheets.unshift(t):e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(i)}else e.append(i);1&t.o&&e.insertBefore(i,null)}4&t.o&&(i.innerHTML+=r),s&&s.add(o)}}else e.adoptedStyleSheets.includes(l)||(d?e.adoptedStyleSheets.push(l):e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);le(e,t,l,n),i&&(i.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ie(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},le=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.M||U(null,null),i=(e=>e&&e.v===W)(t)?t:D(null,null,t);if(N=o.tagName,n&&i.h)for(const e of Object.keys(i.h))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.h[e]=o[e]);i.v=null,i.o|=4,e.M=i,i.$=l.$=o.shadowRoot||o,K(l,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},ie=e=>{const t=e.$hostElement$,n=e.t,o=e.j;re(n,"componentDidRender",void 0,t),64&e.o?re(n,"componentDidUpdate",void 0,t):(e.o|=64,ce(t),re(n,"componentDidLoad",void 0,t),e.P(t),o||se()),e.S&&(e.S(),e.S=void 0),512&e.o&&$((()=>Z(e,!1))),e.o&=-517},se=()=>{$((()=>(e=>{const t=u.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(t),t})(c)))},re=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,o)}},ce=e=>e.classList.add("hydrated"),ue=(e,n,o,l)=>{const i=t(e);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.i}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=i.R.get(n),r=i.o,c=i.t;if(o=L(o,l.D[n][0]),(!(8&r)||void 0===s)&&o!==s&&(!Number.isNaN(s)||!Number.isNaN(o))&&(i.R.set(n,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,s,n))return;Z(i,!1)}},ae=(e,n,o)=>{var l,i;const s=e.prototype;if(n.D){const r=Object.entries(null!=(l=n.D)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,e)||{};i&&(n.D[e][0]|=2048),r&&(n.D[e][0]|=4096),(1&o||!i)&&Object.defineProperty(s,e,{get(){{if(!(2048&n.D[e][0]))return((e,n)=>t(this).R.get(n))(0,e);const o=t(this),l=o?o.t:s;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,e,{set(i){const s=t(this);if(s){if(r)return void 0===(32&l?this[e]:s.$hostElement$[e])&&s.R.get(e)&&(i=s.R.get(e)),r.call(this,L(i,l)),void ue(this,e,i=32&l?this[e]:s.$hostElement$[e],n);{if(!(1&o&&4096&n.D[e][0]))return ue(this,e,i,n),void(1&o&&!s.t&&s.k.push((()=>{4096&n.D[e][0]&&s.t[e]!==s.R.get(e)&&(s.t[e]=i)})));const t=()=>{const t=s.t[e];!s.R.get(e)&&t&&s.R.set(e,t),s.t[e]=L(i,l),ue(this,e,s.t[e],n)};s.t?t():s.k.push((()=>{t()}))}}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(e,l,i){u.jmp((()=>{var r;const c=o.get(e),u=t(this);if(this.hasOwnProperty(c)&&(i=this[c],delete this[c]),s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const t=null==u?void 0:u.o;if(u&&t&&!(8&t)&&128&t&&i!==l){const t=u.t,o=null==(r=n.U)?void 0:r[e];null==o||o.forEach((n=>{null!=t[n]&&t[n].call(t,i,l,e)}))}return}const a=Object.getOwnPropertyDescriptor(s,c);(i=(null!==i||"boolean"!=typeof this[c])&&i)==this[c]||a.get&&!a.set||(this[c]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=n.U)?i:{}),...r.filter((([e,t])=>31&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},fe=(e,t)=>{re(e,"connectedCallback",void 0,t)},de=(e,t)=>{re(e,"disconnectedCallback",void 0,t||e)},he=(e,n={})=>{var o;if(!c.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const a=[],d=n.exclude||[],h=c.customElements,p=c.document.head,m=p.querySelector("meta[charset]"),v=c.document.createElement("style"),y=[];let b,$=!0;Object.assign(u,n),u.l=new URL(n.resourcesUrl||"./",c.document.baseURI).href;let w=!1;if(e.map((e=>{e[1].map((n=>{const o={o:n[0],i:n[1],D:n[2],W:n[3]};4&o.o&&(w=!0),o.D=n[2];const r=o.i,c=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={o:0,$hostElement$:e,O:t,R:new Map,A:new Map};n.N=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],n.k=[];const o=n;e.__stencil__getHostRef=()=>o})(e=this,o),1&o.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.i}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else x.call(e,o)}connectedCallback(){t(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),$?y.push(this):u.jmp((()=>(e=>{if(!(1&u.o)){const n=t(e);if(!n)return;const o=n.O,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?fe(n.t,e):(null==n?void 0:n.N)&&n.N.then((()=>fe(n.t,e)));else{n.o|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){X(n,n.j=t);break}}o.D&&Object.entries(o.D).map((([t,[n]])=>{if(31&n&&t in e&&e[t]!==Object.prototype[t]){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.L){const s=((e,t)=>{const n=e.i.replace(/-/g,"_"),o=e.L;if(!o)return;const s=i.get(o);return s?s[n]:import(`./${o}.entry.js`).then((e=>(i.set(o,e),e[n])),(e=>{l(e,t.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(s&&"then"in s){const e=()=>{};o=await s,e()}else o=s;if(!o)throw Error(`Constructor for "${n.i}#${t.T}" was not found`);o.isProxied||(ae(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,r(),fe(t.t,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=R(n);if(!s.has(t)){const o=()=>{};((e,t,n)=>{let o=s.get(e);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,s.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>Z(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,n,o)}r()}})(this))))}disconnectedCallback(){u.jmp((()=>(async e=>{if(!(1&u.o)){const n=t(e);(null==n?void 0:n.t)?de(n.t,e):(null==n?void 0:n.N)&&n.N.then((()=>de(n.t,e)))}P.has(e)&&P.delete(e),e.shadowRoot&&P.has(e.shadowRoot)&&P.delete(e.shadowRoot)})(this))),u.raf((()=>{var e;const n=t(this);if(!n)return;const o=y.findIndex((e=>e===this));o>-1&&y.splice(o,1),(null==(e=null==n?void 0:n.M)?void 0:e.$)instanceof Node&&!n.M.$.isConnected&&delete n.M.$}))}componentOnReady(){var e;return null==(e=t(this))?void 0:e.N}};o.L=e[0],d.includes(r)||h.get(r)||(a.push(r),h.define(r,ae(c,o,1)))}))})),a.length>0&&(w&&(v.textContent+=r),v.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=u.C)?o:S(c.document);null!=e&&v.setAttribute("nonce",e),p.insertBefore(v,m?m.nextSibling:p.firstChild)}$=!1,y.length?y.map((e=>e.connectedCallback())):u.jmp((()=>b=setTimeout(se,30)))},pe=e=>u.C=e;export{he as b,D as h,a as p,n as r,pe as s}
@@ -1 +1 @@
1
- import{r as t,h as a}from"./p-BVYO4VRz.js";const e="proto-daisy-db:app-data",n=class{constructor(a){t(this,a),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var a;console.log("app-data:get"),(a=localStorage.getItem(e),new Promise(((t,e)=>{try{t(JSON.parse(a))}catch(t){e(t)}}))).then((a=>{t.emit("app-data:value",a)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const a=JSON.stringify(t);localStorage.setItem(e,a)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return a("div",{key:"35e42fc3a7d518f3bc0211bc5f2c8221fd9bcc81"})}};n.style="";const s=class{constructor(a){t(this,a),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return a("div",{key:"a423b82d951a69b266dd3d508a8dc11326a8008b",class:"flex flex-col"},t.map((t=>a("span",null,t))))}};s.style="";const o=class{constructor(a){t(this,a),this.data=void 0}render(){return a("div",{key:"f4837fa667d5d6e57086b09d1bc91719035442be",class:"flex"},a("span",{key:"a70fa27ba603ead243b5d262922082141420e0ac"},this.data?this.data.stamp:""))}};o.style="";const r=class{constructor(a){t(this,a),this.emitter=void 0,this.data=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("app-data:value",(t=>{this.data=t}))}emitData(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter],a={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",a)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return a("div",{key:"47a9f4c68160b18fceedba61f54a7be29c75325a",class:"flex flex-col font-sans"},a("div",{key:"334f34a36a896139cf4cc01f66bbf0d09bd89505",class:"flex flex-row content-center gap-2"},a("button",{key:"784f07b93d4cd4a0287e6dd172bc73ab8e3c49e5",class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),a("button",{key:"8526e3216eb0a725ea22b288ac0cb3c503405ee4",class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),a("proto-faux-type",{key:"3033b83816b2997c790fb8df1e1d90f387f62afa",class:"mt-4",emitter:this.emitter}),a("proto-faux-stamp",{key:"811eef59cdcdfa2edb318ee5facf7ae0bc497c82",class:"mt-2 text-xs",data:this.data}),a("proto-faux-keys",{key:"ed39e233d92c46f801841240d32d783ee6b0f0fd",class:"mt-2",data:this.data}))}};r.style="/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root,\n :host {\n --font-sans:\n ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n --spacing: 0.25rem;\n --text-xs: 0.75rem;\n --text-xs--line-height: calc(1 / 0.75);\n --radius-md: 0.375rem;\n }\n}\n@layer utilities {\n .mt-2 {\n margin-top: calc(var(--spacing) * 2);\n }\n .mt-4 {\n margin-top: calc(var(--spacing) * 4);\n }\n .flex {\n display: flex;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-row {\n flex-direction: row;\n }\n .content-center {\n align-content: center;\n }\n .gap-2 {\n gap: calc(var(--spacing) * 2);\n }\n .rounded-md {\n border-radius: var(--radius-md);\n }\n .border {\n border-style: var(--tw-border-style);\n border-width: 1px;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-clrs-aqua {\n border-color: var(--clrs-aqua, #7fdbff);\n }\n .bg-clrs-blue {\n background-color: var(--clrs-blue, #0074d9);\n }\n .bg-clrs-navy {\n background-color: var(--clrs-navy, #001f3f);\n }\n .font-sans {\n font-family: var(--font-sans);\n }\n .text-xs {\n font-size: var(--text-xs);\n line-height: var(--tw-leading, var(--text-xs--line-height));\n }\n .text-clrs-white {\n color: var(--clrs-white, #ffffff);\n }\n .italic {\n font-style: italic;\n }\n .shadow {\n --tw-shadow:\n 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)),\n 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow), var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n}\n@layer components {\n .btn {\n border-radius: var(--radius-md);\n border-style: var(--tw-border-style);\n border-width: 1px;\n --tw-border-style: solid;\n border-style: solid;\n border-color: var(--clrs-aqua, #7fdbff);\n padding: calc(var(--spacing) * 2);\n }\n}\n";const i=class{constructor(a){t(this,a),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return a("div",{key:"d441f639241a54d1ef8ae9c26a4560b5266457df"},a("span",{key:"a192c0ce3af5f94d72856ca851300537fd00f31f",class:"text-xs italic"},this.eventType))}};i.style="proto-faux-type{}";export{n as proto_daisy_db,s as proto_faux_keys,o as proto_faux_stamp,r as proto_faux_trigger,i as proto_faux_type}
1
+ import{r as t,h as a}from"./p-BJEYYD6C.js";const e="proto-daisy-db:app-data",n=class{constructor(a){t(this,a),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var a;console.log("app-data:get"),(a=localStorage.getItem(e),new Promise(((t,e)=>{try{t(JSON.parse(a))}catch(t){e(t)}}))).then((a=>{t.emit("app-data:value",a)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const a=JSON.stringify(t);localStorage.setItem(e,a)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return a("div",{key:"35e42fc3a7d518f3bc0211bc5f2c8221fd9bcc81"})}};n.style="";const s=class{constructor(a){t(this,a),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return a("div",{key:"a423b82d951a69b266dd3d508a8dc11326a8008b",class:"flex flex-col"},t.map((t=>a("span",null,t))))}};s.style="";const o=class{constructor(a){t(this,a),this.data=void 0}render(){return a("div",{key:"f4837fa667d5d6e57086b09d1bc91719035442be",class:"flex"},a("span",{key:"a70fa27ba603ead243b5d262922082141420e0ac"},this.data?this.data.stamp:""))}};o.style="";const r=class{constructor(a){t(this,a),this.emitter=void 0,this.data=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("app-data:value",(t=>{this.data=t}))}emitData(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter],a={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",a)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return a("div",{key:"47a9f4c68160b18fceedba61f54a7be29c75325a",class:"flex flex-col font-sans"},a("div",{key:"334f34a36a896139cf4cc01f66bbf0d09bd89505",class:"flex flex-row content-center gap-2"},a("button",{key:"784f07b93d4cd4a0287e6dd172bc73ab8e3c49e5",class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),a("button",{key:"8526e3216eb0a725ea22b288ac0cb3c503405ee4",class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),a("proto-faux-type",{key:"3033b83816b2997c790fb8df1e1d90f387f62afa",class:"mt-4",emitter:this.emitter}),a("proto-faux-stamp",{key:"811eef59cdcdfa2edb318ee5facf7ae0bc497c82",class:"mt-2 text-xs",data:this.data}),a("proto-faux-keys",{key:"ed39e233d92c46f801841240d32d783ee6b0f0fd",class:"mt-2",data:this.data}))}};r.style="/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root,\n :host {\n --font-sans:\n ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n --spacing: 0.25rem;\n --text-xs: 0.75rem;\n --text-xs--line-height: calc(1 / 0.75);\n --radius-md: 0.375rem;\n }\n}\n@layer utilities {\n .mt-2 {\n margin-top: calc(var(--spacing) * 2);\n }\n .mt-4 {\n margin-top: calc(var(--spacing) * 4);\n }\n .flex {\n display: flex;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-row {\n flex-direction: row;\n }\n .content-center {\n align-content: center;\n }\n .gap-2 {\n gap: calc(var(--spacing) * 2);\n }\n .rounded-md {\n border-radius: var(--radius-md);\n }\n .border {\n border-style: var(--tw-border-style);\n border-width: 1px;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-clrs-aqua {\n border-color: var(--clrs-aqua, #7fdbff);\n }\n .bg-clrs-blue {\n background-color: var(--clrs-blue, #0074d9);\n }\n .bg-clrs-navy {\n background-color: var(--clrs-navy, #001f3f);\n }\n .font-sans {\n font-family: var(--font-sans);\n }\n .text-xs {\n font-size: var(--text-xs);\n line-height: var(--tw-leading, var(--text-xs--line-height));\n }\n .text-clrs-white {\n color: var(--clrs-white, #ffffff);\n }\n .italic {\n font-style: italic;\n }\n .shadow {\n --tw-shadow:\n 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)),\n 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow), var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n}\n@layer components {\n .btn {\n border-radius: var(--radius-md);\n border-style: var(--tw-border-style);\n border-width: 1px;\n --tw-border-style: solid;\n border-style: solid;\n border-color: var(--clrs-aqua, #7fdbff);\n padding: calc(var(--spacing) * 2);\n }\n}\n";const i=class{constructor(a){t(this,a),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return a("div",{key:"d441f639241a54d1ef8ae9c26a4560b5266457df"},a("span",{key:"a192c0ce3af5f94d72856ca851300537fd00f31f",class:"text-xs italic"},this.eventType))}};i.style="proto-faux-type{}";export{n as proto_daisy_db,s as proto_faux_keys,o as proto_faux_stamp,r as proto_faux_trigger,i as proto_faux_type}
@@ -1 +1 @@
1
- import{p as t,b as e}from"./p-BVYO4VRz.js";export{s as setNonce}from"./p-BVYO4VRz.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((async t=>(await a(),e([["p-21767021",[[256,"proto-faux-trigger",{emitter:[1],data:[1040]}],[257,"proto-daisy-db",{emitter:[1]}],[256,"proto-faux-keys",{data:[16]}],[256,"proto-faux-stamp",{data:[16]}],[256,"proto-faux-type",{emitter:[1],eventType:[1025,"event-type"]}]]]],t))));
1
+ import{p as t,b as e}from"./p-BJEYYD6C.js";export{s as setNonce}from"./p-BJEYYD6C.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((async t=>(await a(),e([["p-b264f127",[[256,"proto-faux-trigger",{emitter:[1],data:[1040]}],[257,"proto-daisy-db",{emitter:[1]}],[256,"proto-faux-keys",{data:[16]}],[256,"proto-faux-stamp",{data:[16]}],[256,"proto-faux-type",{emitter:[1],eventType:[1025,"event-type"]}]]]],t))));
@@ -1,4 +1,4 @@
1
- declare type CustomMethodDecorator<T> = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
1
+ type CustomMethodDecorator<T> = (target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
2
2
  type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends (x: infer I) => void ? I : never;
3
3
  export interface ComponentDecorator {
4
4
  (opts?: ComponentOptions): ClassDecorator;
@@ -152,7 +152,13 @@ export interface StateDecorator {
152
152
  (): PropertyDecorator;
153
153
  }
154
154
  export interface WatchDecorator {
155
- (propName: string): CustomMethodDecorator<any>;
155
+ (propName: any): CustomMethodDecorator<(newValue?: any, oldValue?: any, propName?: any, ...args: any[]) => any | void>;
156
+ }
157
+ export interface PropSerializeDecorator {
158
+ (propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => string | null>;
159
+ }
160
+ export interface AttrDeserializeDecorator {
161
+ (propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => any>;
156
162
  }
157
163
  export interface UserBuildConditionals {
158
164
  isDev: boolean;
@@ -234,6 +240,14 @@ export declare const State: StateDecorator;
234
240
  * https://stenciljs.com/docs/reactive-data#watch-decorator
235
241
  */
236
242
  export declare const Watch: WatchDecorator;
243
+ /**
244
+ * Decorator to serialize a property to an attribute string.
245
+ */
246
+ export declare const PropSerialize: PropSerializeDecorator;
247
+ /**
248
+ * Decorator to deserialize an attribute string to a property.
249
+ */
250
+ export declare const AttrDeserialize: AttrDeserializeDecorator;
237
251
  export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
238
252
  export type ErrorHandler = (err: any, element?: HTMLElement) => void;
239
253
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-daisy-db",
3
- "version": "0.1.78",
3
+ "version": "0.1.79",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "format": "prettier --write src"
28
28
  },
29
29
  "dependencies": {
30
- "@stencil/core": "4.37.1",
30
+ "@stencil/core": "4.38.0",
31
31
  "mitt": "3.0.1"
32
32
  },
33
33
  "devDependencies": {
@@ -1,2 +0,0 @@
1
- var t=Object.defineProperty,e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.t=t)},o=(t,e)=>e in t,l=(t,e)=>(0,console.error)(t,e),i=new Map,s=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!!f&&(()=>!!c.document&&Object.getOwnPropertyDescriptor(c.document.adoptedStyleSheets,"length").writable)(),h=!1,p=[],m=[],v=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&u.o?$(b):u.raf(b))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},b=()=>{y(p),y(m),(h=p.length>0)&&u.raf(b)},$=t=>a().then(t),w=v(m,!0),g=t=>"object"==(t=typeof t)||"function"===t;function S(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>O,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>j(t))):j(n)}if(t.isErr)return k(t.value);throw"should never get here"}var E,C=t=>{if(t.isOk)return t.value;throw t.value},M=t=>{if(t.isErr)return t.value;throw t.value};function x(){const t=this.attachShadow({mode:"open"});void 0===E&&(E=null),E&&(d?t.adoptedStyleSheets.push(E):t.adoptedStyleSheets=[...t.adoptedStyleSheets,E])}var P=new WeakMap,R=t=>"sc-"+t.i,D=(t,e,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!g(o))&&(o+=""),i&&s?r[r.length-1].u+=o:r.push(i?U(null,o):o),s=i)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=U(t,null);return u.h=e,r.length>0&&(u.p=r),u.m=l,u},U=(t,e)=>({o:0,v:t,u:e,$:null,p:null,h:null,m:null}),W={},A=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};A("::slotted"),A(":host"),A(":host-context");var N,L=(t,e)=>null==t||g(t)?t:1&e?t+"":t,T=(t,e,n,l,i,s)=>{if(n===l)return;let r=o(t,e),a=e.toLowerCase();if("class"===e){const e=t.classList,o=q(n);let i=q(l);e.remove(...o.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!o.includes(t))))}else if("key"===e);else if(r||"o"!==e[0]||"n"!==e[1]){const o=g(l);if(r||o&&null!==l)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||i)&&!o&&1===t.nodeType&&t.setAttribute(e,l=!0===l?"":l)}else if(e="-"===e[2]?e.slice(3):o(c,a)?a.slice(2):a[2]+e.slice(3),n||l){const o=e.endsWith(z);e=e.replace(F,""),n&&u.rel(t,e,n,o),l&&u.ael(t,e,l,o)}},H=/\s/,q=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(H):[]),z="Capture",F=RegExp(z+"$"),V=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.h||{},i=e.h||{};for(const t of G(Object.keys(l)))t in i||T(o,t,l[t],void 0,n,e.o);for(const t of G(Object.keys(i)))T(o,t,l[t],i[t],n,e.o)};function G(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var I=!1,Y=(t,e,n)=>{const o=e.p[n];let l,i,s=0;if(null!==o.u)l=o.$=c.document.createTextNode(o.u);else{if(!c.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.$=c.document.createElement(o.v),V(null,o,I),o.p)for(s=0;s<o.p.length;++s)i=Y(t,o,s),i&&l.appendChild(i)}return l["s-hn"]=N,l},_=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===N&&(r=r.shadowRoot);l<=i;++l)o[l]&&(s=Y(null,n,l),s&&(o[l].$=s,Q(r,s,e)))},B=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;t&&t.remove()}}},J=(t,e,n=!1)=>t.v===e.v&&(n?(n&&!t.m&&e.m&&(t.m=e.m),!0):t.m===e.m),K=(t,e,n=!1)=>{const o=e.$=t.$,l=t.p,i=e.p,s=e.u;null===s?(V(t,e,I),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(J(d,m,l))K(d,m,l),d=e[++r],m=o[++c];else if(J(h,v,l))K(h,v,l),h=e[--f],v=o[--p];else if(J(d,v,l))K(d,v,l),Q(t,d.$,h.$.nextSibling),d=e[++r],v=o[--p];else if(J(h,m,l))K(h,m,l),Q(t,h.$,d.$),h=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].m&&e[a].m===m.m){u=a;break}u>=0?(s=e[u],s.v!==m.v?i=Y(e&&e[c],n,u):(K(s,m,l),e[u]=void 0,i=s.$),m=o[++c]):(i=Y(e&&e[c],n,c),m=o[++c]),i&&Q(d.$.parentNode,i,d.$)}r>f?_(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&B(e,r,f)})(o,l,e,i,n):null!==i?(null!==t.u&&(o.textContent=""),_(o,null,e,i,0,i.length-1)):!n&&null!==l&&B(l,0,l.length-1)):t.u!==s&&(o.data=s)},Q=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),X=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},Z=(t,e)=>{if(t.o|=16,4&t.o)return void(t.o|=512);X(t,t.j);const n=()=>tt(t,e);if(!e)return w(n);queueMicrotask((()=>{n()}))},tt=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=rt(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),l=et(l,(()=>rt(o,"componentWillRender",void 0,n))),et(l,(()=>ot(t,o,e)))},et=(t,e)=>nt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),nt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,ot=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.k,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=R(e),l=s.get(o);if(!c.document)return o;if(t=11===t.nodeType?t:c.document,l)if("string"==typeof l){let i,s=P.get(t=t.head||t);if(s||P.set(t,s=new Set),!s.has(o)){{i=c.document.createElement("style"),i.innerHTML=l;const o=null!=(n=u.O)?n:S(c.document);if(null!=o&&i.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(f){const e=new CSSStyleSheet;e.replaceSync(l),d?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(i)}else t.append(i);1&e.o&&t.insertBefore(i,null)}4&e.o&&(i.innerHTML+=r),s&&s.add(o)}}else t.adoptedStyleSheets.includes(l)||(d?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);lt(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>it(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},lt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.C||U(null,null),i=(t=>t&&t.v===W)(e)?e:D(null,null,e);if(N=o.tagName,n&&i.h)for(const t of Object.keys(i.h))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.h[t]=o[t]);i.v=null,i.o|=4,t.C=i,i.$=l.$=o.shadowRoot||o,K(l,i,n)})(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},it=t=>{const e=t.$hostElement$,n=t.t,o=t.j;rt(n,"componentDidRender",void 0,e),64&t.o?rt(n,"componentDidUpdate",void 0,e):(t.o|=64,ct(e),rt(n,"componentDidLoad",void 0,e),t.M(e),o||st()),t.S&&(t.S(),t.S=void 0),512&t.o&&$((()=>Z(t,!1))),t.o&=-517},st=()=>{$((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"proto-daisy-db"}});return t.dispatchEvent(e),e})(c)))},rt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},ct=t=>t.classList.add("hydrated"),ut=(t,n,o,l)=>{const i=e(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.i}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=i.P.get(n),r=i.o,c=i.t;if(o=L(o,l.R[n][0]),(!(8&r)||void 0===s)&&o!==s&&(!Number.isNaN(s)||!Number.isNaN(o))&&(i.P.set(n,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,s,n))return;Z(i,!1)}},at=(t,n,o)=>{var l,i;const s=t.prototype;if(n.R){const r=Object.entries(null!=(l=n.R)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};i&&(n.R[t][0]|=2048),r&&(n.R[t][0]|=4096),(1&o||!i)&&Object.defineProperty(s,t,{get(){{if(!(2048&n.R[t][0]))return((t,n)=>e(this).P.get(n))(0,t);const o=e(this),l=o?o.t:s;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(i){const s=e(this);if(s){if(r){const e=32&l?this[t]:s.$hostElement$[t];return void 0===e&&s.P.get(t)?i=s.P.get(t):!s.P.get(t)&&e&&s.P.set(t,e),r.call(this,L(i,l)),void ut(this,t,i=32&l?this[t]:s.$hostElement$[t],n)}{if(!(1&o&&4096&n.R[t][0]))return ut(this,t,i,n),void(1&o&&!s.t&&s.D.then((()=>{4096&n.R[t][0]&&s.t[t]!==s.P.get(t)&&(s.t[t]=i)})));const e=()=>{const e=s.t[t];!s.P.get(t)&&e&&s.P.set(t,e),s.t[t]=L(i,l),ut(this,t,s.t[t],n)};s.t?e():s.D.then((()=>e()))}}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(t,l,i){u.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))i=this[c],delete this[c];else{if(s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const o=e(this),s=null==o?void 0:o.o;if(o&&s&&!(8&s)&&128&s&&i!==l){const e=o.t,s=null==(r=n.U)?void 0:r[t];null==s||s.forEach((n=>{null!=e[n]&&e[n].call(e,i,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(s,c);(i=(null!==i||"boolean"!=typeof this[c])&&i)===this[c]||u.get&&!u.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=n.U)?i:{}),...r.filter((([t,e])=>31&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},ft=(t,e)=>{rt(t,"connectedCallback",void 0,e)},dt=(t,e)=>{rt(t,"disconnectedCallback",void 0,e||t)},ht=(t,n={})=>{var o;if(!c.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const a=[],d=n.exclude||[],h=c.customElements,p=c.document.head,m=p.querySelector("meta[charset]"),v=c.document.createElement("style"),y=[];let b,$=!0;Object.assign(u,n),u.l=new URL(n.resourcesUrl||"./",c.document.baseURI).href;let w=!1;if(t.map((t=>{t[1].map((n=>{const o={o:n[0],i:n[1],R:n[2],W:n[3]};4&o.o&&(w=!0),o.R=n[2];const r=o.i,c=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,k:e,P:new Map};n.D=new Promise((t=>n.M=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,o),1&o.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.i}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else x.call(t,o)}connectedCallback(){e(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),$?y.push(this):u.jmp((()=>(t=>{if(!(1&u.o)){const n=e(t);if(!n)return;const o=n.k,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?ft(n.t,t):(null==n?void 0:n.D)&&n.D.then((()=>ft(n.t,t)));else{n.o|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){X(n,n.j=e);break}}o.R&&Object.entries(o.R).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.A){const s=((t,e)=>{const n=t.i.replace(/-/g,"_"),o=t.A;if(!o)return;const s=i.get(o);return s?s[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(s&&"then"in s){const t=()=>{};o=await s,t()}else o=s;if(!o)throw Error(`Constructor for "${n.i}#${e.N}" was not found`);o.isProxied||(at(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,r(),ft(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=R(n);if(!s.has(e)){const o=()=>{};((t,e,n)=>{let o=s.get(t);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,s.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>Z(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,n,o)}r()}})(this))))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.o)){const n=e(t);(null==n?void 0:n.t)?dt(n.t,t):(null==n?void 0:n.D)&&n.D.then((()=>dt(n.t,t)))}P.has(t)&&P.delete(t),t.shadowRoot&&P.has(t.shadowRoot)&&P.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const n=e(this);if(!n)return;const o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==n?void 0:n.C)?void 0:t.$)instanceof Node&&!n.C.$.isConnected&&delete n.C.$}))}componentOnReady(){var t;return null==(t=e(this))?void 0:t.D}};o.A=t[0],d.includes(r)||h.get(r)||(a.push(r),h.define(r,at(c,o,1)))}))})),a.length>0&&(w&&(v.textContent+=r),v.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(o=u.O)?o:S(c.document);null!=t&&v.setAttribute("nonce",t),p.insertBefore(v,m?m.nextSibling:p.firstChild)}$=!1,y.length?y.map((t=>t.connectedCallback())):u.jmp((()=>b=setTimeout(st,30)))},pt=t=>u.O=t;export{ht as b,D as h,a as p,n as r,pt as s}