proto-sudoku-wc 0.0.904 → 0.0.905
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.
- package/dist/cjs/{index-0ab54533.js → index-3e706cb6.js} +182 -130
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-sudoku-wc.cjs.js +2 -2
- package/dist/cjs/proto-sudoku.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/proto-sudoku/proto-sudoku.js +4 -0
- package/dist/esm/{index-2a322449.js → index-33e2f723.js} +182 -130
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-sudoku-wc.js +3 -3
- package/dist/esm/proto-sudoku.entry.js +1 -1
- package/dist/proto-sudoku-wc/{p-bb99e63f.entry.js → p-4c7c116d.entry.js} +1 -1
- package/dist/proto-sudoku-wc/p-fac78fb6.js +2 -0
- package/dist/proto-sudoku-wc/proto-sudoku-wc.esm.js +1 -1
- package/package.json +2 -2
- package/dist/proto-sudoku-wc/p-a479a778.js +0 -2
@@ -24,7 +24,7 @@ const NAMESPACE = 'proto-sudoku-wc';
|
|
24
24
|
const BUILD = /* proto-sudoku-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, 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.
|
27
|
+
Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
|
28
28
|
*/
|
29
29
|
var __defProp = Object.defineProperty;
|
30
30
|
var __export = (target, all) => {
|
@@ -204,20 +204,6 @@ var unwrapErr = (result) => {
|
|
204
204
|
throw result.value;
|
205
205
|
}
|
206
206
|
};
|
207
|
-
var createTime = (fnName, tagName = "") => {
|
208
|
-
{
|
209
|
-
return () => {
|
210
|
-
return;
|
211
|
-
};
|
212
|
-
}
|
213
|
-
};
|
214
|
-
var uniqueTime = (key, measureText) => {
|
215
|
-
{
|
216
|
-
return () => {
|
217
|
-
return;
|
218
|
-
};
|
219
|
-
}
|
220
|
-
};
|
221
207
|
var h = (nodeName, vnodeData, ...children) => {
|
222
208
|
let child = null;
|
223
209
|
let key = null;
|
@@ -319,110 +305,6 @@ var convertToPrivate = (node) => {
|
|
319
305
|
vnode.$name$ = node.vname;
|
320
306
|
return vnode;
|
321
307
|
};
|
322
|
-
var parsePropertyValue = (propValue, propType) => {
|
323
|
-
if (propValue != null && !isComplexType(propValue)) {
|
324
|
-
if (propType & 1 /* String */) {
|
325
|
-
return String(propValue);
|
326
|
-
}
|
327
|
-
return propValue;
|
328
|
-
}
|
329
|
-
return propValue;
|
330
|
-
};
|
331
|
-
var emitEvent = (elm, name, opts) => {
|
332
|
-
const ev = plt.ce(name, opts);
|
333
|
-
elm.dispatchEvent(ev);
|
334
|
-
return ev;
|
335
|
-
};
|
336
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
337
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
338
|
-
let style = styles.get(scopeId2);
|
339
|
-
if (supportsConstructableStylesheets && allowCS) {
|
340
|
-
style = style || new CSSStyleSheet();
|
341
|
-
if (typeof style === "string") {
|
342
|
-
style = cssText;
|
343
|
-
} else {
|
344
|
-
style.replaceSync(cssText);
|
345
|
-
}
|
346
|
-
} else {
|
347
|
-
style = cssText;
|
348
|
-
}
|
349
|
-
styles.set(scopeId2, style);
|
350
|
-
};
|
351
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
352
|
-
var _a;
|
353
|
-
const scopeId2 = getScopeId(cmpMeta);
|
354
|
-
const style = styles.get(scopeId2);
|
355
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
356
|
-
if (style) {
|
357
|
-
if (typeof style === "string") {
|
358
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
359
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
360
|
-
let styleElm;
|
361
|
-
if (!appliedStyles) {
|
362
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
363
|
-
}
|
364
|
-
if (!appliedStyles.has(scopeId2)) {
|
365
|
-
{
|
366
|
-
styleElm = doc.createElement("style");
|
367
|
-
styleElm.innerHTML = style;
|
368
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
369
|
-
if (nonce != null) {
|
370
|
-
styleElm.setAttribute("nonce", nonce);
|
371
|
-
}
|
372
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
373
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
374
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
375
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
376
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
377
|
-
} else if ("host" in styleContainerNode) {
|
378
|
-
if (supportsConstructableStylesheets) {
|
379
|
-
const stylesheet = new CSSStyleSheet();
|
380
|
-
stylesheet.replaceSync(style);
|
381
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
382
|
-
} else {
|
383
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
384
|
-
if (existingStyleContainer) {
|
385
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
386
|
-
} else {
|
387
|
-
styleContainerNode.prepend(styleElm);
|
388
|
-
}
|
389
|
-
}
|
390
|
-
} else {
|
391
|
-
styleContainerNode.append(styleElm);
|
392
|
-
}
|
393
|
-
}
|
394
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
395
|
-
styleContainerNode.insertBefore(styleElm, null);
|
396
|
-
}
|
397
|
-
}
|
398
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
399
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
400
|
-
}
|
401
|
-
if (appliedStyles) {
|
402
|
-
appliedStyles.add(scopeId2);
|
403
|
-
}
|
404
|
-
}
|
405
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
406
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
407
|
-
}
|
408
|
-
}
|
409
|
-
return scopeId2;
|
410
|
-
};
|
411
|
-
var attachStyles = (hostRef) => {
|
412
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
413
|
-
const elm = hostRef.$hostElement$;
|
414
|
-
const flags = cmpMeta.$flags$;
|
415
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
416
|
-
const scopeId2 = addStyle(
|
417
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
418
|
-
cmpMeta);
|
419
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
420
|
-
elm["s-sc"] = scopeId2;
|
421
|
-
elm.classList.add(scopeId2 + "-h");
|
422
|
-
}
|
423
|
-
endAttachStyles();
|
424
|
-
};
|
425
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
426
308
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
427
309
|
if (oldValue !== newValue) {
|
428
310
|
let isProp = isMemberInElement(elm, memberName);
|
@@ -431,6 +313,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
431
313
|
const classList = elm.classList;
|
432
314
|
const oldClasses = parseClassList(oldValue);
|
433
315
|
const newClasses = parseClassList(newValue);
|
316
|
+
if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
|
317
|
+
newClasses.push(elm["s-si"]);
|
318
|
+
}
|
434
319
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
435
320
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
436
321
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
@@ -750,6 +635,124 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
750
635
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
751
636
|
patch(oldVNode, rootVnode, isInitialLoad);
|
752
637
|
};
|
638
|
+
var createTime = (fnName, tagName = "") => {
|
639
|
+
{
|
640
|
+
return () => {
|
641
|
+
return;
|
642
|
+
};
|
643
|
+
}
|
644
|
+
};
|
645
|
+
var uniqueTime = (key, measureText) => {
|
646
|
+
{
|
647
|
+
return () => {
|
648
|
+
return;
|
649
|
+
};
|
650
|
+
}
|
651
|
+
};
|
652
|
+
var parsePropertyValue = (propValue, propType) => {
|
653
|
+
if (propValue != null && !isComplexType(propValue)) {
|
654
|
+
if (propType & 1 /* String */) {
|
655
|
+
return String(propValue);
|
656
|
+
}
|
657
|
+
return propValue;
|
658
|
+
}
|
659
|
+
return propValue;
|
660
|
+
};
|
661
|
+
var emitEvent = (elm, name, opts) => {
|
662
|
+
const ev = plt.ce(name, opts);
|
663
|
+
elm.dispatchEvent(ev);
|
664
|
+
return ev;
|
665
|
+
};
|
666
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
667
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
668
|
+
let style = styles.get(scopeId2);
|
669
|
+
if (supportsConstructableStylesheets && allowCS) {
|
670
|
+
style = style || new CSSStyleSheet();
|
671
|
+
if (typeof style === "string") {
|
672
|
+
style = cssText;
|
673
|
+
} else {
|
674
|
+
style.replaceSync(cssText);
|
675
|
+
}
|
676
|
+
} else {
|
677
|
+
style = cssText;
|
678
|
+
}
|
679
|
+
styles.set(scopeId2, style);
|
680
|
+
};
|
681
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
682
|
+
var _a;
|
683
|
+
const scopeId2 = getScopeId(cmpMeta);
|
684
|
+
const style = styles.get(scopeId2);
|
685
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
686
|
+
if (style) {
|
687
|
+
if (typeof style === "string") {
|
688
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
689
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
690
|
+
let styleElm;
|
691
|
+
if (!appliedStyles) {
|
692
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
693
|
+
}
|
694
|
+
if (!appliedStyles.has(scopeId2)) {
|
695
|
+
{
|
696
|
+
styleElm = doc.createElement("style");
|
697
|
+
styleElm.innerHTML = style;
|
698
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
699
|
+
if (nonce != null) {
|
700
|
+
styleElm.setAttribute("nonce", nonce);
|
701
|
+
}
|
702
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
703
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
704
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
705
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
706
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
707
|
+
} else if ("host" in styleContainerNode) {
|
708
|
+
if (supportsConstructableStylesheets) {
|
709
|
+
const stylesheet = new CSSStyleSheet();
|
710
|
+
stylesheet.replaceSync(style);
|
711
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
712
|
+
} else {
|
713
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
714
|
+
if (existingStyleContainer) {
|
715
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
716
|
+
} else {
|
717
|
+
styleContainerNode.prepend(styleElm);
|
718
|
+
}
|
719
|
+
}
|
720
|
+
} else {
|
721
|
+
styleContainerNode.append(styleElm);
|
722
|
+
}
|
723
|
+
}
|
724
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
725
|
+
styleContainerNode.insertBefore(styleElm, null);
|
726
|
+
}
|
727
|
+
}
|
728
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
729
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
730
|
+
}
|
731
|
+
if (appliedStyles) {
|
732
|
+
appliedStyles.add(scopeId2);
|
733
|
+
}
|
734
|
+
}
|
735
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
736
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
737
|
+
}
|
738
|
+
}
|
739
|
+
return scopeId2;
|
740
|
+
};
|
741
|
+
var attachStyles = (hostRef) => {
|
742
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
743
|
+
const elm = hostRef.$hostElement$;
|
744
|
+
const flags = cmpMeta.$flags$;
|
745
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
746
|
+
const scopeId2 = addStyle(
|
747
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
748
|
+
cmpMeta);
|
749
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
750
|
+
elm["s-sc"] = scopeId2;
|
751
|
+
elm.classList.add(scopeId2 + "-h");
|
752
|
+
}
|
753
|
+
endAttachStyles();
|
754
|
+
};
|
755
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
753
756
|
|
754
757
|
// src/runtime/update-component.ts
|
755
758
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
@@ -941,16 +944,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
941
944
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
942
945
|
members.map(([memberName, [memberFlags]]) => {
|
943
946
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
947
|
+
if ((memberFlags & 2048 /* Getter */) === 0) {
|
948
|
+
Object.defineProperty(prototype, memberName, {
|
949
|
+
get() {
|
950
|
+
return getValue(this, memberName);
|
951
|
+
},
|
952
|
+
set(newValue) {
|
953
|
+
setValue(this, memberName, newValue, cmpMeta);
|
954
|
+
},
|
955
|
+
configurable: true,
|
956
|
+
enumerable: true
|
957
|
+
});
|
958
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
959
|
+
{
|
960
|
+
Object.defineProperty(prototype, memberName, {
|
961
|
+
get() {
|
962
|
+
const ref = getHostRef(this);
|
963
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
964
|
+
if (!instance) return;
|
965
|
+
return instance[memberName];
|
966
|
+
},
|
967
|
+
configurable: true,
|
968
|
+
enumerable: true
|
969
|
+
});
|
970
|
+
}
|
971
|
+
if (memberFlags & 4096 /* Setter */) {
|
972
|
+
const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
|
973
|
+
Object.defineProperty(prototype, memberName, {
|
974
|
+
set(newValue) {
|
975
|
+
const ref = getHostRef(this);
|
976
|
+
if (origSetter) {
|
977
|
+
const currentValue = ref.$hostElement$[memberName];
|
978
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
979
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
980
|
+
}
|
981
|
+
origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
|
982
|
+
setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
|
983
|
+
return;
|
984
|
+
}
|
985
|
+
if (!ref) return;
|
986
|
+
const setterSetVal = () => {
|
987
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
988
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
989
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
990
|
+
}
|
991
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
992
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
993
|
+
};
|
994
|
+
if (ref.$lazyInstance$) {
|
995
|
+
setterSetVal();
|
996
|
+
} else {
|
997
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
998
|
+
}
|
999
|
+
}
|
1000
|
+
});
|
1001
|
+
}
|
1002
|
+
}
|
954
1003
|
}
|
955
1004
|
});
|
956
1005
|
if ((flags & 1 /* isElementConstructor */)) {
|
@@ -979,7 +1028,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
979
1028
|
}
|
980
1029
|
return;
|
981
1030
|
}
|
982
|
-
|
1031
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
1032
|
+
if (!propDesc.get || !!propDesc.set) {
|
1033
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
1034
|
+
}
|
983
1035
|
});
|
984
1036
|
};
|
985
1037
|
Cstr.observedAttributes = Array.from(
|
package/dist/cjs/loader.cjs.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-3e706cb6.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-
|
5
|
+
const index = require('./index-3e706cb6.js');
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
7
7
|
|
8
8
|
/*
|
9
|
-
Stencil Client Patch Browser v4.
|
9
|
+
Stencil Client Patch Browser v4.23.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-sudoku-wc.cjs.js', document.baseURI).href));
|
@@ -45,6 +45,8 @@ export class ProtoSudoku {
|
|
45
45
|
"tags": [],
|
46
46
|
"text": ""
|
47
47
|
},
|
48
|
+
"getter": false,
|
49
|
+
"setter": false,
|
48
50
|
"attribute": "tag",
|
49
51
|
"reflect": false,
|
50
52
|
"defaultValue": "'proto-sudoku'"
|
@@ -63,6 +65,8 @@ export class ProtoSudoku {
|
|
63
65
|
"tags": [],
|
64
66
|
"text": ""
|
65
67
|
},
|
68
|
+
"getter": false,
|
69
|
+
"setter": false,
|
66
70
|
"attribute": "platform",
|
67
71
|
"reflect": false,
|
68
72
|
"defaultValue": "'vercel'"
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'proto-sudoku-wc';
|
|
2
2
|
const BUILD = /* proto-sudoku-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, 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.
|
5
|
+
Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
|
6
6
|
*/
|
7
7
|
var __defProp = Object.defineProperty;
|
8
8
|
var __export = (target, all) => {
|
@@ -182,20 +182,6 @@ var unwrapErr = (result) => {
|
|
182
182
|
throw result.value;
|
183
183
|
}
|
184
184
|
};
|
185
|
-
var createTime = (fnName, tagName = "") => {
|
186
|
-
{
|
187
|
-
return () => {
|
188
|
-
return;
|
189
|
-
};
|
190
|
-
}
|
191
|
-
};
|
192
|
-
var uniqueTime = (key, measureText) => {
|
193
|
-
{
|
194
|
-
return () => {
|
195
|
-
return;
|
196
|
-
};
|
197
|
-
}
|
198
|
-
};
|
199
185
|
var h = (nodeName, vnodeData, ...children) => {
|
200
186
|
let child = null;
|
201
187
|
let key = null;
|
@@ -297,110 +283,6 @@ var convertToPrivate = (node) => {
|
|
297
283
|
vnode.$name$ = node.vname;
|
298
284
|
return vnode;
|
299
285
|
};
|
300
|
-
var parsePropertyValue = (propValue, propType) => {
|
301
|
-
if (propValue != null && !isComplexType(propValue)) {
|
302
|
-
if (propType & 1 /* String */) {
|
303
|
-
return String(propValue);
|
304
|
-
}
|
305
|
-
return propValue;
|
306
|
-
}
|
307
|
-
return propValue;
|
308
|
-
};
|
309
|
-
var emitEvent = (elm, name, opts) => {
|
310
|
-
const ev = plt.ce(name, opts);
|
311
|
-
elm.dispatchEvent(ev);
|
312
|
-
return ev;
|
313
|
-
};
|
314
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
315
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
316
|
-
let style = styles.get(scopeId2);
|
317
|
-
if (supportsConstructableStylesheets && allowCS) {
|
318
|
-
style = style || new CSSStyleSheet();
|
319
|
-
if (typeof style === "string") {
|
320
|
-
style = cssText;
|
321
|
-
} else {
|
322
|
-
style.replaceSync(cssText);
|
323
|
-
}
|
324
|
-
} else {
|
325
|
-
style = cssText;
|
326
|
-
}
|
327
|
-
styles.set(scopeId2, style);
|
328
|
-
};
|
329
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
330
|
-
var _a;
|
331
|
-
const scopeId2 = getScopeId(cmpMeta);
|
332
|
-
const style = styles.get(scopeId2);
|
333
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
334
|
-
if (style) {
|
335
|
-
if (typeof style === "string") {
|
336
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
337
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
338
|
-
let styleElm;
|
339
|
-
if (!appliedStyles) {
|
340
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
341
|
-
}
|
342
|
-
if (!appliedStyles.has(scopeId2)) {
|
343
|
-
{
|
344
|
-
styleElm = doc.createElement("style");
|
345
|
-
styleElm.innerHTML = style;
|
346
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
347
|
-
if (nonce != null) {
|
348
|
-
styleElm.setAttribute("nonce", nonce);
|
349
|
-
}
|
350
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
351
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
352
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
353
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
354
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
355
|
-
} else if ("host" in styleContainerNode) {
|
356
|
-
if (supportsConstructableStylesheets) {
|
357
|
-
const stylesheet = new CSSStyleSheet();
|
358
|
-
stylesheet.replaceSync(style);
|
359
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
360
|
-
} else {
|
361
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
362
|
-
if (existingStyleContainer) {
|
363
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
364
|
-
} else {
|
365
|
-
styleContainerNode.prepend(styleElm);
|
366
|
-
}
|
367
|
-
}
|
368
|
-
} else {
|
369
|
-
styleContainerNode.append(styleElm);
|
370
|
-
}
|
371
|
-
}
|
372
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
373
|
-
styleContainerNode.insertBefore(styleElm, null);
|
374
|
-
}
|
375
|
-
}
|
376
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
377
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
378
|
-
}
|
379
|
-
if (appliedStyles) {
|
380
|
-
appliedStyles.add(scopeId2);
|
381
|
-
}
|
382
|
-
}
|
383
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
384
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
385
|
-
}
|
386
|
-
}
|
387
|
-
return scopeId2;
|
388
|
-
};
|
389
|
-
var attachStyles = (hostRef) => {
|
390
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
391
|
-
const elm = hostRef.$hostElement$;
|
392
|
-
const flags = cmpMeta.$flags$;
|
393
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
394
|
-
const scopeId2 = addStyle(
|
395
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
396
|
-
cmpMeta);
|
397
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
398
|
-
elm["s-sc"] = scopeId2;
|
399
|
-
elm.classList.add(scopeId2 + "-h");
|
400
|
-
}
|
401
|
-
endAttachStyles();
|
402
|
-
};
|
403
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
404
286
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
405
287
|
if (oldValue !== newValue) {
|
406
288
|
let isProp = isMemberInElement(elm, memberName);
|
@@ -409,6 +291,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
409
291
|
const classList = elm.classList;
|
410
292
|
const oldClasses = parseClassList(oldValue);
|
411
293
|
const newClasses = parseClassList(newValue);
|
294
|
+
if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
|
295
|
+
newClasses.push(elm["s-si"]);
|
296
|
+
}
|
412
297
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
413
298
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
414
299
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
@@ -728,6 +613,124 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
728
613
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
729
614
|
patch(oldVNode, rootVnode, isInitialLoad);
|
730
615
|
};
|
616
|
+
var createTime = (fnName, tagName = "") => {
|
617
|
+
{
|
618
|
+
return () => {
|
619
|
+
return;
|
620
|
+
};
|
621
|
+
}
|
622
|
+
};
|
623
|
+
var uniqueTime = (key, measureText) => {
|
624
|
+
{
|
625
|
+
return () => {
|
626
|
+
return;
|
627
|
+
};
|
628
|
+
}
|
629
|
+
};
|
630
|
+
var parsePropertyValue = (propValue, propType) => {
|
631
|
+
if (propValue != null && !isComplexType(propValue)) {
|
632
|
+
if (propType & 1 /* String */) {
|
633
|
+
return String(propValue);
|
634
|
+
}
|
635
|
+
return propValue;
|
636
|
+
}
|
637
|
+
return propValue;
|
638
|
+
};
|
639
|
+
var emitEvent = (elm, name, opts) => {
|
640
|
+
const ev = plt.ce(name, opts);
|
641
|
+
elm.dispatchEvent(ev);
|
642
|
+
return ev;
|
643
|
+
};
|
644
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
645
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
646
|
+
let style = styles.get(scopeId2);
|
647
|
+
if (supportsConstructableStylesheets && allowCS) {
|
648
|
+
style = style || new CSSStyleSheet();
|
649
|
+
if (typeof style === "string") {
|
650
|
+
style = cssText;
|
651
|
+
} else {
|
652
|
+
style.replaceSync(cssText);
|
653
|
+
}
|
654
|
+
} else {
|
655
|
+
style = cssText;
|
656
|
+
}
|
657
|
+
styles.set(scopeId2, style);
|
658
|
+
};
|
659
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
660
|
+
var _a;
|
661
|
+
const scopeId2 = getScopeId(cmpMeta);
|
662
|
+
const style = styles.get(scopeId2);
|
663
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
664
|
+
if (style) {
|
665
|
+
if (typeof style === "string") {
|
666
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
667
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
668
|
+
let styleElm;
|
669
|
+
if (!appliedStyles) {
|
670
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
671
|
+
}
|
672
|
+
if (!appliedStyles.has(scopeId2)) {
|
673
|
+
{
|
674
|
+
styleElm = doc.createElement("style");
|
675
|
+
styleElm.innerHTML = style;
|
676
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
677
|
+
if (nonce != null) {
|
678
|
+
styleElm.setAttribute("nonce", nonce);
|
679
|
+
}
|
680
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
681
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
682
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
683
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
684
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
685
|
+
} else if ("host" in styleContainerNode) {
|
686
|
+
if (supportsConstructableStylesheets) {
|
687
|
+
const stylesheet = new CSSStyleSheet();
|
688
|
+
stylesheet.replaceSync(style);
|
689
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
690
|
+
} else {
|
691
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
692
|
+
if (existingStyleContainer) {
|
693
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
694
|
+
} else {
|
695
|
+
styleContainerNode.prepend(styleElm);
|
696
|
+
}
|
697
|
+
}
|
698
|
+
} else {
|
699
|
+
styleContainerNode.append(styleElm);
|
700
|
+
}
|
701
|
+
}
|
702
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
703
|
+
styleContainerNode.insertBefore(styleElm, null);
|
704
|
+
}
|
705
|
+
}
|
706
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
707
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
708
|
+
}
|
709
|
+
if (appliedStyles) {
|
710
|
+
appliedStyles.add(scopeId2);
|
711
|
+
}
|
712
|
+
}
|
713
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
714
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
715
|
+
}
|
716
|
+
}
|
717
|
+
return scopeId2;
|
718
|
+
};
|
719
|
+
var attachStyles = (hostRef) => {
|
720
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
721
|
+
const elm = hostRef.$hostElement$;
|
722
|
+
const flags = cmpMeta.$flags$;
|
723
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
724
|
+
const scopeId2 = addStyle(
|
725
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
726
|
+
cmpMeta);
|
727
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
728
|
+
elm["s-sc"] = scopeId2;
|
729
|
+
elm.classList.add(scopeId2 + "-h");
|
730
|
+
}
|
731
|
+
endAttachStyles();
|
732
|
+
};
|
733
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
731
734
|
|
732
735
|
// src/runtime/update-component.ts
|
733
736
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
@@ -919,16 +922,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
919
922
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
920
923
|
members.map(([memberName, [memberFlags]]) => {
|
921
924
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
925
|
+
if ((memberFlags & 2048 /* Getter */) === 0) {
|
926
|
+
Object.defineProperty(prototype, memberName, {
|
927
|
+
get() {
|
928
|
+
return getValue(this, memberName);
|
929
|
+
},
|
930
|
+
set(newValue) {
|
931
|
+
setValue(this, memberName, newValue, cmpMeta);
|
932
|
+
},
|
933
|
+
configurable: true,
|
934
|
+
enumerable: true
|
935
|
+
});
|
936
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
937
|
+
{
|
938
|
+
Object.defineProperty(prototype, memberName, {
|
939
|
+
get() {
|
940
|
+
const ref = getHostRef(this);
|
941
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
942
|
+
if (!instance) return;
|
943
|
+
return instance[memberName];
|
944
|
+
},
|
945
|
+
configurable: true,
|
946
|
+
enumerable: true
|
947
|
+
});
|
948
|
+
}
|
949
|
+
if (memberFlags & 4096 /* Setter */) {
|
950
|
+
const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
|
951
|
+
Object.defineProperty(prototype, memberName, {
|
952
|
+
set(newValue) {
|
953
|
+
const ref = getHostRef(this);
|
954
|
+
if (origSetter) {
|
955
|
+
const currentValue = ref.$hostElement$[memberName];
|
956
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
957
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
958
|
+
}
|
959
|
+
origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
|
960
|
+
setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
|
961
|
+
return;
|
962
|
+
}
|
963
|
+
if (!ref) return;
|
964
|
+
const setterSetVal = () => {
|
965
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
966
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
967
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
968
|
+
}
|
969
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
970
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
971
|
+
};
|
972
|
+
if (ref.$lazyInstance$) {
|
973
|
+
setterSetVal();
|
974
|
+
} else {
|
975
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
976
|
+
}
|
977
|
+
}
|
978
|
+
});
|
979
|
+
}
|
980
|
+
}
|
932
981
|
}
|
933
982
|
});
|
934
983
|
if ((flags & 1 /* isElementConstructor */)) {
|
@@ -957,7 +1006,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
957
1006
|
}
|
958
1007
|
return;
|
959
1008
|
}
|
960
|
-
|
1009
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
1010
|
+
if (!propDesc.get || !!propDesc.set) {
|
1011
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
1012
|
+
}
|
961
1013
|
});
|
962
1014
|
};
|
963
1015
|
Cstr.observedAttributes = Array.from(
|
package/dist/esm/loader.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
2
|
-
export { s as setNonce } from './index-
|
1
|
+
import { b as bootstrapLazy } from './index-33e2f723.js';
|
2
|
+
export { s as setNonce } from './index-33e2f723.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-
|
2
|
-
export { s as setNonce } from './index-
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-33e2f723.js';
|
2
|
+
export { s as setNonce } from './index-33e2f723.js';
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
4
4
|
|
5
5
|
/*
|
6
|
-
Stencil Client Patch Browser v4.
|
6
|
+
Stencil Client Patch Browser v4.23.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-
|
1
|
+
import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-33e2f723.js';
|
2
2
|
|
3
3
|
const Alien = props => {
|
4
4
|
const hex = props.hex || 'currentColor';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{h as t,g as e,f as r,r as o}from"./p-a479a778.js";const s=e=>{const r=e.hex||"currentColor",o=e.size||24;return t("svg",{class:e.class,width:o,height:o,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"alien"),t("g",{fill:r},t("path",{d:"M10.31 10.93C11.33 12.57 11.18 14.5 9.96 15.28C8.74 16.04 6.92 15.33\n 5.89 13.69C4.87 12.05 5.03 10.1 6.25 9.34C7.47 8.58 9.29 9.29 10.31\n 10.93M12 17.75C14 17.75 14.5 17 14.5 17C14.5 17 14 19 12 19C10 19 9.5\n 17.03 9.5 17C9.5 17 10 17.75 12 17.75M17.75 9.34C18.97 10.1 19.13 12.05\n 18.11 13.69C17.08 15.33 15.26 16.04 14.04 15.28C12.82 14.5 12.67 12.57\n 13.69 10.93C14.71 9.29 16.53 8.58 17.75 9.34M12 20C14.5 20 20 14.86 20\n 11C20 7.14 16.41 4 12 4C7.59 4 4 7.14 4 11C4 14.86 9.5 20 12 20M12 2C17.5\n 2 22 6.04 22 11C22 15.08 16.32 22 12 22C7.68 22 2 15.08 2 11C2 6.04 6.5 2\n 12 2Z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},n="proto-sudoku",a=`${n}::data`,i=`${n}::inputs`,l=`${n}::pick`,c=t=>{const e=localStorage.getItem(t);return e?JSON.parse(e):void 0},d=(t,e)=>{const r=JSON.stringify(e);localStorage.setItem(t,r)},f=()=>[...c(i)],h=t=>{d(i,t.join(""))},p=()=>{const t=c(l);return null!==t?t:void 0},u=t=>{d(l,t>=0&&t<81?t:null)},b="Check ?",w="New Puzzle",g=t=>!("isConnected"in t)||t.isConnected,y=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(g))})(...e)}),2e3)}})(),m=t=>"function"==typeof t?t():t;class x extends Error{response;request;options;constructor(t,e,r){const o=`${t.status||0===t.status?t.status:""} ${t.statusText||""}`.trim();super(`Request failed with ${o?`status code ${o}`:"an unknown error"}: ${e.method} ${e.url}`),this.name="HTTPError",this.response=t,this.request=e,this.options=r}}class v extends Error{request;constructor(t){super(`Request timed out: ${t.method} ${t.url}`),this.name="TimeoutError",this.request=t}}const C=t=>null!==t&&"object"==typeof t,k=(...t)=>{for(const e of t)if((!C(e)||Array.isArray(e))&&void 0!==e)throw new TypeError("The `options` argument must be an object");return z({},...t)},T=(t={},e={})=>{const r=new globalThis.Headers(t),o=e instanceof globalThis.Headers,s=new globalThis.Headers(e);for(const[t,e]of s.entries())o&&"undefined"===e||void 0===e?r.delete(t):r.set(t,e);return r};function R(t,e,r){return Object.hasOwn(e,r)&&void 0===e[r]?[]:z(t[r]??[],e[r]??[])}const M=(t={},e={})=>({beforeRequest:R(t,e,"beforeRequest"),beforeRetry:R(t,e,"beforeRetry"),afterResponse:R(t,e,"afterResponse"),beforeError:R(t,e,"beforeError")}),z=(...t)=>{let e={},r={},o={};for(const s of t)if(Array.isArray(s))Array.isArray(e)||(e=[]),e=[...e,...s];else if(C(s)){for(let[t,r]of Object.entries(s))C(r)&&t in e&&(r=z(e[t],r)),e={...e,[t]:r};C(s.hooks)&&(o=M(o,s.hooks),e.hooks=o),C(s.headers)&&(r=T(r,s.headers),e.headers=r)}return e},E=(()=>{let t=!1,e=!1;const r="function"==typeof globalThis.ReadableStream,o="function"==typeof globalThis.Request;if(r&&o)try{e=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type")}catch(t){if(t instanceof Error&&"unsupported BodyInit type"===t.message)return!1;throw t}return t&&!e})(),j="function"==typeof globalThis.AbortController,S="function"==typeof globalThis.ReadableStream,A="function"==typeof globalThis.FormData,P=["get","post","put","patch","head","delete"],q={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},U=2147483647,$=Symbol("stop"),B={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,fetch:!0},O={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0},D=t=>P.includes(t)?t.toUpperCase():t,L={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:t=>.3*2**(t-1)*1e3},N=(t={})=>{if("number"==typeof t)return{...L,limit:t};if(t.methods&&!Array.isArray(t.methods))throw new Error("retry.methods must be an array");if(t.statusCodes&&!Array.isArray(t.statusCodes))throw new Error("retry.statusCodes must be an array");return{...L,...t}};class _{static create(t,e){const r=new _(t,e),o=async()=>{if("number"==typeof r._options.timeout&&r._options.timeout>U)throw new RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let t=await r._fetch();for(const e of r._options.hooks.afterResponse){const o=await e(r.request,r._options,r._decorateResponse(t.clone()));o instanceof globalThis.Response&&(t=o)}if(r._decorateResponse(t),!t.ok&&r._options.throwHttpErrors){let e=new x(t,r.request,r._options);for(const t of r._options.hooks.beforeError)e=await t(e);throw e}if(r._options.onDownloadProgress){if("function"!=typeof r._options.onDownloadProgress)throw new TypeError("The `onDownloadProgress` option must be a function");if(!S)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return r._stream(t.clone(),r._options.onDownloadProgress)}return t},s=r._options.retry.methods.includes(r.request.method.toLowerCase())?r._retry(o):o();for(const[t,o]of Object.entries(q))s[t]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||o);const n=await s;if("json"===t){if(204===n.status)return"";if(0===(await n.clone().arrayBuffer()).byteLength)return"";if(e.parseJson)return e.parseJson(await n.text())}return n[t]()};return s}request;abortController;_retryCount=0;_input;_options;constructor(t,e={}){if(this._input=t,this._options={...e,headers:T(this._input.headers,e.headers),hooks:M({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},e.hooks),method:D(e.method??this._input.method),prefixUrl:String(e.prefixUrl||""),retry:N(e.retry),throwHttpErrors:!1!==e.throwHttpErrors,timeout:e.timeout??1e4,fetch:e.fetch??globalThis.fetch.bind(globalThis)},"string"!=typeof this._input&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&"string"==typeof this._input){if(this._input.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(j){this.abortController=new globalThis.AbortController;const t=this._options.signal??this._input.signal;t?.addEventListener("abort",(()=>{this.abortController.abort(t.reason)})),this._options.signal=this.abortController.signal}if(E&&(this._options.duplex="half"),void 0!==this._options.json&&(this._options.body=this._options.stringifyJson?.(this._options.json)??JSON.stringify(this._options.json),this._options.headers.set("content-type",this._options.headers.get("content-type")??"application/json")),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){const t="string"==typeof this._options.searchParams?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString(),e=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+t);!(A&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)||this._options.headers&&this._options.headers["content-type"]||this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(e,{...this.request}),this._options)}}_calculateRetryDelay(t){if(this._retryCount++,this._retryCount>this._options.retry.limit||t instanceof v)throw t;if(t instanceof x){if(!this._options.retry.statusCodes.includes(t.response.status))throw t;const e=t.response.headers.get("Retry-After")??t.response.headers.get("RateLimit-Reset")??t.response.headers.get("X-RateLimit-Reset")??t.response.headers.get("X-Rate-Limit-Reset");if(e&&this._options.retry.afterStatusCodes.includes(t.response.status)){let t=1e3*Number(e);Number.isNaN(t)?t=Date.parse(e)-Date.now():t>=Date.parse("2024-01-01")&&(t-=Date.now());const r=this._options.retry.maxRetryAfter??t;return t<r?t:r}if(413===t.response.status)throw t}const e=this._options.retry.delay(this._retryCount);return Math.min(this._options.retry.backoffLimit,e)}_decorateResponse(t){return this._options.parseJson&&(t.json=async()=>this._options.parseJson(await t.text())),t}async _retry(t){try{return await t()}catch(e){const r=Math.min(this._calculateRetryDelay(e),U);if(this._retryCount<1)throw e;await async function(t,{signal:e}){return new Promise(((r,o)=>{function s(){clearTimeout(n),o(e.reason)}e&&(e.throwIfAborted(),e.addEventListener("abort",s,{once:!0}));const n=setTimeout((()=>{e?.removeEventListener("abort",s),r()}),t)}))}(r,{signal:this._options.signal});for(const t of this._options.hooks.beforeRetry)if(await t({request:this.request,options:this._options,error:e,retryCount:this._retryCount})===$)return;return this._retry(t)}}async _fetch(){for(const t of this._options.hooks.beforeRequest){const e=await t(this.request,this._options);if(e instanceof Request){this.request=e;break}if(e instanceof Response)return e}const t=((t,e)=>{const r={};for(const o in e)o in O||o in B||o in t||(r[o]=e[o]);return r})(this.request,this._options),e=this.request;return this.request=e.clone(),!1===this._options.timeout?this._options.fetch(e,t):async function(t,e,r,o){return new Promise(((s,n)=>{const a=setTimeout((()=>{r&&r.abort(),n(new v(t))}),o.timeout);o.fetch(t,e).then(s).catch(n).then((()=>{clearTimeout(a)}))}))}(e,t,this.abortController,this._options)}_stream(t,e){const r=Number(t.headers.get("content-length"))||0;let o=0;return 204===t.status?(e&&e({percent:1,totalBytes:r,transferredBytes:o},new Uint8Array),new globalThis.Response(null,{status:t.status,statusText:t.statusText,headers:t.headers})):new globalThis.Response(new globalThis.ReadableStream({async start(s){const n=t.body.getReader();e&&e({percent:0,transferredBytes:0,totalBytes:r},new Uint8Array),await async function t(){const{done:a,value:i}=await n.read();a?s.close():(e&&(o+=i.byteLength,e({percent:0===r?0:o/r,transferredBytes:o,totalBytes:r},i)),s.enqueue(i),await t())}()}}),{status:t.status,statusText:t.statusText,headers:t.headers})}}
|
1
|
+
import{h as t,g as e,f as r,r as o}from"./p-fac78fb6.js";const s=e=>{const r=e.hex||"currentColor",o=e.size||24;return t("svg",{class:e.class,width:o,height:o,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"alien"),t("g",{fill:r},t("path",{d:"M10.31 10.93C11.33 12.57 11.18 14.5 9.96 15.28C8.74 16.04 6.92 15.33\n 5.89 13.69C4.87 12.05 5.03 10.1 6.25 9.34C7.47 8.58 9.29 9.29 10.31\n 10.93M12 17.75C14 17.75 14.5 17 14.5 17C14.5 17 14 19 12 19C10 19 9.5\n 17.03 9.5 17C9.5 17 10 17.75 12 17.75M17.75 9.34C18.97 10.1 19.13 12.05\n 18.11 13.69C17.08 15.33 15.26 16.04 14.04 15.28C12.82 14.5 12.67 12.57\n 13.69 10.93C14.71 9.29 16.53 8.58 17.75 9.34M12 20C14.5 20 20 14.86 20\n 11C20 7.14 16.41 4 12 4C7.59 4 4 7.14 4 11C4 14.86 9.5 20 12 20M12 2C17.5\n 2 22 6.04 22 11C22 15.08 16.32 22 12 22C7.68 22 2 15.08 2 11C2 6.04 6.5 2\n 12 2Z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},n="proto-sudoku",a=`${n}::data`,i=`${n}::inputs`,l=`${n}::pick`,c=t=>{const e=localStorage.getItem(t);return e?JSON.parse(e):void 0},d=(t,e)=>{const r=JSON.stringify(e);localStorage.setItem(t,r)},f=()=>[...c(i)],h=t=>{d(i,t.join(""))},p=()=>{const t=c(l);return null!==t?t:void 0},u=t=>{d(l,t>=0&&t<81?t:null)},b="Check ?",w="New Puzzle",g=t=>!("isConnected"in t)||t.isConnected,y=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(g))})(...e)}),2e3)}})(),m=t=>"function"==typeof t?t():t;class x extends Error{response;request;options;constructor(t,e,r){const o=`${t.status||0===t.status?t.status:""} ${t.statusText||""}`.trim();super(`Request failed with ${o?`status code ${o}`:"an unknown error"}: ${e.method} ${e.url}`),this.name="HTTPError",this.response=t,this.request=e,this.options=r}}class v extends Error{request;constructor(t){super(`Request timed out: ${t.method} ${t.url}`),this.name="TimeoutError",this.request=t}}const C=t=>null!==t&&"object"==typeof t,k=(...t)=>{for(const e of t)if((!C(e)||Array.isArray(e))&&void 0!==e)throw new TypeError("The `options` argument must be an object");return z({},...t)},T=(t={},e={})=>{const r=new globalThis.Headers(t),o=e instanceof globalThis.Headers,s=new globalThis.Headers(e);for(const[t,e]of s.entries())o&&"undefined"===e||void 0===e?r.delete(t):r.set(t,e);return r};function R(t,e,r){return Object.hasOwn(e,r)&&void 0===e[r]?[]:z(t[r]??[],e[r]??[])}const M=(t={},e={})=>({beforeRequest:R(t,e,"beforeRequest"),beforeRetry:R(t,e,"beforeRetry"),afterResponse:R(t,e,"afterResponse"),beforeError:R(t,e,"beforeError")}),z=(...t)=>{let e={},r={},o={};for(const s of t)if(Array.isArray(s))Array.isArray(e)||(e=[]),e=[...e,...s];else if(C(s)){for(let[t,r]of Object.entries(s))C(r)&&t in e&&(r=z(e[t],r)),e={...e,[t]:r};C(s.hooks)&&(o=M(o,s.hooks),e.hooks=o),C(s.headers)&&(r=T(r,s.headers),e.headers=r)}return e},E=(()=>{let t=!1,e=!1;const r="function"==typeof globalThis.ReadableStream,o="function"==typeof globalThis.Request;if(r&&o)try{e=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type")}catch(t){if(t instanceof Error&&"unsupported BodyInit type"===t.message)return!1;throw t}return t&&!e})(),j="function"==typeof globalThis.AbortController,S="function"==typeof globalThis.ReadableStream,A="function"==typeof globalThis.FormData,P=["get","post","put","patch","head","delete"],q={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},U=2147483647,$=Symbol("stop"),B={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,fetch:!0},O={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0},D=t=>P.includes(t)?t.toUpperCase():t,L={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:t=>.3*2**(t-1)*1e3},N=(t={})=>{if("number"==typeof t)return{...L,limit:t};if(t.methods&&!Array.isArray(t.methods))throw new Error("retry.methods must be an array");if(t.statusCodes&&!Array.isArray(t.statusCodes))throw new Error("retry.statusCodes must be an array");return{...L,...t}};class _{static create(t,e){const r=new _(t,e),o=async()=>{if("number"==typeof r._options.timeout&&r._options.timeout>U)throw new RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let t=await r._fetch();for(const e of r._options.hooks.afterResponse){const o=await e(r.request,r._options,r._decorateResponse(t.clone()));o instanceof globalThis.Response&&(t=o)}if(r._decorateResponse(t),!t.ok&&r._options.throwHttpErrors){let e=new x(t,r.request,r._options);for(const t of r._options.hooks.beforeError)e=await t(e);throw e}if(r._options.onDownloadProgress){if("function"!=typeof r._options.onDownloadProgress)throw new TypeError("The `onDownloadProgress` option must be a function");if(!S)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return r._stream(t.clone(),r._options.onDownloadProgress)}return t},s=r._options.retry.methods.includes(r.request.method.toLowerCase())?r._retry(o):o();for(const[t,o]of Object.entries(q))s[t]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||o);const n=await s;if("json"===t){if(204===n.status)return"";if(0===(await n.clone().arrayBuffer()).byteLength)return"";if(e.parseJson)return e.parseJson(await n.text())}return n[t]()};return s}request;abortController;_retryCount=0;_input;_options;constructor(t,e={}){if(this._input=t,this._options={...e,headers:T(this._input.headers,e.headers),hooks:M({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},e.hooks),method:D(e.method??this._input.method),prefixUrl:String(e.prefixUrl||""),retry:N(e.retry),throwHttpErrors:!1!==e.throwHttpErrors,timeout:e.timeout??1e4,fetch:e.fetch??globalThis.fetch.bind(globalThis)},"string"!=typeof this._input&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&"string"==typeof this._input){if(this._input.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(j){this.abortController=new globalThis.AbortController;const t=this._options.signal??this._input.signal;t?.addEventListener("abort",(()=>{this.abortController.abort(t.reason)})),this._options.signal=this.abortController.signal}if(E&&(this._options.duplex="half"),void 0!==this._options.json&&(this._options.body=this._options.stringifyJson?.(this._options.json)??JSON.stringify(this._options.json),this._options.headers.set("content-type",this._options.headers.get("content-type")??"application/json")),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){const t="string"==typeof this._options.searchParams?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString(),e=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+t);!(A&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)||this._options.headers&&this._options.headers["content-type"]||this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(e,{...this.request}),this._options)}}_calculateRetryDelay(t){if(this._retryCount++,this._retryCount>this._options.retry.limit||t instanceof v)throw t;if(t instanceof x){if(!this._options.retry.statusCodes.includes(t.response.status))throw t;const e=t.response.headers.get("Retry-After")??t.response.headers.get("RateLimit-Reset")??t.response.headers.get("X-RateLimit-Reset")??t.response.headers.get("X-Rate-Limit-Reset");if(e&&this._options.retry.afterStatusCodes.includes(t.response.status)){let t=1e3*Number(e);Number.isNaN(t)?t=Date.parse(e)-Date.now():t>=Date.parse("2024-01-01")&&(t-=Date.now());const r=this._options.retry.maxRetryAfter??t;return t<r?t:r}if(413===t.response.status)throw t}const e=this._options.retry.delay(this._retryCount);return Math.min(this._options.retry.backoffLimit,e)}_decorateResponse(t){return this._options.parseJson&&(t.json=async()=>this._options.parseJson(await t.text())),t}async _retry(t){try{return await t()}catch(e){const r=Math.min(this._calculateRetryDelay(e),U);if(this._retryCount<1)throw e;await async function(t,{signal:e}){return new Promise(((r,o)=>{function s(){clearTimeout(n),o(e.reason)}e&&(e.throwIfAborted(),e.addEventListener("abort",s,{once:!0}));const n=setTimeout((()=>{e?.removeEventListener("abort",s),r()}),t)}))}(r,{signal:this._options.signal});for(const t of this._options.hooks.beforeRetry)if(await t({request:this.request,options:this._options,error:e,retryCount:this._retryCount})===$)return;return this._retry(t)}}async _fetch(){for(const t of this._options.hooks.beforeRequest){const e=await t(this.request,this._options);if(e instanceof Request){this.request=e;break}if(e instanceof Response)return e}const t=((t,e)=>{const r={};for(const o in e)o in O||o in B||o in t||(r[o]=e[o]);return r})(this.request,this._options),e=this.request;return this.request=e.clone(),!1===this._options.timeout?this._options.fetch(e,t):async function(t,e,r,o){return new Promise(((s,n)=>{const a=setTimeout((()=>{r&&r.abort(),n(new v(t))}),o.timeout);o.fetch(t,e).then(s).catch(n).then((()=>{clearTimeout(a)}))}))}(e,t,this.abortController,this._options)}_stream(t,e){const r=Number(t.headers.get("content-length"))||0;let o=0;return 204===t.status?(e&&e({percent:1,totalBytes:r,transferredBytes:o},new Uint8Array),new globalThis.Response(null,{status:t.status,statusText:t.statusText,headers:t.headers})):new globalThis.Response(new globalThis.ReadableStream({async start(s){const n=t.body.getReader();e&&e({percent:0,transferredBytes:0,totalBytes:r},new Uint8Array),await async function t(){const{done:a,value:i}=await n.read();a?s.close():(e&&(o+=i.byteLength,e({percent:0===r?0:o/r,transferredBytes:o,totalBytes:r},i)),s.enqueue(i),await t())}()}}),{status:t.status,statusText:t.statusText,headers:t.headers})}}
|
2
2
|
/*! MIT License © Sindre Sorhus */const H=t=>{const e=(e,r)=>_.create(e,k(t,r));for(const r of P)e[r]=(e,o)=>_.create(e,k(t,o,{method:r}));return e.create=t=>H(k(t)),e.extend=e=>("function"==typeof e&&(e=e(t??{})),H(k(t,e))),e.stop=$,e},J=H(),X={list:[],keys:[],locs:[],loading:!1,solved:!1,error:void 0,pick:void 0,data:void 0},{state:I}=(()=>{const t=((t,e=((t,e)=>t!==e))=>{const r=m(t);let o=new Map(Object.entries(null!=r?r:{}));const s={dispose:[],get:[],set:[],reset:[]},n=()=>{var e;o=new Map(Object.entries(null!==(e=m(t))&&void 0!==e?e:{})),s.reset.forEach((t=>t()))},a=t=>(s.get.forEach((e=>e(t))),o.get(t)),i=(t,r)=>{const n=o.get(t);e(r,n,t)&&(o.set(t,r),s.set.forEach((e=>e(t,r,n))))},l="undefined"==typeof Proxy?{}:new Proxy(r,{get:(t,e)=>a(e),ownKeys:()=>Array.from(o.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>o.has(e),set:(t,e,r)=>(i(e,r),!0)}),c=(t,e)=>(s[t].push(e),()=>{((t,e)=>{const r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.length--)})(s[t],e)});return{state:l,get:a,set:i,on:c,onChange:(e,r)=>{const o=c("set",((t,o)=>{t===e&&r(o)})),s=c("reset",(()=>r(m(t)[e])));return()=>{o(),s()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(c("set",e.set)),e.get&&t.push(c("get",e.get)),e.reset&&t.push(c("reset",e.reset)),e.dispose&&t.push(c("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{s.dispose.forEach((t=>t())),n()},reset:n,forceUpdate:t=>{const e=o.get(t);s.set.forEach((r=>r(t,e,e)))}}})(X,void 0);return t.use((()=>{if("function"!=typeof e)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const o=e();o&&((t,e,r)=>{const o=t.get(e);o?o.includes(r)||o.push(r):t.set(e,[r])})(t,r,o)},set:e=>{const o=t.get(e);o&&t.set(e,o.filter(r)),y(t)},reset:()=>{t.forEach((t=>t.forEach(r))),y(t)}}})()),t})(),W=new Map([["row",new Map],["column",new Map],["box",new Map]]),Z=["1","2","3","4","5","6","7","8","9"],K=t=>{if(void 0!==t&&t.indx!=I.pick){const{isClue:e,indx:r,row:o,column:s,box:n}=t,a=((t,e,r,o)=>{const s=new Map([["row",e],["column",r],["box",o]]),n=new Set;return s.forEach(((e,r)=>{W.get(r).get(e).forEach((e=>{e!==t&&n.add(e)}))})),Array.from(n)})(r,o,s,n),i=e?[]:(t=>{const{list:e}=I,r=new Set;return t.map((t=>{const{key:o}=e[t];"."!=o&&r.add(o)})),Z.filter((t=>!r.has(t)))})(a);I.pick=r,I.keys=i,I.locs=a}else I.pick=void 0,I.keys=[],I.locs=[];G(I.pick)};let V;const Y={local:"http://localhost:8080/api",netlify:"/.netlify/functions",vercel:"https://sudoku-rust-api.vercel.app/api"},F=t=>{h(t)},G=t=>{u(t)},Q=(t=!1)=>{I.list=[],I.keys=[],I.locs=[],I.loading=t,I.solved=!1,I.error=void 0,I.pick=void 0,I.data=void 0},tt=(t,e=!0)=>{const{puzzle:r,ref:o}=t;e&&(h([]),d(a,t)),(t=>{if(t){const{puzzle:e,ref:r}=t,o=e?[...e]:[],s=r?atob(r):void 0,n=s?[...s]:[],a=o.map(((t,e)=>{const r=n[e],o=t===r,s=Math.floor(e/9),a=e%9,i=((t,e)=>e<3?t<3?0:t<6?3:6:e<6?t<3?1:t<6?4:7:t<3?2:t<6?5:8)(s,a);return((t,e,r,o)=>{new Map([["row",e],["column",r],["box",o]]).forEach(((e,r)=>{const o=W.get(r);o.has(e)?o.get(e).add(t):o.set(e,new Set([t]))}))})(e,s,a,i),{key:t,isClue:o,value:r,indx:e,row:s,column:a,box:i}}));(t=>{f().forEach(((e,r)=>{const o=t[r],{isClue:s}=o;s||(o.key=e)}))})(a),I.data=t,I.list=a}else I.data=void 0,I.list=[]})({puzzle:r,ref:o})},et=t=>{I.list=[...t],t.length=0},rt={initApp:t=>{(t=>{const e=(t=>{const e=Object.keys(Y).includes(t)?t:"vercel";return Y[e]})(t);V=J.extend({hooks:{beforeRequest:[t=>{t.headers.set("X-Requested-With","ky"),t.headers.set("X-Custom-Header","foobar")}]},prefixUrl:e,timeout:1e4})})(t),Q();const e=c(a),r=p();if(e&&(tt(e,!1),r>=0)){const{list:t}=I;K(t[r])}},refresh:async()=>{Q(!0),F([]),G(I.pick);try{const t=await V.get("puzzle").json();tt(t)}catch(t){const{message:e}=t;console.log("-- ",e),console.log(t),I.error=e}finally{I.loading=!1}},select:t=>{K(t)},check:()=>{const{list:t}=I,e=[];let r=0,o=0,s=0;t.forEach((t=>{const{key:n,value:a,isClue:i}=t;i?s+=1:"."!==n&&(n!==a?(r+=1,t.key="."):o+=1),e.push(t.key)}));const n=s+o;F(o?e:[]),r>0?et(t):81===n&&(I.solved=!0)},input:t=>{const{pick:e,list:r}=I;r[e].key=t,et(r)}},ot=(...t)=>t.filter(Boolean).join(" "),st=e=>{const r=e.hex||"currentColor",o=e.label||"loading...",s=e.size||24;return t("svg",{class:ot(e.class||"","animate-spin"),width:s,height:s,fill:"none",viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,o),t("g",null,t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:r,"stroke-width":"4"}),t("path",{class:"opacity-75",fill:r,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},nt=e=>{const{message:r,salute:o,spinner:n=!1}=e;return t("div",{class:"mt-5 flex h-24px flex-row items-center"},t(n?st:s,{class:"mr-2"}),o?t("label",{class:"mr-1 font-bold"},o,":"):"",t("label",{class:"italic"},r))},at=()=>{const{solved:e,loading:r,error:o}=I;return t("div",{class:"flex flex-col"},r||o||e?"":t(nt,{message:"Welcome, are you ready to play?..."}),r?t(nt,{message:"Loading...",spinner:!0}):"",o?t(nt,{message:o,salute:"ERROR"}):"",e?t(nt,{message:"You solved the puzzle!!"}):"")},it=e=>{const r=e.hex||"currentColor",o=e.size||24;return t("svg",{class:e.class,width:o,height:o,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"fingerprint"),t("g",{fill:r},t("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"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},lt="eswat2",ct=()=>t("a",{class:"absolute right-0 top-0 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":lt,target:"blank",title:lt},t(it,{label:lt})),dt=(e,r)=>t("h1",{class:ot("text-center uppercase text-clrs-red","mb-11 ml-0 mr-0 mt-11","text-6xl font-thin")},r),ft=e=>{const{label:r,callback:o,matched:s=!1}=e;return t("button",{class:ot("rounded-md border border-solid border-clrs-slate4 font-bold",r===b?"mr-2 bg-clrs-yellow px-3 py-2 text-clrs-navy":r===w?"mr-2 bg-clrs-navy px-3 py-2 text-white":"x"===r?"mr-1 bg-clrs-red px-2 py-1 text-white":s?"mr-1 bg-clrs-slate4 px-2 py-1 text-white":"mr-1 bg-gray-50 px-2 py-1 text-clrs-navy"),onClick:o},r)},ht=()=>{const{keys:e,list:r,pick:o,solved:s}=I,n=t=>()=>{rt.input(t)},a=s?[]:e,i=null!=o?r[o]:void 0;return t("div",{class:"mt-2 flex flex-row justify-end"},s||!i||i.isClue||"."==i.key?"":t(ft,{label:"x",callback:n(".")}),a.map((e=>t(ft,{label:e,callback:n(e),matched:i.key===e}))))},pt=[2,5,11,14,20,23,29,32,38,41,47,50,56,59,65,68,74,77],ut=pt.map((t=>t+1)),bt=[18,19,20,21,22,23,24,25,26,45,46,47,48,49,50,51,52,53],wt=bt.map((t=>t+9)),gt=e=>{const{cell:r,focus:o,selected:s,solved:n}=e,{key:a,isClue:i,indx:l}=r,c="."!=a?a:"";return t("label",{class:ot(`cell-${l}`,pt.includes(l)?"border-xbr-clrs-navy":"",ut.includes(l)?"border-xbl-clrs-navy":"",bt.includes(l)?"border-xbb-clrs-navy":"",wt.includes(l)?"border-xbt-clrs-navy":"","h-8 w-8 border border-solid text-center leading-8",s?"border-clrs-red bg-clrs-red-a50 text-clrs-red":o?"border-clrs-gray bg-clrs-green-a50 font-bold":i?"border-clrs-gray bg-clrs-silver":""!==c?"border-clrs-gray text-clrs-red":"border-clrs-gray"),onClick:((t,e)=>()=>{e||rt.select(t)})(r,n)},c)},yt=()=>{const{list:e,pick:r,locs:o,solved:s}=I;return t("div",{class:ot("flex flex-row flex-wrap","border border-solid border-clrs-navy","h-76p5 w-76p5 text-lg")},e.map(((e,n)=>{const a=!s&&n===r,i=!s&&o.includes(n);return t(gt,{cell:e,focus:i,selected:a,solved:s})})))},mt=()=>t("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.4.16"),xt=t=>()=>{t.refresh()},vt=t=>()=>{t.check()},Ct=()=>{const{list:e,solved:r}=I;return t("div",{class:"flex flex-row"},t(ft,{label:w,callback:xt(rt)}),81!==e.length||r?"":t(ft,{label:b,callback:vt(rt)}),t(mt,null))},kt=class{constructor(t){o(this,t),this.tag="proto-sudoku",this.platform="vercel"}componentDidLoad(){rt.initApp(this.platform)}render(){return t("div",{key:"9f50eec975c4da5f4984b80380067d5155dda0d1",id:"app",class:"ds1-main relative max-w-min p-0.5"},t(ct,{key:"e7bab7e257022a9920f8b43785d9dc33ab7fed65"}),t(dt,{key:"d8c32e6b9c20b9fe6c8ff2e9fc7a9900057a2679"},"Sudoku"),t(yt,{key:"8a028015ae4380aaa54a406ccf5cc908816ca6a4"}),t(ht,{key:"951b6d20ca7a99ced4c60aa39fe040af6e96dd46"}),t("hr",{key:"35ba2812a3b068b21b5252c5f07d0b5dc2f18527",class:"ml-0 mr-0"}),t(Ct,{key:"114e7edd4bf3da82ae344f56cb7e856ce17a6da8"}),t(at,{key:"2c15eb0ba714d1e0c378882c62ce575c428adc2a"}))}};kt.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{margin:1.5rem;display:flex;flex-direction:column;font-family:ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.absolute{position:absolute}.relative{position:relative}.right-0{right:0px}.top-0{top:0px}.mb-11{margin-bottom:2.75rem}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.mr-0{margin-right:0px}.mr-1{margin-right:0.25rem}.mr-2{margin-right:0.5rem}.mt-11{margin-top:2.75rem}.mt-2{margin-top:0.5rem}.mt-5{margin-top:1.25rem}.flex{display:flex}.h-24px{height:24px}.h-76p5{height:19.125rem}.h-8{height:2rem}.w-76p5{width:19.125rem}.w-8{width:2rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.rounded-md{border-radius:0.375rem}.border{border-width:1px}.border-solid{border-style:solid}.border-clrs-gray{border-color:var(--clrs-gray, #aaaaaa)}.border-clrs-navy{border-color:var(--clrs-navy, #001f3f)}.border-clrs-red{border-color:var(--clrs-red, #ff4136)}.border-clrs-slate4{border-color:var(--clrs-slate4, #4e5964)}.bg-clrs-green-a50{background-color:var(--clrs-green-a50, #2ecc4050)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.bg-clrs-red-a50{background-color:var(--clrs-red-a50, #ff413650)}.bg-clrs-silver{background-color:var(--clrs-silver, #dddddd)}.bg-clrs-slate4{background-color:var(--clrs-slate4, #4e5964)}.bg-clrs-yellow{background-color:var(--clrs-yellow, #ffdc00)}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.p-0\\.5{padding:0.125rem}.px-2{padding-left:0.5rem;padding-right:0.5rem}.px-3{padding-left:0.75rem;padding-right:0.75rem}.py-1{padding-top:0.25rem;padding-bottom:0.25rem}.py-2{padding-top:0.5rem;padding-bottom:0.5rem}.text-center{text-align:center}.align-top{vertical-align:top}.text-6xl{font-size:3.75rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-8{line-height:2rem}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-25{opacity:0.25}.opacity-75{opacity:0.75}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.border-xbb-clrs-navy{border-bottom:1px solid var(--clrs-navy, #001f3f) !important}.border-xbt-clrs-navy{border-top:1px solid var(--clrs-navy, #001f3f) !important}.border-xbl-clrs-navy{border-left:1px solid var(--clrs-navy, #001f3f) !important}.border-xbr-clrs-navy{border-right:1px solid var(--clrs-navy, #001f3f) !important}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";export{kt as proto_sudoku}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=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:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.o?$(b):a.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(m),v(y),(d=m.length>0)&&a.raf(b)},$=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>k,unwrap:()=>x,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let o=null,l=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!j(o))&&(o+=""),s&&r?i[i.length-1].i+=o:i.push(s?D(null,o):o),r=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,R);const u=D(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=l,u},D=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),H={},R={forEach:(e,t)=>e.map(T).forEach(t),map:(e,t)=>e.map(T).map(t).map(L)},T=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),L=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),A(e.vtag,t,...e.vchildren||[])}const t=D(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},N=(e,t,n,o,s,r)=>{if(n!==o){let i=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=F(n),s=F(o);e["s-si"]&&s.indexOf(e["s-si"])<0&&s.push(e["s-si"]),t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if(i||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((i||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(W);t=t.replace(q,""),n&&a.rel(e,t,n,l),o&&a.ael(e,t,o,l)}}},U=/\s/,F=e=>e?e.split(U):[],W="Capture",q=RegExp(W+"$"),G=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||S,s=t.u||S;for(const e of V(Object.keys(l)))e in s||N(o,e,l[e],void 0,n,t.o);for(const e of V(Object.keys(s)))N(o,e,l[e],s[e],n,t.o)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const o=t.h[n];let l,s,r=0;if(null!==o.i)l=o.v=f.createTextNode(o.i);else{if(_||(_="svg"===o.m),l=o.v=f.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),_&&"foreignObject"===o.m&&(_=!1),G(null,o,_),l.getRootNode().querySelector("body"),o.h)for(r=0;r<o.h.length;++r)s=z(e,o,r),s&&l.appendChild(s);"svg"===o.m?_=!1:"foreignObject"===l.tagName&&(_=!0)}return l["s-hn"]=M,l},B=(e,t,n,o,l,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=z(null,n,l),r&&(o[l].v=r,Q(i,r,t)))},I=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),K=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,r=t.m,i=t.i;null===i?(G(e,t,_="svg"===r||"foreignObject"!==r&&_),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=t.length-1,h=t[0],p=t[a],d=o.length-1,m=o[0],y=o[d];for(;i<=a&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--d];else if(J(h,m,l))K(h,m,l),h=t[++i],m=o[++c];else if(J(p,y,l))K(p,y,l),p=t[--a],y=o[--d];else if(J(h,y,l))K(h,y,l),Q(e,h.v,p.v.nextSibling),h=t[++i],y=o[--d];else if(J(p,m,l))K(p,m,l),Q(e,p.v,h.v),p=t[--a],m=o[++c];else{for(u=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){u=f;break}u>=0?(r=t[u],r.m!==m.m?s=z(t&&t[c],n,u):(K(r,m,l),t[u]=void 0,s=r.v),m=o[++c]):(s=z(t&&t[c],n,c),m=o[++c]),s&&Q(h.v.parentNode,s,h.v)}i>a?B(e,null==o[d+1]?null:o[d+1].v,n,o,c,d):c>d&&I(t,i,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),B(o,null,t,s,0,s.length-1)):!n&&null!==l&&I(l,0,l.length-1),_&&"svg"===r&&(_=!1)):e.i!==i&&(o.data=i)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),X=(e,t)=>null==e||j(e)?e:1&t?e+"":e,Y=new WeakMap,Z=e=>"sc-"+e.S,ee=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},te=(e,t)=>{if(e.o|=16,!(4&e.o))return ee(e,e.O),g((()=>ne(e,t)));e.o|=512},ne=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$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 oe(void 0,(()=>se(e,n,t)))},oe=(e,t)=>le(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),le=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=Z(t),l=i.get(o);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let s,r=Y.get(e=e.head||e);if(r||Y.set(e,r=new Set),!r.has(o)){{s=f.createElement("style"),s.innerHTML=l;const o=null!=(n=a.C)?n:O(f);if(null!=o&&s.setAttribute("nonce",o),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),r&&r.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ie(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ue(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},re=null,ie=(e,t,n,o)=>{try{re=t,t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,s=e.M||D(null,null),r=(e=>e&&e.m===H)(t)?t:A(null,null,t);if(M=o.tagName,n&&r.u)for(const e of Object.keys(r.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=o[e]);r.m=null,r.o|=4,e.M=r,r.v=s.v=o.shadowRoot||o,K(s,r,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return re=null,null},ce=()=>re,ue=e=>{const t=e.$hostElement$,n=e.t,o=e.O;64&e.o||(e.o|=64,pe(t),he(n,"componentDidLoad"),e.P(t),o||ae()),e.j&&(e.j(),e.j=void 0),512&e.o&&$((()=>te(e,!1))),e.o&=-517},fe=e=>{{const t=n(e),o=t.$hostElement$.isConnected;return o&&2==(18&t.o)&&te(t,!1),o}},ae=()=>{pe(f.documentElement),$((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"proto-sudoku-wc"}});return e.dispatchEvent(t),t})(u)))},he=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},pe=e=>e.classList.add("hydrated"),de=(e,t,o,l)=>{const s=n(e);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 r=s.A.get(t),i=s.o,c=s.t;o=X(o,l.D[t][0]),8&i&&void 0!==r||o===r||Number.isNaN(r)&&Number.isNaN(o)||(s.A.set(t,o),c&&2==(18&i)&&te(s,!1))},me=(e,t,o)=>{var l,s;const r=e.prototype;if(t.D){const i=Object.entries(null!=(l=t.D)?l:{});if(i.map((([e,[l]])=>{if(31&l||2&o&&32&l)if(2048&l){if(1&o&&2048&l&&(Object.defineProperty(r,e,{get(){const t=n(this),o=t?t.t:r;if(o)return o[e]},configurable:!0,enumerable:!0}),4096&l)){const o=Object.getOwnPropertyDescriptor(r,e).set;Object.defineProperty(r,e,{set(l){const s=n(this);if(o){const n=s.$hostElement$[e];return!s.A.get(e)&&n&&s.A.set(e,n),o.call(this,X(l,t.D[e][0])),void de(this,e,s.$hostElement$[e],t)}if(!s)return;const r=()=>{const n=s.t[e];!s.A.get(e)&&n&&s.A.set(e,n),s.t[e]=X(l,t.D[e][0]),de(this,e,s.t[e],t)};s.t?r():s.H.then((()=>r()))}})}}else Object.defineProperty(r,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(n){de(this,e,n,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var i;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=t.R)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(r,c);u.get&&!u.set||(this[c]=(null!==s||"boolean"!=typeof this[c])&&s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.R)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ye=(e,o={})=>{var l;const h=[],d=o.exclude||[],m=u.customElements,y=f.head,w=y.querySelector("meta[charset]"),v=f.createElement("style"),b=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],S:o[1],D:o[2],T:o[3]};4&l.o&&(S=!0),l.D=o[2];const c=l.S,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,k:n,A:new Map};o.H=new Promise((e=>o.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?b.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.k,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.O=n);break}}o.D&&Object.entries(o.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.L){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.L;if(!n)return;const o=r.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.S}#${t.N}" was not found`);o.isProxied||(me(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,l()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=Z(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.O,c=()=>te(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.o)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}))}})()))}componentOnReady(){return n(this).H}};l.L=e[0],d.includes(c)||m.get(c)||(h.push(c),m.define(c,me(u,l,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(l=a.C)?l:O(f);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):a.jmp((()=>$=setTimeout(ae,30)))},we=e=>a.C=e;export{ye as b,fe as f,ce as g,A as h,h as p,o as r,we as s}
|
@@ -1 +1 @@
|
|
1
|
-
import{p as
|
1
|
+
import{p as o,b as a}from"./p-fac78fb6.js";export{s as setNonce}from"./p-fac78fb6.js";import{g as t}from"./p-e1255160.js";(()=>{const a=import.meta.url,s={};return""!==a&&(s.resourcesUrl=new URL(".",a).href),o(s)})().then((async o=>(await t(),a([["p-4c7c116d",[[1,"proto-sudoku",{tag:[1],platform:[1]}]]]],o))));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "proto-sudoku-wc",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.905",
|
4
4
|
"description": "prototype - a simple Sudoku app rendered in Stencil and Tailwind",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.js",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"format": "prettier --write src"
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
|
-
"@stencil/core": "4.
|
30
|
+
"@stencil/core": "4.23.0",
|
31
31
|
"@stencil/store": "2.0.16",
|
32
32
|
"ky": "1.7.3",
|
33
33
|
"proto-tailwindcss-clrs": "0.0.388",
|
@@ -1,2 +0,0 @@
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=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:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.o?b($):a.raf($))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{v(m),v(y),(d=m.length>0)&&a.raf($)},b=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>x,unwrapErr:()=>P});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let o=null,l=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!j(o))&&(o+=""),s&&r?i[i.length-1].i+=o:i.push(s?D(null,o):o),r=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,R);const u=D(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=l,u},D=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),H={},R={forEach:(e,t)=>e.map(T).forEach(t),map:(e,t)=>e.map(T).map(t).map(L)},T=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),L=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),A(e.vtag,t,...e.vchildren||[])}const t=D(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},N=new WeakMap,U=e=>"sc-"+e.S,F=(e,t,n,o,s,r)=>{if(n!==o){let i=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=q(n),s=q(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if(i||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((i||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(G);t=t.replace(V,""),n&&a.rel(e,t,n,l),o&&a.ael(e,t,o,l)}}},W=/\s/,q=e=>e?e.split(W):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||S,s=t.u||S;for(const e of z(Object.keys(l)))e in s||F(o,e,l[e],void 0,n,t.o);for(const e of z(Object.keys(s)))F(o,e,l[e],s[e],n,t.o)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=(e,t,n)=>{const o=t.h[n];let l,s,r=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),l.getRootNode().querySelector("body"),o.h)for(r=0;r<o.h.length;++r)s=I(e,o,r),s&&l.appendChild(s);"svg"===o.m?B=!1:"foreignObject"===l.tagName&&(B=!0)}return l["s-hn"]=M,l},J=(e,t,n,o,l,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=I(null,n,l),r&&(o[l].v=r,Y(i,r,t)))},K=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),X=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,r=t.m,i=t.i;null===i?(_(e,t,B="svg"===r||"foreignObject"!==r&&B),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=t.length-1,h=t[0],p=t[a],d=o.length-1,m=o[0],y=o[d];for(;i<=a&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--d];else if(Q(h,m,l))X(h,m,l),h=t[++i],m=o[++c];else if(Q(p,y,l))X(p,y,l),p=t[--a],y=o[--d];else if(Q(h,y,l))X(h,y,l),Y(e,h.v,p.v.nextSibling),h=t[++i],y=o[--d];else if(Q(p,m,l))X(p,m,l),Y(e,p.v,h.v),p=t[--a],m=o[++c];else{for(u=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){u=f;break}u>=0?(r=t[u],r.m!==m.m?s=I(t&&t[c],n,u):(X(r,m,l),t[u]=void 0,s=r.v),m=o[++c]):(s=I(t&&t[c],n,c),m=o[++c]),s&&Y(h.v.parentNode,s,h.v)}i>a?J(e,null==o[d+1]?null:o[d+1].v,n,o,c,d):c>d&&K(t,i,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),J(o,null,t,s,0,s.length-1)):!n&&null!==l&&K(l,0,l.length-1),B&&"svg"===r&&(B=!1)):e.i!==i&&(o.data=i)},Y=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Z=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},ee=(e,t)=>{if(e.o|=16,!(4&e.o))return Z(e,e.k),g((()=>te(e,t)));e.o|=512},te=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$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 ne(void 0,(()=>le(e,n,t)))},ne=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=U(t),l=i.get(o);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(o)){{s=f.createElement("style"),s.innerHTML=l;const o=null!=(n=a.C)?n:k(f);if(null!=o&&s.setAttribute("nonce",o),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),r&&r.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);re(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ce(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},se=null,re=(e,t,n,o)=>{try{se=t,t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.M||D(null,null),r=(e=>e&&e.m===H)(t)?t:A(null,null,t);if(M=o.tagName,n&&r.u)for(const e of Object.keys(r.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=o[e]);r.m=null,r.o|=4,e.M=r,r.v=s.v=o.shadowRoot||o,X(s,r,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return se=null,null},ie=()=>se,ce=e=>{const t=e.$hostElement$,n=e.t,o=e.k;64&e.o||(e.o|=64,he(t),ae(n,"componentDidLoad"),e.P(t),o||fe()),e.j&&(e.j(),e.j=void 0),512&e.o&&b((()=>ee(e,!1))),e.o&=-517},ue=e=>{{const t=n(e),o=t.$hostElement$.isConnected;return o&&2==(18&t.o)&&ee(t,!1),o}},fe=()=>{he(f.documentElement),b((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"proto-sudoku-wc"}});return e.dispatchEvent(t),t})(u)))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},he=e=>e.classList.add("hydrated"),pe=(e,t,o)=>{var l,s;const r=e.prototype;if(t.A){const i=Object.entries(null!=(l=t.A)?l:{});if(i.map((([e,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).D.get(t))(0,e)},set(o){((e,t,o,l)=>{const s=n(e);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 r=s.D.get(t),i=s.o,c=s.t;o=((e,t)=>null==e||j(e)?e:1&t?e+"":e)(o,l.A[t][0]),8&i&&void 0!==r||o===r||Number.isNaN(r)&&Number.isNaN(o)||(s.D.set(t,o),c&&2==(18&i)&&ee(s,!1))})(this,e,o,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var i;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=t.H)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},de=(e,o={})=>{var l;const h=[],d=o.exclude||[],m=u.customElements,y=f.head,w=y.querySelector("meta[charset]"),v=f.createElement("style"),$=[];let b,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],S:o[1],A:o[2],R:o[3]};4&l.o&&(S=!0),l.A=o[2];const c=l.S,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,D:new Map};o.T=new Promise((e=>o.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.T)&&t.T.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(t,t.k=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.L){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.L;if(!n)return;const o=r.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.S}#${t.N}" was not found`);o.isProxied||(pe(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,l()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=U(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.k,c=()=>ee(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.o)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return n(this).T}};l.L=e[0],d.includes(c)||m.get(c)||(h.push(c),m.define(c,pe(u,l,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(l=a.C)?l:k(f);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):a.jmp((()=>b=setTimeout(fe,30)))},me=e=>a.C=e;export{de as b,ue as f,ie as g,A as h,h as p,o as r,me as s}
|