proto-tinker-wc 0.1.5 → 0.1.7

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.
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'proto-tinker-wc';
24
- const BUILD = /* proto-tinker-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* proto-tinker-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.27.0 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -37,10 +37,15 @@ var SVG_NS = "http://www.w3.org/2000/svg";
37
37
  var HTML_NS = "http://www.w3.org/1999/xhtml";
38
38
 
39
39
  // src/client/client-host-ref.ts
40
- var hostRefs = /* @__PURE__ */ new WeakMap();
41
- var getHostRef = (ref) => hostRefs.get(ref);
40
+ var getHostRef = (ref) => {
41
+ if (ref.__stencil__getHostRef) {
42
+ return ref.__stencil__getHostRef();
43
+ }
44
+ return void 0;
45
+ };
42
46
  var registerInstance = (lazyInstance, hostRef) => {
43
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
47
+ lazyInstance.__stencil__getHostRef = () => hostRef;
48
+ hostRef.$lazyInstance$ = lazyInstance;
44
49
  };
45
50
  var registerHost = (hostElement, cmpMeta) => {
46
51
  const hostRef = {
@@ -54,7 +59,8 @@ var registerHost = (hostElement, cmpMeta) => {
54
59
  hostElement["s-p"] = [];
55
60
  hostElement["s-rc"] = [];
56
61
  }
57
- const ref = hostRefs.set(hostElement, hostRef);
62
+ const ref = hostRef;
63
+ hostElement.__stencil__getHostRef = () => ref;
58
64
  return ref;
59
65
  };
60
66
  var isMemberInElement = (elm, memberName) => memberName in elm;
@@ -434,68 +440,69 @@ var attachStyles = (hostRef) => {
434
440
  };
435
441
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
436
442
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
437
- if (oldValue !== newValue) {
438
- let isProp = isMemberInElement(elm, memberName);
439
- let ln = memberName.toLowerCase();
440
- if (memberName === "class") {
441
- const classList = elm.classList;
442
- const oldClasses = parseClassList(oldValue);
443
- let newClasses = parseClassList(newValue);
444
- {
445
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
446
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
447
- }
448
- } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
449
- if (memberName[2] === "-") {
450
- memberName = memberName.slice(3);
451
- } else if (isMemberInElement(win, ln)) {
452
- memberName = ln.slice(2);
453
- } else {
454
- memberName = ln[2] + memberName.slice(3);
443
+ if (oldValue === newValue) {
444
+ return;
445
+ }
446
+ let isProp = isMemberInElement(elm, memberName);
447
+ let ln = memberName.toLowerCase();
448
+ if (memberName === "class") {
449
+ const classList = elm.classList;
450
+ const oldClasses = parseClassList(oldValue);
451
+ let newClasses = parseClassList(newValue);
452
+ {
453
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
454
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
455
+ }
456
+ } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
457
+ if (memberName[2] === "-") {
458
+ memberName = memberName.slice(3);
459
+ } else if (isMemberInElement(win, ln)) {
460
+ memberName = ln.slice(2);
461
+ } else {
462
+ memberName = ln[2] + memberName.slice(3);
463
+ }
464
+ if (oldValue || newValue) {
465
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
466
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
467
+ if (oldValue) {
468
+ plt.rel(elm, memberName, oldValue, capture);
455
469
  }
456
- if (oldValue || newValue) {
457
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
458
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
459
- if (oldValue) {
460
- plt.rel(elm, memberName, oldValue, capture);
461
- }
462
- if (newValue) {
463
- plt.ael(elm, memberName, newValue, capture);
464
- }
470
+ if (newValue) {
471
+ plt.ael(elm, memberName, newValue, capture);
465
472
  }
466
- } else {
467
- const isComplex = isComplexType(newValue);
468
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
469
- try {
470
- if (!elm.tagName.includes("-")) {
471
- const n = newValue == null ? "" : newValue;
472
- if (memberName === "list") {
473
- isProp = false;
474
- } else if (oldValue == null || elm[memberName] != n) {
475
- if (typeof elm.__lookupSetter__(memberName) === "function") {
476
- elm[memberName] = n;
477
- } else {
478
- elm.setAttribute(memberName, n);
479
- }
473
+ }
474
+ } else {
475
+ const isComplex = isComplexType(newValue);
476
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
477
+ try {
478
+ if (!elm.tagName.includes("-")) {
479
+ const n = newValue == null ? "" : newValue;
480
+ if (memberName === "list") {
481
+ isProp = false;
482
+ } else if (oldValue == null || elm[memberName] != n) {
483
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
484
+ elm[memberName] = n;
485
+ } else {
486
+ elm.setAttribute(memberName, n);
480
487
  }
481
- } else if (elm[memberName] !== newValue) {
482
- elm[memberName] = newValue;
483
488
  }
484
- } catch (e) {
489
+ } else if (elm[memberName] !== newValue) {
490
+ elm[memberName] = newValue;
485
491
  }
492
+ } catch (e) {
486
493
  }
487
- if (newValue == null || newValue === false) {
488
- if (newValue !== false || elm.getAttribute(memberName) === "") {
489
- {
490
- elm.removeAttribute(memberName);
491
- }
492
- }
493
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
494
- newValue = newValue === true ? "" : newValue;
494
+ }
495
+ if (newValue == null || newValue === false) {
496
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
495
497
  {
496
- elm.setAttribute(memberName, newValue);
498
+ elm.removeAttribute(memberName);
497
499
  }
498
500
  }
501
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
502
+ newValue = newValue === true ? "" : newValue;
503
+ {
504
+ elm.setAttribute(memberName, newValue);
505
+ }
499
506
  }
500
507
  }
501
508
  };
@@ -726,9 +733,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
726
733
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
727
734
  }
728
735
  {
729
- {
730
- updateElement(oldVNode, newVNode2, isSvgMode);
731
- }
736
+ updateElement(oldVNode, newVNode2, isSvgMode);
732
737
  }
733
738
  if (oldChildren !== null && newChildren !== null) {
734
739
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -811,6 +816,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
811
816
  );
812
817
  }
813
818
  let maybePromise;
819
+ if (isInitialLoad) {
820
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
821
+ } else {
822
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
823
+ }
824
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
814
825
  endSchedule();
815
826
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
816
827
  };
@@ -880,14 +891,13 @@ var postUpdateComponent = (hostRef) => {
880
891
  const endPostUpdate = createTime("postUpdate", tagName);
881
892
  const instance = hostRef.$lazyInstance$ ;
882
893
  const ancestorComponent = hostRef.$ancestorComponent$;
894
+ safeCall(instance, "componentDidRender", void 0, elm);
883
895
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
884
896
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
885
897
  {
886
898
  addHydratedFlag(elm);
887
899
  }
888
- {
889
- safeCall(instance, "componentDidLoad", void 0, elm);
890
- }
900
+ safeCall(instance, "componentDidLoad", void 0, elm);
891
901
  endPostUpdate();
892
902
  {
893
903
  hostRef.$onReadyResolve$(elm);
@@ -896,6 +906,7 @@ var postUpdateComponent = (hostRef) => {
896
906
  }
897
907
  }
898
908
  } else {
909
+ safeCall(instance, "componentDidUpdate", void 0, elm);
899
910
  endPostUpdate();
900
911
  }
901
912
  {
@@ -956,6 +967,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
956
967
  hostRef.$instanceValues$.set(propName, newVal);
957
968
  if (instance) {
958
969
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
970
+ if (instance.componentShouldUpdate) {
971
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
972
+ return;
973
+ }
974
+ }
959
975
  scheduleUpdate(hostRef, false);
960
976
  }
961
977
  }
@@ -1118,6 +1134,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1118
1134
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1119
1135
  }
1120
1136
  endNewInstance();
1137
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1121
1138
  } else {
1122
1139
  Cstr = elm.constructor;
1123
1140
  const cmpTag = elm.localName;
@@ -1145,6 +1162,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1145
1162
  }
1146
1163
  };
1147
1164
  var fireConnectedCallback = (instance, elm) => {
1165
+ {
1166
+ safeCall(instance, "connectedCallback", void 0, elm);
1167
+ }
1148
1168
  };
1149
1169
 
1150
1170
  // src/runtime/connected-callback.ts
@@ -1177,20 +1197,27 @@ var connectedCallback = (elm) => {
1177
1197
  initializeComponent(elm, hostRef, cmpMeta);
1178
1198
  }
1179
1199
  } else {
1180
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1181
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1200
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1201
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1202
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1203
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1182
1204
  }
1183
1205
  }
1184
1206
  endConnected();
1185
1207
  }
1186
1208
  };
1187
1209
  var disconnectInstance = (instance, elm) => {
1210
+ {
1211
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1212
+ }
1188
1213
  };
1189
1214
  var disconnectedCallback = async (elm) => {
1190
1215
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1191
1216
  const hostRef = getHostRef(elm);
1192
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1193
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1217
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1218
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1219
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1220
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1194
1221
  }
1195
1222
  }
1196
1223
  if (rootAppliedStyles.has(elm)) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-70705251.js');
5
+ const index = require('./index-f32dc09e.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-70705251.js');
5
+ const index = require('./index-f32dc09e.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.27.0 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-tinker-wc.cjs.js', document.baseURI).href));
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-70705251.js');
5
+ const index = require('./index-f32dc09e.js');
6
6
 
7
7
  const Radio = props => {
8
8
  const hex = props.hex || 'currentColor';
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
7
+ "version": "4.27.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -1,8 +1,8 @@
1
1
  const NAMESPACE = 'proto-tinker-wc';
2
- const BUILD = /* proto-tinker-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* proto-tinker-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.27.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -15,10 +15,15 @@ var SVG_NS = "http://www.w3.org/2000/svg";
15
15
  var HTML_NS = "http://www.w3.org/1999/xhtml";
16
16
 
17
17
  // src/client/client-host-ref.ts
18
- var hostRefs = /* @__PURE__ */ new WeakMap();
19
- var getHostRef = (ref) => hostRefs.get(ref);
18
+ var getHostRef = (ref) => {
19
+ if (ref.__stencil__getHostRef) {
20
+ return ref.__stencil__getHostRef();
21
+ }
22
+ return void 0;
23
+ };
20
24
  var registerInstance = (lazyInstance, hostRef) => {
21
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
25
+ lazyInstance.__stencil__getHostRef = () => hostRef;
26
+ hostRef.$lazyInstance$ = lazyInstance;
22
27
  };
23
28
  var registerHost = (hostElement, cmpMeta) => {
24
29
  const hostRef = {
@@ -32,7 +37,8 @@ var registerHost = (hostElement, cmpMeta) => {
32
37
  hostElement["s-p"] = [];
33
38
  hostElement["s-rc"] = [];
34
39
  }
35
- const ref = hostRefs.set(hostElement, hostRef);
40
+ const ref = hostRef;
41
+ hostElement.__stencil__getHostRef = () => ref;
36
42
  return ref;
37
43
  };
38
44
  var isMemberInElement = (elm, memberName) => memberName in elm;
@@ -412,68 +418,69 @@ var attachStyles = (hostRef) => {
412
418
  };
413
419
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
414
420
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
415
- if (oldValue !== newValue) {
416
- let isProp = isMemberInElement(elm, memberName);
417
- let ln = memberName.toLowerCase();
418
- if (memberName === "class") {
419
- const classList = elm.classList;
420
- const oldClasses = parseClassList(oldValue);
421
- let newClasses = parseClassList(newValue);
422
- {
423
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
424
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
425
- }
426
- } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
427
- if (memberName[2] === "-") {
428
- memberName = memberName.slice(3);
429
- } else if (isMemberInElement(win, ln)) {
430
- memberName = ln.slice(2);
431
- } else {
432
- memberName = ln[2] + memberName.slice(3);
421
+ if (oldValue === newValue) {
422
+ return;
423
+ }
424
+ let isProp = isMemberInElement(elm, memberName);
425
+ let ln = memberName.toLowerCase();
426
+ if (memberName === "class") {
427
+ const classList = elm.classList;
428
+ const oldClasses = parseClassList(oldValue);
429
+ let newClasses = parseClassList(newValue);
430
+ {
431
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
432
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
433
+ }
434
+ } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
435
+ if (memberName[2] === "-") {
436
+ memberName = memberName.slice(3);
437
+ } else if (isMemberInElement(win, ln)) {
438
+ memberName = ln.slice(2);
439
+ } else {
440
+ memberName = ln[2] + memberName.slice(3);
441
+ }
442
+ if (oldValue || newValue) {
443
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
444
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
445
+ if (oldValue) {
446
+ plt.rel(elm, memberName, oldValue, capture);
433
447
  }
434
- if (oldValue || newValue) {
435
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
436
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
437
- if (oldValue) {
438
- plt.rel(elm, memberName, oldValue, capture);
439
- }
440
- if (newValue) {
441
- plt.ael(elm, memberName, newValue, capture);
442
- }
448
+ if (newValue) {
449
+ plt.ael(elm, memberName, newValue, capture);
443
450
  }
444
- } else {
445
- const isComplex = isComplexType(newValue);
446
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
447
- try {
448
- if (!elm.tagName.includes("-")) {
449
- const n = newValue == null ? "" : newValue;
450
- if (memberName === "list") {
451
- isProp = false;
452
- } else if (oldValue == null || elm[memberName] != n) {
453
- if (typeof elm.__lookupSetter__(memberName) === "function") {
454
- elm[memberName] = n;
455
- } else {
456
- elm.setAttribute(memberName, n);
457
- }
451
+ }
452
+ } else {
453
+ const isComplex = isComplexType(newValue);
454
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
455
+ try {
456
+ if (!elm.tagName.includes("-")) {
457
+ const n = newValue == null ? "" : newValue;
458
+ if (memberName === "list") {
459
+ isProp = false;
460
+ } else if (oldValue == null || elm[memberName] != n) {
461
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
462
+ elm[memberName] = n;
463
+ } else {
464
+ elm.setAttribute(memberName, n);
458
465
  }
459
- } else if (elm[memberName] !== newValue) {
460
- elm[memberName] = newValue;
461
466
  }
462
- } catch (e) {
467
+ } else if (elm[memberName] !== newValue) {
468
+ elm[memberName] = newValue;
463
469
  }
470
+ } catch (e) {
464
471
  }
465
- if (newValue == null || newValue === false) {
466
- if (newValue !== false || elm.getAttribute(memberName) === "") {
467
- {
468
- elm.removeAttribute(memberName);
469
- }
470
- }
471
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
472
- newValue = newValue === true ? "" : newValue;
472
+ }
473
+ if (newValue == null || newValue === false) {
474
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
473
475
  {
474
- elm.setAttribute(memberName, newValue);
476
+ elm.removeAttribute(memberName);
475
477
  }
476
478
  }
479
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
480
+ newValue = newValue === true ? "" : newValue;
481
+ {
482
+ elm.setAttribute(memberName, newValue);
483
+ }
477
484
  }
478
485
  }
479
486
  };
@@ -704,9 +711,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
704
711
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
705
712
  }
706
713
  {
707
- {
708
- updateElement(oldVNode, newVNode2, isSvgMode);
709
- }
714
+ updateElement(oldVNode, newVNode2, isSvgMode);
710
715
  }
711
716
  if (oldChildren !== null && newChildren !== null) {
712
717
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -789,6 +794,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
789
794
  );
790
795
  }
791
796
  let maybePromise;
797
+ if (isInitialLoad) {
798
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
799
+ } else {
800
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
801
+ }
802
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
792
803
  endSchedule();
793
804
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
794
805
  };
@@ -858,14 +869,13 @@ var postUpdateComponent = (hostRef) => {
858
869
  const endPostUpdate = createTime("postUpdate", tagName);
859
870
  const instance = hostRef.$lazyInstance$ ;
860
871
  const ancestorComponent = hostRef.$ancestorComponent$;
872
+ safeCall(instance, "componentDidRender", void 0, elm);
861
873
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
862
874
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
863
875
  {
864
876
  addHydratedFlag(elm);
865
877
  }
866
- {
867
- safeCall(instance, "componentDidLoad", void 0, elm);
868
- }
878
+ safeCall(instance, "componentDidLoad", void 0, elm);
869
879
  endPostUpdate();
870
880
  {
871
881
  hostRef.$onReadyResolve$(elm);
@@ -874,6 +884,7 @@ var postUpdateComponent = (hostRef) => {
874
884
  }
875
885
  }
876
886
  } else {
887
+ safeCall(instance, "componentDidUpdate", void 0, elm);
877
888
  endPostUpdate();
878
889
  }
879
890
  {
@@ -934,6 +945,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
934
945
  hostRef.$instanceValues$.set(propName, newVal);
935
946
  if (instance) {
936
947
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
948
+ if (instance.componentShouldUpdate) {
949
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
950
+ return;
951
+ }
952
+ }
937
953
  scheduleUpdate(hostRef, false);
938
954
  }
939
955
  }
@@ -1096,6 +1112,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1096
1112
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1097
1113
  }
1098
1114
  endNewInstance();
1115
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1099
1116
  } else {
1100
1117
  Cstr = elm.constructor;
1101
1118
  const cmpTag = elm.localName;
@@ -1123,6 +1140,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1123
1140
  }
1124
1141
  };
1125
1142
  var fireConnectedCallback = (instance, elm) => {
1143
+ {
1144
+ safeCall(instance, "connectedCallback", void 0, elm);
1145
+ }
1126
1146
  };
1127
1147
 
1128
1148
  // src/runtime/connected-callback.ts
@@ -1155,20 +1175,27 @@ var connectedCallback = (elm) => {
1155
1175
  initializeComponent(elm, hostRef, cmpMeta);
1156
1176
  }
1157
1177
  } else {
1158
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1159
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1178
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1179
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1180
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1181
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1160
1182
  }
1161
1183
  }
1162
1184
  endConnected();
1163
1185
  }
1164
1186
  };
1165
1187
  var disconnectInstance = (instance, elm) => {
1188
+ {
1189
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1190
+ }
1166
1191
  };
1167
1192
  var disconnectedCallback = async (elm) => {
1168
1193
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1169
1194
  const hostRef = getHostRef(elm);
1170
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1171
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1195
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1196
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1197
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1198
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1172
1199
  }
1173
1200
  }
1174
1201
  if (rootAppliedStyles.has(elm)) {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-3670c56d.js';
2
- export { s as setNonce } from './index-3670c56d.js';
1
+ import { b as bootstrapLazy } from './index-5bac470a.js';
2
+ export { s as setNonce } from './index-5bac470a.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-3670c56d.js';
2
- export { s as setNonce } from './index-3670c56d.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-5bac470a.js';
2
+ export { s as setNonce } from './index-5bac470a.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.27.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,4 +1,4 @@
1
- import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-3670c56d.js';
1
+ import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-5bac470a.js';
2
2
 
3
3
  const Radio = props => {
4
4
  const hex = props.hex || 'currentColor';
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,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=c.document||{head:{}},f={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),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),h=!1,p=[],m=[],v=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&f.o?b(w):f.raf(w))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},w=()=>{y(p),y(m),(h=p.length>0)&&f.raf(w)},b=t=>a().then(t),$=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:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>x});var j=t=>({isOk:!0,isErr:!1,value:t}),O=t=>({isOk:!1,isErr:!0,value:t});function k(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 O(t.value);throw"should never get here"}var E,C=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},M=(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].i+=o:r.push(i?P(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(" "))}}if("function"==typeof t)return t(null===e?{}:e,r,D);const u=P(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},P=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),R={},D={forEach:(t,e)=>t.map(U).forEach(e),map:(t,e)=>t.map(U).map(e).map(A)},U=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.$,vtag:t.m,vtext:t.i}),A=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),M(t.vtag,e,...t.vchildren||[])}const e=P(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.$=t.vname,e},L=(t,e)=>null==t||g(t)?t:1&e?t+"":t,N=new WeakMap,T=t=>"sc-"+t.S,W=(t,e,n,l,i,s)=>{if(n===l)return;let r=o(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,o=F(n);let i=F(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)&&!i)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,u)?u.slice(2):u[2]+e.slice(3),n||l){const o=e.endsWith(V);e=e.replace(q,""),n&&f.rel(t,e,n,o),l&&f.ael(t,e,l,o)}},H=/\s/,F=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(H):[]),V="Capture",q=RegExp(V+"$"),G=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},i=e.u||{};for(const t of _(Object.keys(l)))t in i||W(o,t,l[t],void 0,n,e.o);for(const t of _(Object.keys(i)))W(o,t,l[t],i[t],n,e.o)};function _(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var z=!1,B=(t,e,n)=>{const o=e.h[n];let l,i,s=0;if(null!==o.i)l=o.v=u.createTextNode(o.i);else{if(z||(z="svg"===o.m),l=o.v=u.createElementNS(z?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),z&&"foreignObject"===o.m&&(z=!1),G(null,o,z),o.h)for(s=0;s<o.h.length;++s)i=B(t,o,s),i&&l.appendChild(i);"svg"===o.m?z=!1:"foreignObject"===l.tagName&&(z=!0)}return l["s-hn"]=E,l},I=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===E&&(r=r.shadowRoot);l<=i;++l)o[l]&&(s=B(null,n,l),s&&(o[l].v=s,X(r,s,e)))},J=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},K=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),Q=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,i=e.h,s=e.m,r=e.i;null===r?(G(t,e,z="svg"===s||"foreignObject"!==s&&z),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,m=o[0],v=o[p];for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(K(d,m,l))Q(d,m,l),d=e[++r],m=o[++c];else if(K(h,v,l))Q(h,v,l),h=e[--a],v=o[--p];else if(K(d,v,l))Q(d,v,l),X(t,d.v,h.v.nextSibling),d=e[++r],v=o[--p];else if(K(h,m,l))Q(h,m,l),X(t,h.v,d.v),h=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){u=f;break}u>=0?(s=e[u],s.m!==m.m?i=B(e&&e[c],n,u):(Q(s,m,l),e[u]=void 0,i=s.v),m=o[++c]):(i=B(e&&e[c],n,c),m=o[++c]),i&&X(d.v.parentNode,i,d.v)}r>a?I(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&J(e,r,a)})(o,l,e,i,n):null!==i?(null!==t.i&&(o.textContent=""),I(o,null,e,i,0,i.length-1)):!n&&null!==l&&J(l,0,l.length-1),z&&"svg"===s&&(z=!1)):t.i!==r&&(o.data=r)},X=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Y=(t,e)=>{if(e&&!t.j&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.j=()=>{e["s-p"].splice(n-1,1),o()})))}},Z=(t,e)=>{if(t.o|=16,!(4&t.o))return Y(t,t.O),$((()=>tt(t,e)));t.o|=512},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=ft(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),l=et(l,(()=>ft(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=T(e),l=s.get(o);if(t=11===t.nodeType?t:u,l)if("string"==typeof l){let i,s=N.get(t=t.head||t);if(s||N.set(t,s=new Set),!s.has(o)){{i=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),i.innerHTML=l;const s=null!=(n=f.C)?n:S(u);if(null!=s&&i.setAttribute("nonce",s),!(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(d){const e=new CSSStyleSheet;e.replaceSync(l),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)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);it(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>rt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},lt=null,it=(t,e,n,o)=>{try{lt=e,e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.k,i=t.M||P(null,null),s=(t=>t&&t.m===R)(e)?e:M(null,null,e);if(E=o.tagName,n&&s.u)for(const t of Object.keys(s.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=o[t]);s.m=null,s.o|=4,t.M=s,s.v=i.v=o.shadowRoot||o,Q(i,s,n)})(t,e,o)}catch(e){l(e,t.$hostElement$)}return lt=null,null},st=()=>lt,rt=t=>{const e=t.$hostElement$,n=t.t,o=t.O;ft(n,"componentDidRender",void 0,e),64&t.o?ft(n,"componentDidUpdate",void 0,e):(t.o|=64,at(e),ft(n,"componentDidLoad",void 0,e),t.P(e),o||ut()),t.j&&(t.j(),t.j=void 0),512&t.o&&b((()=>Z(t,!1))),t.o&=-517},ct=t=>{{const n=e(t),o=n.$hostElement$.isConnected;return o&&2==(18&n.o)&&Z(n,!1),o}},ut=()=>{b((()=>(t=>{const e=f.ce("appload",{detail:{namespace:"proto-tinker-wc"}});return t.dispatchEvent(e),e})(c)))},ft=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},at=t=>t.classList.add("hydrated"),dt=(t,n,o,l)=>{const i=e(t);if(!i)throw Error(`Couldn't find host element for "${l.S}" 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/ionic-team/stencil/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)}},ht=(t,n,o)=>{var l,i;const s=t.prototype;if(n.D){const r=Object.entries(null!=(l=n.D)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};i&&(n.D[t][0]|=2048),r&&(n.D[t][0]|=4096),(1&o||!i)&&Object.defineProperty(s,t,{get(){{if(!(2048&n.D[t][0]))return((t,n)=>e(this).R.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(r){const e=32&l?this[t]:s.$hostElement$[t];return void 0===e&&s.R.get(t)?i=s.R.get(t):!s.R.get(t)&&e&&s.R.set(t,e),r.call(this,L(i,l)),void dt(this,t,i=32&l?this[t]:s.$hostElement$[t],n)}{if(!(1&o&&4096&n.D[t][0]))return dt(this,t,i,n),void(1&o&&!s.t&&s.U.then((()=>{4096&n.D[t][0]&&s.t[t]!==s.R.get(t)&&(s.t[t]=i)})));const e=()=>{const e=s.t[t];!s.R.get(t)&&e&&s.R.set(t,e),s.t[t]=L(i,l),dt(this,t,s.t[t],n)};s.t?e():s.U.then((()=>e()))}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(t,l,i){f.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(s&&!(8&s)&&128&s&&i!==l){const e=o.t,s=null==(r=n.A)?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.A)?i:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},pt=(t,e)=>{ft(t,"connectedCallback",void 0,e)},mt=(t,e)=>{ft(t,"disconnectedCallback",void 0,e||t)},vt=(t,n={})=>{var o;const a=[],h=n.exclude||[],p=c.customElements,m=u.head,v=m.querySelector("meta[charset]"),y=u.createElement("style"),w=[];let b,$=!0;Object.assign(f,n),f.l=new URL(n.resourcesUrl||"./",u.baseURI).href;let g=!1;if(t.map((t=>{t[1].map((n=>{const o={o:n[0],S:n[1],D:n[2],L:n[3]};4&o.o&&(g=!0),o.D=n[2];const r=o.S,c=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,k:e,R:new Map};n.U=new Promise((t=>n.P=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.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),$?w.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const n=e(t),o=n.k,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?pt(n.t,t):(null==n?void 0:n.U)&&n.U.then((()=>pt(n.t,t)));else{n.o|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){Y(n,n.O=e);break}}o.D&&Object.entries(o.D).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.N){const s=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.N;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.S}#${e.T}" was not found`);o.isProxied||(ht(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,r(),pt(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=T(n);if(!s.has(e)){const o=()=>{};((t,e,n)=>{let o=s.get(t);d&&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.O,c=()=>Z(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,n,o)}r()}})(this)))}disconnectedCallback(){f.jmp((()=>(async t=>{if(!(1&f.o)){const n=e(t);(null==n?void 0:n.t)?mt(n.t,t):(null==n?void 0:n.U)&&n.U.then((()=>mt(n.t,t)))}N.has(t)&&N.delete(t),t.shadowRoot&&N.has(t.shadowRoot)&&N.delete(t.shadowRoot)})(this))),f.raf((()=>{var t;const n=e(this),o=w.findIndex((t=>t===this));o>-1&&w.splice(o,1),(null==(t=null==n?void 0:n.M)?void 0:t.v)instanceof Node&&!n.M.v.isConnected&&delete n.M.v}))}componentOnReady(){return e(this).U}};o.N=t[0],h.includes(r)||p.get(r)||(a.push(r),p.define(r,ht(c,o,1)))}))})),a.length>0&&(g&&(y.textContent+=r),y.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",y.innerHTML.length)){y.setAttribute("data-styles","");const t=null!=(o=f.C)?o:S(u);null!=t&&y.setAttribute("nonce",t),m.insertBefore(y,v?v.nextSibling:m.firstChild)}$=!1,w.length?w.map((t=>t.connectedCallback())):f.jmp((()=>b=setTimeout(ut,30)))},yt=t=>f.C=t;export{vt as b,ct as f,st as g,M as h,a as p,n as r,yt as s}
@@ -1 +1 @@
1
- import{h as e,g as n,f as t,r}from"./p-07bc1451.js";const a=n=>{const t=n.hex||"currentColor",r=n.selected||!1,a=n.size||24;return e("svg",{class:n.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"radio")," ",e("g",{fill:t},e("path",r?{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))};var i={exports:{}},l={exports:{}},o=Array.prototype.concat,s=Array.prototype.slice,c=l.exports=function(e){for(var n=[],t=0,r=e.length;t<r;t++){var a=e[t];(i=a)&&"string"!=typeof i&&(i instanceof Array||Array.isArray(i)||i.length>=0&&(i.splice instanceof Function||Object.getOwnPropertyDescriptor(i,i.length-1)&&"String"!==i.constructor.name))?n=o.call(n,s.call(a)):n.push(a)}var i;return n};c.wrap=function(e){return function(){return e(c(arguments))}};var u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},h=l.exports,f=Object.hasOwnProperty,d=Object.create(null);for(var g in u)f.call(u,g)&&(d[u[g]]=g);var b=i.exports={to:{},get:{}};function v(e,n,t){return Math.min(Math.max(n,e),t)}function p(e){var n=Math.round(e).toString(16).toUpperCase();return n.length<2?"0"+n:n}b.get=function(e){var n,t;switch(e.substring(0,3).toLowerCase()){case"hsl":n=b.get.hsl(e),t="hsl";break;case"hwb":n=b.get.hwb(e),t="hwb";break;default:n=b.get.rgb(e),t="rgb"}return n?{model:t,value:n}:null},b.get.rgb=function(e){if(!e)return null;var n,t,r,a=[0,0,0,1];if(n=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=n[2],n=n[1],t=0;t<3;t++){var i=2*t;a[t]=parseInt(n.slice(i,i+2),16)}r&&(a[3]=parseInt(r,16)/255)}else if(n=e.match(/^#([a-f0-9]{3,4})$/i)){for(r=(n=n[1])[3],t=0;t<3;t++)a[t]=parseInt(n[t]+n[t],16);r&&(a[3]=parseInt(r+r,16)/255)}else if(n=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(t=0;t<3;t++)a[t]=parseInt(n[t+1],0);n[4]&&(a[3]=n[5]?.01*parseFloat(n[4]):parseFloat(n[4]))}else{if(!(n=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(n=e.match(/^(\w+)$/))?"transparent"===n[1]?[0,0,0,0]:f.call(u,n[1])?((a=u[n[1]])[3]=1,a):null:null;for(t=0;t<3;t++)a[t]=Math.round(2.55*parseFloat(n[t+1]));n[4]&&(a[3]=n[5]?.01*parseFloat(n[4]):parseFloat(n[4]))}for(t=0;t<3;t++)a[t]=v(a[t],0,255);return a[3]=v(a[3],0,1),a},b.get.hsl=function(e){if(!e)return null;var n=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(n){var t=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,v(parseFloat(n[2]),0,100),v(parseFloat(n[3]),0,100),v(isNaN(t)?1:t,0,1)]}return null},b.get.hwb=function(e){if(!e)return null;var n=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(n){var t=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,v(parseFloat(n[2]),0,100),v(parseFloat(n[3]),0,100),v(isNaN(t)?1:t,0,1)]}return null},b.to.hex=function(){var e=h(arguments);return"#"+p(e[0])+p(e[1])+p(e[2])+(e[3]<1?p(Math.round(255*e[3])):"")},b.to.rgb=function(){var e=h(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},b.to.rgb.percent=function(){var e=h(arguments),n=Math.round(e[0]/255*100),t=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+n+"%, "+t+"%, "+r+"%)":"rgba("+n+"%, "+t+"%, "+r+"%, "+e[3]+")"},b.to.hsl=function(){var e=h(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},b.to.hwb=function(){var e=h(arguments),n="";return e.length>=4&&1!==e[3]&&(n=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+n+")"},b.to.keyword=function(e){return d[e.slice(0,3)]};var m={exports:{}},y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},w={};for(var k in y)y.hasOwnProperty(k)&&(w[y[k]]=k);var M=m.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var x in M)if(M.hasOwnProperty(x)){if(!("channels"in M[x]))throw new Error("missing channels property: "+x);if(!("labels"in M[x]))throw new Error("missing channel labels property: "+x);if(M[x].labels.length!==M[x].channels)throw new Error("channel and label counts mismatch: "+x);var C=M[x].channels,j=M[x].labels;delete M[x].channels,delete M[x].labels,Object.defineProperty(M[x],"channels",{value:C}),Object.defineProperty(M[x],"labels",{value:j})}M.rgb.hsl=function(e){var n,t,r=e[0]/255,a=e[1]/255,i=e[2]/255,l=Math.min(r,a,i),o=Math.max(r,a,i),s=o-l;return o===l?n=0:r===o?n=(a-i)/s:a===o?n=2+(i-r)/s:i===o&&(n=4+(r-a)/s),(n=Math.min(60*n,360))<0&&(n+=360),t=(l+o)/2,[n,100*(o===l?0:t<=.5?s/(o+l):s/(2-o-l)),100*t]},M.rgb.hsv=function(e){var n,t,r,a,i,l=e[0]/255,o=e[1]/255,s=e[2]/255,c=Math.max(l,o,s),u=c-Math.min(l,o,s),h=function(e){return(c-e)/6/u+.5};return 0===u?a=i=0:(i=u/c,n=h(l),t=h(o),r=h(s),l===c?a=r-t:o===c?a=1/3+n-r:s===c&&(a=2/3+t-n),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*c]},M.rgb.hwb=function(e){var n=e[0],t=e[1],r=e[2];return[M.rgb.hsl(e)[0],1/255*Math.min(n,Math.min(t,r))*100,100*(r=1-1/255*Math.max(n,Math.max(t,r)))]},M.rgb.cmyk=function(e){var n,t=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-t-(n=Math.min(1-t,1-r,1-a)))/(1-n)||0),100*((1-r-n)/(1-n)||0),100*((1-a-n)/(1-n)||0),100*n]},M.rgb.keyword=function(e){var n=w[e];if(n)return n;var t,r,a,i=1/0;for(var l in y)if(y.hasOwnProperty(l)){var o=(r=e,a=y[l],Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)+Math.pow(r[2]-a[2],2));o<i&&(i=o,t=l)}return t},M.keyword.rgb=function(e){return y[e]},M.rgb.xyz=function(e){var n=e[0]/255,t=e[1]/255,r=e[2]/255;return[100*(.4124*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.3576*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*n+.7152*t+.0722*r),100*(.0193*n+.1192*t+.9505*r)]},M.rgb.lab=function(e){var n=M.rgb.xyz(e),t=n[0],r=n[1],a=n[2];return r/=100,a/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},M.hsl.rgb=function(e){var n,t,r,a,i,l=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[i=255*s,i,i];n=2*s-(t=s<.5?s*(1+o):s+o-s*o),a=[0,0,0];for(var c=0;c<3;c++)(r=l+1/3*-(c-1))<0&&r++,r>1&&r--,a[c]=255*(i=6*r<1?n+6*(t-n)*r:2*r<1?t:3*r<2?n+(t-n)*(2/3-r)*6:n);return a},M.hsl.hsv=function(e){var n=e[0],t=e[1]/100,r=e[2]/100,a=t,i=Math.max(r,.01);return t*=(r*=2)<=1?r:2-r,a*=i<=1?i:2-i,[n,100*(0===r?2*a/(i+a):2*t/(r+t)),(r+t)/2*100]},M.hsv.rgb=function(e){var n=e[0]/60,t=e[1]/100,r=e[2]/100,a=Math.floor(n)%6,i=n-Math.floor(n),l=255*r*(1-t),o=255*r*(1-t*i),s=255*r*(1-t*(1-i));switch(r*=255,a){case 0:return[r,s,l];case 1:return[o,r,l];case 2:return[l,r,s];case 3:return[l,o,r];case 4:return[s,l,r];case 5:return[r,l,o]}},M.hsv.hsl=function(e){var n,t,r,a=e[0],i=e[1]/100,l=e[2]/100,o=Math.max(l,.01);return r=(2-i)*l,t=i*o,[a,100*(t=(t/=(n=(2-i)*o)<=1?n:2-n)||0),100*(r/=2)]},M.hwb.rgb=function(e){var n,t,r,a,i,l,o,s=e[0]/360,c=e[1]/100,u=e[2]/100,h=c+u;switch(h>1&&(c/=h,u/=h),r=6*s-(n=Math.floor(6*s)),1&n&&(r=1-r),a=c+r*((t=1-u)-c),n){default:case 6:case 0:i=t,l=a,o=c;break;case 1:i=a,l=t,o=c;break;case 2:i=c,l=t,o=a;break;case 3:i=c,l=a,o=t;break;case 4:i=a,l=c,o=t;break;case 5:i=t,l=c,o=a}return[255*i,255*l,255*o]},M.cmyk.rgb=function(e){var n=e[1]/100,t=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,t*(1-r)+r))]},M.xyz.rgb=function(e){var n,t,r,a=e[0]/100,i=e[1]/100,l=e[2]/100;return t=-.9689*a+1.8758*i+.0415*l,r=.0557*a+-.204*i+1.057*l,n=(n=3.2406*a+-1.5372*i+-.4986*l)>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(n=Math.min(Math.max(0,n),1)),255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1))]},M.xyz.lab=function(e){var n=e[0],t=e[1],r=e[2];return t/=100,r/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(t=t>.008856?Math.pow(t,1/3):7.787*t+16/116)-16,500*(n-t),200*(t-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},M.lab.xyz=function(e){var n,t,r;n=e[1]/500+(t=(e[0]+16)/116),r=t-e[2]/200;var a=Math.pow(t,3),i=Math.pow(n,3),l=Math.pow(r,3);return t=a>.008856?a:(t-16/116)/7.787,n=i>.008856?i:(n-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,[n*=95.047,t*=100,r*=108.883]},M.lab.lch=function(e){var n,t=e[0],r=e[1],a=e[2];return(n=360*Math.atan2(a,r)/2/Math.PI)<0&&(n+=360),[t,Math.sqrt(r*r+a*a),n]},M.lch.lab=function(e){var n,t=e[1];return n=e[2]/360*2*Math.PI,[e[0],t*Math.cos(n),t*Math.sin(n)]},M.rgb.ansi16=function(e){var n=e[0],t=e[1],r=e[2],a=1 in arguments?arguments[1]:M.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(t/255)<<1|Math.round(n/255));return 2===a&&(i+=60),i},M.hsv.ansi16=function(e){return M.rgb.ansi16(M.hsv.rgb(e),e[2])},M.rgb.ansi256=function(e){var n=e[0],t=e[1],r=e[2];return n===t&&t===r?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5)},M.ansi16.rgb=function(e){var n=e%10;if(0===n||7===n)return e>50&&(n+=3.5),[n=n/10.5*255,n,n];var t=.5*(1+~~(e>50));return[(1&n)*t*255,(n>>1&1)*t*255,(n>>2&1)*t*255]},M.ansi256.rgb=function(e){if(e>=232){var n=10*(e-232)+8;return[n,n,n]}var t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},M.rgb.hex=function(e){var n=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(n.length)+n},M.hex.rgb=function(e){var n=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];var t=n[0];3===n[0].length&&(t=t.split("").map((function(e){return e+e})).join(""));var r=parseInt(t,16);return[r>>16&255,r>>8&255,255&r]},M.rgb.hcg=function(e){var n,t=e[0]/255,r=e[1]/255,a=e[2]/255,i=Math.max(Math.max(t,r),a),l=Math.min(Math.min(t,r),a),o=i-l;return n=o<=0?0:i===t?(r-a)/o%6:i===r?2+(a-t)/o:4+(t-r)/o+4,n/=6,[360*(n%=1),100*o,100*(o<1?l/(1-o):0)]},M.hsl.hcg=function(e){var n,t=e[1]/100,r=e[2]/100,a=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},M.hsv.hcg=function(e){var n=e[2]/100,t=e[1]/100*n,r=0;return t<1&&(r=(n-t)/(1-t)),[e[0],100*t,100*r]},M.hcg.rgb=function(e){var n=e[1]/100,t=e[2]/100;if(0===n)return[255*t,255*t,255*t];var r,a=[0,0,0],i=e[0]/360%1*6,l=i%1,o=1-l;switch(Math.floor(i)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=o,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=o,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=o}return[255*(n*a[0]+(r=(1-n)*t)),255*(n*a[1]+r),255*(n*a[2]+r)]},M.hcg.hsv=function(e){var n=e[1]/100,t=n+e[2]/100*(1-n),r=0;return t>0&&(r=n/t),[e[0],100*r,100*t]},M.hcg.hsl=function(e){var n=e[1]/100,t=e[2]/100*(1-n)+.5*n,r=0;return t>0&&t<.5?r=n/(2*t):t>=.5&&t<1&&(r=n/(2*(1-t))),[e[0],100*r,100*t]},M.hcg.hwb=function(e){var n=e[1]/100,t=n+e[2]/100*(1-n);return[e[0],100*(t-n),100*(1-t)]},M.hwb.hcg=function(e){var n=1-e[2]/100,t=n-e[1]/100,r=0;return t<1&&(r=(n-t)/(1-t)),[e[0],100*t,100*r]},M.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},M.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},M.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},M.gray.hsl=M.gray.hsv=function(e){return[0,0,e[0]]},M.gray.hwb=function(e){return[0,100,e[0]]},M.gray.cmyk=function(e){return[0,0,0,e[0]]},M.gray.lab=function(e){return[e[0],0,0]},M.gray.hex=function(e){var n=255&Math.round(e[0]/100*255),t=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(t.length)+t},M.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var O=m.exports;function z(e,n){return function(t){return n(e(t))}}function A(e,n){for(var t=[n[e].parent,e],r=O[n[e].parent][e],a=n[e].parent;n[a].parent;)t.unshift(n[a].parent),r=z(O[n[a].parent][a],r),a=n[a].parent;return r.conversion=t,r}var q=m.exports,L=function(e){for(var n=function(e){var n=function(){for(var e={},n=Object.keys(O),t=n.length,r=0;r<t;r++)e[n[r]]={distance:-1,parent:null};return e}(),t=[e];for(n[e].distance=0;t.length;)for(var r=t.pop(),a=Object.keys(O[r]),i=a.length,l=0;l<i;l++){var o=a[l],s=n[o];-1===s.distance&&(s.distance=n[r].distance+1,s.parent=r,t.unshift(o))}return n}(e),t={},r=Object.keys(n),a=r.length,i=0;i<a;i++){var l=r[i];null!==n[l].parent&&(t[l]=A(l,n))}return t},F={};Object.keys(q).forEach((function(e){F[e]={},Object.defineProperty(F[e],"channels",{value:q[e].channels}),Object.defineProperty(F[e],"labels",{value:q[e].labels});var n=L(e);Object.keys(n).forEach((function(t){var r=n[t];F[e][t]=function(e){var n=function(n){if(null==n)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var t=e(n);if("object"==typeof t)for(var r=t.length,a=0;a<r;a++)t[a]=Math.round(t[a]);return t};return"conversion"in e&&(n.conversion=e.conversion),n}(r),F[e][t].raw=function(e){var n=function(n){return null==n?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),e(n))};return"conversion"in e&&(n.conversion=e.conversion),n}(r)}))}));var S=i.exports,E=F,N=[].slice,I=["keyword","gray","hex"],$={};Object.keys(E).forEach((function(e){$[N.call(E[e].labels).sort().join("")]=e}));var U={};function B(e,n){if(!(this instanceof B))return new B(e,n);if(n&&n in I&&(n=null),n&&!(n in E))throw new Error("Unknown model: "+n);var t,r;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof B)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var a=S.get(e);if(null===a)throw new Error("Unable to parse color from string: "+e);this.model=a.model,this.color=a.value.slice(0,r=E[this.model].channels),this.valpha="number"==typeof a.value[r]?a.value[r]:1}else if(e.length){this.model=n||"rgb";var i=N.call(e,0,r=E[this.model].channels);this.color=P(i,r),this.valpha="number"==typeof e[r]?e[r]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var l=Object.keys(e);"alpha"in e&&(l.splice(l.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var o=l.sort().join("");if(!(o in $))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=$[o];var s=E[this.model].labels,c=[];for(t=0;t<s.length;t++)c.push(e[s[t]]);this.color=P(c)}if(U[this.model])for(r=E[this.model].channels,t=0;t<r;t++){var u=U[this.model][t];u&&(this.color[t]=u(this.color[t]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function H(e,n,t){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(U[e]||(U[e]=[]))[n]=t})),e=e[0],function(r){var a;return arguments.length?(t&&(r=t(r)),(a=this[e]()).color[n]=r,a):(a=this[e]().color[n],t&&(a=t(a)),a)}}function J(e){return function(n){return Math.max(0,Math.min(e,n))}}function P(e,n){for(var t=0;t<n;t++)"number"!=typeof e[t]&&(e[t]=0);return e}B.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var n=this.model in S.to?this:this.rgb(),t=1===(n=n.round("number"==typeof e?e:1)).valpha?n.color:n.color.concat(this.valpha);return S.to[n.model](t)},percentString:function(e){var n=this.rgb().round("number"==typeof e?e:1),t=1===n.valpha?n.color:n.color.concat(this.valpha);return S.to.rgb.percent(t)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},n=E[this.model].channels,t=E[this.model].labels,r=0;r<n;r++)e[t[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new B(this.color.map(function(e){return function(n){return function(e,n){return Number(e.toFixed(n))}(n,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new B(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:H("rgb",0,J(255)),green:H("rgb",1,J(255)),blue:H("rgb",2,J(255)),hue:H(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:H("hsl",1,J(100)),lightness:H("hsl",2,J(100)),saturationv:H("hsv",1,J(100)),value:H("hsv",2,J(100)),chroma:H("hcg",1,J(100)),gray:H("hcg",2,J(100)),white:H("hwb",1,J(100)),wblack:H("hwb",2,J(100)),cyan:H("cmyk",0,J(100)),magenta:H("cmyk",1,J(100)),yellow:H("cmyk",2,J(100)),black:H("cmyk",3,J(100)),x:H("xyz",0,J(100)),y:H("xyz",1,J(100)),z:H("xyz",2,J(100)),l:H("lab",0,J(100)),a:H("lab",1),b:H("lab",2),keyword:function(e){return arguments.length?new B(e):E[this.model].keyword(this.color)},hex:function(e){return arguments.length?new B(e):S.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,n=[],t=0;t<e.length;t++){var r=e[t]/255;n[t]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast:function(e){var n=this.luminosity(),t=e.luminosity();return n>t?(n+.05)/(t+.05):(t+.05)/(n+.05)},level:function(e){var n=this.contrast(e);return n>=7.1?"AAA":n>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),n=0;n<3;n++)e.color[n]=255-e.color[n];return e},lighten:function(e){var n=this.hsl();return n.color[2]+=n.color[2]*e,n},darken:function(e){var n=this.hsl();return n.color[2]-=n.color[2]*e,n},saturate:function(e){var n=this.hsl();return n.color[1]+=n.color[1]*e,n},desaturate:function(e){var n=this.hsl();return n.color[1]-=n.color[1]*e,n},whiten:function(e){var n=this.hwb();return n.color[1]+=n.color[1]*e,n},blacken:function(e){var n=this.hwb();return n.color[2]+=n.color[2]*e,n},grayscale:function(){var e=this.rgb().color,n=.3*e[0]+.59*e[1]+.11*e[2];return B.rgb(n,n,n)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var n=this.hsl(),t=n.color[0];return n.color[0]=t=(t=(t+e)%360)<0?360+t:t,n},mix:function(e,n){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var t=e.rgb(),r=this.rgb(),a=void 0===n?.5:n,i=2*a-1,l=t.alpha()-r.alpha(),o=((i*l==-1?i:(i+l)/(1+i*l))+1)/2,s=1-o;return B.rgb(o*t.red()+s*r.red(),o*t.green()+s*r.green(),o*t.blue()+s*r.blue(),t.alpha()*a+r.alpha()*(1-a))}},Object.keys(E).forEach((function(e){if(-1===I.indexOf(e)){var n=E[e].channels;B.prototype[e]=function(){if(this.model===e)return new B(this);if(arguments.length)return new B(arguments,e);var t,r="number"==typeof arguments[n]?n:this.valpha;return new B((t=E[this.model][e].raw(this.color),Array.isArray(t)?t:[t]).concat(r),e)},B[e]=function(t){return"number"==typeof t&&(t=P(N.call(arguments),n)),new B(t,e)}}}));const R=[{id:1,height:400,width:100,x:10,y:10,drop:20},{id:2,height:356,width:100,x:120,y:32,drop:20},{id:3,height:312,width:100,x:230,y:54,drop:20},{id:4,height:268,width:100,x:340,y:76,drop:20},{id:5,height:224,width:100,x:450,y:98,drop:20}].map((()=>0)),T={bada55:"#bada55",navy:"#001f3f",blue:"#0074d9",aqua:"#7fdbff",teal:"#39cccc",olive:"#3d9970",green:"#2ecc40",lime:"#01ff70",yellow:"#ffdc00",orange:"#ff851b",red:"#ff4136",maroon:"#85144b",fuchsia:"#f012be",purple:"#b10dc9",black:"#111111",gray:"#aaaaaa",silver:"#dddddd"},D={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},Z=Object.keys(T),K=e=>!("isConnected"in e)||e.isConnected,V=(()=>{let e;return(...n)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let n of e.keys())e.set(n,e.get(n).filter(K))})(...n)}),2e3)}})(),_=e=>"function"==typeof e?e():e,G="proto-tinker-wc::app-data",Q=(()=>{const e=((e,n=((e,n)=>e!==n))=>{const t=_(e);let r=new Map(Object.entries(null!=t?t:{}));const a={dispose:[],get:[],set:[],reset:[]},i=()=>{var n;r=new Map(Object.entries(null!==(n=_(e))&&void 0!==n?n:{})),a.reset.forEach((e=>e()))},l=e=>(a.get.forEach((n=>n(e))),r.get(e)),o=(e,t)=>{const i=r.get(e);n(t,i,e)&&(r.set(e,t),a.set.forEach((n=>n(e,t,i))))},s="undefined"==typeof Proxy?{}:new Proxy(t,{get:(e,n)=>l(n),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,n)=>r.has(n),set:(e,n,t)=>(o(n,t),!0)}),c=(e,n)=>(a[e].push(n),()=>{((e,n)=>{const t=e.indexOf(n);t>=0&&(e[t]=e[e.length-1],e.length--)})(a[e],n)});return{state:s,get:l,set:o,on:c,onChange:(n,t)=>{const r=c("set",((e,r)=>{e===n&&t(r)})),a=c("reset",(()=>t(_(e)[n])));return()=>{r(),a()}},use:(...e)=>{const n=e.reduce(((e,n)=>(n.set&&e.push(c("set",n.set)),n.get&&e.push(c("get",n.get)),n.reset&&e.push(c("reset",n.reset)),n.dispose&&e.push(c("dispose",n.dispose)),e)),[]);return()=>n.forEach((e=>e()))},dispose:()=>{a.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const n=r.get(e);a.set.forEach((t=>t(e,n,n)))}}})({count:0,pick:"bada55",values:[...R]},void 0);return e.use((()=>{if("function"!=typeof n)return{};const e=new Map;return{dispose:()=>e.clear(),get:t=>{const r=n();r&&((e,n,t)=>{const r=e.get(n);r?r.includes(t)||r.push(t):e.set(n,[t])})(e,t,r)},set:n=>{const r=e.get(n);r&&e.set(n,r.filter(t)),V(e)},reset:()=>{e.forEach((e=>e.forEach(t))),V(e)}}})()),e})(),{state:W}=Q,X=()=>{const{count:e,pick:n,values:t}=W;(e=>{const n=JSON.stringify(e);localStorage.setItem(G,n)})({count:e,pick:n,values:t})},Y={initApp:()=>{const e=(()=>{const e=localStorage.getItem(G);return e?JSON.parse(e):void 0})();if(e){const{count:n,pick:t,values:r}=e;W.count=n,W.pick=t,W.values=r}},refresh:()=>{const e=R.map((()=>Math.floor(100*Math.random())));W.count=W.count+1,W.values=e,X()},reset:()=>{W.count=0,W.values=[...R],X()},updatePick:e=>{W.pick=e,X()}},ee=n=>{const{actions:t,state:r}=n,{pick:i}=r;return e("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},Z.map((n=>{const r=(e=>T[e]||D[e])(n),l=i===n;return e("div",{"aria-label":n,"aria-checked":l?"true":"false",role:"radio",onClick:()=>{t.updatePick(n)}},e(a,{hex:r,selected:l,label:n}))})))},ne=n=>{const t=n.hex||"currentColor",r=n.size||24;return e("svg",{class:n.class,width:r,height:r,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"chevron-double-left"),e("g",{fill:t},e("path",{d:"M18.41,7.41L17,6L11,12L17,18L18.41,16.59L13.83,12L18.41,7.41M12.41,7.41L11,6L5,12L11,18L12.41,16.59L7.83,12L12.41,7.41Z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},te=n=>{const t=n.hex||"currentColor",r=n.size||24;return e("svg",{class:n.class,width:r,height:r,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"close"),e("g",{fill:t},e("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},re=n=>{const t=n.hex||"currentColor",r=n.size||24;return e("svg",{class:n.class,width:r,height:r,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"refresh"),e("g",{fill:t},e("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99\n 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65\n 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35\n 2.35z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},ae=n=>{const{actions:t,state:r}=n,{count:a}=r;return e("div",{class:"mb-10px mt-3 flex items-center"},e("button",{"aria-label":"Refresh",class:"ds1-button data-button bg-clrs-blue",onClick:()=>{t.refresh()}},e(re,{label:"Refresh"})),e("button",{"aria-label":"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{t.reset()}},e(te,{label:"Reset"})),e("span",{class:"flex items-center"},e(ne,{size:28}),e("span",{class:"italic"},"click a button... ",e("sup",null,a))))},ie=()=>e("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","4.0.8"),le=n=>{const{state:t}=n,{values:r,pick:a,count:i}=t;return e("div",{class:"flex"},e("div",{class:"flex flex-col"},e("div",{class:"flex"},e("span",{class:"mr-10px font-bold"},"color:"),e("span",{class:"italic text-clrs-slate4"},a)),e("div",{class:"mt-5px flex"},e("span",{class:"mr-10px font-bold"},"sample:"),e("span",{class:"italic text-clrs-slate4"},`${i>0?r:"..."}`))),e(ie,null))},oe=n=>{const t=n.hex||"currentColor",r=n.size||24;return e("svg",{class:n.class,width:r,height:r,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"fingerprint"),e("g",{fill:t},e("path",{d:"M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3\n 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97\n 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47\n 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47\n 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16\n 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03\n 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44\n 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23\n 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25\n 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74\n 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27\n 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69\n 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1\n 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24\n 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15\n 10.12,20.93C10.31,21.13 10.31,21.44 10.12,21.64C10,21.74 9.88,21.79\n 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04\n 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1\n 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93\n 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96\n 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94\n 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95\n 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72\n 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6\n 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83\n 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62\n 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82\n 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16\n 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82\n 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59\n 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71\n 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96\n 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36\n 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},se="eswat2",ce=()=>e("a",{class:"absolute right-8 top-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":se,target:"blank",title:se},e(oe,{label:"eswat2"})),ue=n=>e("h1",{class:"mb-11 ml-0 mr-0 mt-11 text-center text-6xl font-thin uppercase text-clrs-red"},n.label),he=class{constructor(e){r(this,e),this.tag="proto-tinker"}componentDidLoad(){Y.initApp()}render(){return e("div",{key:"8ce0faa12c39b5b7ebc87c2f8d00dade936e3ded",id:"app",class:"ds1-main relative"},e(ue,{key:"d1a5aba6e4221c2f233f8675a4d5cd81aab4d93d",label:"tinker wc"}),e(ce,{key:"919ca01768ea309609ec6be67fede120434d723e"}),e(ae,{key:"e8220f685b6b44e3d7ccd1bf644d3f98219d7310",actions:Y,state:W}),e(ee,{key:"463901312bdd5ee72715de3e2fc47ad364902f40",actions:Y,state:W}),e("hr",{key:"35ba2812a3b068b21b5252c5f07d0b5dc2f18527",class:"ml-0 mr-0"}),e(le,{key:"df047e0968a8267a031b87fd733c454911771fe0",state:W}))}};he.style="/*! tailwindcss v4.0.8 | MIT License | https://tailwindcss.com */\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 --text-6xl: 3.75rem;\n --text-6xl--line-height: 1;\n --font-weight-thin: 100;\n --font-weight-bold: 700;\n }\n}\n@layer utilities {\n .absolute {\n position: absolute;\n }\n .relative {\n position: relative;\n }\n .top-8 {\n top: calc(var(--spacing) * 8);\n }\n .right-8 {\n right: calc(var(--spacing) * 8);\n }\n .mt-3 {\n margin-top: calc(var(--spacing) * 3);\n }\n .mt-5px {\n margin-top: 5px;\n }\n .mt-11 {\n margin-top: calc(var(--spacing) * 11);\n }\n .mr-0 {\n margin-right: calc(var(--spacing) * 0);\n }\n .mr-10px {\n margin-right: 10px;\n }\n .mb-10px {\n margin-bottom: 10px;\n }\n .mb-11 {\n margin-bottom: calc(var(--spacing) * 11);\n }\n .ml-0 {\n margin-left: calc(var(--spacing) * 0);\n }\n .ml-auto {\n margin-left: auto;\n }\n .flex {\n display: flex;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-wrap {\n flex-wrap: wrap;\n }\n .items-center {\n align-items: center;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-clrs-slate {\n border-color: var(--clrs-slate, #708090);\n }\n .bg-clrs-blue {\n background-color: var(--clrs-blue, #0074d9);\n }\n .bg-clrs-red {\n background-color: var(--clrs-red, #ff4136);\n }\n .p-4 {\n padding: calc(var(--spacing) * 4);\n }\n .text-center {\n text-align: center;\n }\n .align-top {\n vertical-align: top;\n }\n .font-sans {\n font-family: var(--font-sans);\n }\n .text-6xl {\n font-size: var(--text-6xl);\n line-height: var(--tw-leading, var(--text-6xl--line-height));\n }\n .text-xs {\n font-size: var(--text-xs);\n line-height: var(--tw-leading, var(--text-xs--line-height));\n }\n .font-bold {\n --tw-font-weight: var(--font-weight-bold);\n font-weight: var(--font-weight-bold);\n }\n .font-thin {\n --tw-font-weight: var(--font-weight-thin);\n font-weight: var(--font-weight-thin);\n }\n .text-clrs-gray {\n color: var(--clrs-gray, #aaaaaa);\n }\n .text-clrs-navy {\n color: var(--clrs-navy, #001f3f);\n }\n .text-clrs-red {\n color: var(--clrs-red, #ff4136);\n }\n .text-clrs-slate4 {\n color: var(--clrs-slate4, #4e5964);\n }\n .text-clrs-white {\n color: var(--clrs-white, #ffffff);\n }\n .uppercase {\n text-transform: uppercase;\n }\n .italic {\n font-style: italic;\n }\n .antialiased {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\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 .hover\\:text-clrs-navy {\n &:hover {\n @media (hover: hover) {\n color: var(--clrs-navy, #001f3f);\n }\n }\n }\n .active\\:bg-clrs-gray {\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n }\n .active\\:text-clrs-navy {\n &:active {\n color: var(--clrs-navy, #001f3f);\n }\n }\n}\n@layer components {\n .ds1-main {\n display: flex;\n flex-direction: column;\n padding: calc(var(--spacing) * 4);\n font-family: var(--font-sans);\n color: var(--clrs-navy, #001f3f);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .ds1-button {\n display: flex;\n align-items: center;\n --tw-border-style: solid;\n border-style: solid;\n border-color: var(--clrs-slate, #708090);\n color: var(--clrs-white, #ffffff);\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n &:active {\n color: var(--clrs-navy, #001f3f);\n }\n }\n}\n.data-button {\n border-radius: 5px;\n border-width: 1px;\n padding: 5px;\n margin: 0px;\n margin-right: 5px;\n cursor: pointer;\n}\n";export{he as proto_tinker}
1
+ import{h as e,g as n,f as t,r}from"./p-51e6f35f.js";const a=n=>{const t=n.hex||"currentColor",r=n.selected||!1,a=n.size||24;return e("svg",{class:n.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"radio")," ",e("g",{fill:t},e("path",r?{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))};var i={exports:{}},l={exports:{}},o=Array.prototype.concat,s=Array.prototype.slice,c=l.exports=function(e){for(var n=[],t=0,r=e.length;t<r;t++){var a=e[t];(i=a)&&"string"!=typeof i&&(i instanceof Array||Array.isArray(i)||i.length>=0&&(i.splice instanceof Function||Object.getOwnPropertyDescriptor(i,i.length-1)&&"String"!==i.constructor.name))?n=o.call(n,s.call(a)):n.push(a)}var i;return n};c.wrap=function(e){return function(){return e(c(arguments))}};var u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},h=l.exports,f=Object.hasOwnProperty,d=Object.create(null);for(var g in u)f.call(u,g)&&(d[u[g]]=g);var b=i.exports={to:{},get:{}};function v(e,n,t){return Math.min(Math.max(n,e),t)}function p(e){var n=Math.round(e).toString(16).toUpperCase();return n.length<2?"0"+n:n}b.get=function(e){var n,t;switch(e.substring(0,3).toLowerCase()){case"hsl":n=b.get.hsl(e),t="hsl";break;case"hwb":n=b.get.hwb(e),t="hwb";break;default:n=b.get.rgb(e),t="rgb"}return n?{model:t,value:n}:null},b.get.rgb=function(e){if(!e)return null;var n,t,r,a=[0,0,0,1];if(n=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=n[2],n=n[1],t=0;t<3;t++){var i=2*t;a[t]=parseInt(n.slice(i,i+2),16)}r&&(a[3]=parseInt(r,16)/255)}else if(n=e.match(/^#([a-f0-9]{3,4})$/i)){for(r=(n=n[1])[3],t=0;t<3;t++)a[t]=parseInt(n[t]+n[t],16);r&&(a[3]=parseInt(r+r,16)/255)}else if(n=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(t=0;t<3;t++)a[t]=parseInt(n[t+1],0);n[4]&&(a[3]=n[5]?.01*parseFloat(n[4]):parseFloat(n[4]))}else{if(!(n=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(n=e.match(/^(\w+)$/))?"transparent"===n[1]?[0,0,0,0]:f.call(u,n[1])?((a=u[n[1]])[3]=1,a):null:null;for(t=0;t<3;t++)a[t]=Math.round(2.55*parseFloat(n[t+1]));n[4]&&(a[3]=n[5]?.01*parseFloat(n[4]):parseFloat(n[4]))}for(t=0;t<3;t++)a[t]=v(a[t],0,255);return a[3]=v(a[3],0,1),a},b.get.hsl=function(e){if(!e)return null;var n=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(n){var t=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,v(parseFloat(n[2]),0,100),v(parseFloat(n[3]),0,100),v(isNaN(t)?1:t,0,1)]}return null},b.get.hwb=function(e){if(!e)return null;var n=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(n){var t=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,v(parseFloat(n[2]),0,100),v(parseFloat(n[3]),0,100),v(isNaN(t)?1:t,0,1)]}return null},b.to.hex=function(){var e=h(arguments);return"#"+p(e[0])+p(e[1])+p(e[2])+(e[3]<1?p(Math.round(255*e[3])):"")},b.to.rgb=function(){var e=h(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},b.to.rgb.percent=function(){var e=h(arguments),n=Math.round(e[0]/255*100),t=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+n+"%, "+t+"%, "+r+"%)":"rgba("+n+"%, "+t+"%, "+r+"%, "+e[3]+")"},b.to.hsl=function(){var e=h(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},b.to.hwb=function(){var e=h(arguments),n="";return e.length>=4&&1!==e[3]&&(n=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+n+")"},b.to.keyword=function(e){return d[e.slice(0,3)]};var m={exports:{}},y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},w={};for(var k in y)y.hasOwnProperty(k)&&(w[y[k]]=k);var M=m.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var x in M)if(M.hasOwnProperty(x)){if(!("channels"in M[x]))throw new Error("missing channels property: "+x);if(!("labels"in M[x]))throw new Error("missing channel labels property: "+x);if(M[x].labels.length!==M[x].channels)throw new Error("channel and label counts mismatch: "+x);var C=M[x].channels,j=M[x].labels;delete M[x].channels,delete M[x].labels,Object.defineProperty(M[x],"channels",{value:C}),Object.defineProperty(M[x],"labels",{value:j})}M.rgb.hsl=function(e){var n,t,r=e[0]/255,a=e[1]/255,i=e[2]/255,l=Math.min(r,a,i),o=Math.max(r,a,i),s=o-l;return o===l?n=0:r===o?n=(a-i)/s:a===o?n=2+(i-r)/s:i===o&&(n=4+(r-a)/s),(n=Math.min(60*n,360))<0&&(n+=360),t=(l+o)/2,[n,100*(o===l?0:t<=.5?s/(o+l):s/(2-o-l)),100*t]},M.rgb.hsv=function(e){var n,t,r,a,i,l=e[0]/255,o=e[1]/255,s=e[2]/255,c=Math.max(l,o,s),u=c-Math.min(l,o,s),h=function(e){return(c-e)/6/u+.5};return 0===u?a=i=0:(i=u/c,n=h(l),t=h(o),r=h(s),l===c?a=r-t:o===c?a=1/3+n-r:s===c&&(a=2/3+t-n),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*c]},M.rgb.hwb=function(e){var n=e[0],t=e[1],r=e[2];return[M.rgb.hsl(e)[0],1/255*Math.min(n,Math.min(t,r))*100,100*(r=1-1/255*Math.max(n,Math.max(t,r)))]},M.rgb.cmyk=function(e){var n,t=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-t-(n=Math.min(1-t,1-r,1-a)))/(1-n)||0),100*((1-r-n)/(1-n)||0),100*((1-a-n)/(1-n)||0),100*n]},M.rgb.keyword=function(e){var n=w[e];if(n)return n;var t,r,a,i=1/0;for(var l in y)if(y.hasOwnProperty(l)){var o=(r=e,a=y[l],Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)+Math.pow(r[2]-a[2],2));o<i&&(i=o,t=l)}return t},M.keyword.rgb=function(e){return y[e]},M.rgb.xyz=function(e){var n=e[0]/255,t=e[1]/255,r=e[2]/255;return[100*(.4124*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.3576*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*n+.7152*t+.0722*r),100*(.0193*n+.1192*t+.9505*r)]},M.rgb.lab=function(e){var n=M.rgb.xyz(e),t=n[0],r=n[1],a=n[2];return r/=100,a/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},M.hsl.rgb=function(e){var n,t,r,a,i,l=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[i=255*s,i,i];n=2*s-(t=s<.5?s*(1+o):s+o-s*o),a=[0,0,0];for(var c=0;c<3;c++)(r=l+1/3*-(c-1))<0&&r++,r>1&&r--,a[c]=255*(i=6*r<1?n+6*(t-n)*r:2*r<1?t:3*r<2?n+(t-n)*(2/3-r)*6:n);return a},M.hsl.hsv=function(e){var n=e[0],t=e[1]/100,r=e[2]/100,a=t,i=Math.max(r,.01);return t*=(r*=2)<=1?r:2-r,a*=i<=1?i:2-i,[n,100*(0===r?2*a/(i+a):2*t/(r+t)),(r+t)/2*100]},M.hsv.rgb=function(e){var n=e[0]/60,t=e[1]/100,r=e[2]/100,a=Math.floor(n)%6,i=n-Math.floor(n),l=255*r*(1-t),o=255*r*(1-t*i),s=255*r*(1-t*(1-i));switch(r*=255,a){case 0:return[r,s,l];case 1:return[o,r,l];case 2:return[l,r,s];case 3:return[l,o,r];case 4:return[s,l,r];case 5:return[r,l,o]}},M.hsv.hsl=function(e){var n,t,r,a=e[0],i=e[1]/100,l=e[2]/100,o=Math.max(l,.01);return r=(2-i)*l,t=i*o,[a,100*(t=(t/=(n=(2-i)*o)<=1?n:2-n)||0),100*(r/=2)]},M.hwb.rgb=function(e){var n,t,r,a,i,l,o,s=e[0]/360,c=e[1]/100,u=e[2]/100,h=c+u;switch(h>1&&(c/=h,u/=h),r=6*s-(n=Math.floor(6*s)),1&n&&(r=1-r),a=c+r*((t=1-u)-c),n){default:case 6:case 0:i=t,l=a,o=c;break;case 1:i=a,l=t,o=c;break;case 2:i=c,l=t,o=a;break;case 3:i=c,l=a,o=t;break;case 4:i=a,l=c,o=t;break;case 5:i=t,l=c,o=a}return[255*i,255*l,255*o]},M.cmyk.rgb=function(e){var n=e[1]/100,t=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,t*(1-r)+r))]},M.xyz.rgb=function(e){var n,t,r,a=e[0]/100,i=e[1]/100,l=e[2]/100;return t=-.9689*a+1.8758*i+.0415*l,r=.0557*a+-.204*i+1.057*l,n=(n=3.2406*a+-1.5372*i+-.4986*l)>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(n=Math.min(Math.max(0,n),1)),255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1))]},M.xyz.lab=function(e){var n=e[0],t=e[1],r=e[2];return t/=100,r/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(t=t>.008856?Math.pow(t,1/3):7.787*t+16/116)-16,500*(n-t),200*(t-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},M.lab.xyz=function(e){var n,t,r;n=e[1]/500+(t=(e[0]+16)/116),r=t-e[2]/200;var a=Math.pow(t,3),i=Math.pow(n,3),l=Math.pow(r,3);return t=a>.008856?a:(t-16/116)/7.787,n=i>.008856?i:(n-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,[n*=95.047,t*=100,r*=108.883]},M.lab.lch=function(e){var n,t=e[0],r=e[1],a=e[2];return(n=360*Math.atan2(a,r)/2/Math.PI)<0&&(n+=360),[t,Math.sqrt(r*r+a*a),n]},M.lch.lab=function(e){var n,t=e[1];return n=e[2]/360*2*Math.PI,[e[0],t*Math.cos(n),t*Math.sin(n)]},M.rgb.ansi16=function(e){var n=e[0],t=e[1],r=e[2],a=1 in arguments?arguments[1]:M.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(t/255)<<1|Math.round(n/255));return 2===a&&(i+=60),i},M.hsv.ansi16=function(e){return M.rgb.ansi16(M.hsv.rgb(e),e[2])},M.rgb.ansi256=function(e){var n=e[0],t=e[1],r=e[2];return n===t&&t===r?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5)},M.ansi16.rgb=function(e){var n=e%10;if(0===n||7===n)return e>50&&(n+=3.5),[n=n/10.5*255,n,n];var t=.5*(1+~~(e>50));return[(1&n)*t*255,(n>>1&1)*t*255,(n>>2&1)*t*255]},M.ansi256.rgb=function(e){if(e>=232){var n=10*(e-232)+8;return[n,n,n]}var t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},M.rgb.hex=function(e){var n=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(n.length)+n},M.hex.rgb=function(e){var n=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];var t=n[0];3===n[0].length&&(t=t.split("").map((function(e){return e+e})).join(""));var r=parseInt(t,16);return[r>>16&255,r>>8&255,255&r]},M.rgb.hcg=function(e){var n,t=e[0]/255,r=e[1]/255,a=e[2]/255,i=Math.max(Math.max(t,r),a),l=Math.min(Math.min(t,r),a),o=i-l;return n=o<=0?0:i===t?(r-a)/o%6:i===r?2+(a-t)/o:4+(t-r)/o+4,n/=6,[360*(n%=1),100*o,100*(o<1?l/(1-o):0)]},M.hsl.hcg=function(e){var n,t=e[1]/100,r=e[2]/100,a=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},M.hsv.hcg=function(e){var n=e[2]/100,t=e[1]/100*n,r=0;return t<1&&(r=(n-t)/(1-t)),[e[0],100*t,100*r]},M.hcg.rgb=function(e){var n=e[1]/100,t=e[2]/100;if(0===n)return[255*t,255*t,255*t];var r,a=[0,0,0],i=e[0]/360%1*6,l=i%1,o=1-l;switch(Math.floor(i)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=o,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=o,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=o}return[255*(n*a[0]+(r=(1-n)*t)),255*(n*a[1]+r),255*(n*a[2]+r)]},M.hcg.hsv=function(e){var n=e[1]/100,t=n+e[2]/100*(1-n),r=0;return t>0&&(r=n/t),[e[0],100*r,100*t]},M.hcg.hsl=function(e){var n=e[1]/100,t=e[2]/100*(1-n)+.5*n,r=0;return t>0&&t<.5?r=n/(2*t):t>=.5&&t<1&&(r=n/(2*(1-t))),[e[0],100*r,100*t]},M.hcg.hwb=function(e){var n=e[1]/100,t=n+e[2]/100*(1-n);return[e[0],100*(t-n),100*(1-t)]},M.hwb.hcg=function(e){var n=1-e[2]/100,t=n-e[1]/100,r=0;return t<1&&(r=(n-t)/(1-t)),[e[0],100*t,100*r]},M.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},M.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},M.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},M.gray.hsl=M.gray.hsv=function(e){return[0,0,e[0]]},M.gray.hwb=function(e){return[0,100,e[0]]},M.gray.cmyk=function(e){return[0,0,0,e[0]]},M.gray.lab=function(e){return[e[0],0,0]},M.gray.hex=function(e){var n=255&Math.round(e[0]/100*255),t=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(t.length)+t},M.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var O=m.exports;function z(e,n){return function(t){return n(e(t))}}function A(e,n){for(var t=[n[e].parent,e],r=O[n[e].parent][e],a=n[e].parent;n[a].parent;)t.unshift(n[a].parent),r=z(O[n[a].parent][a],r),a=n[a].parent;return r.conversion=t,r}var q=m.exports,L=function(e){for(var n=function(e){var n=function(){for(var e={},n=Object.keys(O),t=n.length,r=0;r<t;r++)e[n[r]]={distance:-1,parent:null};return e}(),t=[e];for(n[e].distance=0;t.length;)for(var r=t.pop(),a=Object.keys(O[r]),i=a.length,l=0;l<i;l++){var o=a[l],s=n[o];-1===s.distance&&(s.distance=n[r].distance+1,s.parent=r,t.unshift(o))}return n}(e),t={},r=Object.keys(n),a=r.length,i=0;i<a;i++){var l=r[i];null!==n[l].parent&&(t[l]=A(l,n))}return t},F={};Object.keys(q).forEach((function(e){F[e]={},Object.defineProperty(F[e],"channels",{value:q[e].channels}),Object.defineProperty(F[e],"labels",{value:q[e].labels});var n=L(e);Object.keys(n).forEach((function(t){var r=n[t];F[e][t]=function(e){var n=function(n){if(null==n)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var t=e(n);if("object"==typeof t)for(var r=t.length,a=0;a<r;a++)t[a]=Math.round(t[a]);return t};return"conversion"in e&&(n.conversion=e.conversion),n}(r),F[e][t].raw=function(e){var n=function(n){return null==n?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),e(n))};return"conversion"in e&&(n.conversion=e.conversion),n}(r)}))}));var S=i.exports,E=F,N=[].slice,I=["keyword","gray","hex"],$={};Object.keys(E).forEach((function(e){$[N.call(E[e].labels).sort().join("")]=e}));var U={};function B(e,n){if(!(this instanceof B))return new B(e,n);if(n&&n in I&&(n=null),n&&!(n in E))throw new Error("Unknown model: "+n);var t,r;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof B)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var a=S.get(e);if(null===a)throw new Error("Unable to parse color from string: "+e);this.model=a.model,this.color=a.value.slice(0,r=E[this.model].channels),this.valpha="number"==typeof a.value[r]?a.value[r]:1}else if(e.length){this.model=n||"rgb";var i=N.call(e,0,r=E[this.model].channels);this.color=P(i,r),this.valpha="number"==typeof e[r]?e[r]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var l=Object.keys(e);"alpha"in e&&(l.splice(l.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var o=l.sort().join("");if(!(o in $))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=$[o];var s=E[this.model].labels,c=[];for(t=0;t<s.length;t++)c.push(e[s[t]]);this.color=P(c)}if(U[this.model])for(r=E[this.model].channels,t=0;t<r;t++){var u=U[this.model][t];u&&(this.color[t]=u(this.color[t]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function H(e,n,t){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(U[e]||(U[e]=[]))[n]=t})),e=e[0],function(r){var a;return arguments.length?(t&&(r=t(r)),(a=this[e]()).color[n]=r,a):(a=this[e]().color[n],t&&(a=t(a)),a)}}function J(e){return function(n){return Math.max(0,Math.min(e,n))}}function P(e,n){for(var t=0;t<n;t++)"number"!=typeof e[t]&&(e[t]=0);return e}B.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var n=this.model in S.to?this:this.rgb(),t=1===(n=n.round("number"==typeof e?e:1)).valpha?n.color:n.color.concat(this.valpha);return S.to[n.model](t)},percentString:function(e){var n=this.rgb().round("number"==typeof e?e:1),t=1===n.valpha?n.color:n.color.concat(this.valpha);return S.to.rgb.percent(t)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},n=E[this.model].channels,t=E[this.model].labels,r=0;r<n;r++)e[t[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new B(this.color.map(function(e){return function(n){return function(e,n){return Number(e.toFixed(n))}(n,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new B(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:H("rgb",0,J(255)),green:H("rgb",1,J(255)),blue:H("rgb",2,J(255)),hue:H(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:H("hsl",1,J(100)),lightness:H("hsl",2,J(100)),saturationv:H("hsv",1,J(100)),value:H("hsv",2,J(100)),chroma:H("hcg",1,J(100)),gray:H("hcg",2,J(100)),white:H("hwb",1,J(100)),wblack:H("hwb",2,J(100)),cyan:H("cmyk",0,J(100)),magenta:H("cmyk",1,J(100)),yellow:H("cmyk",2,J(100)),black:H("cmyk",3,J(100)),x:H("xyz",0,J(100)),y:H("xyz",1,J(100)),z:H("xyz",2,J(100)),l:H("lab",0,J(100)),a:H("lab",1),b:H("lab",2),keyword:function(e){return arguments.length?new B(e):E[this.model].keyword(this.color)},hex:function(e){return arguments.length?new B(e):S.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,n=[],t=0;t<e.length;t++){var r=e[t]/255;n[t]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast:function(e){var n=this.luminosity(),t=e.luminosity();return n>t?(n+.05)/(t+.05):(t+.05)/(n+.05)},level:function(e){var n=this.contrast(e);return n>=7.1?"AAA":n>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),n=0;n<3;n++)e.color[n]=255-e.color[n];return e},lighten:function(e){var n=this.hsl();return n.color[2]+=n.color[2]*e,n},darken:function(e){var n=this.hsl();return n.color[2]-=n.color[2]*e,n},saturate:function(e){var n=this.hsl();return n.color[1]+=n.color[1]*e,n},desaturate:function(e){var n=this.hsl();return n.color[1]-=n.color[1]*e,n},whiten:function(e){var n=this.hwb();return n.color[1]+=n.color[1]*e,n},blacken:function(e){var n=this.hwb();return n.color[2]+=n.color[2]*e,n},grayscale:function(){var e=this.rgb().color,n=.3*e[0]+.59*e[1]+.11*e[2];return B.rgb(n,n,n)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var n=this.hsl(),t=n.color[0];return n.color[0]=t=(t=(t+e)%360)<0?360+t:t,n},mix:function(e,n){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var t=e.rgb(),r=this.rgb(),a=void 0===n?.5:n,i=2*a-1,l=t.alpha()-r.alpha(),o=((i*l==-1?i:(i+l)/(1+i*l))+1)/2,s=1-o;return B.rgb(o*t.red()+s*r.red(),o*t.green()+s*r.green(),o*t.blue()+s*r.blue(),t.alpha()*a+r.alpha()*(1-a))}},Object.keys(E).forEach((function(e){if(-1===I.indexOf(e)){var n=E[e].channels;B.prototype[e]=function(){if(this.model===e)return new B(this);if(arguments.length)return new B(arguments,e);var t,r="number"==typeof arguments[n]?n:this.valpha;return new B((t=E[this.model][e].raw(this.color),Array.isArray(t)?t:[t]).concat(r),e)},B[e]=function(t){return"number"==typeof t&&(t=P(N.call(arguments),n)),new B(t,e)}}}));const R=[{id:1,height:400,width:100,x:10,y:10,drop:20},{id:2,height:356,width:100,x:120,y:32,drop:20},{id:3,height:312,width:100,x:230,y:54,drop:20},{id:4,height:268,width:100,x:340,y:76,drop:20},{id:5,height:224,width:100,x:450,y:98,drop:20}].map((()=>0)),T={bada55:"#bada55",navy:"#001f3f",blue:"#0074d9",aqua:"#7fdbff",teal:"#39cccc",olive:"#3d9970",green:"#2ecc40",lime:"#01ff70",yellow:"#ffdc00",orange:"#ff851b",red:"#ff4136",maroon:"#85144b",fuchsia:"#f012be",purple:"#b10dc9",black:"#111111",gray:"#aaaaaa",silver:"#dddddd"},D={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},Z=Object.keys(T),K=e=>!("isConnected"in e)||e.isConnected,V=(()=>{let e;return(...n)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let n of e.keys())e.set(n,e.get(n).filter(K))})(...n)}),2e3)}})(),_=e=>"function"==typeof e?e():e,G="proto-tinker-wc::app-data",Q=(()=>{const e=((e,n=((e,n)=>e!==n))=>{const t=_(e);let r=new Map(Object.entries(null!=t?t:{}));const a={dispose:[],get:[],set:[],reset:[]},i=()=>{var n;r=new Map(Object.entries(null!==(n=_(e))&&void 0!==n?n:{})),a.reset.forEach((e=>e()))},l=e=>(a.get.forEach((n=>n(e))),r.get(e)),o=(e,t)=>{const i=r.get(e);n(t,i,e)&&(r.set(e,t),a.set.forEach((n=>n(e,t,i))))},s="undefined"==typeof Proxy?{}:new Proxy(t,{get:(e,n)=>l(n),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,n)=>r.has(n),set:(e,n,t)=>(o(n,t),!0)}),c=(e,n)=>(a[e].push(n),()=>{((e,n)=>{const t=e.indexOf(n);t>=0&&(e[t]=e[e.length-1],e.length--)})(a[e],n)});return{state:s,get:l,set:o,on:c,onChange:(n,t)=>{const r=c("set",((e,r)=>{e===n&&t(r)})),a=c("reset",(()=>t(_(e)[n])));return()=>{r(),a()}},use:(...e)=>{const n=e.reduce(((e,n)=>(n.set&&e.push(c("set",n.set)),n.get&&e.push(c("get",n.get)),n.reset&&e.push(c("reset",n.reset)),n.dispose&&e.push(c("dispose",n.dispose)),e)),[]);return()=>n.forEach((e=>e()))},dispose:()=>{a.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const n=r.get(e);a.set.forEach((t=>t(e,n,n)))}}})({count:0,pick:"bada55",values:[...R]},void 0);return e.use((()=>{if("function"!=typeof n)return{};const e=new Map;return{dispose:()=>e.clear(),get:t=>{const r=n();r&&((e,n,t)=>{const r=e.get(n);r?r.includes(t)||r.push(t):e.set(n,[t])})(e,t,r)},set:n=>{const r=e.get(n);r&&e.set(n,r.filter(t)),V(e)},reset:()=>{e.forEach((e=>e.forEach(t))),V(e)}}})()),e})(),{state:W}=Q,X=()=>{const{count:e,pick:n,values:t}=W;(e=>{const n=JSON.stringify(e);localStorage.setItem(G,n)})({count:e,pick:n,values:t})},Y={initApp:()=>{const e=(()=>{const e=localStorage.getItem(G);return e?JSON.parse(e):void 0})();if(e){const{count:n,pick:t,values:r}=e;W.count=n,W.pick=t,W.values=r}},refresh:()=>{const e=R.map((()=>Math.floor(100*Math.random())));W.count=W.count+1,W.values=e,X()},reset:()=>{W.count=0,W.values=[...R],X()},updatePick:e=>{W.pick=e,X()}},ee=n=>{const{actions:t,state:r}=n,{pick:i}=r;return e("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},Z.map((n=>{const r=(e=>T[e]||D[e])(n),l=i===n;return e("div",{"aria-label":n,"aria-checked":l?"true":"false",role:"radio",onClick:()=>{t.updatePick(n)}},e(a,{hex:r,selected:l,label:n}))})))},ne=n=>{const t=n.hex||"currentColor",r=n.size||24;return e("svg",{class:n.class,width:r,height:r,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"chevron-double-left"),e("g",{fill:t},e("path",{d:"M18.41,7.41L17,6L11,12L17,18L18.41,16.59L13.83,12L18.41,7.41M12.41,7.41L11,6L5,12L11,18L12.41,16.59L7.83,12L12.41,7.41Z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},te=n=>{const t=n.hex||"currentColor",r=n.size||24;return e("svg",{class:n.class,width:r,height:r,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"close"),e("g",{fill:t},e("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},re=n=>{const t=n.hex||"currentColor",r=n.size||24;return e("svg",{class:n.class,width:r,height:r,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"refresh"),e("g",{fill:t},e("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99\n 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65\n 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35\n 2.35z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},ae=n=>{const{actions:t,state:r}=n,{count:a}=r;return e("div",{class:"mb-10px mt-3 flex items-center"},e("button",{"aria-label":"Refresh",class:"ds1-button data-button bg-clrs-blue",onClick:()=>{t.refresh()}},e(re,{label:"Refresh"})),e("button",{"aria-label":"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{t.reset()}},e(te,{label:"Reset"})),e("span",{class:"flex items-center"},e(ne,{size:28}),e("span",{class:"italic"},"click a button... ",e("sup",null,a))))},ie=()=>e("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","4.0.8"),le=n=>{const{state:t}=n,{values:r,pick:a,count:i}=t;return e("div",{class:"flex"},e("div",{class:"flex flex-col"},e("div",{class:"flex"},e("span",{class:"mr-10px font-bold"},"color:"),e("span",{class:"italic text-clrs-slate4"},a)),e("div",{class:"mt-5px flex"},e("span",{class:"mr-10px font-bold"},"sample:"),e("span",{class:"italic text-clrs-slate4"},`${i>0?r:"..."}`))),e(ie,null))},oe=n=>{const t=n.hex||"currentColor",r=n.size||24;return e("svg",{class:n.class,width:r,height:r,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,n.label||"fingerprint"),e("g",{fill:t},e("path",{d:"M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3\n 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97\n 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47\n 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47\n 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16\n 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03\n 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44\n 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23\n 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25\n 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74\n 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27\n 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69\n 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1\n 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24\n 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15\n 10.12,20.93C10.31,21.13 10.31,21.44 10.12,21.64C10,21.74 9.88,21.79\n 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04\n 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1\n 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93\n 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96\n 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94\n 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95\n 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72\n 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6\n 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83\n 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62\n 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82\n 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16\n 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82\n 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59\n 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71\n 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96\n 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36\n 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},se="eswat2",ce=()=>e("a",{class:"absolute right-8 top-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":se,target:"blank",title:se},e(oe,{label:"eswat2"})),ue=n=>e("h1",{class:"mb-11 ml-0 mr-0 mt-11 text-center text-6xl font-thin uppercase text-clrs-red"},n.label),he=class{constructor(e){r(this,e),this.tag="proto-tinker"}componentDidLoad(){Y.initApp()}render(){return e("div",{key:"8ce0faa12c39b5b7ebc87c2f8d00dade936e3ded",id:"app",class:"ds1-main relative"},e(ue,{key:"d1a5aba6e4221c2f233f8675a4d5cd81aab4d93d",label:"tinker wc"}),e(ce,{key:"919ca01768ea309609ec6be67fede120434d723e"}),e(ae,{key:"e8220f685b6b44e3d7ccd1bf644d3f98219d7310",actions:Y,state:W}),e(ee,{key:"463901312bdd5ee72715de3e2fc47ad364902f40",actions:Y,state:W}),e("hr",{key:"35ba2812a3b068b21b5252c5f07d0b5dc2f18527",class:"ml-0 mr-0"}),e(le,{key:"df047e0968a8267a031b87fd733c454911771fe0",state:W}))}};he.style="/*! tailwindcss v4.0.8 | MIT License | https://tailwindcss.com */\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 --text-6xl: 3.75rem;\n --text-6xl--line-height: 1;\n --font-weight-thin: 100;\n --font-weight-bold: 700;\n }\n}\n@layer utilities {\n .absolute {\n position: absolute;\n }\n .relative {\n position: relative;\n }\n .top-8 {\n top: calc(var(--spacing) * 8);\n }\n .right-8 {\n right: calc(var(--spacing) * 8);\n }\n .mt-3 {\n margin-top: calc(var(--spacing) * 3);\n }\n .mt-5px {\n margin-top: 5px;\n }\n .mt-11 {\n margin-top: calc(var(--spacing) * 11);\n }\n .mr-0 {\n margin-right: calc(var(--spacing) * 0);\n }\n .mr-10px {\n margin-right: 10px;\n }\n .mb-10px {\n margin-bottom: 10px;\n }\n .mb-11 {\n margin-bottom: calc(var(--spacing) * 11);\n }\n .ml-0 {\n margin-left: calc(var(--spacing) * 0);\n }\n .ml-auto {\n margin-left: auto;\n }\n .flex {\n display: flex;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-wrap {\n flex-wrap: wrap;\n }\n .items-center {\n align-items: center;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-clrs-slate {\n border-color: var(--clrs-slate, #708090);\n }\n .bg-clrs-blue {\n background-color: var(--clrs-blue, #0074d9);\n }\n .bg-clrs-red {\n background-color: var(--clrs-red, #ff4136);\n }\n .p-4 {\n padding: calc(var(--spacing) * 4);\n }\n .text-center {\n text-align: center;\n }\n .align-top {\n vertical-align: top;\n }\n .font-sans {\n font-family: var(--font-sans);\n }\n .text-6xl {\n font-size: var(--text-6xl);\n line-height: var(--tw-leading, var(--text-6xl--line-height));\n }\n .text-xs {\n font-size: var(--text-xs);\n line-height: var(--tw-leading, var(--text-xs--line-height));\n }\n .font-bold {\n --tw-font-weight: var(--font-weight-bold);\n font-weight: var(--font-weight-bold);\n }\n .font-thin {\n --tw-font-weight: var(--font-weight-thin);\n font-weight: var(--font-weight-thin);\n }\n .text-clrs-gray {\n color: var(--clrs-gray, #aaaaaa);\n }\n .text-clrs-navy {\n color: var(--clrs-navy, #001f3f);\n }\n .text-clrs-red {\n color: var(--clrs-red, #ff4136);\n }\n .text-clrs-slate4 {\n color: var(--clrs-slate4, #4e5964);\n }\n .text-clrs-white {\n color: var(--clrs-white, #ffffff);\n }\n .uppercase {\n text-transform: uppercase;\n }\n .italic {\n font-style: italic;\n }\n .antialiased {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\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 .hover\\:text-clrs-navy {\n &:hover {\n @media (hover: hover) {\n color: var(--clrs-navy, #001f3f);\n }\n }\n }\n .active\\:bg-clrs-gray {\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n }\n .active\\:text-clrs-navy {\n &:active {\n color: var(--clrs-navy, #001f3f);\n }\n }\n}\n@layer components {\n .ds1-main {\n display: flex;\n flex-direction: column;\n padding: calc(var(--spacing) * 4);\n font-family: var(--font-sans);\n color: var(--clrs-navy, #001f3f);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .ds1-button {\n display: flex;\n align-items: center;\n --tw-border-style: solid;\n border-style: solid;\n border-color: var(--clrs-slate, #708090);\n color: var(--clrs-white, #ffffff);\n &:active {\n background-color: var(--clrs-gray, #aaaaaa);\n }\n &:active {\n color: var(--clrs-navy, #001f3f);\n }\n }\n}\n.data-button {\n border-radius: 5px;\n border-width: 1px;\n padding: 5px;\n margin: 0px;\n margin-right: 5px;\n cursor: pointer;\n}\n";export{he as proto_tinker}
@@ -1 +1 @@
1
- import{p as t,b as o}from"./p-07bc1451.js";export{s as setNonce}from"./p-07bc1451.js";import{g as r}from"./p-e1255160.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),t(r)})().then((async t=>(await r(),o([["p-95e52d3a",[[1,"proto-tinker",{tag:[1]}]]]],t))));
1
+ import{p as t,b as o}from"./p-51e6f35f.js";export{s as setNonce}from"./p-51e6f35f.js";import{g as r}from"./p-e1255160.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),t(r)})().then((async t=>(await r(),o([["p-5d6f79b5",[[1,"proto-tinker",{tag:[1]}]]]],t))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-tinker-wc",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "prototype - simple demo built from Stencil & Tailwind",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -28,17 +28,17 @@
28
28
  "format": "prettier --write src"
29
29
  },
30
30
  "dependencies": {
31
- "@stencil/core": "4.26.0",
31
+ "@stencil/core": "4.27.0",
32
32
  "@stencil/store": "2.0.16",
33
33
  "between.js": "0.1.2-fix.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "autoprefixer": "10.4.20",
37
37
  "concurrently": "9.1.2",
38
- "cspell": "8.17.4",
39
- "eslint": "9.20.1",
38
+ "cspell": "8.17.5",
39
+ "eslint": "9.21.0",
40
40
  "postcss": "8.5.3",
41
- "prettier": "3.5.1",
41
+ "prettier": "3.5.2",
42
42
  "prettier-plugin-tailwindcss": "0.6.11",
43
43
  "proto-tailwindcss-clrs": "0.0.410",
44
44
  "tailwindcss": "4.0.8",
@@ -1,2 +0,0 @@
1
- var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={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)},h=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],y=[],v=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&a.o?b($):a.raf($))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},$=()=>{w(m),w(y),(p=m.length>0)&&a.raf($)},b=t=>h().then(t),g=v(y,!0),S=t=>"object"==(t=typeof t)||"function"===t;function j(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:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return k(t.value);throw"should never get here"}var C,M=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},P=(t,e,...n)=>{let o=null,l=null,s=!1,i=!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&&((s="function"!=typeof t&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};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(" "))}}if("function"==typeof t)return t(null===e?{}:e,r,R);const u=A(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},A=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),N={},R={forEach:(t,e)=>t.map(T).forEach(e),map:(t,e)=>t.map(T).map(e).map(D)},T=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.$,vtag:t.m,vtext:t.i}),D=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),P(t.vtag,e,...t.vchildren||[])}const e=A(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.$=t.vname,e},H=(t,e)=>null==t||S(t)?t:1&e?t+"":t,L=new WeakMap,U=t=>"sc-"+t.S,F=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=W(n);let s=W(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("key"===e);else if(r||"o"!==e[0]||"n"!==e[1]){const l=S(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(q);e=e.replace(G,""),n&&a.rel(t,e,n,l),o&&a.ael(t,e,o,l)}}},V=/\s/,W=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(V):[]),q="Capture",G=RegExp(q+"$"),_=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of z(Object.keys(l)))t in s||F(o,t,l[t],void 0,n,e.o);for(const t of z(Object.keys(s)))F(o,t,l[t],s[t],n,e.o)};function z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var B=!1,I=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(null!==o.i)l=o.v=f.createTextNode(o.i);else{if(B||(B="svg"===o.m),l=o.v=f.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),B&&"foreignObject"===o.m&&(B=!1),_(null,o,B),o.h)for(i=0;i<o.h.length;++i)s=I(t,o,i),s&&l.appendChild(s);"svg"===o.m?B=!1:"foreignObject"===l.tagName&&(B=!0)}return l["s-hn"]=C,l},J=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=I(null,n,l),i&&(o[l].v=i,Y(r,i,e)))},K=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},Q=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),X=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m,r=e.i;null===r?(_(t,e,B="svg"===i||"foreignObject"!==i&&B),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,h=e[0],d=e[a],p=o.length-1,m=o[0],y=o[p];for(;r<=a&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(Q(h,m,l))X(h,m,l),h=e[++r],m=o[++c];else if(Q(d,y,l))X(d,y,l),d=e[--a],y=o[--p];else if(Q(h,y,l))X(h,y,l),Y(t,h.v,d.v.nextSibling),h=e[++r],y=o[--p];else if(Q(d,m,l))X(d,m,l),Y(t,d.v,h.v),d=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){u=f;break}u>=0?(i=e[u],i.m!==m.m?s=I(e&&e[c],n,u):(X(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=I(e&&e[c],n,c),m=o[++c]),s&&Y(h.v.parentNode,s,h.v)}r>a?J(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&K(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),J(o,null,e,s,0,s.length-1)):!n&&null!==l&&K(l,0,l.length-1),B&&"svg"===i&&(B=!1)):t.i!==r&&(o.data=r)},Y=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Z=(t,e)=>{if(e&&!t.j&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.j=()=>{e["s-p"].splice(n-1,1),o()})))}},tt=(t,e)=>{if(t.o|=16,!(4&t.o))return Z(t,t.O),g((()=>et(t,e)));t.o|=512},et=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.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`);return nt(void 0,(()=>lt(t,n,e)))},nt=(t,e)=>ot(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ot=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,lt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.k,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=U(e),l=r.get(o);if(t=11===t.nodeType?t:f,l)if("string"==typeof l){let s,i=L.get(t=t.head||t);if(i||L.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||f.createElement("style"),s.innerHTML=l;const i=null!=(n=a.C)?n:j(f);if(null!=i&&s.setAttribute("nonce",i),!(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(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);it(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>ct(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},st=null,it=(t,e,n,o)=>{try{st=e,e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.k,s=t.M||A(null,null),i=(t=>t&&t.m===N)(e)?e:P(null,null,e);if(C=o.tagName,n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.M=i,i.v=s.v=o.shadowRoot||o,X(s,i,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return st=null,null},rt=()=>st,ct=t=>{const e=t.$hostElement$,n=t.t,o=t.O;64&t.o||(t.o|=64,ht(e),at(n,"componentDidLoad",void 0,e),t.P(e),o||ft()),t.j&&(t.j(),t.j=void 0),512&t.o&&b((()=>tt(t,!1))),t.o&=-517},ut=t=>{{const e=n(t),o=e.$hostElement$.isConnected;return o&&2==(18&e.o)&&tt(e,!1),o}},ft=()=>{b((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"proto-tinker-wc"}});return t.dispatchEvent(e),e})(u)))},at=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},ht=t=>t.classList.add("hydrated"),dt=(t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${l.S}" 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/ionic-team/stencil/issues/5457).`);const i=s.A.get(e),r=s.o,c=s.t;o=H(o,l.N[e][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.A.set(e,o),c&&2==(18&r)&&tt(s,!1))},pt=(t,e,o)=>{var l,s;const i=t.prototype;if(e.N){const r=Object.entries(null!=(l=e.N)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.N[t][0]|=2048),r&&(e.N[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.N[t][0]))return((t,e)=>n(this).A.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.A.get(t)?s=i.A.get(t):!i.A.get(t)&&n&&i.A.set(t,n),r.call(this,H(s,l)),void dt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.N[t][0]))return dt(this,t,s,e),void(1&o&&!i.t&&i.R.then((()=>{4096&e.N[t][0]&&i.t[t]!==i.A.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.A.get(t)&&n&&i.A.set(t,n),i.t[t]=H(s,l),dt(this,t,i.t[t],e)};i.t?n():i.R.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.T)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.T)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},mt=(t,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=f.head,v=y.querySelector("meta[charset]"),w=f.createElement("style"),$=[];let b,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],S:o[1],N:o[2],D:o[3]};4&l.o&&(S=!0),l.N=o[2];const c=l.S,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,k:n,A:new Map};o.R=new Promise((t=>o.P=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.k,l=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.R)&&e.R.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(e,e.O=n);break}}o.N&&Object.entries(o.N).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.H){const l=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.H;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.S}#${e.L}" was not found`);o.isProxied||(pt(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,r()}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=U(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.O,c=()=>tt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const e=n(t);(null==e?void 0:e.t)||(null==e?void 0:e.R)&&e.R.then((()=>{}))}L.has(t)&&L.delete(t),t.shadowRoot&&L.has(t.shadowRoot)&&L.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this),o=$.findIndex((t=>t===this));o>-1&&$.splice(o,1),(null==(t=null==e?void 0:e.M)?void 0:t.v)instanceof Node&&!e.M.v.isConnected&&delete e.M.v}))}componentOnReady(){return n(this).R}};l.H=t[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,pt(u,l,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(l=a.C)?l:j(f);null!=t&&w.setAttribute("nonce",t),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,$.length?$.map((t=>t.connectedCallback())):a.jmp((()=>b=setTimeout(ft,30)))},yt=t=>a.C=t;export{mt as b,ut as f,rt as g,P as h,h as p,o as r,yt as s}