@liip/liipgpt 3.4.2 → 3.4.4
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/button/liipgpt-button.iife.js +85 -85
- package/chat/liipgpt-chat.iife.js +103 -103
- package/config/index.cjs +95 -85
- package/config/index.js +82 -78
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/B3eztMjm.js +1 -0
- package/configurator/_app/immutable/chunks/B5LAyE-f.js +1 -0
- package/configurator/_app/immutable/chunks/BUm3woLX.js +1 -0
- package/configurator/_app/immutable/chunks/BdP-K7KO.js +3 -0
- package/configurator/_app/immutable/chunks/C8mohMXa.js +1 -0
- package/configurator/_app/immutable/chunks/CNhGYG1q.js +0 -0
- package/configurator/_app/immutable/chunks/CaZV0epm.js +1 -0
- package/configurator/_app/immutable/chunks/D1hYfEew.js +1 -0
- package/configurator/_app/immutable/chunks/D7iAOzgH.js +1 -0
- package/configurator/_app/immutable/chunks/DC7iQzPK.js +16 -0
- package/configurator/_app/immutable/chunks/DEv5Ueqk.js +324 -0
- package/configurator/_app/immutable/chunks/DJ-KAQCp.js +143 -0
- package/configurator/_app/immutable/chunks/DUJlwB59.js +15 -0
- package/configurator/_app/immutable/chunks/DevUxHro.js +89 -0
- package/configurator/_app/immutable/chunks/DopJiv6A.js +1 -0
- package/configurator/_app/immutable/chunks/DpTUJVdo.js +1 -0
- package/configurator/_app/immutable/chunks/az2UTMiX.js +1 -0
- package/configurator/_app/immutable/entry/app.Bl6ijR0o.js +2 -0
- package/configurator/_app/immutable/entry/start.ByoY54BX.js +1 -0
- package/configurator/_app/immutable/nodes/{0.Bgy3i8FQ.js → 0.DQUsz_zn.js} +3 -3
- package/configurator/_app/immutable/nodes/1.DRz2V13W.js +1 -0
- package/configurator/_app/immutable/nodes/2.DJcyAYWL.js +31 -0
- package/configurator/_app/immutable/nodes/3.B_llVVii.js +954 -0
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +10 -11
- package/configurator/sidebar.html +10 -11
- package/index.cjs +866 -1838
- package/index.js +830 -1832
- package/package.json +36 -36
- package/configurator/_app/immutable/chunks/6gGOJNBB.js +0 -1
- package/configurator/_app/immutable/chunks/BVWYCVQL.js +0 -113
- package/configurator/_app/immutable/chunks/BXQ0Z8wW.js +0 -1
- package/configurator/_app/immutable/chunks/Bg7q39r6.js +0 -1
- package/configurator/_app/immutable/chunks/CR5-hwU3.js +0 -1
- package/configurator/_app/immutable/chunks/CfJtR48A.js +0 -2
- package/configurator/_app/immutable/chunks/CqmBCC3F.js +0 -1
- package/configurator/_app/immutable/chunks/D0zq2rZV.js +0 -143
- package/configurator/_app/immutable/chunks/DGC7CooX.js +0 -1
- package/configurator/_app/immutable/chunks/DGqm4WKo.js +0 -15
- package/configurator/_app/immutable/chunks/Do2M-_FB.js +0 -324
- package/configurator/_app/immutable/chunks/DsnmJJEf.js +0 -1
- package/configurator/_app/immutable/chunks/g9pTgyF6.js +0 -1
- package/configurator/_app/immutable/chunks/hrZ0qwUL.js +0 -1
- package/configurator/_app/immutable/chunks/w7MLzsSQ.js +0 -1
- package/configurator/_app/immutable/entry/app.ConDGFGi.js +0 -2
- package/configurator/_app/immutable/entry/start.k8RQt7wE.js +0 -1
- package/configurator/_app/immutable/nodes/1.WSWj9VWy.js +0 -1
- package/configurator/_app/immutable/nodes/2.DRCudqRI.js +0 -31
- package/configurator/_app/immutable/nodes/3.CMaEAJPV.js +0 -954
package/index.cjs
CHANGED
|
@@ -1,28 +1,62 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
1
3
|
var __defProp = Object.defineProperty;
|
|
2
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
|
|
7
|
+
function __accessProp(key) {
|
|
8
|
+
return this[key];
|
|
9
|
+
}
|
|
10
|
+
var __toESMCache_node;
|
|
11
|
+
var __toESMCache_esm;
|
|
12
|
+
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
+
var canCache = mod != null && typeof mod === "object";
|
|
14
|
+
if (canCache) {
|
|
15
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
+
var cached = cache.get(mod);
|
|
17
|
+
if (cached)
|
|
18
|
+
return cached;
|
|
19
|
+
}
|
|
20
|
+
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
21
|
+
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
|
+
for (let key of __getOwnPropNames(mod))
|
|
23
|
+
if (!__hasOwnProp.call(to, key))
|
|
24
|
+
__defProp(to, key, {
|
|
25
|
+
get: __accessProp.bind(mod, key),
|
|
26
|
+
enumerable: true
|
|
27
|
+
});
|
|
28
|
+
if (canCache)
|
|
29
|
+
cache.set(mod, to);
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
6
32
|
var __toCommonJS = (from) => {
|
|
7
|
-
var entry = __moduleCache.get(from), desc;
|
|
33
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
8
34
|
if (entry)
|
|
9
35
|
return entry;
|
|
10
36
|
entry = __defProp({}, "__esModule", { value: true });
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
37
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
38
|
+
for (var key of __getOwnPropNames(from))
|
|
39
|
+
if (!__hasOwnProp.call(entry, key))
|
|
40
|
+
__defProp(entry, key, {
|
|
41
|
+
get: __accessProp.bind(from, key),
|
|
42
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
43
|
+
});
|
|
44
|
+
}
|
|
16
45
|
__moduleCache.set(from, entry);
|
|
17
46
|
return entry;
|
|
18
47
|
};
|
|
48
|
+
var __moduleCache;
|
|
49
|
+
var __returnValue = (v) => v;
|
|
50
|
+
function __exportSetter(name, newValue) {
|
|
51
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
52
|
+
}
|
|
19
53
|
var __export = (target, all) => {
|
|
20
54
|
for (var name in all)
|
|
21
55
|
__defProp(target, name, {
|
|
22
56
|
get: all[name],
|
|
23
57
|
enumerable: true,
|
|
24
58
|
configurable: true,
|
|
25
|
-
set: (
|
|
59
|
+
set: __exportSetter.bind(all, name)
|
|
26
60
|
});
|
|
27
61
|
};
|
|
28
62
|
|
|
@@ -53,8 +87,8 @@ __export(exports_client, {
|
|
|
53
87
|
});
|
|
54
88
|
module.exports = __toCommonJS(exports_client);
|
|
55
89
|
|
|
56
|
-
// node_modules/.
|
|
57
|
-
/*! @license DOMPurify 3.3.
|
|
90
|
+
// node_modules/.bun/dompurify@3.3.3/node_modules/dompurify/dist/purify.es.mjs
|
|
91
|
+
/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
|
|
58
92
|
var {
|
|
59
93
|
entries,
|
|
60
94
|
setPrototypeOf,
|
|
@@ -72,17 +106,17 @@ var {
|
|
|
72
106
|
construct
|
|
73
107
|
} = typeof Reflect !== "undefined" && Reflect;
|
|
74
108
|
if (!freeze) {
|
|
75
|
-
freeze = function
|
|
109
|
+
freeze = function freeze2(x) {
|
|
76
110
|
return x;
|
|
77
111
|
};
|
|
78
112
|
}
|
|
79
113
|
if (!seal) {
|
|
80
|
-
seal = function
|
|
114
|
+
seal = function seal2(x) {
|
|
81
115
|
return x;
|
|
82
116
|
};
|
|
83
117
|
}
|
|
84
118
|
if (!apply) {
|
|
85
|
-
apply = function
|
|
119
|
+
apply = function apply2(func, thisArg) {
|
|
86
120
|
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2;_key < _len; _key++) {
|
|
87
121
|
args[_key - 2] = arguments[_key];
|
|
88
122
|
}
|
|
@@ -90,7 +124,7 @@ if (!apply) {
|
|
|
90
124
|
};
|
|
91
125
|
}
|
|
92
126
|
if (!construct) {
|
|
93
|
-
construct = function
|
|
127
|
+
construct = function construct2(Func) {
|
|
94
128
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1;_key2 < _len2; _key2++) {
|
|
95
129
|
args[_key2 - 1] = arguments[_key2];
|
|
96
130
|
}
|
|
@@ -285,7 +319,7 @@ var _createHooksMap = function _createHooksMap2() {
|
|
|
285
319
|
function createDOMPurify() {
|
|
286
320
|
let window2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
287
321
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
288
|
-
DOMPurify.version = "3.3.
|
|
322
|
+
DOMPurify.version = "3.3.3";
|
|
289
323
|
DOMPurify.removed = [];
|
|
290
324
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
291
325
|
DOMPurify.isSupported = false;
|
|
@@ -425,10 +459,10 @@ function createDOMPurify() {
|
|
|
425
459
|
let transformCaseFunc = null;
|
|
426
460
|
let CONFIG = null;
|
|
427
461
|
const formElement = document2.createElement("form");
|
|
428
|
-
const isRegexOrFunction = function
|
|
462
|
+
const isRegexOrFunction = function isRegexOrFunction2(testValue) {
|
|
429
463
|
return testValue instanceof RegExp || testValue instanceof Function;
|
|
430
464
|
};
|
|
431
|
-
const _parseConfig = function
|
|
465
|
+
const _parseConfig = function _parseConfig2() {
|
|
432
466
|
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
433
467
|
if (CONFIG && CONFIG === cfg) {
|
|
434
468
|
return;
|
|
@@ -485,7 +519,7 @@ function createDOMPurify() {
|
|
|
485
519
|
}
|
|
486
520
|
if (USE_PROFILES) {
|
|
487
521
|
ALLOWED_TAGS = addToSet({}, text);
|
|
488
|
-
ALLOWED_ATTR =
|
|
522
|
+
ALLOWED_ATTR = create(null);
|
|
489
523
|
if (USE_PROFILES.html === true) {
|
|
490
524
|
addToSet(ALLOWED_TAGS, html$1);
|
|
491
525
|
addToSet(ALLOWED_ATTR, html);
|
|
@@ -506,6 +540,12 @@ function createDOMPurify() {
|
|
|
506
540
|
addToSet(ALLOWED_ATTR, xml);
|
|
507
541
|
}
|
|
508
542
|
}
|
|
543
|
+
if (!objectHasOwnProperty(cfg, "ADD_TAGS")) {
|
|
544
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = null;
|
|
545
|
+
}
|
|
546
|
+
if (!objectHasOwnProperty(cfg, "ADD_ATTR")) {
|
|
547
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = null;
|
|
548
|
+
}
|
|
509
549
|
if (cfg.ADD_TAGS) {
|
|
510
550
|
if (typeof cfg.ADD_TAGS === "function") {
|
|
511
551
|
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
@@ -575,7 +615,7 @@ function createDOMPurify() {
|
|
|
575
615
|
};
|
|
576
616
|
const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
|
|
577
617
|
const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
|
|
578
|
-
const _checkValidNamespace = function
|
|
618
|
+
const _checkValidNamespace = function _checkValidNamespace2(element) {
|
|
579
619
|
let parent = getParentNode(element);
|
|
580
620
|
if (!parent || !parent.tagName) {
|
|
581
621
|
parent = {
|
|
@@ -620,7 +660,7 @@ function createDOMPurify() {
|
|
|
620
660
|
}
|
|
621
661
|
return false;
|
|
622
662
|
};
|
|
623
|
-
const _forceRemove = function
|
|
663
|
+
const _forceRemove = function _forceRemove2(node) {
|
|
624
664
|
arrayPush(DOMPurify.removed, {
|
|
625
665
|
element: node
|
|
626
666
|
});
|
|
@@ -630,7 +670,7 @@ function createDOMPurify() {
|
|
|
630
670
|
remove(node);
|
|
631
671
|
}
|
|
632
672
|
};
|
|
633
|
-
const _removeAttribute = function
|
|
673
|
+
const _removeAttribute = function _removeAttribute2(name, element) {
|
|
634
674
|
try {
|
|
635
675
|
arrayPush(DOMPurify.removed, {
|
|
636
676
|
attribute: element.getAttributeNode(name),
|
|
@@ -655,7 +695,7 @@ function createDOMPurify() {
|
|
|
655
695
|
}
|
|
656
696
|
}
|
|
657
697
|
};
|
|
658
|
-
const _initDocument = function
|
|
698
|
+
const _initDocument = function _initDocument2(dirty) {
|
|
659
699
|
let doc = null;
|
|
660
700
|
let leadingWhitespace = null;
|
|
661
701
|
if (FORCE_BODY) {
|
|
@@ -688,13 +728,13 @@ function createDOMPurify() {
|
|
|
688
728
|
}
|
|
689
729
|
return WHOLE_DOCUMENT ? doc.documentElement : body;
|
|
690
730
|
};
|
|
691
|
-
const _createNodeIterator = function
|
|
731
|
+
const _createNodeIterator = function _createNodeIterator2(root) {
|
|
692
732
|
return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
|
|
693
733
|
};
|
|
694
|
-
const _isClobbered = function
|
|
734
|
+
const _isClobbered = function _isClobbered2(element) {
|
|
695
735
|
return element instanceof HTMLFormElement && (typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function");
|
|
696
736
|
};
|
|
697
|
-
const _isNode = function
|
|
737
|
+
const _isNode = function _isNode2(value) {
|
|
698
738
|
return typeof Node2 === "function" && value instanceof Node2;
|
|
699
739
|
};
|
|
700
740
|
function _executeHooks(hooks2, currentNode, data) {
|
|
@@ -702,7 +742,7 @@ function createDOMPurify() {
|
|
|
702
742
|
hook.call(DOMPurify, currentNode, data, CONFIG);
|
|
703
743
|
});
|
|
704
744
|
}
|
|
705
|
-
const _sanitizeElements = function
|
|
745
|
+
const _sanitizeElements = function _sanitizeElements2(currentNode) {
|
|
706
746
|
let content = null;
|
|
707
747
|
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
708
748
|
if (_isClobbered(currentNode)) {
|
|
@@ -773,7 +813,10 @@ function createDOMPurify() {
|
|
|
773
813
|
_executeHooks(hooks.afterSanitizeElements, currentNode, null);
|
|
774
814
|
return false;
|
|
775
815
|
};
|
|
776
|
-
const _isValidAttribute = function
|
|
816
|
+
const _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) {
|
|
817
|
+
if (FORBID_ATTR[lcName]) {
|
|
818
|
+
return false;
|
|
819
|
+
}
|
|
777
820
|
if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && ((value in document2) || (value in formElement))) {
|
|
778
821
|
return false;
|
|
779
822
|
}
|
|
@@ -803,10 +846,10 @@ function createDOMPurify() {
|
|
|
803
846
|
;
|
|
804
847
|
return true;
|
|
805
848
|
};
|
|
806
|
-
const _isBasicCustomElement = function
|
|
849
|
+
const _isBasicCustomElement = function _isBasicCustomElement2(tagName) {
|
|
807
850
|
return tagName !== "annotation-xml" && stringMatch(tagName, CUSTOM_ELEMENT2);
|
|
808
851
|
};
|
|
809
|
-
const _sanitizeAttributes = function
|
|
852
|
+
const _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
|
|
810
853
|
_executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
|
|
811
854
|
const {
|
|
812
855
|
attributes
|
|
@@ -842,7 +885,7 @@ function createDOMPurify() {
|
|
|
842
885
|
_removeAttribute(name, currentNode);
|
|
843
886
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
844
887
|
}
|
|
845
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
|
|
888
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
|
|
846
889
|
_removeAttribute(name, currentNode);
|
|
847
890
|
continue;
|
|
848
891
|
}
|
|
@@ -906,7 +949,7 @@ function createDOMPurify() {
|
|
|
906
949
|
}
|
|
907
950
|
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
908
951
|
};
|
|
909
|
-
const _sanitizeShadowDOM = function
|
|
952
|
+
const _sanitizeShadowDOM = function _sanitizeShadowDOM2(fragment) {
|
|
910
953
|
let shadowNode = null;
|
|
911
954
|
const shadowIterator = _createNodeIterator(fragment);
|
|
912
955
|
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
|
@@ -915,7 +958,7 @@ function createDOMPurify() {
|
|
|
915
958
|
_sanitizeElements(shadowNode);
|
|
916
959
|
_sanitizeAttributes(shadowNode);
|
|
917
960
|
if (shadowNode.content instanceof DocumentFragment) {
|
|
918
|
-
|
|
961
|
+
_sanitizeShadowDOM2(shadowNode.content);
|
|
919
962
|
}
|
|
920
963
|
}
|
|
921
964
|
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
|
@@ -1056,7 +1099,7 @@ function createDOMPurify() {
|
|
|
1056
1099
|
}
|
|
1057
1100
|
var purify = createDOMPurify();
|
|
1058
1101
|
|
|
1059
|
-
// node_modules/.
|
|
1102
|
+
// node_modules/.bun/marked@15.0.12/node_modules/marked/lib/marked.esm.js
|
|
1060
1103
|
function _getDefaults() {
|
|
1061
1104
|
return {
|
|
1062
1105
|
async: false,
|
|
@@ -1165,7 +1208,7 @@ var def = edit(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?
|
|
|
1165
1208
|
var list = edit(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, bullet).getRegex();
|
|
1166
1209
|
var _tag = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";
|
|
1167
1210
|
var _comment = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
|
|
1168
|
-
var html2 = edit("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[
|
|
1211
|
+
var html2 = edit("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))", "i").replace("comment", _comment).replace("tag", _tag).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
|
|
1169
1212
|
var paragraph = edit(_paragraph).replace("hr", hr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _tag).getRegex();
|
|
1170
1213
|
var blockquote = edit(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", paragraph).getRegex();
|
|
1171
1214
|
var blockNormal = {
|
|
@@ -1183,7 +1226,7 @@ var blockNormal = {
|
|
|
1183
1226
|
table: noopTest,
|
|
1184
1227
|
text: blockText
|
|
1185
1228
|
};
|
|
1186
|
-
var gfmTable = edit("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", hr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3}
|
|
1229
|
+
var gfmTable = edit("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", hr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3}\t)[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _tag).getRegex();
|
|
1187
1230
|
var blockGfm = {
|
|
1188
1231
|
...blockNormal,
|
|
1189
1232
|
lheading: lheadingGfm,
|
|
@@ -3287,20 +3330,17 @@ class MarkdownRenderer {
|
|
|
3287
3330
|
return html3;
|
|
3288
3331
|
}
|
|
3289
3332
|
}
|
|
3290
|
-
// node_modules/.
|
|
3333
|
+
// node_modules/.bun/esm-env@1.2.2/node_modules/esm-env/true.js
|
|
3291
3334
|
var true_default = true;
|
|
3292
|
-
// node_modules/.
|
|
3335
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/shared/utils.js
|
|
3293
3336
|
var is_array = Array.isArray;
|
|
3294
3337
|
var index_of = Array.prototype.indexOf;
|
|
3295
3338
|
var includes = Array.prototype.includes;
|
|
3296
|
-
var array_from = Array.from;
|
|
3297
|
-
var object_keys = Object.keys;
|
|
3298
3339
|
var define_property = Object.defineProperty;
|
|
3299
3340
|
var get_descriptor = Object.getOwnPropertyDescriptor;
|
|
3300
3341
|
var object_prototype = Object.prototype;
|
|
3301
3342
|
var array_prototype = Array.prototype;
|
|
3302
3343
|
var get_prototype_of = Object.getPrototypeOf;
|
|
3303
|
-
var is_extensible = Object.isExtensible;
|
|
3304
3344
|
var noop = () => {};
|
|
3305
3345
|
function run_all(arr) {
|
|
3306
3346
|
for (var i = 0;i < arr.length; i++) {
|
|
@@ -3317,7 +3357,7 @@ function deferred() {
|
|
|
3317
3357
|
return { promise, resolve, reject };
|
|
3318
3358
|
}
|
|
3319
3359
|
|
|
3320
|
-
// node_modules/.
|
|
3360
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/constants.js
|
|
3321
3361
|
var DERIVED = 1 << 1;
|
|
3322
3362
|
var EFFECT = 1 << 2;
|
|
3323
3363
|
var RENDER_EFFECT = 1 << 3;
|
|
@@ -3333,6 +3373,7 @@ var MAYBE_DIRTY = 1 << 12;
|
|
|
3333
3373
|
var INERT = 1 << 13;
|
|
3334
3374
|
var DESTROYED = 1 << 14;
|
|
3335
3375
|
var REACTION_RAN = 1 << 15;
|
|
3376
|
+
var DESTROYING = 1 << 25;
|
|
3336
3377
|
var EFFECT_TRANSPARENT = 1 << 16;
|
|
3337
3378
|
var EAGER_EFFECT = 1 << 17;
|
|
3338
3379
|
var HEAD_EFFECT = 1 << 18;
|
|
@@ -3354,17 +3395,27 @@ var STALE_REACTION = new class StaleReactionError extends Error {
|
|
|
3354
3395
|
var IS_XHTML = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
3355
3396
|
var COMMENT_NODE = 8;
|
|
3356
3397
|
|
|
3357
|
-
// node_modules/.
|
|
3398
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
3358
3399
|
function equals(value) {
|
|
3359
3400
|
return value === this.v;
|
|
3360
3401
|
}
|
|
3361
3402
|
function safe_not_equal(a, b) {
|
|
3362
3403
|
return a != a ? b == b : a !== b || a !== null && typeof a === "object" || typeof a === "function";
|
|
3363
3404
|
}
|
|
3364
|
-
|
|
3365
|
-
|
|
3405
|
+
|
|
3406
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/shared/errors.js
|
|
3407
|
+
function invariant_violation(message) {
|
|
3408
|
+
if (true_default) {
|
|
3409
|
+
const error = new Error(`invariant_violation
|
|
3410
|
+
An invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app — please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${message}"
|
|
3411
|
+
https://svelte.dev/e/invariant_violation`);
|
|
3412
|
+
error.name = "Svelte error";
|
|
3413
|
+
throw error;
|
|
3414
|
+
} else {
|
|
3415
|
+
throw new Error(`https://svelte.dev/e/invariant_violation`);
|
|
3416
|
+
}
|
|
3366
3417
|
}
|
|
3367
|
-
// node_modules/.
|
|
3418
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/errors.js
|
|
3368
3419
|
function derived_references_self() {
|
|
3369
3420
|
if (true_default) {
|
|
3370
3421
|
const error = new Error(`derived_references_self
|
|
@@ -3387,28 +3438,6 @@ https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
|
3387
3438
|
throw new Error(`https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
3388
3439
|
}
|
|
3389
3440
|
}
|
|
3390
|
-
function hydration_failed() {
|
|
3391
|
-
if (true_default) {
|
|
3392
|
-
const error = new Error(`hydration_failed
|
|
3393
|
-
Failed to hydrate the application
|
|
3394
|
-
https://svelte.dev/e/hydration_failed`);
|
|
3395
|
-
error.name = "Svelte error";
|
|
3396
|
-
throw error;
|
|
3397
|
-
} else {
|
|
3398
|
-
throw new Error(`https://svelte.dev/e/hydration_failed`);
|
|
3399
|
-
}
|
|
3400
|
-
}
|
|
3401
|
-
function rune_outside_svelte(rune) {
|
|
3402
|
-
if (true_default) {
|
|
3403
|
-
const error = new Error(`rune_outside_svelte
|
|
3404
|
-
The \`${rune}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
3405
|
-
https://svelte.dev/e/rune_outside_svelte`);
|
|
3406
|
-
error.name = "Svelte error";
|
|
3407
|
-
throw error;
|
|
3408
|
-
} else {
|
|
3409
|
-
throw new Error(`https://svelte.dev/e/rune_outside_svelte`);
|
|
3410
|
-
}
|
|
3411
|
-
}
|
|
3412
3441
|
function state_descriptors_fixed() {
|
|
3413
3442
|
if (true_default) {
|
|
3414
3443
|
const error = new Error(`state_descriptors_fixed
|
|
@@ -3454,12 +3483,12 @@ https://svelte.dev/e/svelte_boundary_reset_onerror`);
|
|
|
3454
3483
|
}
|
|
3455
3484
|
}
|
|
3456
3485
|
|
|
3457
|
-
// node_modules/.
|
|
3486
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/flags/index.js
|
|
3458
3487
|
var async_mode_flag = false;
|
|
3459
3488
|
var legacy_mode_flag = false;
|
|
3460
3489
|
var tracing_mode_flag = false;
|
|
3461
3490
|
|
|
3462
|
-
// node_modules/.
|
|
3491
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/constants.js
|
|
3463
3492
|
var EACH_INDEX_REACTIVE = 1 << 1;
|
|
3464
3493
|
var EACH_IS_CONTROLLED = 1 << 2;
|
|
3465
3494
|
var EACH_IS_ANIMATED = 1 << 3;
|
|
@@ -3483,9 +3512,8 @@ var ELEMENT_IS_INPUT = 1 << 2;
|
|
|
3483
3512
|
var UNINITIALIZED = Symbol();
|
|
3484
3513
|
var FILENAME = Symbol("filename");
|
|
3485
3514
|
var HMR = Symbol("hmr");
|
|
3486
|
-
var NAMESPACE_HTML = "http://www.w3.org/1999/xhtml";
|
|
3487
3515
|
|
|
3488
|
-
// node_modules/.
|
|
3516
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dev/tracing.js
|
|
3489
3517
|
var tracing_expressions = null;
|
|
3490
3518
|
function tag2(source, label) {
|
|
3491
3519
|
source.label = label;
|
|
@@ -3497,7 +3525,7 @@ function tag_proxy(value, label) {
|
|
|
3497
3525
|
return value;
|
|
3498
3526
|
}
|
|
3499
3527
|
|
|
3500
|
-
// node_modules/.
|
|
3528
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/shared/dev.js
|
|
3501
3529
|
function get_error(label) {
|
|
3502
3530
|
const error = new Error;
|
|
3503
3531
|
const stack = get_stack();
|
|
@@ -3541,8 +3569,15 @@ function get_stack() {
|
|
|
3541
3569
|
}
|
|
3542
3570
|
return new_lines;
|
|
3543
3571
|
}
|
|
3572
|
+
function invariant(condition, message) {
|
|
3573
|
+
if (!true_default) {
|
|
3574
|
+
throw new Error("invariant(...) was not guarded by if (DEV)");
|
|
3575
|
+
}
|
|
3576
|
+
if (!condition)
|
|
3577
|
+
invariant_violation(message);
|
|
3578
|
+
}
|
|
3544
3579
|
|
|
3545
|
-
// node_modules/.
|
|
3580
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/context.js
|
|
3546
3581
|
var component_context = null;
|
|
3547
3582
|
function set_component_context(context) {
|
|
3548
3583
|
component_context = context;
|
|
@@ -3555,45 +3590,11 @@ var dev_current_component_function = null;
|
|
|
3555
3590
|
function set_dev_current_component_function(fn) {
|
|
3556
3591
|
dev_current_component_function = fn;
|
|
3557
3592
|
}
|
|
3558
|
-
function push(props, runes = false, fn) {
|
|
3559
|
-
component_context = {
|
|
3560
|
-
p: component_context,
|
|
3561
|
-
i: false,
|
|
3562
|
-
c: null,
|
|
3563
|
-
e: null,
|
|
3564
|
-
s: props,
|
|
3565
|
-
x: null,
|
|
3566
|
-
l: legacy_mode_flag && !runes ? { s: null, u: null, $: [] } : null
|
|
3567
|
-
};
|
|
3568
|
-
if (true_default) {
|
|
3569
|
-
component_context.function = fn;
|
|
3570
|
-
dev_current_component_function = fn;
|
|
3571
|
-
}
|
|
3572
|
-
}
|
|
3573
|
-
function pop(component) {
|
|
3574
|
-
var context = component_context;
|
|
3575
|
-
var effects = context.e;
|
|
3576
|
-
if (effects !== null) {
|
|
3577
|
-
context.e = null;
|
|
3578
|
-
for (var fn of effects) {
|
|
3579
|
-
create_user_effect(fn);
|
|
3580
|
-
}
|
|
3581
|
-
}
|
|
3582
|
-
if (component !== undefined) {
|
|
3583
|
-
context.x = component;
|
|
3584
|
-
}
|
|
3585
|
-
context.i = true;
|
|
3586
|
-
component_context = context.p;
|
|
3587
|
-
if (true_default) {
|
|
3588
|
-
dev_current_component_function = component_context?.function ?? null;
|
|
3589
|
-
}
|
|
3590
|
-
return component ?? {};
|
|
3591
|
-
}
|
|
3592
3593
|
function is_runes() {
|
|
3593
3594
|
return !legacy_mode_flag || component_context !== null && component_context.l === null;
|
|
3594
3595
|
}
|
|
3595
3596
|
|
|
3596
|
-
// node_modules/.
|
|
3597
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/task.js
|
|
3597
3598
|
var micro_tasks = [];
|
|
3598
3599
|
function run_micro_tasks() {
|
|
3599
3600
|
var tasks = micro_tasks;
|
|
@@ -3610,15 +3611,19 @@ function queue_micro_task(fn) {
|
|
|
3610
3611
|
}
|
|
3611
3612
|
micro_tasks.push(fn);
|
|
3612
3613
|
}
|
|
3613
|
-
function flush_tasks() {
|
|
3614
|
-
while (micro_tasks.length > 0) {
|
|
3615
|
-
run_micro_tasks();
|
|
3616
|
-
}
|
|
3617
|
-
}
|
|
3618
3614
|
|
|
3619
|
-
// node_modules/.
|
|
3615
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/warnings.js
|
|
3620
3616
|
var bold = "font-weight: bold";
|
|
3621
3617
|
var normal = "font-weight: normal";
|
|
3618
|
+
function await_reactivity_loss(name) {
|
|
3619
|
+
if (true_default) {
|
|
3620
|
+
console.warn(`%c[svelte] await_reactivity_loss
|
|
3621
|
+
%cDetected reactivity loss when reading \`${name}\`. This happens when state is read in an async function after an earlier \`await\`
|
|
3622
|
+
https://svelte.dev/e/await_reactivity_loss`, bold, normal);
|
|
3623
|
+
} else {
|
|
3624
|
+
console.warn(`https://svelte.dev/e/await_reactivity_loss`);
|
|
3625
|
+
}
|
|
3626
|
+
}
|
|
3622
3627
|
function hydration_mismatch(location) {
|
|
3623
3628
|
if (true_default) {
|
|
3624
3629
|
console.warn(`%c[svelte] hydration_mismatch
|
|
@@ -3628,33 +3633,6 @@ https://svelte.dev/e/hydration_mismatch`, bold, normal);
|
|
|
3628
3633
|
console.warn(`https://svelte.dev/e/hydration_mismatch`);
|
|
3629
3634
|
}
|
|
3630
3635
|
}
|
|
3631
|
-
function lifecycle_double_unmount() {
|
|
3632
|
-
if (true_default) {
|
|
3633
|
-
console.warn(`%c[svelte] lifecycle_double_unmount
|
|
3634
|
-
%cTried to unmount a component that was not mounted
|
|
3635
|
-
https://svelte.dev/e/lifecycle_double_unmount`, bold, normal);
|
|
3636
|
-
} else {
|
|
3637
|
-
console.warn(`https://svelte.dev/e/lifecycle_double_unmount`);
|
|
3638
|
-
}
|
|
3639
|
-
}
|
|
3640
|
-
function state_proxy_equality_mismatch(operator) {
|
|
3641
|
-
if (true_default) {
|
|
3642
|
-
console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
3643
|
-
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${operator}\` will produce unexpected results
|
|
3644
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`, bold, normal);
|
|
3645
|
-
} else {
|
|
3646
|
-
console.warn(`https://svelte.dev/e/state_proxy_equality_mismatch`);
|
|
3647
|
-
}
|
|
3648
|
-
}
|
|
3649
|
-
function state_proxy_unmount() {
|
|
3650
|
-
if (true_default) {
|
|
3651
|
-
console.warn(`%c[svelte] state_proxy_unmount
|
|
3652
|
-
%cTried to unmount a state proxy, rather than a component
|
|
3653
|
-
https://svelte.dev/e/state_proxy_unmount`, bold, normal);
|
|
3654
|
-
} else {
|
|
3655
|
-
console.warn(`https://svelte.dev/e/state_proxy_unmount`);
|
|
3656
|
-
}
|
|
3657
|
-
}
|
|
3658
3636
|
function svelte_boundary_reset_noop() {
|
|
3659
3637
|
if (true_default) {
|
|
3660
3638
|
console.warn(`%c[svelte] svelte_boundary_reset_noop
|
|
@@ -3665,11 +3643,8 @@ https://svelte.dev/e/svelte_boundary_reset_noop`, bold, normal);
|
|
|
3665
3643
|
}
|
|
3666
3644
|
}
|
|
3667
3645
|
|
|
3668
|
-
// node_modules/.
|
|
3646
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
3669
3647
|
var hydrating = false;
|
|
3670
|
-
function set_hydrating(value) {
|
|
3671
|
-
hydrating = value;
|
|
3672
|
-
}
|
|
3673
3648
|
var hydrate_node;
|
|
3674
3649
|
function set_hydrate_node(node) {
|
|
3675
3650
|
if (node === null) {
|
|
@@ -3712,7 +3687,7 @@ function skip_nodes(remove = true) {
|
|
|
3712
3687
|
}
|
|
3713
3688
|
}
|
|
3714
3689
|
|
|
3715
|
-
// node_modules/.
|
|
3690
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/proxy.js
|
|
3716
3691
|
var regex_is_valid_identifier = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
3717
3692
|
function proxy(value) {
|
|
3718
3693
|
if (typeof value !== "object" || value === null || STATE_SYMBOL in value) {
|
|
@@ -3939,14 +3914,6 @@ function get_label(path, prop) {
|
|
|
3939
3914
|
return `${path}.${prop}`;
|
|
3940
3915
|
return /^\d+$/.test(prop) ? `${path}[${prop}]` : `${path}['${prop}']`;
|
|
3941
3916
|
}
|
|
3942
|
-
function get_proxied_value(value) {
|
|
3943
|
-
try {
|
|
3944
|
-
if (value !== null && typeof value === "object" && STATE_SYMBOL in value) {
|
|
3945
|
-
return value[STATE_SYMBOL];
|
|
3946
|
-
}
|
|
3947
|
-
} catch {}
|
|
3948
|
-
return value;
|
|
3949
|
-
}
|
|
3950
3917
|
var ARRAY_MUTATING_METHODS = new Set([
|
|
3951
3918
|
"copyWithin",
|
|
3952
3919
|
"fill",
|
|
@@ -3975,116 +3942,17 @@ function inspectable_array(array) {
|
|
|
3975
3942
|
});
|
|
3976
3943
|
}
|
|
3977
3944
|
|
|
3978
|
-
// node_modules/.
|
|
3979
|
-
function init_array_prototype_warnings() {
|
|
3980
|
-
const array_prototype2 = Array.prototype;
|
|
3981
|
-
const cleanup = Array.__svelte_cleanup;
|
|
3982
|
-
if (cleanup) {
|
|
3983
|
-
cleanup();
|
|
3984
|
-
}
|
|
3985
|
-
const { indexOf, lastIndexOf, includes: includes2 } = array_prototype2;
|
|
3986
|
-
array_prototype2.indexOf = function(item, from_index) {
|
|
3987
|
-
const index = indexOf.call(this, item, from_index);
|
|
3988
|
-
if (index === -1) {
|
|
3989
|
-
for (let i = from_index ?? 0;i < this.length; i += 1) {
|
|
3990
|
-
if (get_proxied_value(this[i]) === item) {
|
|
3991
|
-
state_proxy_equality_mismatch("array.indexOf(...)");
|
|
3992
|
-
break;
|
|
3993
|
-
}
|
|
3994
|
-
}
|
|
3995
|
-
}
|
|
3996
|
-
return index;
|
|
3997
|
-
};
|
|
3998
|
-
array_prototype2.lastIndexOf = function(item, from_index) {
|
|
3999
|
-
const index = lastIndexOf.call(this, item, from_index ?? this.length - 1);
|
|
4000
|
-
if (index === -1) {
|
|
4001
|
-
for (let i = 0;i <= (from_index ?? this.length - 1); i += 1) {
|
|
4002
|
-
if (get_proxied_value(this[i]) === item) {
|
|
4003
|
-
state_proxy_equality_mismatch("array.lastIndexOf(...)");
|
|
4004
|
-
break;
|
|
4005
|
-
}
|
|
4006
|
-
}
|
|
4007
|
-
}
|
|
4008
|
-
return index;
|
|
4009
|
-
};
|
|
4010
|
-
array_prototype2.includes = function(item, from_index) {
|
|
4011
|
-
const has = includes2.call(this, item, from_index);
|
|
4012
|
-
if (!has) {
|
|
4013
|
-
for (let i = 0;i < this.length; i += 1) {
|
|
4014
|
-
if (get_proxied_value(this[i]) === item) {
|
|
4015
|
-
state_proxy_equality_mismatch("array.includes(...)");
|
|
4016
|
-
break;
|
|
4017
|
-
}
|
|
4018
|
-
}
|
|
4019
|
-
}
|
|
4020
|
-
return has;
|
|
4021
|
-
};
|
|
4022
|
-
Array.__svelte_cleanup = () => {
|
|
4023
|
-
array_prototype2.indexOf = indexOf;
|
|
4024
|
-
array_prototype2.lastIndexOf = lastIndexOf;
|
|
4025
|
-
array_prototype2.includes = includes2;
|
|
4026
|
-
};
|
|
4027
|
-
}
|
|
4028
|
-
|
|
4029
|
-
// node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/operations.js
|
|
4030
|
-
var $window;
|
|
4031
|
-
var $document;
|
|
3945
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/operations.js
|
|
4032
3946
|
var is_firefox;
|
|
4033
|
-
var first_child_getter;
|
|
4034
3947
|
var next_sibling_getter;
|
|
4035
|
-
function init_operations() {
|
|
4036
|
-
if ($window !== undefined) {
|
|
4037
|
-
return;
|
|
4038
|
-
}
|
|
4039
|
-
$window = window;
|
|
4040
|
-
$document = document;
|
|
4041
|
-
is_firefox = /Firefox/.test(navigator.userAgent);
|
|
4042
|
-
var element_prototype = Element.prototype;
|
|
4043
|
-
var node_prototype = Node.prototype;
|
|
4044
|
-
var text_prototype = Text.prototype;
|
|
4045
|
-
first_child_getter = get_descriptor(node_prototype, "firstChild").get;
|
|
4046
|
-
next_sibling_getter = get_descriptor(node_prototype, "nextSibling").get;
|
|
4047
|
-
if (is_extensible(element_prototype)) {
|
|
4048
|
-
element_prototype.__click = undefined;
|
|
4049
|
-
element_prototype.__className = undefined;
|
|
4050
|
-
element_prototype.__attributes = null;
|
|
4051
|
-
element_prototype.__style = undefined;
|
|
4052
|
-
element_prototype.__e = undefined;
|
|
4053
|
-
}
|
|
4054
|
-
if (is_extensible(text_prototype)) {
|
|
4055
|
-
text_prototype.__t = undefined;
|
|
4056
|
-
}
|
|
4057
|
-
if (true_default) {
|
|
4058
|
-
element_prototype.__svelte_meta = null;
|
|
4059
|
-
init_array_prototype_warnings();
|
|
4060
|
-
}
|
|
4061
|
-
}
|
|
4062
3948
|
function create_text(value = "") {
|
|
4063
3949
|
return document.createTextNode(value);
|
|
4064
3950
|
}
|
|
4065
|
-
function get_first_child(node) {
|
|
4066
|
-
return first_child_getter.call(node);
|
|
4067
|
-
}
|
|
4068
3951
|
function get_next_sibling(node) {
|
|
4069
3952
|
return next_sibling_getter.call(node);
|
|
4070
3953
|
}
|
|
4071
|
-
function clear_text_content(node) {
|
|
4072
|
-
node.textContent = "";
|
|
4073
|
-
}
|
|
4074
|
-
function should_defer_append() {
|
|
4075
|
-
if (!async_mode_flag)
|
|
4076
|
-
return false;
|
|
4077
|
-
if (eager_block_effects !== null)
|
|
4078
|
-
return false;
|
|
4079
|
-
var flags = active_effect.f;
|
|
4080
|
-
return (flags & REACTION_RAN) !== 0;
|
|
4081
|
-
}
|
|
4082
|
-
function create_element(tag3, namespace, is) {
|
|
4083
|
-
let options2 = is ? { is } : undefined;
|
|
4084
|
-
return document.createElementNS(namespace ?? NAMESPACE_HTML, tag3, options2);
|
|
4085
|
-
}
|
|
4086
3954
|
|
|
4087
|
-
// node_modules/.
|
|
3955
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/error-handling.js
|
|
4088
3956
|
var adjustments = new WeakMap;
|
|
4089
3957
|
function handle_error(error) {
|
|
4090
3958
|
var effect = active_effect;
|
|
@@ -4157,7 +4025,7 @@ function apply_adjustments(error) {
|
|
|
4157
4025
|
}
|
|
4158
4026
|
}
|
|
4159
4027
|
|
|
4160
|
-
// node_modules/.
|
|
4028
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
4161
4029
|
var STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
|
|
4162
4030
|
function set_signal_status(signal, status) {
|
|
4163
4031
|
signal.f = signal.f & STATUS_MASK | status;
|
|
@@ -4170,7 +4038,7 @@ function update_derived_status(derived) {
|
|
|
4170
4038
|
}
|
|
4171
4039
|
}
|
|
4172
4040
|
|
|
4173
|
-
// node_modules/.
|
|
4041
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
4174
4042
|
function clear_marked(deps) {
|
|
4175
4043
|
if (deps === null)
|
|
4176
4044
|
return;
|
|
@@ -4192,17 +4060,70 @@ function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
|
|
|
4192
4060
|
set_signal_status(effect, CLEAN);
|
|
4193
4061
|
}
|
|
4194
4062
|
|
|
4195
|
-
// node_modules/.
|
|
4063
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/store/shared/index.js
|
|
4064
|
+
var subscriber_queue = [];
|
|
4065
|
+
function writable(value, start = noop) {
|
|
4066
|
+
let stop = null;
|
|
4067
|
+
const subscribers = new Set;
|
|
4068
|
+
function set2(new_value) {
|
|
4069
|
+
if (safe_not_equal(value, new_value)) {
|
|
4070
|
+
value = new_value;
|
|
4071
|
+
if (stop) {
|
|
4072
|
+
const run_queue = !subscriber_queue.length;
|
|
4073
|
+
for (const subscriber of subscribers) {
|
|
4074
|
+
subscriber[1]();
|
|
4075
|
+
subscriber_queue.push(subscriber, value);
|
|
4076
|
+
}
|
|
4077
|
+
if (run_queue) {
|
|
4078
|
+
for (let i = 0;i < subscriber_queue.length; i += 2) {
|
|
4079
|
+
subscriber_queue[i][0](subscriber_queue[i + 1]);
|
|
4080
|
+
}
|
|
4081
|
+
subscriber_queue.length = 0;
|
|
4082
|
+
}
|
|
4083
|
+
}
|
|
4084
|
+
}
|
|
4085
|
+
}
|
|
4086
|
+
function update(fn) {
|
|
4087
|
+
set2(fn(value));
|
|
4088
|
+
}
|
|
4089
|
+
function subscribe(run, invalidate = noop) {
|
|
4090
|
+
const subscriber = [run, invalidate];
|
|
4091
|
+
subscribers.add(subscriber);
|
|
4092
|
+
if (subscribers.size === 1) {
|
|
4093
|
+
stop = start(set2, update) || noop;
|
|
4094
|
+
}
|
|
4095
|
+
run(value);
|
|
4096
|
+
return () => {
|
|
4097
|
+
subscribers.delete(subscriber);
|
|
4098
|
+
if (subscribers.size === 0 && stop) {
|
|
4099
|
+
stop();
|
|
4100
|
+
stop = null;
|
|
4101
|
+
}
|
|
4102
|
+
};
|
|
4103
|
+
}
|
|
4104
|
+
return { set: set2, update, subscribe };
|
|
4105
|
+
}
|
|
4106
|
+
|
|
4107
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
4108
|
+
var legacy_is_updating_store = false;
|
|
4109
|
+
var IS_UNMOUNTED = Symbol();
|
|
4110
|
+
|
|
4111
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
4196
4112
|
var batches = new Set;
|
|
4197
4113
|
var current_batch = null;
|
|
4198
4114
|
var previous_batch = null;
|
|
4199
4115
|
var batch_values = null;
|
|
4200
|
-
var queued_root_effects = [];
|
|
4201
4116
|
var last_scheduled_effect = null;
|
|
4202
4117
|
var is_flushing_sync = false;
|
|
4118
|
+
var is_processing = false;
|
|
4203
4119
|
var collected_effects = null;
|
|
4120
|
+
var legacy_updates = null;
|
|
4121
|
+
var flush_count = 0;
|
|
4122
|
+
var source_stacks = true_default ? new Set : null;
|
|
4123
|
+
var uid = 1;
|
|
4204
4124
|
|
|
4205
4125
|
class Batch {
|
|
4126
|
+
id = uid++;
|
|
4206
4127
|
current = new Map;
|
|
4207
4128
|
previous = new Map;
|
|
4208
4129
|
#commit_callbacks = new Set;
|
|
@@ -4210,6 +4131,7 @@ class Batch {
|
|
|
4210
4131
|
#pending = 0;
|
|
4211
4132
|
#blocking_pending = 0;
|
|
4212
4133
|
#deferred = null;
|
|
4134
|
+
#roots = [];
|
|
4213
4135
|
#dirty_effects = new Set;
|
|
4214
4136
|
#maybe_dirty_effects = new Set;
|
|
4215
4137
|
#skipped_branches = new Map;
|
|
@@ -4229,23 +4151,53 @@ class Batch {
|
|
|
4229
4151
|
this.#skipped_branches.delete(effect);
|
|
4230
4152
|
for (var e of tracked.d) {
|
|
4231
4153
|
set_signal_status(e, DIRTY);
|
|
4232
|
-
|
|
4154
|
+
this.schedule(e);
|
|
4233
4155
|
}
|
|
4234
4156
|
for (e of tracked.m) {
|
|
4235
4157
|
set_signal_status(e, MAYBE_DIRTY);
|
|
4236
|
-
|
|
4158
|
+
this.schedule(e);
|
|
4237
4159
|
}
|
|
4238
4160
|
}
|
|
4239
4161
|
}
|
|
4240
|
-
process(
|
|
4241
|
-
|
|
4162
|
+
#process() {
|
|
4163
|
+
if (flush_count++ > 1000) {
|
|
4164
|
+
batches.delete(this);
|
|
4165
|
+
infinite_loop_guard();
|
|
4166
|
+
}
|
|
4167
|
+
if (!this.#is_deferred()) {
|
|
4168
|
+
for (const e of this.#dirty_effects) {
|
|
4169
|
+
this.#maybe_dirty_effects.delete(e);
|
|
4170
|
+
set_signal_status(e, DIRTY);
|
|
4171
|
+
this.schedule(e);
|
|
4172
|
+
}
|
|
4173
|
+
for (const e of this.#maybe_dirty_effects) {
|
|
4174
|
+
set_signal_status(e, MAYBE_DIRTY);
|
|
4175
|
+
this.schedule(e);
|
|
4176
|
+
}
|
|
4177
|
+
}
|
|
4178
|
+
const roots = this.#roots;
|
|
4179
|
+
this.#roots = [];
|
|
4242
4180
|
this.apply();
|
|
4243
4181
|
var effects = collected_effects = [];
|
|
4244
4182
|
var render_effects = [];
|
|
4245
|
-
|
|
4246
|
-
|
|
4183
|
+
var updates = legacy_updates = [];
|
|
4184
|
+
for (const root of roots) {
|
|
4185
|
+
try {
|
|
4186
|
+
this.#traverse(root, effects, render_effects);
|
|
4187
|
+
} catch (e) {
|
|
4188
|
+
reset_all(root);
|
|
4189
|
+
throw e;
|
|
4190
|
+
}
|
|
4191
|
+
}
|
|
4192
|
+
current_batch = null;
|
|
4193
|
+
if (updates.length > 0) {
|
|
4194
|
+
var batch = Batch.ensure();
|
|
4195
|
+
for (const e of updates) {
|
|
4196
|
+
batch.schedule(e);
|
|
4197
|
+
}
|
|
4247
4198
|
}
|
|
4248
4199
|
collected_effects = null;
|
|
4200
|
+
legacy_updates = null;
|
|
4249
4201
|
if (this.#is_deferred()) {
|
|
4250
4202
|
this.#defer_effects(render_effects);
|
|
4251
4203
|
this.#defer_effects(effects);
|
|
@@ -4253,24 +4205,39 @@ class Batch {
|
|
|
4253
4205
|
reset_branch(e, t);
|
|
4254
4206
|
}
|
|
4255
4207
|
} else {
|
|
4256
|
-
|
|
4257
|
-
|
|
4208
|
+
if (this.#pending === 0) {
|
|
4209
|
+
batches.delete(this);
|
|
4210
|
+
}
|
|
4211
|
+
this.#dirty_effects.clear();
|
|
4212
|
+
this.#maybe_dirty_effects.clear();
|
|
4258
4213
|
for (const fn of this.#commit_callbacks)
|
|
4259
4214
|
fn(this);
|
|
4260
4215
|
this.#commit_callbacks.clear();
|
|
4261
|
-
|
|
4262
|
-
this.#commit();
|
|
4263
|
-
}
|
|
4216
|
+
previous_batch = this;
|
|
4264
4217
|
flush_queued_effects(render_effects);
|
|
4265
4218
|
flush_queued_effects(effects);
|
|
4266
|
-
this.#dirty_effects.clear();
|
|
4267
|
-
this.#maybe_dirty_effects.clear();
|
|
4268
4219
|
previous_batch = null;
|
|
4269
4220
|
this.#deferred?.resolve();
|
|
4270
4221
|
}
|
|
4271
|
-
|
|
4222
|
+
var next_batch = current_batch;
|
|
4223
|
+
if (this.#roots.length > 0) {
|
|
4224
|
+
const batch2 = next_batch ??= this;
|
|
4225
|
+
batch2.#roots.push(...this.#roots.filter((r) => !batch2.#roots.includes(r)));
|
|
4226
|
+
}
|
|
4227
|
+
if (next_batch !== null) {
|
|
4228
|
+
batches.add(next_batch);
|
|
4229
|
+
if (true_default) {
|
|
4230
|
+
for (const source2 of this.current.keys()) {
|
|
4231
|
+
source_stacks.add(source2);
|
|
4232
|
+
}
|
|
4233
|
+
}
|
|
4234
|
+
next_batch.#process();
|
|
4235
|
+
}
|
|
4236
|
+
if (!batches.has(this)) {
|
|
4237
|
+
this.#commit();
|
|
4238
|
+
}
|
|
4272
4239
|
}
|
|
4273
|
-
#
|
|
4240
|
+
#traverse(root, effects, render_effects) {
|
|
4274
4241
|
root.f ^= CLEAN;
|
|
4275
4242
|
var effect = root.first;
|
|
4276
4243
|
while (effect !== null) {
|
|
@@ -4311,9 +4278,9 @@ class Batch {
|
|
|
4311
4278
|
defer_effect(effects[i], this.#dirty_effects, this.#maybe_dirty_effects);
|
|
4312
4279
|
}
|
|
4313
4280
|
}
|
|
4314
|
-
capture(source2,
|
|
4315
|
-
if (
|
|
4316
|
-
this.previous.set(source2,
|
|
4281
|
+
capture(source2, old_value) {
|
|
4282
|
+
if (old_value !== UNINITIALIZED && !this.previous.has(source2)) {
|
|
4283
|
+
this.previous.set(source2, old_value);
|
|
4317
4284
|
}
|
|
4318
4285
|
if ((source2.f & ERROR_VALUE) === 0) {
|
|
4319
4286
|
this.current.set(source2, source2.v);
|
|
@@ -4322,115 +4289,105 @@ class Batch {
|
|
|
4322
4289
|
}
|
|
4323
4290
|
activate() {
|
|
4324
4291
|
current_batch = this;
|
|
4325
|
-
this.apply();
|
|
4326
4292
|
}
|
|
4327
4293
|
deactivate() {
|
|
4328
|
-
if (current_batch !== this)
|
|
4329
|
-
return;
|
|
4330
4294
|
current_batch = null;
|
|
4331
4295
|
batch_values = null;
|
|
4332
4296
|
}
|
|
4333
4297
|
flush() {
|
|
4334
|
-
|
|
4298
|
+
var source_stacks2 = true_default ? new Set : null;
|
|
4299
|
+
try {
|
|
4300
|
+
is_processing = true;
|
|
4335
4301
|
current_batch = this;
|
|
4336
|
-
|
|
4337
|
-
}
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4302
|
+
this.#process();
|
|
4303
|
+
} finally {
|
|
4304
|
+
flush_count = 0;
|
|
4305
|
+
last_scheduled_effect = null;
|
|
4306
|
+
collected_effects = null;
|
|
4307
|
+
legacy_updates = null;
|
|
4308
|
+
is_processing = false;
|
|
4309
|
+
current_batch = null;
|
|
4310
|
+
batch_values = null;
|
|
4311
|
+
old_values.clear();
|
|
4312
|
+
if (true_default) {
|
|
4313
|
+
for (const source2 of source_stacks2) {
|
|
4314
|
+
source2.updated = null;
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4343
4317
|
}
|
|
4344
|
-
this.deactivate();
|
|
4345
4318
|
}
|
|
4346
4319
|
discard() {
|
|
4347
4320
|
for (const fn of this.#discard_callbacks)
|
|
4348
4321
|
fn(this);
|
|
4349
4322
|
this.#discard_callbacks.clear();
|
|
4323
|
+
batches.delete(this);
|
|
4350
4324
|
}
|
|
4351
4325
|
#commit() {
|
|
4352
|
-
|
|
4353
|
-
this.
|
|
4354
|
-
var
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
}
|
|
4362
|
-
const sources = [];
|
|
4363
|
-
for (const [source2, value] of this.current) {
|
|
4364
|
-
if (batch.current.has(source2)) {
|
|
4365
|
-
if (is_earlier && value !== batch.current.get(source2)) {
|
|
4366
|
-
batch.current.set(source2, value);
|
|
4367
|
-
} else {
|
|
4368
|
-
continue;
|
|
4369
|
-
}
|
|
4326
|
+
for (const batch of batches) {
|
|
4327
|
+
var is_earlier = batch.id < this.id;
|
|
4328
|
+
var sources = [];
|
|
4329
|
+
for (const [source3, value] of this.current) {
|
|
4330
|
+
if (batch.current.has(source3)) {
|
|
4331
|
+
if (is_earlier && value !== batch.current.get(source3)) {
|
|
4332
|
+
batch.current.set(source3, value);
|
|
4333
|
+
} else {
|
|
4334
|
+
continue;
|
|
4370
4335
|
}
|
|
4371
|
-
sources.push(source2);
|
|
4372
4336
|
}
|
|
4373
|
-
|
|
4374
|
-
|
|
4337
|
+
sources.push(source3);
|
|
4338
|
+
}
|
|
4339
|
+
var others = [...batch.current.keys()].filter((s) => !this.current.has(s));
|
|
4340
|
+
if (others.length === 0) {
|
|
4341
|
+
if (is_earlier) {
|
|
4342
|
+
batch.discard();
|
|
4375
4343
|
}
|
|
4376
|
-
|
|
4377
|
-
if (
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
}
|
|
4391
|
-
batch.deactivate();
|
|
4344
|
+
} else if (sources.length > 0) {
|
|
4345
|
+
if (true_default) {
|
|
4346
|
+
invariant(batch.#roots.length === 0, "Batch has scheduled roots");
|
|
4347
|
+
}
|
|
4348
|
+
batch.activate();
|
|
4349
|
+
var marked2 = new Set;
|
|
4350
|
+
var checked = new Map;
|
|
4351
|
+
for (var source2 of sources) {
|
|
4352
|
+
mark_effects(source2, others, marked2, checked);
|
|
4353
|
+
}
|
|
4354
|
+
if (batch.#roots.length > 0) {
|
|
4355
|
+
batch.apply();
|
|
4356
|
+
for (var root of batch.#roots) {
|
|
4357
|
+
batch.#traverse(root, [], []);
|
|
4392
4358
|
}
|
|
4393
|
-
|
|
4359
|
+
batch.#roots = [];
|
|
4394
4360
|
}
|
|
4361
|
+
batch.deactivate();
|
|
4395
4362
|
}
|
|
4396
|
-
current_batch = previous_batch2;
|
|
4397
|
-
batch_values = previous_batch_values;
|
|
4398
4363
|
}
|
|
4399
|
-
this.#skipped_branches.clear();
|
|
4400
|
-
batches.delete(this);
|
|
4401
4364
|
}
|
|
4402
4365
|
increment(blocking) {
|
|
4403
4366
|
this.#pending += 1;
|
|
4404
4367
|
if (blocking)
|
|
4405
4368
|
this.#blocking_pending += 1;
|
|
4406
4369
|
}
|
|
4407
|
-
decrement(blocking) {
|
|
4370
|
+
decrement(blocking, skip) {
|
|
4408
4371
|
this.#pending -= 1;
|
|
4409
4372
|
if (blocking)
|
|
4410
4373
|
this.#blocking_pending -= 1;
|
|
4411
|
-
if (this.#decrement_queued)
|
|
4374
|
+
if (this.#decrement_queued || skip)
|
|
4412
4375
|
return;
|
|
4413
4376
|
this.#decrement_queued = true;
|
|
4414
4377
|
queue_micro_task(() => {
|
|
4415
4378
|
this.#decrement_queued = false;
|
|
4416
|
-
|
|
4417
|
-
this.revive();
|
|
4418
|
-
} else if (queued_root_effects.length > 0) {
|
|
4419
|
-
this.flush();
|
|
4420
|
-
}
|
|
4379
|
+
this.flush();
|
|
4421
4380
|
});
|
|
4422
4381
|
}
|
|
4423
|
-
|
|
4424
|
-
for (const e of
|
|
4425
|
-
this.#
|
|
4426
|
-
set_signal_status(e, DIRTY);
|
|
4427
|
-
schedule_effect(e);
|
|
4382
|
+
transfer_effects(dirty_effects, maybe_dirty_effects) {
|
|
4383
|
+
for (const e of dirty_effects) {
|
|
4384
|
+
this.#dirty_effects.add(e);
|
|
4428
4385
|
}
|
|
4429
|
-
for (const e of
|
|
4430
|
-
|
|
4431
|
-
schedule_effect(e);
|
|
4386
|
+
for (const e of maybe_dirty_effects) {
|
|
4387
|
+
this.#maybe_dirty_effects.add(e);
|
|
4432
4388
|
}
|
|
4433
|
-
|
|
4389
|
+
dirty_effects.clear();
|
|
4390
|
+
maybe_dirty_effects.clear();
|
|
4434
4391
|
}
|
|
4435
4392
|
oncommit(fn) {
|
|
4436
4393
|
this.#commit_callbacks.add(fn);
|
|
@@ -4444,24 +4401,28 @@ class Batch {
|
|
|
4444
4401
|
static ensure() {
|
|
4445
4402
|
if (current_batch === null) {
|
|
4446
4403
|
const batch = current_batch = new Batch;
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4404
|
+
if (!is_processing) {
|
|
4405
|
+
batches.add(current_batch);
|
|
4406
|
+
if (!is_flushing_sync) {
|
|
4407
|
+
queue_micro_task(() => {
|
|
4408
|
+
if (current_batch !== batch) {
|
|
4409
|
+
return;
|
|
4410
|
+
}
|
|
4411
|
+
batch.flush();
|
|
4412
|
+
});
|
|
4413
|
+
}
|
|
4455
4414
|
}
|
|
4456
4415
|
}
|
|
4457
4416
|
return current_batch;
|
|
4458
4417
|
}
|
|
4459
4418
|
apply() {
|
|
4460
|
-
if (!async_mode_flag || !this.is_fork && batches.size === 1)
|
|
4419
|
+
if (!async_mode_flag || !this.is_fork && batches.size === 1) {
|
|
4420
|
+
batch_values = null;
|
|
4461
4421
|
return;
|
|
4422
|
+
}
|
|
4462
4423
|
batch_values = new Map(this.current);
|
|
4463
4424
|
for (const batch of batches) {
|
|
4464
|
-
if (batch === this)
|
|
4425
|
+
if (batch === this || batch.is_fork)
|
|
4465
4426
|
continue;
|
|
4466
4427
|
for (const [source2, previous] of batch.previous) {
|
|
4467
4428
|
if (!batch_values.has(source2)) {
|
|
@@ -4470,80 +4431,52 @@ class Batch {
|
|
|
4470
4431
|
}
|
|
4471
4432
|
}
|
|
4472
4433
|
}
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4434
|
+
schedule(effect) {
|
|
4435
|
+
last_scheduled_effect = effect;
|
|
4436
|
+
if (effect.b?.is_pending && (effect.f & (EFFECT | RENDER_EFFECT | MANAGED_EFFECT)) !== 0 && (effect.f & REACTION_RAN) === 0) {
|
|
4437
|
+
effect.b.defer_effect(effect);
|
|
4438
|
+
return;
|
|
4439
|
+
}
|
|
4440
|
+
var e = effect;
|
|
4441
|
+
while (e.parent !== null) {
|
|
4442
|
+
e = e.parent;
|
|
4443
|
+
var flags = e.f;
|
|
4444
|
+
if (collected_effects !== null && e === active_effect) {
|
|
4445
|
+
if (async_mode_flag)
|
|
4446
|
+
return;
|
|
4447
|
+
if ((active_reaction === null || (active_reaction.f & DERIVED) === 0) && !legacy_is_updating_store) {
|
|
4448
|
+
return;
|
|
4449
|
+
}
|
|
4450
|
+
}
|
|
4451
|
+
if ((flags & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) {
|
|
4452
|
+
if ((flags & CLEAN) === 0) {
|
|
4453
|
+
return;
|
|
4492
4454
|
}
|
|
4455
|
+
e.f ^= CLEAN;
|
|
4493
4456
|
}
|
|
4494
|
-
flush_effects();
|
|
4495
4457
|
}
|
|
4496
|
-
|
|
4497
|
-
is_flushing_sync = was_flushing_sync;
|
|
4458
|
+
this.#roots.push(e);
|
|
4498
4459
|
}
|
|
4499
4460
|
}
|
|
4500
|
-
function
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
for (const source2 of batch.current.keys()) {
|
|
4510
|
-
for (const [stack, update2] of source2.updated ?? []) {
|
|
4511
|
-
var entry = updates.get(stack);
|
|
4512
|
-
if (!entry) {
|
|
4513
|
-
entry = { error: update2.error, count: 0 };
|
|
4514
|
-
updates.set(stack, entry);
|
|
4515
|
-
}
|
|
4516
|
-
entry.count += update2.count;
|
|
4517
|
-
}
|
|
4518
|
-
}
|
|
4519
|
-
for (const update2 of updates.values()) {
|
|
4520
|
-
if (update2.error) {
|
|
4521
|
-
console.error(update2.error);
|
|
4522
|
-
}
|
|
4523
|
-
}
|
|
4524
|
-
}
|
|
4525
|
-
infinite_loop_guard();
|
|
4526
|
-
}
|
|
4527
|
-
batch.process(queued_root_effects);
|
|
4528
|
-
old_values.clear();
|
|
4529
|
-
if (true_default) {
|
|
4530
|
-
for (const source2 of batch.current.keys()) {
|
|
4531
|
-
source_stacks.add(source2);
|
|
4461
|
+
function infinite_loop_guard() {
|
|
4462
|
+
if (true_default) {
|
|
4463
|
+
var updates = new Map;
|
|
4464
|
+
for (const source2 of current_batch.current.keys()) {
|
|
4465
|
+
for (const [stack, update2] of source2.updated ?? []) {
|
|
4466
|
+
var entry = updates.get(stack);
|
|
4467
|
+
if (!entry) {
|
|
4468
|
+
entry = { error: update2.error, count: 0 };
|
|
4469
|
+
updates.set(stack, entry);
|
|
4532
4470
|
}
|
|
4471
|
+
entry.count += update2.count;
|
|
4533
4472
|
}
|
|
4534
4473
|
}
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
collected_effects = null;
|
|
4539
|
-
if (true_default) {
|
|
4540
|
-
for (const source2 of source_stacks) {
|
|
4541
|
-
source2.updated = null;
|
|
4474
|
+
for (const update2 of updates.values()) {
|
|
4475
|
+
if (update2.error) {
|
|
4476
|
+
console.error(update2.error);
|
|
4542
4477
|
}
|
|
4543
4478
|
}
|
|
4544
4479
|
}
|
|
4545
|
-
}
|
|
4546
|
-
function infinite_loop_guard() {
|
|
4547
4480
|
try {
|
|
4548
4481
|
effect_update_depth_exceeded();
|
|
4549
4482
|
} catch (error) {
|
|
@@ -4628,29 +4561,8 @@ function depends_on(reaction, sources, checked) {
|
|
|
4628
4561
|
checked.set(reaction, false);
|
|
4629
4562
|
return false;
|
|
4630
4563
|
}
|
|
4631
|
-
function schedule_effect(
|
|
4632
|
-
|
|
4633
|
-
var boundary = effect.b;
|
|
4634
|
-
if (boundary?.is_pending && (signal.f & (EFFECT | RENDER_EFFECT | MANAGED_EFFECT)) !== 0 && (signal.f & REACTION_RAN) === 0) {
|
|
4635
|
-
boundary.defer_effect(signal);
|
|
4636
|
-
return;
|
|
4637
|
-
}
|
|
4638
|
-
while (effect.parent !== null) {
|
|
4639
|
-
effect = effect.parent;
|
|
4640
|
-
var flags = effect.f;
|
|
4641
|
-
if (collected_effects !== null && effect === active_effect) {
|
|
4642
|
-
if (async_mode_flag || (signal.f & RENDER_EFFECT) === 0) {
|
|
4643
|
-
return;
|
|
4644
|
-
}
|
|
4645
|
-
}
|
|
4646
|
-
if ((flags & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) {
|
|
4647
|
-
if ((flags & CLEAN) === 0) {
|
|
4648
|
-
return;
|
|
4649
|
-
}
|
|
4650
|
-
effect.f ^= CLEAN;
|
|
4651
|
-
}
|
|
4652
|
-
}
|
|
4653
|
-
queued_root_effects.push(effect);
|
|
4564
|
+
function schedule_effect(effect) {
|
|
4565
|
+
current_batch.schedule(effect);
|
|
4654
4566
|
}
|
|
4655
4567
|
function reset_branch(effect, tracked) {
|
|
4656
4568
|
if ((effect.f & BRANCH_EFFECT) !== 0 && (effect.f & CLEAN) !== 0) {
|
|
@@ -4668,8 +4580,16 @@ function reset_branch(effect, tracked) {
|
|
|
4668
4580
|
e = e.next;
|
|
4669
4581
|
}
|
|
4670
4582
|
}
|
|
4583
|
+
function reset_all(effect) {
|
|
4584
|
+
set_signal_status(effect, CLEAN);
|
|
4585
|
+
var e = effect.first;
|
|
4586
|
+
while (e !== null) {
|
|
4587
|
+
reset_all(e);
|
|
4588
|
+
e = e.next;
|
|
4589
|
+
}
|
|
4590
|
+
}
|
|
4671
4591
|
|
|
4672
|
-
// node_modules/.
|
|
4592
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
4673
4593
|
function createSubscriber(start) {
|
|
4674
4594
|
let subscribers = 0;
|
|
4675
4595
|
let version = source(0);
|
|
@@ -4700,12 +4620,8 @@ function createSubscriber(start) {
|
|
|
4700
4620
|
};
|
|
4701
4621
|
}
|
|
4702
4622
|
|
|
4703
|
-
// node_modules/.
|
|
4623
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
4704
4624
|
var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED;
|
|
4705
|
-
function boundary(node, props, children, transform_error) {
|
|
4706
|
-
new Boundary(node, props, children, transform_error);
|
|
4707
|
-
}
|
|
4708
|
-
|
|
4709
4625
|
class Boundary {
|
|
4710
4626
|
parent;
|
|
4711
4627
|
is_pending = false;
|
|
@@ -4793,7 +4709,6 @@ class Boundary {
|
|
|
4793
4709
|
var anchor = create_text();
|
|
4794
4710
|
fragment.append(anchor);
|
|
4795
4711
|
this.#main_effect = this.#run(() => {
|
|
4796
|
-
Batch.ensure();
|
|
4797
4712
|
return branch(() => this.#children(anchor));
|
|
4798
4713
|
});
|
|
4799
4714
|
if (this.#pending_count === 0) {
|
|
@@ -4802,7 +4717,7 @@ class Boundary {
|
|
|
4802
4717
|
pause_effect(this.#pending_effect, () => {
|
|
4803
4718
|
this.#pending_effect = null;
|
|
4804
4719
|
});
|
|
4805
|
-
this.#resolve();
|
|
4720
|
+
this.#resolve(current_batch);
|
|
4806
4721
|
}
|
|
4807
4722
|
});
|
|
4808
4723
|
}
|
|
@@ -4820,24 +4735,15 @@ class Boundary {
|
|
|
4820
4735
|
const pending = this.#props.pending;
|
|
4821
4736
|
this.#pending_effect = branch(() => pending(this.#anchor));
|
|
4822
4737
|
} else {
|
|
4823
|
-
this.#resolve();
|
|
4738
|
+
this.#resolve(current_batch);
|
|
4824
4739
|
}
|
|
4825
4740
|
} catch (error) {
|
|
4826
4741
|
this.error(error);
|
|
4827
4742
|
}
|
|
4828
4743
|
}
|
|
4829
|
-
#resolve() {
|
|
4744
|
+
#resolve(batch) {
|
|
4830
4745
|
this.is_pending = false;
|
|
4831
|
-
|
|
4832
|
-
set_signal_status(e, DIRTY);
|
|
4833
|
-
schedule_effect(e);
|
|
4834
|
-
}
|
|
4835
|
-
for (const e of this.#maybe_dirty_effects) {
|
|
4836
|
-
set_signal_status(e, MAYBE_DIRTY);
|
|
4837
|
-
schedule_effect(e);
|
|
4838
|
-
}
|
|
4839
|
-
this.#dirty_effects.clear();
|
|
4840
|
-
this.#maybe_dirty_effects.clear();
|
|
4746
|
+
batch.transfer_effects(this.#dirty_effects, this.#maybe_dirty_effects);
|
|
4841
4747
|
}
|
|
4842
4748
|
defer_effect(effect) {
|
|
4843
4749
|
defer_effect(effect, this.#dirty_effects, this.#maybe_dirty_effects);
|
|
@@ -4856,6 +4762,7 @@ class Boundary {
|
|
|
4856
4762
|
set_active_reaction(this.#effect);
|
|
4857
4763
|
set_component_context(this.#effect.ctx);
|
|
4858
4764
|
try {
|
|
4765
|
+
Batch.ensure();
|
|
4859
4766
|
return fn();
|
|
4860
4767
|
} catch (e) {
|
|
4861
4768
|
handle_error(e);
|
|
@@ -4866,16 +4773,16 @@ class Boundary {
|
|
|
4866
4773
|
set_component_context(previous_ctx);
|
|
4867
4774
|
}
|
|
4868
4775
|
}
|
|
4869
|
-
#update_pending_count(d) {
|
|
4776
|
+
#update_pending_count(d, batch) {
|
|
4870
4777
|
if (!this.has_pending_snippet()) {
|
|
4871
4778
|
if (this.parent) {
|
|
4872
|
-
this.parent.#update_pending_count(d);
|
|
4779
|
+
this.parent.#update_pending_count(d, batch);
|
|
4873
4780
|
}
|
|
4874
4781
|
return;
|
|
4875
4782
|
}
|
|
4876
4783
|
this.#pending_count += d;
|
|
4877
4784
|
if (this.#pending_count === 0) {
|
|
4878
|
-
this.#resolve();
|
|
4785
|
+
this.#resolve(batch);
|
|
4879
4786
|
if (this.#pending_effect) {
|
|
4880
4787
|
pause_effect(this.#pending_effect, () => {
|
|
4881
4788
|
this.#pending_effect = null;
|
|
@@ -4887,8 +4794,8 @@ class Boundary {
|
|
|
4887
4794
|
}
|
|
4888
4795
|
}
|
|
4889
4796
|
}
|
|
4890
|
-
update_pending_count(d) {
|
|
4891
|
-
this.#update_pending_count(d);
|
|
4797
|
+
update_pending_count(d, batch) {
|
|
4798
|
+
this.#update_pending_count(d, batch);
|
|
4892
4799
|
this.#local_pending_count += d;
|
|
4893
4800
|
if (!this.#effect_pending || this.#pending_count_update_queued)
|
|
4894
4801
|
return;
|
|
@@ -4944,7 +4851,6 @@ class Boundary {
|
|
|
4944
4851
|
});
|
|
4945
4852
|
}
|
|
4946
4853
|
this.#run(() => {
|
|
4947
|
-
Batch.ensure();
|
|
4948
4854
|
this.#render();
|
|
4949
4855
|
});
|
|
4950
4856
|
};
|
|
@@ -4958,7 +4864,6 @@ class Boundary {
|
|
|
4958
4864
|
}
|
|
4959
4865
|
if (failed) {
|
|
4960
4866
|
this.#failed_effect = this.#run(() => {
|
|
4961
|
-
Batch.ensure();
|
|
4962
4867
|
try {
|
|
4963
4868
|
return branch(() => {
|
|
4964
4869
|
var effect = active_effect;
|
|
@@ -4990,7 +4895,8 @@ class Boundary {
|
|
|
4990
4895
|
}
|
|
4991
4896
|
}
|
|
4992
4897
|
|
|
4993
|
-
// node_modules/.
|
|
4898
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/deriveds.js
|
|
4899
|
+
var reactivity_loss_tracker = null;
|
|
4994
4900
|
var recent_async_deriveds = new Set;
|
|
4995
4901
|
function destroy_derived_effects(derived2) {
|
|
4996
4902
|
var effects = derived2.effects;
|
|
@@ -5044,11 +4950,13 @@ function execute_derived(derived2) {
|
|
|
5044
4950
|
return value;
|
|
5045
4951
|
}
|
|
5046
4952
|
function update_derived(derived2) {
|
|
4953
|
+
var old_value = derived2.v;
|
|
5047
4954
|
var value = execute_derived(derived2);
|
|
5048
4955
|
if (!derived2.equals(value)) {
|
|
5049
4956
|
derived2.wv = increment_write_version();
|
|
5050
4957
|
if (!current_batch?.is_fork || derived2.deps === null) {
|
|
5051
4958
|
derived2.v = value;
|
|
4959
|
+
current_batch?.capture(derived2, old_value);
|
|
5052
4960
|
if (derived2.deps === null) {
|
|
5053
4961
|
set_signal_status(derived2, CLEAN);
|
|
5054
4962
|
return;
|
|
@@ -5090,7 +4998,7 @@ function unfreeze_derived_effects(derived2) {
|
|
|
5090
4998
|
}
|
|
5091
4999
|
}
|
|
5092
5000
|
|
|
5093
|
-
// node_modules/.
|
|
5001
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
5094
5002
|
var eager_effects = new Set;
|
|
5095
5003
|
var old_values = new Map;
|
|
5096
5004
|
function set_eager_effects(v) {
|
|
@@ -5122,16 +5030,6 @@ function state(v, stack2) {
|
|
|
5122
5030
|
push_reaction_value(s);
|
|
5123
5031
|
return s;
|
|
5124
5032
|
}
|
|
5125
|
-
function mutable_source(initial_value, immutable = false, trackable = true) {
|
|
5126
|
-
const s = source(initial_value);
|
|
5127
|
-
if (!immutable) {
|
|
5128
|
-
s.equals = safe_equals;
|
|
5129
|
-
}
|
|
5130
|
-
if (legacy_mode_flag && trackable && component_context !== null && component_context.l !== null) {
|
|
5131
|
-
(component_context.l.s ??= []).push(s);
|
|
5132
|
-
}
|
|
5133
|
-
return s;
|
|
5134
|
-
}
|
|
5135
5033
|
function set(source2, value, should_proxy = false) {
|
|
5136
5034
|
if (active_reaction !== null && (!untracking || (active_reaction.f & EAGER_EFFECT) !== 0) && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT | ASYNC | EAGER_EFFECT)) !== 0 && (current_sources === null || !includes.call(current_sources, source2))) {
|
|
5137
5035
|
state_unsafe_mutation();
|
|
@@ -5140,9 +5038,9 @@ function set(source2, value, should_proxy = false) {
|
|
|
5140
5038
|
if (true_default) {
|
|
5141
5039
|
tag_proxy(new_value, source2.label);
|
|
5142
5040
|
}
|
|
5143
|
-
return internal_set(source2, new_value);
|
|
5041
|
+
return internal_set(source2, new_value, legacy_updates);
|
|
5144
5042
|
}
|
|
5145
|
-
function internal_set(source2, value) {
|
|
5043
|
+
function internal_set(source2, value, updated_during_traversal = null) {
|
|
5146
5044
|
if (!source2.equals(value)) {
|
|
5147
5045
|
var old_value = source2.v;
|
|
5148
5046
|
if (is_destroying_effect) {
|
|
@@ -5179,10 +5077,12 @@ function internal_set(source2, value) {
|
|
|
5179
5077
|
if ((source2.f & DIRTY) !== 0) {
|
|
5180
5078
|
execute_derived(derived2);
|
|
5181
5079
|
}
|
|
5182
|
-
|
|
5080
|
+
if (batch_values === null) {
|
|
5081
|
+
update_derived_status(derived2);
|
|
5082
|
+
}
|
|
5183
5083
|
}
|
|
5184
5084
|
source2.wv = increment_write_version();
|
|
5185
|
-
mark_reactions(source2, DIRTY);
|
|
5085
|
+
mark_reactions(source2, DIRTY, updated_during_traversal);
|
|
5186
5086
|
if (is_runes() && active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0) {
|
|
5187
5087
|
if (untracked_writes === null) {
|
|
5188
5088
|
set_untracked_writes([source2]);
|
|
@@ -5211,7 +5111,7 @@ function flush_eager_effects() {
|
|
|
5211
5111
|
function increment(source2) {
|
|
5212
5112
|
set(source2, source2.v + 1);
|
|
5213
5113
|
}
|
|
5214
|
-
function mark_reactions(signal, status) {
|
|
5114
|
+
function mark_reactions(signal, status, updated_during_traversal) {
|
|
5215
5115
|
var reactions = signal.reactions;
|
|
5216
5116
|
if (reactions === null)
|
|
5217
5117
|
return;
|
|
@@ -5237,21 +5137,26 @@ function mark_reactions(signal, status) {
|
|
|
5237
5137
|
if (flags2 & CONNECTED) {
|
|
5238
5138
|
reaction.f |= WAS_MARKED;
|
|
5239
5139
|
}
|
|
5240
|
-
mark_reactions(derived2, MAYBE_DIRTY);
|
|
5140
|
+
mark_reactions(derived2, MAYBE_DIRTY, updated_during_traversal);
|
|
5241
5141
|
}
|
|
5242
5142
|
} else if (not_dirty) {
|
|
5143
|
+
var effect = reaction;
|
|
5243
5144
|
if ((flags2 & BLOCK_EFFECT) !== 0 && eager_block_effects !== null) {
|
|
5244
|
-
eager_block_effects.add(
|
|
5145
|
+
eager_block_effects.add(effect);
|
|
5146
|
+
}
|
|
5147
|
+
if (updated_during_traversal !== null) {
|
|
5148
|
+
updated_during_traversal.push(effect);
|
|
5149
|
+
} else {
|
|
5150
|
+
schedule_effect(effect);
|
|
5245
5151
|
}
|
|
5246
|
-
schedule_effect(reaction);
|
|
5247
5152
|
}
|
|
5248
5153
|
}
|
|
5249
5154
|
}
|
|
5250
5155
|
|
|
5251
|
-
// node_modules/.
|
|
5156
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/legacy.js
|
|
5252
5157
|
var captured_signals = null;
|
|
5253
5158
|
|
|
5254
|
-
// node_modules/.
|
|
5159
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
5255
5160
|
function without_reactive_context(fn) {
|
|
5256
5161
|
var previous_reaction = active_reaction;
|
|
5257
5162
|
var previous_effect = active_effect;
|
|
@@ -5265,7 +5170,7 @@ function without_reactive_context(fn) {
|
|
|
5265
5170
|
}
|
|
5266
5171
|
}
|
|
5267
5172
|
|
|
5268
|
-
// node_modules/.
|
|
5173
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/runtime.js
|
|
5269
5174
|
var is_updating_effect = false;
|
|
5270
5175
|
var is_destroying_effect = false;
|
|
5271
5176
|
function set_is_destroying_effect(value) {
|
|
@@ -5555,12 +5460,19 @@ function get(signal) {
|
|
|
5555
5460
|
}
|
|
5556
5461
|
}
|
|
5557
5462
|
if (true_default) {
|
|
5463
|
+
if (!untracking && reactivity_loss_tracker && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & REACTION_IS_UPDATING) === 0) {
|
|
5464
|
+
reactivity_loss_tracker.warned = true;
|
|
5465
|
+
await_reactivity_loss(signal.label);
|
|
5466
|
+
var trace = get_error("traced at");
|
|
5467
|
+
if (trace)
|
|
5468
|
+
console.warn(trace);
|
|
5469
|
+
}
|
|
5558
5470
|
recent_async_deriveds.delete(signal);
|
|
5559
5471
|
if (tracing_mode_flag && !untracking && tracing_expressions !== null && active_reaction !== null && tracing_expressions.reaction === active_reaction) {
|
|
5560
5472
|
if (signal.trace) {
|
|
5561
5473
|
signal.trace();
|
|
5562
5474
|
} else {
|
|
5563
|
-
|
|
5475
|
+
trace = get_error("traced at");
|
|
5564
5476
|
if (trace) {
|
|
5565
5477
|
var entry = tracing_expressions.entries.get(signal);
|
|
5566
5478
|
if (entry === undefined) {
|
|
@@ -5646,7 +5558,7 @@ function untrack(fn) {
|
|
|
5646
5558
|
}
|
|
5647
5559
|
}
|
|
5648
5560
|
|
|
5649
|
-
// node_modules/.
|
|
5561
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
5650
5562
|
function push_effect(effect, parent_effect) {
|
|
5651
5563
|
var parent_last = parent_effect.last;
|
|
5652
5564
|
if (parent_last === null) {
|
|
@@ -5691,7 +5603,7 @@ function create_effect(type, fn) {
|
|
|
5691
5603
|
if (collected_effects !== null) {
|
|
5692
5604
|
collected_effects.push(effect);
|
|
5693
5605
|
} else {
|
|
5694
|
-
|
|
5606
|
+
Batch.ensure().schedule(effect);
|
|
5695
5607
|
}
|
|
5696
5608
|
} else if (fn !== null) {
|
|
5697
5609
|
try {
|
|
@@ -5722,33 +5634,6 @@ function create_effect(type, fn) {
|
|
|
5722
5634
|
function effect_tracking() {
|
|
5723
5635
|
return active_reaction !== null && !untracking;
|
|
5724
5636
|
}
|
|
5725
|
-
function create_user_effect(fn) {
|
|
5726
|
-
return create_effect(EFFECT | USER_EFFECT, fn);
|
|
5727
|
-
}
|
|
5728
|
-
function effect_root(fn) {
|
|
5729
|
-
Batch.ensure();
|
|
5730
|
-
const effect = create_effect(ROOT_EFFECT | EFFECT_PRESERVED, fn);
|
|
5731
|
-
return () => {
|
|
5732
|
-
destroy_effect(effect);
|
|
5733
|
-
};
|
|
5734
|
-
}
|
|
5735
|
-
function component_root(fn) {
|
|
5736
|
-
Batch.ensure();
|
|
5737
|
-
const effect = create_effect(ROOT_EFFECT | EFFECT_PRESERVED, fn);
|
|
5738
|
-
return (options2 = {}) => {
|
|
5739
|
-
return new Promise((fulfil) => {
|
|
5740
|
-
if (options2.outro) {
|
|
5741
|
-
pause_effect(effect, () => {
|
|
5742
|
-
destroy_effect(effect);
|
|
5743
|
-
fulfil(undefined);
|
|
5744
|
-
});
|
|
5745
|
-
} else {
|
|
5746
|
-
destroy_effect(effect);
|
|
5747
|
-
fulfil(undefined);
|
|
5748
|
-
}
|
|
5749
|
-
});
|
|
5750
|
-
};
|
|
5751
|
-
}
|
|
5752
5637
|
function render_effect(fn, flags2 = 0) {
|
|
5753
5638
|
return create_effect(RENDER_EFFECT | flags2, fn);
|
|
5754
5639
|
}
|
|
@@ -5763,1005 +5648,149 @@ function branch(fn) {
|
|
|
5763
5648
|
return create_effect(BRANCH_EFFECT | EFFECT_PRESERVED, fn);
|
|
5764
5649
|
}
|
|
5765
5650
|
function execute_effect_teardown(effect) {
|
|
5766
|
-
var teardown2 = effect.teardown;
|
|
5767
|
-
if (teardown2 !== null) {
|
|
5768
|
-
const previously_destroying_effect = is_destroying_effect;
|
|
5769
|
-
const previous_reaction = active_reaction;
|
|
5770
|
-
set_is_destroying_effect(true);
|
|
5771
|
-
set_active_reaction(null);
|
|
5772
|
-
try {
|
|
5773
|
-
teardown2.call(null);
|
|
5774
|
-
} finally {
|
|
5775
|
-
set_is_destroying_effect(previously_destroying_effect);
|
|
5776
|
-
set_active_reaction(previous_reaction);
|
|
5777
|
-
}
|
|
5778
|
-
}
|
|
5779
|
-
}
|
|
5780
|
-
function destroy_effect_children(signal, remove_dom = false) {
|
|
5781
|
-
var effect = signal.first;
|
|
5782
|
-
signal.first = signal.last = null;
|
|
5783
|
-
while (effect !== null) {
|
|
5784
|
-
const controller = effect.ac;
|
|
5785
|
-
if (controller !== null) {
|
|
5786
|
-
without_reactive_context(() => {
|
|
5787
|
-
controller.abort(STALE_REACTION);
|
|
5788
|
-
});
|
|
5789
|
-
}
|
|
5790
|
-
var next2 = effect.next;
|
|
5791
|
-
if ((effect.f & ROOT_EFFECT) !== 0) {
|
|
5792
|
-
effect.parent = null;
|
|
5793
|
-
} else {
|
|
5794
|
-
destroy_effect(effect, remove_dom);
|
|
5795
|
-
}
|
|
5796
|
-
effect = next2;
|
|
5797
|
-
}
|
|
5798
|
-
}
|
|
5799
|
-
function destroy_block_effect_children(signal) {
|
|
5800
|
-
var effect = signal.first;
|
|
5801
|
-
while (effect !== null) {
|
|
5802
|
-
var next2 = effect.next;
|
|
5803
|
-
if ((effect.f & BRANCH_EFFECT) === 0) {
|
|
5804
|
-
destroy_effect(effect);
|
|
5805
|
-
}
|
|
5806
|
-
effect = next2;
|
|
5807
|
-
}
|
|
5808
|
-
}
|
|
5809
|
-
function destroy_effect(effect, remove_dom = true) {
|
|
5810
|
-
var removed = false;
|
|
5811
|
-
if ((remove_dom || (effect.f & HEAD_EFFECT) !== 0) && effect.nodes !== null && effect.nodes.end !== null) {
|
|
5812
|
-
remove_effect_dom(effect.nodes.start, effect.nodes.end);
|
|
5813
|
-
removed = true;
|
|
5814
|
-
}
|
|
5815
|
-
destroy_effect_children(effect, remove_dom && !removed);
|
|
5816
|
-
remove_reactions(effect, 0);
|
|
5817
|
-
set_signal_status(effect, DESTROYED);
|
|
5818
|
-
var transitions = effect.nodes && effect.nodes.t;
|
|
5819
|
-
if (transitions !== null) {
|
|
5820
|
-
for (const transition of transitions) {
|
|
5821
|
-
transition.stop();
|
|
5822
|
-
}
|
|
5823
|
-
}
|
|
5824
|
-
execute_effect_teardown(effect);
|
|
5825
|
-
var parent = effect.parent;
|
|
5826
|
-
if (parent !== null && parent.first !== null) {
|
|
5827
|
-
unlink_effect(effect);
|
|
5828
|
-
}
|
|
5829
|
-
if (true_default) {
|
|
5830
|
-
effect.component_function = null;
|
|
5831
|
-
}
|
|
5832
|
-
effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = null;
|
|
5833
|
-
}
|
|
5834
|
-
function remove_effect_dom(node, end) {
|
|
5835
|
-
while (node !== null) {
|
|
5836
|
-
var next2 = node === end ? null : get_next_sibling(node);
|
|
5837
|
-
node.remove();
|
|
5838
|
-
node = next2;
|
|
5839
|
-
}
|
|
5840
|
-
}
|
|
5841
|
-
function unlink_effect(effect) {
|
|
5842
|
-
var parent = effect.parent;
|
|
5843
|
-
var prev = effect.prev;
|
|
5844
|
-
var next2 = effect.next;
|
|
5845
|
-
if (prev !== null)
|
|
5846
|
-
prev.next = next2;
|
|
5847
|
-
if (next2 !== null)
|
|
5848
|
-
next2.prev = prev;
|
|
5849
|
-
if (parent !== null) {
|
|
5850
|
-
if (parent.first === effect)
|
|
5851
|
-
parent.first = next2;
|
|
5852
|
-
if (parent.last === effect)
|
|
5853
|
-
parent.last = prev;
|
|
5854
|
-
}
|
|
5855
|
-
}
|
|
5856
|
-
function pause_effect(effect, callback, destroy = true) {
|
|
5857
|
-
var transitions = [];
|
|
5858
|
-
pause_children(effect, transitions, true);
|
|
5859
|
-
var fn = () => {
|
|
5860
|
-
if (destroy)
|
|
5861
|
-
destroy_effect(effect);
|
|
5862
|
-
if (callback)
|
|
5863
|
-
callback();
|
|
5864
|
-
};
|
|
5865
|
-
var remaining = transitions.length;
|
|
5866
|
-
if (remaining > 0) {
|
|
5867
|
-
var check = () => --remaining || fn();
|
|
5868
|
-
for (var transition of transitions) {
|
|
5869
|
-
transition.out(check);
|
|
5870
|
-
}
|
|
5871
|
-
} else {
|
|
5872
|
-
fn();
|
|
5873
|
-
}
|
|
5874
|
-
}
|
|
5875
|
-
function pause_children(effect, transitions, local) {
|
|
5876
|
-
if ((effect.f & INERT) !== 0)
|
|
5877
|
-
return;
|
|
5878
|
-
effect.f ^= INERT;
|
|
5879
|
-
var t = effect.nodes && effect.nodes.t;
|
|
5880
|
-
if (t !== null) {
|
|
5881
|
-
for (const transition of t) {
|
|
5882
|
-
if (transition.is_global || local) {
|
|
5883
|
-
transitions.push(transition);
|
|
5884
|
-
}
|
|
5885
|
-
}
|
|
5886
|
-
}
|
|
5887
|
-
var child = effect.first;
|
|
5888
|
-
while (child !== null) {
|
|
5889
|
-
var sibling = child.next;
|
|
5890
|
-
var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || (child.f & BRANCH_EFFECT) !== 0 && (effect.f & BLOCK_EFFECT) !== 0;
|
|
5891
|
-
pause_children(child, transitions, transparent ? local : false);
|
|
5892
|
-
child = sibling;
|
|
5893
|
-
}
|
|
5894
|
-
}
|
|
5895
|
-
function resume_effect(effect) {
|
|
5896
|
-
resume_children(effect, true);
|
|
5897
|
-
}
|
|
5898
|
-
function resume_children(effect, local) {
|
|
5899
|
-
if ((effect.f & INERT) === 0)
|
|
5900
|
-
return;
|
|
5901
|
-
effect.f ^= INERT;
|
|
5902
|
-
if ((effect.f & CLEAN) === 0) {
|
|
5903
|
-
set_signal_status(effect, DIRTY);
|
|
5904
|
-
schedule_effect(effect);
|
|
5905
|
-
}
|
|
5906
|
-
var child = effect.first;
|
|
5907
|
-
while (child !== null) {
|
|
5908
|
-
var sibling = child.next;
|
|
5909
|
-
var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || (child.f & BRANCH_EFFECT) !== 0;
|
|
5910
|
-
resume_children(child, transparent ? local : false);
|
|
5911
|
-
child = sibling;
|
|
5912
|
-
}
|
|
5913
|
-
var t = effect.nodes && effect.nodes.t;
|
|
5914
|
-
if (t !== null) {
|
|
5915
|
-
for (const transition of t) {
|
|
5916
|
-
if (transition.is_global || local) {
|
|
5917
|
-
transition.in();
|
|
5918
|
-
}
|
|
5919
|
-
}
|
|
5920
|
-
}
|
|
5921
|
-
}
|
|
5922
|
-
function move_effect(effect, fragment) {
|
|
5923
|
-
if (!effect.nodes)
|
|
5924
|
-
return;
|
|
5925
|
-
var node = effect.nodes.start;
|
|
5926
|
-
var end = effect.nodes.end;
|
|
5927
|
-
while (node !== null) {
|
|
5928
|
-
var next2 = node === end ? null : get_next_sibling(node);
|
|
5929
|
-
fragment.append(node);
|
|
5930
|
-
node = next2;
|
|
5931
|
-
}
|
|
5932
|
-
}
|
|
5933
|
-
// node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/utils.js
|
|
5934
|
-
var DOM_BOOLEAN_ATTRIBUTES = [
|
|
5935
|
-
"allowfullscreen",
|
|
5936
|
-
"async",
|
|
5937
|
-
"autofocus",
|
|
5938
|
-
"autoplay",
|
|
5939
|
-
"checked",
|
|
5940
|
-
"controls",
|
|
5941
|
-
"default",
|
|
5942
|
-
"disabled",
|
|
5943
|
-
"formnovalidate",
|
|
5944
|
-
"indeterminate",
|
|
5945
|
-
"inert",
|
|
5946
|
-
"ismap",
|
|
5947
|
-
"loop",
|
|
5948
|
-
"multiple",
|
|
5949
|
-
"muted",
|
|
5950
|
-
"nomodule",
|
|
5951
|
-
"novalidate",
|
|
5952
|
-
"open",
|
|
5953
|
-
"playsinline",
|
|
5954
|
-
"readonly",
|
|
5955
|
-
"required",
|
|
5956
|
-
"reversed",
|
|
5957
|
-
"seamless",
|
|
5958
|
-
"selected",
|
|
5959
|
-
"webkitdirectory",
|
|
5960
|
-
"defer",
|
|
5961
|
-
"disablepictureinpicture",
|
|
5962
|
-
"disableremoteplayback"
|
|
5963
|
-
];
|
|
5964
|
-
var DOM_PROPERTIES = [
|
|
5965
|
-
...DOM_BOOLEAN_ATTRIBUTES,
|
|
5966
|
-
"formNoValidate",
|
|
5967
|
-
"isMap",
|
|
5968
|
-
"noModule",
|
|
5969
|
-
"playsInline",
|
|
5970
|
-
"readOnly",
|
|
5971
|
-
"value",
|
|
5972
|
-
"volume",
|
|
5973
|
-
"defaultValue",
|
|
5974
|
-
"defaultChecked",
|
|
5975
|
-
"srcObject",
|
|
5976
|
-
"noValidate",
|
|
5977
|
-
"allowFullscreen",
|
|
5978
|
-
"disablePictureInPicture",
|
|
5979
|
-
"disableRemotePlayback"
|
|
5980
|
-
];
|
|
5981
|
-
var PASSIVE_EVENTS = ["touchstart", "touchmove"];
|
|
5982
|
-
function is_passive_event(name) {
|
|
5983
|
-
return PASSIVE_EVENTS.includes(name);
|
|
5984
|
-
}
|
|
5985
|
-
var STATE_CREATION_RUNES = [
|
|
5986
|
-
"$state",
|
|
5987
|
-
"$state.raw",
|
|
5988
|
-
"$derived",
|
|
5989
|
-
"$derived.by"
|
|
5990
|
-
];
|
|
5991
|
-
var RUNES = [
|
|
5992
|
-
...STATE_CREATION_RUNES,
|
|
5993
|
-
"$state.eager",
|
|
5994
|
-
"$state.snapshot",
|
|
5995
|
-
"$props",
|
|
5996
|
-
"$props.id",
|
|
5997
|
-
"$bindable",
|
|
5998
|
-
"$effect",
|
|
5999
|
-
"$effect.pre",
|
|
6000
|
-
"$effect.tracking",
|
|
6001
|
-
"$effect.root",
|
|
6002
|
-
"$effect.pending",
|
|
6003
|
-
"$inspect",
|
|
6004
|
-
"$inspect().with",
|
|
6005
|
-
"$inspect.trace",
|
|
6006
|
-
"$host"
|
|
6007
|
-
];
|
|
6008
|
-
// node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dev/css.js
|
|
6009
|
-
var all_styles = new Map;
|
|
6010
|
-
// node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
6011
|
-
var event_symbol = Symbol("events");
|
|
6012
|
-
var all_registered_events = new Set;
|
|
6013
|
-
var root_event_handles = new Set;
|
|
6014
|
-
var last_propagated_event = null;
|
|
6015
|
-
function handle_event_propagation(event) {
|
|
6016
|
-
var handler_element = this;
|
|
6017
|
-
var owner_document = handler_element.ownerDocument;
|
|
6018
|
-
var event_name = event.type;
|
|
6019
|
-
var path = event.composedPath?.() || [];
|
|
6020
|
-
var current_target = path[0] || event.target;
|
|
6021
|
-
last_propagated_event = event;
|
|
6022
|
-
var path_idx = 0;
|
|
6023
|
-
var handled_at = last_propagated_event === event && event[event_symbol];
|
|
6024
|
-
if (handled_at) {
|
|
6025
|
-
var at_idx = path.indexOf(handled_at);
|
|
6026
|
-
if (at_idx !== -1 && (handler_element === document || handler_element === window)) {
|
|
6027
|
-
event[event_symbol] = handler_element;
|
|
6028
|
-
return;
|
|
6029
|
-
}
|
|
6030
|
-
var handler_idx = path.indexOf(handler_element);
|
|
6031
|
-
if (handler_idx === -1) {
|
|
6032
|
-
return;
|
|
6033
|
-
}
|
|
6034
|
-
if (at_idx <= handler_idx) {
|
|
6035
|
-
path_idx = at_idx;
|
|
6036
|
-
}
|
|
6037
|
-
}
|
|
6038
|
-
current_target = path[path_idx] || event.target;
|
|
6039
|
-
if (current_target === handler_element)
|
|
6040
|
-
return;
|
|
6041
|
-
define_property(event, "currentTarget", {
|
|
6042
|
-
configurable: true,
|
|
6043
|
-
get() {
|
|
6044
|
-
return current_target || owner_document;
|
|
6045
|
-
}
|
|
6046
|
-
});
|
|
6047
|
-
var previous_reaction = active_reaction;
|
|
6048
|
-
var previous_effect = active_effect;
|
|
6049
|
-
set_active_reaction(null);
|
|
6050
|
-
set_active_effect(null);
|
|
6051
|
-
try {
|
|
6052
|
-
var throw_error;
|
|
6053
|
-
var other_errors = [];
|
|
6054
|
-
while (current_target !== null) {
|
|
6055
|
-
var parent_element = current_target.assignedSlot || current_target.parentNode || current_target.host || null;
|
|
6056
|
-
try {
|
|
6057
|
-
var delegated = current_target[event_symbol]?.[event_name];
|
|
6058
|
-
if (delegated != null && (!current_target.disabled || event.target === current_target)) {
|
|
6059
|
-
delegated.call(current_target, event);
|
|
6060
|
-
}
|
|
6061
|
-
} catch (error) {
|
|
6062
|
-
if (throw_error) {
|
|
6063
|
-
other_errors.push(error);
|
|
6064
|
-
} else {
|
|
6065
|
-
throw_error = error;
|
|
6066
|
-
}
|
|
6067
|
-
}
|
|
6068
|
-
if (event.cancelBubble || parent_element === handler_element || parent_element === null) {
|
|
6069
|
-
break;
|
|
6070
|
-
}
|
|
6071
|
-
current_target = parent_element;
|
|
6072
|
-
}
|
|
6073
|
-
if (throw_error) {
|
|
6074
|
-
for (let error of other_errors) {
|
|
6075
|
-
queueMicrotask(() => {
|
|
6076
|
-
throw error;
|
|
6077
|
-
});
|
|
6078
|
-
}
|
|
6079
|
-
throw throw_error;
|
|
6080
|
-
}
|
|
6081
|
-
} finally {
|
|
6082
|
-
event[event_symbol] = handler_element;
|
|
6083
|
-
delete event.currentTarget;
|
|
6084
|
-
set_active_reaction(previous_reaction);
|
|
6085
|
-
set_active_effect(previous_effect);
|
|
6086
|
-
}
|
|
6087
|
-
}
|
|
6088
|
-
|
|
6089
|
-
// node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
6090
|
-
var policy = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
6091
|
-
createHTML: (html3) => {
|
|
6092
|
-
return html3;
|
|
6093
|
-
}
|
|
6094
|
-
});
|
|
6095
|
-
|
|
6096
|
-
// node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/template.js
|
|
6097
|
-
function assign_nodes(start, end) {
|
|
6098
|
-
var effect = active_effect;
|
|
6099
|
-
if (effect.nodes === null) {
|
|
6100
|
-
effect.nodes = { start, end, a: null, t: null };
|
|
6101
|
-
}
|
|
6102
|
-
}
|
|
6103
|
-
function append(anchor, dom) {
|
|
6104
|
-
if (hydrating) {
|
|
6105
|
-
var effect = active_effect;
|
|
6106
|
-
if ((effect.f & REACTION_RAN) === 0 || effect.nodes.end === null) {
|
|
6107
|
-
effect.nodes.end = hydrate_node;
|
|
6108
|
-
}
|
|
6109
|
-
hydrate_next();
|
|
6110
|
-
return;
|
|
6111
|
-
}
|
|
6112
|
-
if (anchor === null) {
|
|
6113
|
-
return;
|
|
6114
|
-
}
|
|
6115
|
-
anchor.before(dom);
|
|
6116
|
-
}
|
|
6117
|
-
|
|
6118
|
-
// node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/render.js
|
|
6119
|
-
var should_intro = true;
|
|
6120
|
-
function mount(component, options2) {
|
|
6121
|
-
return _mount(component, options2);
|
|
6122
|
-
}
|
|
6123
|
-
function hydrate(component, options2) {
|
|
6124
|
-
init_operations();
|
|
6125
|
-
options2.intro = options2.intro ?? false;
|
|
6126
|
-
const target = options2.target;
|
|
6127
|
-
const was_hydrating = hydrating;
|
|
6128
|
-
const previous_hydrate_node = hydrate_node;
|
|
6129
|
-
try {
|
|
6130
|
-
var anchor = get_first_child(target);
|
|
6131
|
-
while (anchor && (anchor.nodeType !== COMMENT_NODE || anchor.data !== HYDRATION_START)) {
|
|
6132
|
-
anchor = get_next_sibling(anchor);
|
|
6133
|
-
}
|
|
6134
|
-
if (!anchor) {
|
|
6135
|
-
throw HYDRATION_ERROR;
|
|
6136
|
-
}
|
|
6137
|
-
set_hydrating(true);
|
|
6138
|
-
set_hydrate_node(anchor);
|
|
6139
|
-
const instance = _mount(component, { ...options2, anchor });
|
|
6140
|
-
set_hydrating(false);
|
|
6141
|
-
return instance;
|
|
6142
|
-
} catch (error) {
|
|
6143
|
-
if (error instanceof Error && error.message.split(`
|
|
6144
|
-
`).some((line) => line.startsWith("https://svelte.dev/e/"))) {
|
|
6145
|
-
throw error;
|
|
6146
|
-
}
|
|
6147
|
-
if (error !== HYDRATION_ERROR) {
|
|
6148
|
-
console.warn("Failed to hydrate: ", error);
|
|
6149
|
-
}
|
|
6150
|
-
if (options2.recover === false) {
|
|
6151
|
-
hydration_failed();
|
|
6152
|
-
}
|
|
6153
|
-
init_operations();
|
|
6154
|
-
clear_text_content(target);
|
|
6155
|
-
set_hydrating(false);
|
|
6156
|
-
return mount(component, options2);
|
|
6157
|
-
} finally {
|
|
6158
|
-
set_hydrating(was_hydrating);
|
|
6159
|
-
set_hydrate_node(previous_hydrate_node);
|
|
6160
|
-
}
|
|
6161
|
-
}
|
|
6162
|
-
var listeners = new Map;
|
|
6163
|
-
function _mount(Component, { target, anchor, props = {}, events, context, intro = true, transformError }) {
|
|
6164
|
-
init_operations();
|
|
6165
|
-
var component = undefined;
|
|
6166
|
-
var unmount = component_root(() => {
|
|
6167
|
-
var anchor_node = anchor ?? target.appendChild(create_text());
|
|
6168
|
-
boundary(anchor_node, {
|
|
6169
|
-
pending: () => {}
|
|
6170
|
-
}, (anchor_node2) => {
|
|
6171
|
-
push({});
|
|
6172
|
-
var ctx = component_context;
|
|
6173
|
-
if (context)
|
|
6174
|
-
ctx.c = context;
|
|
6175
|
-
if (events) {
|
|
6176
|
-
props.$$events = events;
|
|
6177
|
-
}
|
|
6178
|
-
if (hydrating) {
|
|
6179
|
-
assign_nodes(anchor_node2, null);
|
|
6180
|
-
}
|
|
6181
|
-
should_intro = intro;
|
|
6182
|
-
component = Component(anchor_node2, props) || {};
|
|
6183
|
-
should_intro = true;
|
|
6184
|
-
if (hydrating) {
|
|
6185
|
-
active_effect.nodes.end = hydrate_node;
|
|
6186
|
-
if (hydrate_node === null || hydrate_node.nodeType !== COMMENT_NODE || hydrate_node.data !== HYDRATION_END) {
|
|
6187
|
-
hydration_mismatch();
|
|
6188
|
-
throw HYDRATION_ERROR;
|
|
6189
|
-
}
|
|
6190
|
-
}
|
|
6191
|
-
pop();
|
|
6192
|
-
}, transformError);
|
|
6193
|
-
var registered_events = new Set;
|
|
6194
|
-
var event_handle = (events2) => {
|
|
6195
|
-
for (var i = 0;i < events2.length; i++) {
|
|
6196
|
-
var event_name = events2[i];
|
|
6197
|
-
if (registered_events.has(event_name))
|
|
6198
|
-
continue;
|
|
6199
|
-
registered_events.add(event_name);
|
|
6200
|
-
var passive = is_passive_event(event_name);
|
|
6201
|
-
for (const node of [target, document]) {
|
|
6202
|
-
var counts = listeners.get(node);
|
|
6203
|
-
if (counts === undefined) {
|
|
6204
|
-
counts = new Map;
|
|
6205
|
-
listeners.set(node, counts);
|
|
6206
|
-
}
|
|
6207
|
-
var count = counts.get(event_name);
|
|
6208
|
-
if (count === undefined) {
|
|
6209
|
-
node.addEventListener(event_name, handle_event_propagation, { passive });
|
|
6210
|
-
counts.set(event_name, 1);
|
|
6211
|
-
} else {
|
|
6212
|
-
counts.set(event_name, count + 1);
|
|
6213
|
-
}
|
|
6214
|
-
}
|
|
6215
|
-
}
|
|
6216
|
-
};
|
|
6217
|
-
event_handle(array_from(all_registered_events));
|
|
6218
|
-
root_event_handles.add(event_handle);
|
|
6219
|
-
return () => {
|
|
6220
|
-
for (var event_name of registered_events) {
|
|
6221
|
-
for (const node of [target, document]) {
|
|
6222
|
-
var counts = listeners.get(node);
|
|
6223
|
-
var count = counts.get(event_name);
|
|
6224
|
-
if (--count == 0) {
|
|
6225
|
-
node.removeEventListener(event_name, handle_event_propagation);
|
|
6226
|
-
counts.delete(event_name);
|
|
6227
|
-
if (counts.size === 0) {
|
|
6228
|
-
listeners.delete(node);
|
|
6229
|
-
}
|
|
6230
|
-
} else {
|
|
6231
|
-
counts.set(event_name, count);
|
|
6232
|
-
}
|
|
6233
|
-
}
|
|
6234
|
-
}
|
|
6235
|
-
root_event_handles.delete(event_handle);
|
|
6236
|
-
if (anchor_node !== anchor) {
|
|
6237
|
-
anchor_node.parentNode?.removeChild(anchor_node);
|
|
6238
|
-
}
|
|
6239
|
-
};
|
|
6240
|
-
});
|
|
6241
|
-
mounted_components.set(component, unmount);
|
|
6242
|
-
return component;
|
|
6243
|
-
}
|
|
6244
|
-
var mounted_components = new WeakMap;
|
|
6245
|
-
function unmount(component, options2) {
|
|
6246
|
-
const fn = mounted_components.get(component);
|
|
6247
|
-
if (fn) {
|
|
6248
|
-
mounted_components.delete(component);
|
|
6249
|
-
return fn(options2);
|
|
6250
|
-
}
|
|
6251
|
-
if (true_default) {
|
|
6252
|
-
if (STATE_SYMBOL in component) {
|
|
6253
|
-
state_proxy_unmount();
|
|
6254
|
-
} else {
|
|
6255
|
-
lifecycle_double_unmount();
|
|
6256
|
-
}
|
|
6257
|
-
}
|
|
6258
|
-
return Promise.resolve();
|
|
6259
|
-
}
|
|
6260
|
-
// node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
6261
|
-
class BranchManager {
|
|
6262
|
-
anchor;
|
|
6263
|
-
#batches = new Map;
|
|
6264
|
-
#onscreen = new Map;
|
|
6265
|
-
#offscreen = new Map;
|
|
6266
|
-
#outroing = new Set;
|
|
6267
|
-
#transition = true;
|
|
6268
|
-
constructor(anchor, transition = true) {
|
|
6269
|
-
this.anchor = anchor;
|
|
6270
|
-
this.#transition = transition;
|
|
6271
|
-
}
|
|
6272
|
-
#commit = (batch) => {
|
|
6273
|
-
if (!this.#batches.has(batch))
|
|
6274
|
-
return;
|
|
6275
|
-
var key = this.#batches.get(batch);
|
|
6276
|
-
var onscreen = this.#onscreen.get(key);
|
|
6277
|
-
if (onscreen) {
|
|
6278
|
-
resume_effect(onscreen);
|
|
6279
|
-
this.#outroing.delete(key);
|
|
6280
|
-
} else {
|
|
6281
|
-
var offscreen = this.#offscreen.get(key);
|
|
6282
|
-
if (offscreen) {
|
|
6283
|
-
this.#onscreen.set(key, offscreen.effect);
|
|
6284
|
-
this.#offscreen.delete(key);
|
|
6285
|
-
offscreen.fragment.lastChild.remove();
|
|
6286
|
-
this.anchor.before(offscreen.fragment);
|
|
6287
|
-
onscreen = offscreen.effect;
|
|
6288
|
-
}
|
|
6289
|
-
}
|
|
6290
|
-
for (const [b, k] of this.#batches) {
|
|
6291
|
-
this.#batches.delete(b);
|
|
6292
|
-
if (b === batch) {
|
|
6293
|
-
break;
|
|
6294
|
-
}
|
|
6295
|
-
const offscreen2 = this.#offscreen.get(k);
|
|
6296
|
-
if (offscreen2) {
|
|
6297
|
-
destroy_effect(offscreen2.effect);
|
|
6298
|
-
this.#offscreen.delete(k);
|
|
6299
|
-
}
|
|
6300
|
-
}
|
|
6301
|
-
for (const [k, effect] of this.#onscreen) {
|
|
6302
|
-
if (k === key || this.#outroing.has(k))
|
|
6303
|
-
continue;
|
|
6304
|
-
const on_destroy = () => {
|
|
6305
|
-
const keys = Array.from(this.#batches.values());
|
|
6306
|
-
if (keys.includes(k)) {
|
|
6307
|
-
var fragment = document.createDocumentFragment();
|
|
6308
|
-
move_effect(effect, fragment);
|
|
6309
|
-
fragment.append(create_text());
|
|
6310
|
-
this.#offscreen.set(k, { effect, fragment });
|
|
6311
|
-
} else {
|
|
6312
|
-
destroy_effect(effect);
|
|
6313
|
-
}
|
|
6314
|
-
this.#outroing.delete(k);
|
|
6315
|
-
this.#onscreen.delete(k);
|
|
6316
|
-
};
|
|
6317
|
-
if (this.#transition || !onscreen) {
|
|
6318
|
-
this.#outroing.add(k);
|
|
6319
|
-
pause_effect(effect, on_destroy, false);
|
|
6320
|
-
} else {
|
|
6321
|
-
on_destroy();
|
|
6322
|
-
}
|
|
6323
|
-
}
|
|
6324
|
-
};
|
|
6325
|
-
#discard = (batch) => {
|
|
6326
|
-
this.#batches.delete(batch);
|
|
6327
|
-
const keys = Array.from(this.#batches.values());
|
|
6328
|
-
for (const [k, branch2] of this.#offscreen) {
|
|
6329
|
-
if (!keys.includes(k)) {
|
|
6330
|
-
destroy_effect(branch2.effect);
|
|
6331
|
-
this.#offscreen.delete(k);
|
|
6332
|
-
}
|
|
5651
|
+
var teardown2 = effect.teardown;
|
|
5652
|
+
if (teardown2 !== null) {
|
|
5653
|
+
const previously_destroying_effect = is_destroying_effect;
|
|
5654
|
+
const previous_reaction = active_reaction;
|
|
5655
|
+
set_is_destroying_effect(true);
|
|
5656
|
+
set_active_reaction(null);
|
|
5657
|
+
try {
|
|
5658
|
+
teardown2.call(null);
|
|
5659
|
+
} finally {
|
|
5660
|
+
set_is_destroying_effect(previously_destroying_effect);
|
|
5661
|
+
set_active_reaction(previous_reaction);
|
|
6333
5662
|
}
|
|
6334
|
-
}
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
fragment
|
|
6346
|
-
});
|
|
6347
|
-
} else {
|
|
6348
|
-
this.#onscreen.set(key, branch(() => fn(this.anchor)));
|
|
6349
|
-
}
|
|
5663
|
+
}
|
|
5664
|
+
}
|
|
5665
|
+
function destroy_effect_children(signal, remove_dom = false) {
|
|
5666
|
+
var effect = signal.first;
|
|
5667
|
+
signal.first = signal.last = null;
|
|
5668
|
+
while (effect !== null) {
|
|
5669
|
+
const controller = effect.ac;
|
|
5670
|
+
if (controller !== null) {
|
|
5671
|
+
without_reactive_context(() => {
|
|
5672
|
+
controller.abort(STALE_REACTION);
|
|
5673
|
+
});
|
|
6350
5674
|
}
|
|
6351
|
-
|
|
6352
|
-
if (
|
|
6353
|
-
|
|
6354
|
-
if (k === key) {
|
|
6355
|
-
batch.unskip_effect(effect);
|
|
6356
|
-
} else {
|
|
6357
|
-
batch.skip_effect(effect);
|
|
6358
|
-
}
|
|
6359
|
-
}
|
|
6360
|
-
for (const [k, branch2] of this.#offscreen) {
|
|
6361
|
-
if (k === key) {
|
|
6362
|
-
batch.unskip_effect(branch2.effect);
|
|
6363
|
-
} else {
|
|
6364
|
-
batch.skip_effect(branch2.effect);
|
|
6365
|
-
}
|
|
6366
|
-
}
|
|
6367
|
-
batch.oncommit(this.#commit);
|
|
6368
|
-
batch.ondiscard(this.#discard);
|
|
5675
|
+
var next2 = effect.next;
|
|
5676
|
+
if ((effect.f & ROOT_EFFECT) !== 0) {
|
|
5677
|
+
effect.parent = null;
|
|
6369
5678
|
} else {
|
|
6370
|
-
|
|
6371
|
-
this.anchor = hydrate_node;
|
|
6372
|
-
}
|
|
6373
|
-
this.#commit(batch);
|
|
5679
|
+
destroy_effect(effect, remove_dom);
|
|
6374
5680
|
}
|
|
5681
|
+
effect = next2;
|
|
6375
5682
|
}
|
|
6376
5683
|
}
|
|
6377
|
-
|
|
6378
|
-
var
|
|
6379
|
-
|
|
6380
|
-
var
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
};
|
|
6386
|
-
// node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/shared/attributes.js
|
|
6387
|
-
var replacements = {
|
|
6388
|
-
translate: new Map([
|
|
6389
|
-
[true, "yes"],
|
|
6390
|
-
[false, "no"]
|
|
6391
|
-
])
|
|
6392
|
-
};
|
|
6393
|
-
var whitespace = [...`
|
|
6394
|
-
\r\f \v\uFEFF`];
|
|
6395
|
-
|
|
6396
|
-
// node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
6397
|
-
var CLASS = Symbol("class");
|
|
6398
|
-
var STYLE = Symbol("style");
|
|
6399
|
-
var IS_CUSTOM_ELEMENT = Symbol("is custom element");
|
|
6400
|
-
var IS_HTML = Symbol("is html");
|
|
6401
|
-
var setters_cache = new Map;
|
|
6402
|
-
// node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/elements/bindings/input.js
|
|
6403
|
-
var pending = new Set;
|
|
6404
|
-
// node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
|
|
6405
|
-
class ResizeObserverSingleton {
|
|
6406
|
-
#listeners = new WeakMap;
|
|
6407
|
-
#observer;
|
|
6408
|
-
#options;
|
|
6409
|
-
static entries = new WeakMap;
|
|
6410
|
-
constructor(options2) {
|
|
6411
|
-
this.#options = options2;
|
|
6412
|
-
}
|
|
6413
|
-
observe(element, listener) {
|
|
6414
|
-
var listeners2 = this.#listeners.get(element) || new Set;
|
|
6415
|
-
listeners2.add(listener);
|
|
6416
|
-
this.#listeners.set(element, listeners2);
|
|
6417
|
-
this.#getObserver().observe(element, this.#options);
|
|
6418
|
-
return () => {
|
|
6419
|
-
var listeners3 = this.#listeners.get(element);
|
|
6420
|
-
listeners3.delete(listener);
|
|
6421
|
-
if (listeners3.size === 0) {
|
|
6422
|
-
this.#listeners.delete(element);
|
|
6423
|
-
this.#observer.unobserve(element);
|
|
6424
|
-
}
|
|
6425
|
-
};
|
|
6426
|
-
}
|
|
6427
|
-
#getObserver() {
|
|
6428
|
-
return this.#observer ?? (this.#observer = new ResizeObserver((entries2) => {
|
|
6429
|
-
for (var entry of entries2) {
|
|
6430
|
-
ResizeObserverSingleton.entries.set(entry.target, entry);
|
|
6431
|
-
for (var listener of this.#listeners.get(entry.target) || []) {
|
|
6432
|
-
listener(entry);
|
|
6433
|
-
}
|
|
6434
|
-
}
|
|
6435
|
-
}));
|
|
5684
|
+
function destroy_block_effect_children(signal) {
|
|
5685
|
+
var effect = signal.first;
|
|
5686
|
+
while (effect !== null) {
|
|
5687
|
+
var next2 = effect.next;
|
|
5688
|
+
if ((effect.f & BRANCH_EFFECT) === 0) {
|
|
5689
|
+
destroy_effect(effect);
|
|
5690
|
+
}
|
|
5691
|
+
effect = next2;
|
|
6436
5692
|
}
|
|
6437
5693
|
}
|
|
6438
|
-
|
|
6439
|
-
var
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
}
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
sources.set(key, s);
|
|
6452
|
-
return s;
|
|
6453
|
-
};
|
|
6454
|
-
const props = new Proxy({ ...options2.props || {}, $$events: {} }, {
|
|
6455
|
-
get(target, prop) {
|
|
6456
|
-
return get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
|
6457
|
-
},
|
|
6458
|
-
has(target, prop) {
|
|
6459
|
-
if (prop === LEGACY_PROPS)
|
|
6460
|
-
return true;
|
|
6461
|
-
get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
|
6462
|
-
return Reflect.has(target, prop);
|
|
6463
|
-
},
|
|
6464
|
-
set(target, prop, value) {
|
|
6465
|
-
set(sources.get(prop) ?? add_source(prop, value), value);
|
|
6466
|
-
return Reflect.set(target, prop, value);
|
|
6467
|
-
}
|
|
6468
|
-
});
|
|
6469
|
-
this.#instance = (options2.hydrate ? hydrate : mount)(options2.component, {
|
|
6470
|
-
target: options2.target,
|
|
6471
|
-
anchor: options2.anchor,
|
|
6472
|
-
props,
|
|
6473
|
-
context: options2.context,
|
|
6474
|
-
intro: options2.intro ?? false,
|
|
6475
|
-
recover: options2.recover,
|
|
6476
|
-
transformError: options2.transformError
|
|
6477
|
-
});
|
|
6478
|
-
if (!async_mode_flag && (!options2?.props?.$$host || options2.sync === false)) {
|
|
6479
|
-
flushSync();
|
|
6480
|
-
}
|
|
6481
|
-
this.#events = props.$$events;
|
|
6482
|
-
for (const key of Object.keys(this.#instance)) {
|
|
6483
|
-
if (key === "$set" || key === "$destroy" || key === "$on")
|
|
6484
|
-
continue;
|
|
6485
|
-
define_property(this, key, {
|
|
6486
|
-
get() {
|
|
6487
|
-
return this.#instance[key];
|
|
6488
|
-
},
|
|
6489
|
-
set(value) {
|
|
6490
|
-
this.#instance[key] = value;
|
|
6491
|
-
},
|
|
6492
|
-
enumerable: true
|
|
6493
|
-
});
|
|
5694
|
+
function destroy_effect(effect, remove_dom = true) {
|
|
5695
|
+
var removed = false;
|
|
5696
|
+
if ((remove_dom || (effect.f & HEAD_EFFECT) !== 0) && effect.nodes !== null && effect.nodes.end !== null) {
|
|
5697
|
+
remove_effect_dom(effect.nodes.start, effect.nodes.end);
|
|
5698
|
+
removed = true;
|
|
5699
|
+
}
|
|
5700
|
+
set_signal_status(effect, DESTROYING);
|
|
5701
|
+
destroy_effect_children(effect, remove_dom && !removed);
|
|
5702
|
+
remove_reactions(effect, 0);
|
|
5703
|
+
var transitions = effect.nodes && effect.nodes.t;
|
|
5704
|
+
if (transitions !== null) {
|
|
5705
|
+
for (const transition of transitions) {
|
|
5706
|
+
transition.stop();
|
|
6494
5707
|
}
|
|
6495
|
-
this.#instance.$set = (next2) => {
|
|
6496
|
-
Object.assign(props, next2);
|
|
6497
|
-
};
|
|
6498
|
-
this.#instance.$destroy = () => {
|
|
6499
|
-
unmount(this.#instance);
|
|
6500
|
-
};
|
|
6501
5708
|
}
|
|
6502
|
-
|
|
6503
|
-
|
|
5709
|
+
execute_effect_teardown(effect);
|
|
5710
|
+
effect.f ^= DESTROYING;
|
|
5711
|
+
effect.f |= DESTROYED;
|
|
5712
|
+
var parent = effect.parent;
|
|
5713
|
+
if (parent !== null && parent.first !== null) {
|
|
5714
|
+
unlink_effect(effect);
|
|
6504
5715
|
}
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
const cb = (...args) => callback.call(this, ...args);
|
|
6508
|
-
this.#events[event2].push(cb);
|
|
6509
|
-
return () => {
|
|
6510
|
-
this.#events[event2] = this.#events[event2].filter((fn) => fn !== cb);
|
|
6511
|
-
};
|
|
5716
|
+
if (true_default) {
|
|
5717
|
+
effect.component_function = null;
|
|
6512
5718
|
}
|
|
6513
|
-
|
|
6514
|
-
|
|
5719
|
+
effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = null;
|
|
5720
|
+
}
|
|
5721
|
+
function remove_effect_dom(node, end) {
|
|
5722
|
+
while (node !== null) {
|
|
5723
|
+
var next2 = node === end ? null : get_next_sibling(node);
|
|
5724
|
+
node.remove();
|
|
5725
|
+
node = next2;
|
|
6515
5726
|
}
|
|
6516
5727
|
}
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
var
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
$$me;
|
|
6532
|
-
$$shadowRoot = null;
|
|
6533
|
-
constructor($$componentCtor, $$slots, shadow_root_init) {
|
|
6534
|
-
super();
|
|
6535
|
-
this.$$ctor = $$componentCtor;
|
|
6536
|
-
this.$$s = $$slots;
|
|
6537
|
-
if (shadow_root_init) {
|
|
6538
|
-
this.$$shadowRoot = this.attachShadow(shadow_root_init);
|
|
6539
|
-
}
|
|
6540
|
-
}
|
|
6541
|
-
addEventListener(type, listener, options2) {
|
|
6542
|
-
this.$$l[type] = this.$$l[type] || [];
|
|
6543
|
-
this.$$l[type].push(listener);
|
|
6544
|
-
if (this.$$c) {
|
|
6545
|
-
const unsub = this.$$c.$on(type, listener);
|
|
6546
|
-
this.$$l_u.set(listener, unsub);
|
|
6547
|
-
}
|
|
6548
|
-
super.addEventListener(type, listener, options2);
|
|
6549
|
-
}
|
|
6550
|
-
removeEventListener(type, listener, options2) {
|
|
6551
|
-
super.removeEventListener(type, listener, options2);
|
|
6552
|
-
if (this.$$c) {
|
|
6553
|
-
const unsub = this.$$l_u.get(listener);
|
|
6554
|
-
if (unsub) {
|
|
6555
|
-
unsub();
|
|
6556
|
-
this.$$l_u.delete(listener);
|
|
6557
|
-
}
|
|
6558
|
-
}
|
|
6559
|
-
}
|
|
6560
|
-
async connectedCallback() {
|
|
6561
|
-
this.$$cn = true;
|
|
6562
|
-
if (!this.$$c) {
|
|
6563
|
-
let create_slot = function(name) {
|
|
6564
|
-
return (anchor) => {
|
|
6565
|
-
const slot = create_element("slot");
|
|
6566
|
-
if (name !== "default")
|
|
6567
|
-
slot.name = name;
|
|
6568
|
-
append(anchor, slot);
|
|
6569
|
-
};
|
|
6570
|
-
};
|
|
6571
|
-
await Promise.resolve();
|
|
6572
|
-
if (!this.$$cn || this.$$c) {
|
|
6573
|
-
return;
|
|
6574
|
-
}
|
|
6575
|
-
const $$slots = {};
|
|
6576
|
-
const existing_slots = get_custom_elements_slots(this);
|
|
6577
|
-
for (const name of this.$$s) {
|
|
6578
|
-
if (name in existing_slots) {
|
|
6579
|
-
if (name === "default" && !this.$$d.children) {
|
|
6580
|
-
this.$$d.children = create_slot(name);
|
|
6581
|
-
$$slots.default = true;
|
|
6582
|
-
} else {
|
|
6583
|
-
$$slots[name] = create_slot(name);
|
|
6584
|
-
}
|
|
6585
|
-
}
|
|
6586
|
-
}
|
|
6587
|
-
for (const attribute of this.attributes) {
|
|
6588
|
-
const name = this.$$g_p(attribute.name);
|
|
6589
|
-
if (!(name in this.$$d)) {
|
|
6590
|
-
this.$$d[name] = get_custom_element_value(name, attribute.value, this.$$p_d, "toProp");
|
|
6591
|
-
}
|
|
6592
|
-
}
|
|
6593
|
-
for (const key in this.$$p_d) {
|
|
6594
|
-
if (!(key in this.$$d) && this[key] !== undefined) {
|
|
6595
|
-
this.$$d[key] = this[key];
|
|
6596
|
-
delete this[key];
|
|
6597
|
-
}
|
|
6598
|
-
}
|
|
6599
|
-
this.$$c = createClassComponent({
|
|
6600
|
-
component: this.$$ctor,
|
|
6601
|
-
target: this.$$shadowRoot || this,
|
|
6602
|
-
props: {
|
|
6603
|
-
...this.$$d,
|
|
6604
|
-
$$slots,
|
|
6605
|
-
$$host: this
|
|
6606
|
-
}
|
|
6607
|
-
});
|
|
6608
|
-
this.$$me = effect_root(() => {
|
|
6609
|
-
render_effect(() => {
|
|
6610
|
-
this.$$r = true;
|
|
6611
|
-
for (const key of object_keys(this.$$c)) {
|
|
6612
|
-
if (!this.$$p_d[key]?.reflect)
|
|
6613
|
-
continue;
|
|
6614
|
-
this.$$d[key] = this.$$c[key];
|
|
6615
|
-
const attribute_value = get_custom_element_value(key, this.$$d[key], this.$$p_d, "toAttribute");
|
|
6616
|
-
if (attribute_value == null) {
|
|
6617
|
-
this.removeAttribute(this.$$p_d[key].attribute || key);
|
|
6618
|
-
} else {
|
|
6619
|
-
this.setAttribute(this.$$p_d[key].attribute || key, attribute_value);
|
|
6620
|
-
}
|
|
6621
|
-
}
|
|
6622
|
-
this.$$r = false;
|
|
6623
|
-
});
|
|
6624
|
-
});
|
|
6625
|
-
for (const type in this.$$l) {
|
|
6626
|
-
for (const listener of this.$$l[type]) {
|
|
6627
|
-
const unsub = this.$$c.$on(type, listener);
|
|
6628
|
-
this.$$l_u.set(listener, unsub);
|
|
6629
|
-
}
|
|
6630
|
-
}
|
|
6631
|
-
this.$$l = {};
|
|
6632
|
-
}
|
|
6633
|
-
}
|
|
6634
|
-
attributeChangedCallback(attr, _oldValue, newValue) {
|
|
6635
|
-
if (this.$$r)
|
|
6636
|
-
return;
|
|
6637
|
-
attr = this.$$g_p(attr);
|
|
6638
|
-
this.$$d[attr] = get_custom_element_value(attr, newValue, this.$$p_d, "toProp");
|
|
6639
|
-
this.$$c?.$set({ [attr]: this.$$d[attr] });
|
|
6640
|
-
}
|
|
6641
|
-
disconnectedCallback() {
|
|
6642
|
-
this.$$cn = false;
|
|
6643
|
-
Promise.resolve().then(() => {
|
|
6644
|
-
if (!this.$$cn && this.$$c) {
|
|
6645
|
-
this.$$c.$destroy();
|
|
6646
|
-
this.$$me();
|
|
6647
|
-
this.$$c = undefined;
|
|
6648
|
-
}
|
|
6649
|
-
});
|
|
6650
|
-
}
|
|
6651
|
-
$$g_p(attribute_name) {
|
|
6652
|
-
return object_keys(this.$$p_d).find((key) => this.$$p_d[key].attribute === attribute_name || !this.$$p_d[key].attribute && key.toLowerCase() === attribute_name) || attribute_name;
|
|
6653
|
-
}
|
|
6654
|
-
};
|
|
5728
|
+
function unlink_effect(effect) {
|
|
5729
|
+
var parent = effect.parent;
|
|
5730
|
+
var prev = effect.prev;
|
|
5731
|
+
var next2 = effect.next;
|
|
5732
|
+
if (prev !== null)
|
|
5733
|
+
prev.next = next2;
|
|
5734
|
+
if (next2 !== null)
|
|
5735
|
+
next2.prev = prev;
|
|
5736
|
+
if (parent !== null) {
|
|
5737
|
+
if (parent.first === effect)
|
|
5738
|
+
parent.first = next2;
|
|
5739
|
+
if (parent.last === effect)
|
|
5740
|
+
parent.last = prev;
|
|
5741
|
+
}
|
|
6655
5742
|
}
|
|
6656
|
-
function
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
default:
|
|
6671
|
-
return value;
|
|
5743
|
+
function pause_effect(effect, callback, destroy = true) {
|
|
5744
|
+
var transitions = [];
|
|
5745
|
+
pause_children(effect, transitions, true);
|
|
5746
|
+
var fn = () => {
|
|
5747
|
+
if (destroy)
|
|
5748
|
+
destroy_effect(effect);
|
|
5749
|
+
if (callback)
|
|
5750
|
+
callback();
|
|
5751
|
+
};
|
|
5752
|
+
var remaining = transitions.length;
|
|
5753
|
+
if (remaining > 0) {
|
|
5754
|
+
var check = () => --remaining || fn();
|
|
5755
|
+
for (var transition of transitions) {
|
|
5756
|
+
transition.out(check);
|
|
6672
5757
|
}
|
|
6673
5758
|
} else {
|
|
6674
|
-
|
|
6675
|
-
case "Object":
|
|
6676
|
-
case "Array":
|
|
6677
|
-
return value && JSON.parse(value);
|
|
6678
|
-
case "Boolean":
|
|
6679
|
-
return value;
|
|
6680
|
-
case "Number":
|
|
6681
|
-
return value != null ? +value : value;
|
|
6682
|
-
default:
|
|
6683
|
-
return value;
|
|
6684
|
-
}
|
|
5759
|
+
fn();
|
|
6685
5760
|
}
|
|
6686
5761
|
}
|
|
6687
|
-
function
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
let throw_rune_error = function(rune) {
|
|
6697
|
-
if (!(rune in globalThis)) {
|
|
6698
|
-
let value;
|
|
6699
|
-
Object.defineProperty(globalThis, rune, {
|
|
6700
|
-
configurable: true,
|
|
6701
|
-
get: () => {
|
|
6702
|
-
if (value !== undefined) {
|
|
6703
|
-
return value;
|
|
6704
|
-
}
|
|
6705
|
-
rune_outside_svelte(rune);
|
|
6706
|
-
},
|
|
6707
|
-
set: (v) => {
|
|
6708
|
-
value = v;
|
|
6709
|
-
}
|
|
6710
|
-
});
|
|
6711
|
-
}
|
|
6712
|
-
};
|
|
6713
|
-
throw_rune_error("$state");
|
|
6714
|
-
throw_rune_error("$effect");
|
|
6715
|
-
throw_rune_error("$derived");
|
|
6716
|
-
throw_rune_error("$inspect");
|
|
6717
|
-
throw_rune_error("$props");
|
|
6718
|
-
throw_rune_error("$bindable");
|
|
6719
|
-
}
|
|
6720
|
-
|
|
6721
|
-
// node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/store/shared/index.js
|
|
6722
|
-
var subscriber_queue = [];
|
|
6723
|
-
function writable(value, start = noop) {
|
|
6724
|
-
let stop = null;
|
|
6725
|
-
const subscribers = new Set;
|
|
6726
|
-
function set2(new_value) {
|
|
6727
|
-
if (safe_not_equal(value, new_value)) {
|
|
6728
|
-
value = new_value;
|
|
6729
|
-
if (stop) {
|
|
6730
|
-
const run_queue = !subscriber_queue.length;
|
|
6731
|
-
for (const subscriber of subscribers) {
|
|
6732
|
-
subscriber[1]();
|
|
6733
|
-
subscriber_queue.push(subscriber, value);
|
|
6734
|
-
}
|
|
6735
|
-
if (run_queue) {
|
|
6736
|
-
for (let i = 0;i < subscriber_queue.length; i += 2) {
|
|
6737
|
-
subscriber_queue[i][0](subscriber_queue[i + 1]);
|
|
6738
|
-
}
|
|
6739
|
-
subscriber_queue.length = 0;
|
|
6740
|
-
}
|
|
5762
|
+
function pause_children(effect, transitions, local) {
|
|
5763
|
+
if ((effect.f & INERT) !== 0)
|
|
5764
|
+
return;
|
|
5765
|
+
effect.f ^= INERT;
|
|
5766
|
+
var t = effect.nodes && effect.nodes.t;
|
|
5767
|
+
if (t !== null) {
|
|
5768
|
+
for (const transition of t) {
|
|
5769
|
+
if (transition.is_global || local) {
|
|
5770
|
+
transitions.push(transition);
|
|
6741
5771
|
}
|
|
6742
5772
|
}
|
|
6743
5773
|
}
|
|
6744
|
-
|
|
6745
|
-
|
|
5774
|
+
var child = effect.first;
|
|
5775
|
+
while (child !== null) {
|
|
5776
|
+
var sibling = child.next;
|
|
5777
|
+
var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || (child.f & BRANCH_EFFECT) !== 0 && (effect.f & BLOCK_EFFECT) !== 0;
|
|
5778
|
+
pause_children(child, transitions, transparent ? local : false);
|
|
5779
|
+
child = sibling;
|
|
6746
5780
|
}
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
stop();
|
|
6758
|
-
stop = null;
|
|
6759
|
-
}
|
|
6760
|
-
};
|
|
5781
|
+
}
|
|
5782
|
+
function move_effect(effect, fragment) {
|
|
5783
|
+
if (!effect.nodes)
|
|
5784
|
+
return;
|
|
5785
|
+
var node = effect.nodes.start;
|
|
5786
|
+
var end = effect.nodes.end;
|
|
5787
|
+
while (node !== null) {
|
|
5788
|
+
var next2 = node === end ? null : get_next_sibling(node);
|
|
5789
|
+
fragment.append(node);
|
|
5790
|
+
node = next2;
|
|
6761
5791
|
}
|
|
6762
|
-
return { set: set2, update: update2, subscribe };
|
|
6763
5792
|
}
|
|
6764
|
-
// node_modules/.
|
|
5793
|
+
// node_modules/.bun/inside-out-async@2.0.2/node_modules/inside-out-async/dist/index.mjs
|
|
6765
5794
|
function withResolvers() {
|
|
6766
5795
|
let reject;
|
|
6767
5796
|
let resolve;
|
|
@@ -6843,9 +5872,9 @@ var getDomainName = (url) => {
|
|
|
6843
5872
|
};
|
|
6844
5873
|
|
|
6845
5874
|
// src/lib/client/utils/html-to-text.ts
|
|
6846
|
-
function htmlToText(
|
|
6847
|
-
const
|
|
6848
|
-
return
|
|
5875
|
+
function htmlToText(html3) {
|
|
5876
|
+
const text2 = html3.replace(/<[^>]*>/g, "").replace(/ /g, " ").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"');
|
|
5877
|
+
return text2;
|
|
6849
5878
|
}
|
|
6850
5879
|
|
|
6851
5880
|
// src/lib/client/chat-result-builder.ts
|
|
@@ -6906,14 +5935,14 @@ class ChatResultBuilder {
|
|
|
6906
5935
|
id
|
|
6907
5936
|
}));
|
|
6908
5937
|
}
|
|
6909
|
-
updateText(
|
|
5938
|
+
updateText(text2) {
|
|
6910
5939
|
this.store.update((current) => {
|
|
6911
|
-
const nextMarkdown = current.message.markdown +
|
|
6912
|
-
const
|
|
5940
|
+
const nextMarkdown = current.message.markdown + text2;
|
|
5941
|
+
const html3 = this.options.markdownRenderer.toHTML(nextMarkdown, current.references);
|
|
6913
5942
|
return {
|
|
6914
5943
|
...current,
|
|
6915
5944
|
state: "streaming",
|
|
6916
|
-
message: { markdown: nextMarkdown, html:
|
|
5945
|
+
message: { markdown: nextMarkdown, html: html3, text: "" }
|
|
6917
5946
|
};
|
|
6918
5947
|
});
|
|
6919
5948
|
}
|
|
@@ -7009,7 +6038,7 @@ class Conversation {
|
|
|
7009
6038
|
}
|
|
7010
6039
|
}
|
|
7011
6040
|
|
|
7012
|
-
// node_modules/.
|
|
6041
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
7013
6042
|
var exports_external = {};
|
|
7014
6043
|
__export(exports_external, {
|
|
7015
6044
|
xor: () => xor,
|
|
@@ -7120,7 +6149,7 @@ __export(exports_external, {
|
|
|
7120
6149
|
httpUrl: () => httpUrl,
|
|
7121
6150
|
hostname: () => hostname2,
|
|
7122
6151
|
hex: () => hex2,
|
|
7123
|
-
hash: () =>
|
|
6152
|
+
hash: () => hash,
|
|
7124
6153
|
guid: () => guid2,
|
|
7125
6154
|
gte: () => _gte,
|
|
7126
6155
|
gt: () => _gt,
|
|
@@ -7250,7 +6279,7 @@ __export(exports_external, {
|
|
|
7250
6279
|
$brand: () => $brand
|
|
7251
6280
|
});
|
|
7252
6281
|
|
|
7253
|
-
// node_modules/.
|
|
6282
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/index.js
|
|
7254
6283
|
var exports_core2 = {};
|
|
7255
6284
|
__export(exports_core2, {
|
|
7256
6285
|
version: () => version,
|
|
@@ -7528,12 +6557,12 @@ __export(exports_core2, {
|
|
|
7528
6557
|
$ZodAny: () => $ZodAny
|
|
7529
6558
|
});
|
|
7530
6559
|
|
|
7531
|
-
// node_modules/.
|
|
6560
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
7532
6561
|
var NEVER = Object.freeze({
|
|
7533
6562
|
status: "aborted"
|
|
7534
6563
|
});
|
|
7535
6564
|
function $constructor(name, initializer, params) {
|
|
7536
|
-
function
|
|
6565
|
+
function init(inst, def2) {
|
|
7537
6566
|
if (!inst._zod) {
|
|
7538
6567
|
Object.defineProperty(inst, "_zod", {
|
|
7539
6568
|
value: {
|
|
@@ -7566,14 +6595,14 @@ function $constructor(name, initializer, params) {
|
|
|
7566
6595
|
function _(def2) {
|
|
7567
6596
|
var _a;
|
|
7568
6597
|
const inst = params?.Parent ? new Definition : this;
|
|
7569
|
-
|
|
6598
|
+
init(inst, def2);
|
|
7570
6599
|
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
7571
6600
|
for (const fn of inst._zod.deferred) {
|
|
7572
6601
|
fn();
|
|
7573
6602
|
}
|
|
7574
6603
|
return inst;
|
|
7575
6604
|
}
|
|
7576
|
-
Object.defineProperty(_, "init", { value:
|
|
6605
|
+
Object.defineProperty(_, "init", { value: init });
|
|
7577
6606
|
Object.defineProperty(_, Symbol.hasInstance, {
|
|
7578
6607
|
value: (inst) => {
|
|
7579
6608
|
if (params?.Parent && inst instanceof params.Parent)
|
|
@@ -7604,7 +6633,7 @@ function config(newConfig) {
|
|
|
7604
6633
|
Object.assign(globalConfig, newConfig);
|
|
7605
6634
|
return globalConfig;
|
|
7606
6635
|
}
|
|
7607
|
-
// node_modules/.
|
|
6636
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
7608
6637
|
var exports_util = {};
|
|
7609
6638
|
__export(exports_util, {
|
|
7610
6639
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -7731,9 +6760,9 @@ function floatSafeRemainder(val, step) {
|
|
|
7731
6760
|
return valInt % stepInt / 10 ** decCount;
|
|
7732
6761
|
}
|
|
7733
6762
|
var EVALUATING = Symbol("evaluating");
|
|
7734
|
-
function defineLazy(object,
|
|
6763
|
+
function defineLazy(object, key, getter) {
|
|
7735
6764
|
let value = undefined;
|
|
7736
|
-
Object.defineProperty(object,
|
|
6765
|
+
Object.defineProperty(object, key, {
|
|
7737
6766
|
get() {
|
|
7738
6767
|
if (value === EVALUATING) {
|
|
7739
6768
|
return;
|
|
@@ -7745,7 +6774,7 @@ function defineLazy(object, key2, getter) {
|
|
|
7745
6774
|
return value;
|
|
7746
6775
|
},
|
|
7747
6776
|
set(v) {
|
|
7748
|
-
Object.defineProperty(object,
|
|
6777
|
+
Object.defineProperty(object, key, {
|
|
7749
6778
|
value: v
|
|
7750
6779
|
});
|
|
7751
6780
|
},
|
|
@@ -7755,8 +6784,8 @@ function defineLazy(object, key2, getter) {
|
|
|
7755
6784
|
function objectClone(obj) {
|
|
7756
6785
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
7757
6786
|
}
|
|
7758
|
-
function assignProp(target,
|
|
7759
|
-
Object.defineProperty(target,
|
|
6787
|
+
function assignProp(target, prop, value) {
|
|
6788
|
+
Object.defineProperty(target, prop, {
|
|
7760
6789
|
value,
|
|
7761
6790
|
writable: true,
|
|
7762
6791
|
enumerable: true,
|
|
@@ -7777,11 +6806,11 @@ function cloneDef(schema) {
|
|
|
7777
6806
|
function getElementAtPath(obj, path) {
|
|
7778
6807
|
if (!path)
|
|
7779
6808
|
return obj;
|
|
7780
|
-
return path.reduce((acc,
|
|
6809
|
+
return path.reduce((acc, key) => acc?.[key], obj);
|
|
7781
6810
|
}
|
|
7782
6811
|
function promiseAllObject(promisesObj) {
|
|
7783
6812
|
const keys = Object.keys(promisesObj);
|
|
7784
|
-
const promises = keys.map((
|
|
6813
|
+
const promises = keys.map((key) => promisesObj[key]);
|
|
7785
6814
|
return Promise.all(promises).then((results) => {
|
|
7786
6815
|
const resolvedObj = {};
|
|
7787
6816
|
for (let i = 0;i < keys.length; i++) {
|
|
@@ -7845,8 +6874,8 @@ function shallowClone(o) {
|
|
|
7845
6874
|
}
|
|
7846
6875
|
function numKeys(data) {
|
|
7847
6876
|
let keyCount = 0;
|
|
7848
|
-
for (const
|
|
7849
|
-
if (Object.prototype.hasOwnProperty.call(data,
|
|
6877
|
+
for (const key in data) {
|
|
6878
|
+
if (Object.prototype.hasOwnProperty.call(data, key)) {
|
|
7850
6879
|
keyCount++;
|
|
7851
6880
|
}
|
|
7852
6881
|
}
|
|
@@ -7926,33 +6955,33 @@ function normalizeParams(_params) {
|
|
|
7926
6955
|
function createTransparentProxy(getter) {
|
|
7927
6956
|
let target;
|
|
7928
6957
|
return new Proxy({}, {
|
|
7929
|
-
get(_,
|
|
6958
|
+
get(_, prop, receiver) {
|
|
7930
6959
|
target ?? (target = getter());
|
|
7931
|
-
return Reflect.get(target,
|
|
6960
|
+
return Reflect.get(target, prop, receiver);
|
|
7932
6961
|
},
|
|
7933
|
-
set(_,
|
|
6962
|
+
set(_, prop, value, receiver) {
|
|
7934
6963
|
target ?? (target = getter());
|
|
7935
|
-
return Reflect.set(target,
|
|
6964
|
+
return Reflect.set(target, prop, value, receiver);
|
|
7936
6965
|
},
|
|
7937
|
-
has(_,
|
|
6966
|
+
has(_, prop) {
|
|
7938
6967
|
target ?? (target = getter());
|
|
7939
|
-
return Reflect.has(target,
|
|
6968
|
+
return Reflect.has(target, prop);
|
|
7940
6969
|
},
|
|
7941
|
-
deleteProperty(_,
|
|
6970
|
+
deleteProperty(_, prop) {
|
|
7942
6971
|
target ?? (target = getter());
|
|
7943
|
-
return Reflect.deleteProperty(target,
|
|
6972
|
+
return Reflect.deleteProperty(target, prop);
|
|
7944
6973
|
},
|
|
7945
6974
|
ownKeys(_) {
|
|
7946
6975
|
target ?? (target = getter());
|
|
7947
6976
|
return Reflect.ownKeys(target);
|
|
7948
6977
|
},
|
|
7949
|
-
getOwnPropertyDescriptor(_,
|
|
6978
|
+
getOwnPropertyDescriptor(_, prop) {
|
|
7950
6979
|
target ?? (target = getter());
|
|
7951
|
-
return Reflect.getOwnPropertyDescriptor(target,
|
|
6980
|
+
return Reflect.getOwnPropertyDescriptor(target, prop);
|
|
7952
6981
|
},
|
|
7953
|
-
defineProperty(_,
|
|
6982
|
+
defineProperty(_, prop, descriptor) {
|
|
7954
6983
|
target ?? (target = getter());
|
|
7955
|
-
return Reflect.defineProperty(target,
|
|
6984
|
+
return Reflect.defineProperty(target, prop, descriptor);
|
|
7956
6985
|
}
|
|
7957
6986
|
});
|
|
7958
6987
|
}
|
|
@@ -7989,13 +7018,13 @@ function pick(schema, mask) {
|
|
|
7989
7018
|
const def2 = mergeDefs(schema._zod.def, {
|
|
7990
7019
|
get shape() {
|
|
7991
7020
|
const newShape = {};
|
|
7992
|
-
for (const
|
|
7993
|
-
if (!(
|
|
7994
|
-
throw new Error(`Unrecognized key: "${
|
|
7021
|
+
for (const key in mask) {
|
|
7022
|
+
if (!(key in currDef.shape)) {
|
|
7023
|
+
throw new Error(`Unrecognized key: "${key}"`);
|
|
7995
7024
|
}
|
|
7996
|
-
if (!mask[
|
|
7025
|
+
if (!mask[key])
|
|
7997
7026
|
continue;
|
|
7998
|
-
newShape[
|
|
7027
|
+
newShape[key] = currDef.shape[key];
|
|
7999
7028
|
}
|
|
8000
7029
|
assignProp(this, "shape", newShape);
|
|
8001
7030
|
return newShape;
|
|
@@ -8014,13 +7043,13 @@ function omit(schema, mask) {
|
|
|
8014
7043
|
const def2 = mergeDefs(schema._zod.def, {
|
|
8015
7044
|
get shape() {
|
|
8016
7045
|
const newShape = { ...schema._zod.def.shape };
|
|
8017
|
-
for (const
|
|
8018
|
-
if (!(
|
|
8019
|
-
throw new Error(`Unrecognized key: "${
|
|
7046
|
+
for (const key in mask) {
|
|
7047
|
+
if (!(key in currDef.shape)) {
|
|
7048
|
+
throw new Error(`Unrecognized key: "${key}"`);
|
|
8020
7049
|
}
|
|
8021
|
-
if (!mask[
|
|
7050
|
+
if (!mask[key])
|
|
8022
7051
|
continue;
|
|
8023
|
-
delete newShape[
|
|
7052
|
+
delete newShape[key];
|
|
8024
7053
|
}
|
|
8025
7054
|
assignProp(this, "shape", newShape);
|
|
8026
7055
|
return newShape;
|
|
@@ -8037,8 +7066,8 @@ function extend(schema, shape) {
|
|
|
8037
7066
|
const hasChecks = checks && checks.length > 0;
|
|
8038
7067
|
if (hasChecks) {
|
|
8039
7068
|
const existingShape = schema._zod.def.shape;
|
|
8040
|
-
for (const
|
|
8041
|
-
if (Object.getOwnPropertyDescriptor(existingShape,
|
|
7069
|
+
for (const key in shape) {
|
|
7070
|
+
if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {
|
|
8042
7071
|
throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
8043
7072
|
}
|
|
8044
7073
|
}
|
|
@@ -8091,23 +7120,23 @@ function partial(Class, schema, mask) {
|
|
|
8091
7120
|
const oldShape = schema._zod.def.shape;
|
|
8092
7121
|
const shape = { ...oldShape };
|
|
8093
7122
|
if (mask) {
|
|
8094
|
-
for (const
|
|
8095
|
-
if (!(
|
|
8096
|
-
throw new Error(`Unrecognized key: "${
|
|
7123
|
+
for (const key in mask) {
|
|
7124
|
+
if (!(key in oldShape)) {
|
|
7125
|
+
throw new Error(`Unrecognized key: "${key}"`);
|
|
8097
7126
|
}
|
|
8098
|
-
if (!mask[
|
|
7127
|
+
if (!mask[key])
|
|
8099
7128
|
continue;
|
|
8100
|
-
shape[
|
|
7129
|
+
shape[key] = Class ? new Class({
|
|
8101
7130
|
type: "optional",
|
|
8102
|
-
innerType: oldShape[
|
|
8103
|
-
}) : oldShape[
|
|
7131
|
+
innerType: oldShape[key]
|
|
7132
|
+
}) : oldShape[key];
|
|
8104
7133
|
}
|
|
8105
7134
|
} else {
|
|
8106
|
-
for (const
|
|
8107
|
-
shape[
|
|
7135
|
+
for (const key in oldShape) {
|
|
7136
|
+
shape[key] = Class ? new Class({
|
|
8108
7137
|
type: "optional",
|
|
8109
|
-
innerType: oldShape[
|
|
8110
|
-
}) : oldShape[
|
|
7138
|
+
innerType: oldShape[key]
|
|
7139
|
+
}) : oldShape[key];
|
|
8111
7140
|
}
|
|
8112
7141
|
}
|
|
8113
7142
|
assignProp(this, "shape", shape);
|
|
@@ -8123,22 +7152,22 @@ function required(Class, schema, mask) {
|
|
|
8123
7152
|
const oldShape = schema._zod.def.shape;
|
|
8124
7153
|
const shape = { ...oldShape };
|
|
8125
7154
|
if (mask) {
|
|
8126
|
-
for (const
|
|
8127
|
-
if (!(
|
|
8128
|
-
throw new Error(`Unrecognized key: "${
|
|
7155
|
+
for (const key in mask) {
|
|
7156
|
+
if (!(key in shape)) {
|
|
7157
|
+
throw new Error(`Unrecognized key: "${key}"`);
|
|
8129
7158
|
}
|
|
8130
|
-
if (!mask[
|
|
7159
|
+
if (!mask[key])
|
|
8131
7160
|
continue;
|
|
8132
|
-
shape[
|
|
7161
|
+
shape[key] = new Class({
|
|
8133
7162
|
type: "nonoptional",
|
|
8134
|
-
innerType: oldShape[
|
|
7163
|
+
innerType: oldShape[key]
|
|
8135
7164
|
});
|
|
8136
7165
|
}
|
|
8137
7166
|
} else {
|
|
8138
|
-
for (const
|
|
8139
|
-
shape[
|
|
7167
|
+
for (const key in oldShape) {
|
|
7168
|
+
shape[key] = new Class({
|
|
8140
7169
|
type: "nonoptional",
|
|
8141
|
-
innerType: oldShape[
|
|
7170
|
+
innerType: oldShape[key]
|
|
8142
7171
|
});
|
|
8143
7172
|
}
|
|
8144
7173
|
}
|
|
@@ -8278,7 +7307,7 @@ class Class {
|
|
|
8278
7307
|
constructor(..._args) {}
|
|
8279
7308
|
}
|
|
8280
7309
|
|
|
8281
|
-
// node_modules/.
|
|
7310
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/errors.js
|
|
8282
7311
|
var initializer = (inst, def2) => {
|
|
8283
7312
|
inst.name = "$ZodError";
|
|
8284
7313
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -8415,7 +7444,7 @@ function prettifyError(error) {
|
|
|
8415
7444
|
`);
|
|
8416
7445
|
}
|
|
8417
7446
|
|
|
8418
|
-
// node_modules/.
|
|
7447
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/parse.js
|
|
8419
7448
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
8420
7449
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
8421
7450
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -8502,7 +7531,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
8502
7531
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
8503
7532
|
};
|
|
8504
7533
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
8505
|
-
// node_modules/.
|
|
7534
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/regexes.js
|
|
8506
7535
|
var exports_regexes = {};
|
|
8507
7536
|
__export(exports_regexes, {
|
|
8508
7537
|
xid: () => xid,
|
|
@@ -8659,7 +7688,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
8659
7688
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
8660
7689
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
8661
7690
|
|
|
8662
|
-
// node_modules/.
|
|
7691
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/checks.js
|
|
8663
7692
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def2) => {
|
|
8664
7693
|
var _a;
|
|
8665
7694
|
inst._zod ?? (inst._zod = {});
|
|
@@ -9206,7 +8235,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
9206
8235
|
};
|
|
9207
8236
|
});
|
|
9208
8237
|
|
|
9209
|
-
// node_modules/.
|
|
8238
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/doc.js
|
|
9210
8239
|
class Doc {
|
|
9211
8240
|
constructor(args = []) {
|
|
9212
8241
|
this.content = [];
|
|
@@ -9244,14 +8273,14 @@ class Doc {
|
|
|
9244
8273
|
}
|
|
9245
8274
|
}
|
|
9246
8275
|
|
|
9247
|
-
// node_modules/.
|
|
8276
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
9248
8277
|
var version = {
|
|
9249
8278
|
major: 4,
|
|
9250
8279
|
minor: 3,
|
|
9251
8280
|
patch: 6
|
|
9252
8281
|
};
|
|
9253
8282
|
|
|
9254
|
-
// node_modules/.
|
|
8283
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.js
|
|
9255
8284
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def2) => {
|
|
9256
8285
|
var _a;
|
|
9257
8286
|
inst ?? (inst = {});
|
|
@@ -9849,11 +8878,11 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def2) => {
|
|
|
9849
8878
|
return payload;
|
|
9850
8879
|
};
|
|
9851
8880
|
});
|
|
9852
|
-
function handleArrayResult(result, final,
|
|
8881
|
+
function handleArrayResult(result, final, index) {
|
|
9853
8882
|
if (result.issues.length) {
|
|
9854
|
-
final.issues.push(...prefixIssues(
|
|
8883
|
+
final.issues.push(...prefixIssues(index, result.issues));
|
|
9855
8884
|
}
|
|
9856
|
-
final.value[
|
|
8885
|
+
final.value[index] = result.value;
|
|
9857
8886
|
}
|
|
9858
8887
|
var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def2) => {
|
|
9859
8888
|
$ZodType.init(inst, def2);
|
|
@@ -9888,19 +8917,19 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def2) => {
|
|
|
9888
8917
|
return payload;
|
|
9889
8918
|
};
|
|
9890
8919
|
});
|
|
9891
|
-
function handlePropertyResult(result, final,
|
|
8920
|
+
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
9892
8921
|
if (result.issues.length) {
|
|
9893
|
-
if (isOptionalOut && !(
|
|
8922
|
+
if (isOptionalOut && !(key in input)) {
|
|
9894
8923
|
return;
|
|
9895
8924
|
}
|
|
9896
|
-
final.issues.push(...prefixIssues(
|
|
8925
|
+
final.issues.push(...prefixIssues(key, result.issues));
|
|
9897
8926
|
}
|
|
9898
8927
|
if (result.value === undefined) {
|
|
9899
|
-
if (
|
|
9900
|
-
final.value[
|
|
8928
|
+
if (key in input) {
|
|
8929
|
+
final.value[key] = undefined;
|
|
9901
8930
|
}
|
|
9902
8931
|
} else {
|
|
9903
|
-
final.value[
|
|
8932
|
+
final.value[key] = result.value;
|
|
9904
8933
|
}
|
|
9905
8934
|
}
|
|
9906
8935
|
function normalizeDef(def2) {
|
|
@@ -9925,18 +8954,18 @@ function handleCatchall(proms, input, payload, ctx, def2, inst) {
|
|
|
9925
8954
|
const _catchall = def2.catchall._zod;
|
|
9926
8955
|
const t = _catchall.def.type;
|
|
9927
8956
|
const isOptionalOut = _catchall.optout === "optional";
|
|
9928
|
-
for (const
|
|
9929
|
-
if (keySet.has(
|
|
8957
|
+
for (const key in input) {
|
|
8958
|
+
if (keySet.has(key))
|
|
9930
8959
|
continue;
|
|
9931
8960
|
if (t === "never") {
|
|
9932
|
-
unrecognized.push(
|
|
8961
|
+
unrecognized.push(key);
|
|
9933
8962
|
continue;
|
|
9934
8963
|
}
|
|
9935
|
-
const r = _catchall.run({ value: input[
|
|
8964
|
+
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
9936
8965
|
if (r instanceof Promise) {
|
|
9937
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload,
|
|
8966
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
9938
8967
|
} else {
|
|
9939
|
-
handlePropertyResult(r, payload,
|
|
8968
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
9940
8969
|
}
|
|
9941
8970
|
}
|
|
9942
8971
|
if (unrecognized.length) {
|
|
@@ -9972,12 +9001,12 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def2) => {
|
|
|
9972
9001
|
defineLazy(inst._zod, "propValues", () => {
|
|
9973
9002
|
const shape = def2.shape;
|
|
9974
9003
|
const propValues = {};
|
|
9975
|
-
for (const
|
|
9976
|
-
const field = shape[
|
|
9004
|
+
for (const key in shape) {
|
|
9005
|
+
const field = shape[key]._zod;
|
|
9977
9006
|
if (field.values) {
|
|
9978
|
-
propValues[
|
|
9007
|
+
propValues[key] ?? (propValues[key] = new Set);
|
|
9979
9008
|
for (const v of field.values)
|
|
9980
|
-
propValues[
|
|
9009
|
+
propValues[key].add(v);
|
|
9981
9010
|
}
|
|
9982
9011
|
}
|
|
9983
9012
|
return propValues;
|
|
@@ -10000,14 +9029,14 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def2) => {
|
|
|
10000
9029
|
payload.value = {};
|
|
10001
9030
|
const proms = [];
|
|
10002
9031
|
const shape = value.shape;
|
|
10003
|
-
for (const
|
|
10004
|
-
const el = shape[
|
|
9032
|
+
for (const key of value.keys) {
|
|
9033
|
+
const el = shape[key];
|
|
10005
9034
|
const isOptionalOut = el._zod.optout === "optional";
|
|
10006
|
-
const r = el._zod.run({ value: input[
|
|
9035
|
+
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
10007
9036
|
if (r instanceof Promise) {
|
|
10008
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload,
|
|
9037
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
10009
9038
|
} else {
|
|
10010
|
-
handlePropertyResult(r, payload,
|
|
9039
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
10011
9040
|
}
|
|
10012
9041
|
}
|
|
10013
9042
|
if (!catchall) {
|
|
@@ -10023,23 +9052,23 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def2) =
|
|
|
10023
9052
|
const generateFastpass = (shape) => {
|
|
10024
9053
|
const doc = new Doc(["shape", "payload", "ctx"]);
|
|
10025
9054
|
const normalized = _normalized.value;
|
|
10026
|
-
const parseStr = (
|
|
10027
|
-
const k = esc(
|
|
9055
|
+
const parseStr = (key) => {
|
|
9056
|
+
const k = esc(key);
|
|
10028
9057
|
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
10029
9058
|
};
|
|
10030
9059
|
doc.write(`const input = payload.value;`);
|
|
10031
9060
|
const ids = Object.create(null);
|
|
10032
9061
|
let counter = 0;
|
|
10033
|
-
for (const
|
|
10034
|
-
ids[
|
|
9062
|
+
for (const key of normalized.keys) {
|
|
9063
|
+
ids[key] = `key_${counter++}`;
|
|
10035
9064
|
}
|
|
10036
9065
|
doc.write(`const newResult = {};`);
|
|
10037
|
-
for (const
|
|
10038
|
-
const id = ids[
|
|
10039
|
-
const k = esc(
|
|
10040
|
-
const schema = shape[
|
|
9066
|
+
for (const key of normalized.keys) {
|
|
9067
|
+
const id = ids[key];
|
|
9068
|
+
const k = esc(key);
|
|
9069
|
+
const schema = shape[key];
|
|
10041
9070
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
10042
|
-
doc.write(`const ${id} = ${parseStr(
|
|
9071
|
+
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
10043
9072
|
if (isOptionalOut) {
|
|
10044
9073
|
doc.write(`
|
|
10045
9074
|
if (${id}.issues.length) {
|
|
@@ -10158,7 +9187,7 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def2) => {
|
|
|
10158
9187
|
if (single) {
|
|
10159
9188
|
return first(payload, ctx);
|
|
10160
9189
|
}
|
|
10161
|
-
let
|
|
9190
|
+
let async = false;
|
|
10162
9191
|
const results = [];
|
|
10163
9192
|
for (const option of def2.options) {
|
|
10164
9193
|
const result = option._zod.run({
|
|
@@ -10167,14 +9196,14 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def2) => {
|
|
|
10167
9196
|
}, ctx);
|
|
10168
9197
|
if (result instanceof Promise) {
|
|
10169
9198
|
results.push(result);
|
|
10170
|
-
|
|
9199
|
+
async = true;
|
|
10171
9200
|
} else {
|
|
10172
9201
|
if (result.issues.length === 0)
|
|
10173
9202
|
return result;
|
|
10174
9203
|
results.push(result);
|
|
10175
9204
|
}
|
|
10176
9205
|
}
|
|
10177
|
-
if (!
|
|
9206
|
+
if (!async)
|
|
10178
9207
|
return handleUnionResults(results, payload, inst, ctx);
|
|
10179
9208
|
return Promise.all(results).then((results2) => {
|
|
10180
9209
|
return handleUnionResults(results2, payload, inst, ctx);
|
|
@@ -10214,7 +9243,7 @@ var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def2) => {
|
|
|
10214
9243
|
if (single) {
|
|
10215
9244
|
return first(payload, ctx);
|
|
10216
9245
|
}
|
|
10217
|
-
let
|
|
9246
|
+
let async = false;
|
|
10218
9247
|
const results = [];
|
|
10219
9248
|
for (const option of def2.options) {
|
|
10220
9249
|
const result = option._zod.run({
|
|
@@ -10223,12 +9252,12 @@ var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def2) => {
|
|
|
10223
9252
|
}, ctx);
|
|
10224
9253
|
if (result instanceof Promise) {
|
|
10225
9254
|
results.push(result);
|
|
10226
|
-
|
|
9255
|
+
async = true;
|
|
10227
9256
|
} else {
|
|
10228
9257
|
results.push(result);
|
|
10229
9258
|
}
|
|
10230
9259
|
}
|
|
10231
|
-
if (!
|
|
9260
|
+
if (!async)
|
|
10232
9261
|
return handleExclusiveUnionResults(results, payload, inst, ctx);
|
|
10233
9262
|
return Promise.all(results).then((results2) => {
|
|
10234
9263
|
return handleExclusiveUnionResults(results2, payload, inst, ctx);
|
|
@@ -10307,8 +9336,8 @@ var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, d
|
|
|
10307
9336
|
const input = payload.value;
|
|
10308
9337
|
const left = def2.left._zod.run({ value: input, issues: [] }, ctx);
|
|
10309
9338
|
const right = def2.right._zod.run({ value: input, issues: [] }, ctx);
|
|
10310
|
-
const
|
|
10311
|
-
if (
|
|
9339
|
+
const async = left instanceof Promise || right instanceof Promise;
|
|
9340
|
+
if (async) {
|
|
10312
9341
|
return Promise.all([left, right]).then(([left2, right2]) => {
|
|
10313
9342
|
return handleIntersectionResults(payload, left2, right2);
|
|
10314
9343
|
});
|
|
@@ -10325,17 +9354,17 @@ function mergeValues(a, b) {
|
|
|
10325
9354
|
}
|
|
10326
9355
|
if (isPlainObject(a) && isPlainObject(b)) {
|
|
10327
9356
|
const bKeys = Object.keys(b);
|
|
10328
|
-
const sharedKeys = Object.keys(a).filter((
|
|
9357
|
+
const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
10329
9358
|
const newObj = { ...a, ...b };
|
|
10330
|
-
for (const
|
|
10331
|
-
const sharedValue = mergeValues(a[
|
|
9359
|
+
for (const key of sharedKeys) {
|
|
9360
|
+
const sharedValue = mergeValues(a[key], b[key]);
|
|
10332
9361
|
if (!sharedValue.valid) {
|
|
10333
9362
|
return {
|
|
10334
9363
|
valid: false,
|
|
10335
|
-
mergeErrorPath: [
|
|
9364
|
+
mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
|
|
10336
9365
|
};
|
|
10337
9366
|
}
|
|
10338
|
-
newObj[
|
|
9367
|
+
newObj[key] = sharedValue.data;
|
|
10339
9368
|
}
|
|
10340
9369
|
return { valid: true, data: newObj };
|
|
10341
9370
|
}
|
|
@@ -10344,14 +9373,14 @@ function mergeValues(a, b) {
|
|
|
10344
9373
|
return { valid: false, mergeErrorPath: [] };
|
|
10345
9374
|
}
|
|
10346
9375
|
const newArray = [];
|
|
10347
|
-
for (let
|
|
10348
|
-
const itemA = a[
|
|
10349
|
-
const itemB = b[
|
|
9376
|
+
for (let index = 0;index < a.length; index++) {
|
|
9377
|
+
const itemA = a[index];
|
|
9378
|
+
const itemB = b[index];
|
|
10350
9379
|
const sharedValue = mergeValues(itemA, itemB);
|
|
10351
9380
|
if (!sharedValue.valid) {
|
|
10352
9381
|
return {
|
|
10353
9382
|
valid: false,
|
|
10354
|
-
mergeErrorPath: [
|
|
9383
|
+
mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
|
|
10355
9384
|
};
|
|
10356
9385
|
}
|
|
10357
9386
|
newArray.push(sharedValue.data);
|
|
@@ -10467,11 +9496,11 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def2) => {
|
|
|
10467
9496
|
return payload;
|
|
10468
9497
|
};
|
|
10469
9498
|
});
|
|
10470
|
-
function handleTupleResult(result, final,
|
|
9499
|
+
function handleTupleResult(result, final, index) {
|
|
10471
9500
|
if (result.issues.length) {
|
|
10472
|
-
final.issues.push(...prefixIssues(
|
|
9501
|
+
final.issues.push(...prefixIssues(index, result.issues));
|
|
10473
9502
|
}
|
|
10474
|
-
final.value[
|
|
9503
|
+
final.value[index] = result.value;
|
|
10475
9504
|
}
|
|
10476
9505
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def2) => {
|
|
10477
9506
|
$ZodType.init(inst, def2);
|
|
@@ -10491,30 +9520,30 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def2) => {
|
|
|
10491
9520
|
if (values) {
|
|
10492
9521
|
payload.value = {};
|
|
10493
9522
|
const recordKeys = new Set;
|
|
10494
|
-
for (const
|
|
10495
|
-
if (typeof
|
|
10496
|
-
recordKeys.add(typeof
|
|
10497
|
-
const result = def2.valueType._zod.run({ value: input[
|
|
9523
|
+
for (const key of values) {
|
|
9524
|
+
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
9525
|
+
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
9526
|
+
const result = def2.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
10498
9527
|
if (result instanceof Promise) {
|
|
10499
9528
|
proms.push(result.then((result2) => {
|
|
10500
9529
|
if (result2.issues.length) {
|
|
10501
|
-
payload.issues.push(...prefixIssues(
|
|
9530
|
+
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
10502
9531
|
}
|
|
10503
|
-
payload.value[
|
|
9532
|
+
payload.value[key] = result2.value;
|
|
10504
9533
|
}));
|
|
10505
9534
|
} else {
|
|
10506
9535
|
if (result.issues.length) {
|
|
10507
|
-
payload.issues.push(...prefixIssues(
|
|
9536
|
+
payload.issues.push(...prefixIssues(key, result.issues));
|
|
10508
9537
|
}
|
|
10509
|
-
payload.value[
|
|
9538
|
+
payload.value[key] = result.value;
|
|
10510
9539
|
}
|
|
10511
9540
|
}
|
|
10512
9541
|
}
|
|
10513
9542
|
let unrecognized;
|
|
10514
|
-
for (const
|
|
10515
|
-
if (!recordKeys.has(
|
|
9543
|
+
for (const key in input) {
|
|
9544
|
+
if (!recordKeys.has(key)) {
|
|
10516
9545
|
unrecognized = unrecognized ?? [];
|
|
10517
|
-
unrecognized.push(
|
|
9546
|
+
unrecognized.push(key);
|
|
10518
9547
|
}
|
|
10519
9548
|
}
|
|
10520
9549
|
if (unrecognized && unrecognized.length > 0) {
|
|
@@ -10527,16 +9556,16 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def2) => {
|
|
|
10527
9556
|
}
|
|
10528
9557
|
} else {
|
|
10529
9558
|
payload.value = {};
|
|
10530
|
-
for (const
|
|
10531
|
-
if (
|
|
9559
|
+
for (const key of Reflect.ownKeys(input)) {
|
|
9560
|
+
if (key === "__proto__")
|
|
10532
9561
|
continue;
|
|
10533
|
-
let keyResult = def2.keyType._zod.run({ value:
|
|
9562
|
+
let keyResult = def2.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
10534
9563
|
if (keyResult instanceof Promise) {
|
|
10535
9564
|
throw new Error("Async schemas not supported in object keys currently");
|
|
10536
9565
|
}
|
|
10537
|
-
const checkNumericKey = typeof
|
|
9566
|
+
const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length;
|
|
10538
9567
|
if (checkNumericKey) {
|
|
10539
|
-
const retryResult = def2.keyType._zod.run({ value: Number(
|
|
9568
|
+
const retryResult = def2.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
|
|
10540
9569
|
if (retryResult instanceof Promise) {
|
|
10541
9570
|
throw new Error("Async schemas not supported in object keys currently");
|
|
10542
9571
|
}
|
|
@@ -10546,30 +9575,30 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def2) => {
|
|
|
10546
9575
|
}
|
|
10547
9576
|
if (keyResult.issues.length) {
|
|
10548
9577
|
if (def2.mode === "loose") {
|
|
10549
|
-
payload.value[
|
|
9578
|
+
payload.value[key] = input[key];
|
|
10550
9579
|
} else {
|
|
10551
9580
|
payload.issues.push({
|
|
10552
9581
|
code: "invalid_key",
|
|
10553
9582
|
origin: "record",
|
|
10554
9583
|
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
10555
|
-
input:
|
|
10556
|
-
path: [
|
|
9584
|
+
input: key,
|
|
9585
|
+
path: [key],
|
|
10557
9586
|
inst
|
|
10558
9587
|
});
|
|
10559
9588
|
}
|
|
10560
9589
|
continue;
|
|
10561
9590
|
}
|
|
10562
|
-
const result = def2.valueType._zod.run({ value: input[
|
|
9591
|
+
const result = def2.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
10563
9592
|
if (result instanceof Promise) {
|
|
10564
9593
|
proms.push(result.then((result2) => {
|
|
10565
9594
|
if (result2.issues.length) {
|
|
10566
|
-
payload.issues.push(...prefixIssues(
|
|
9595
|
+
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
10567
9596
|
}
|
|
10568
9597
|
payload.value[keyResult.value] = result2.value;
|
|
10569
9598
|
}));
|
|
10570
9599
|
} else {
|
|
10571
9600
|
if (result.issues.length) {
|
|
10572
|
-
payload.issues.push(...prefixIssues(
|
|
9601
|
+
payload.issues.push(...prefixIssues(key, result.issues));
|
|
10573
9602
|
}
|
|
10574
9603
|
payload.value[keyResult.value] = result.value;
|
|
10575
9604
|
}
|
|
@@ -10596,15 +9625,15 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def2) => {
|
|
|
10596
9625
|
}
|
|
10597
9626
|
const proms = [];
|
|
10598
9627
|
payload.value = new Map;
|
|
10599
|
-
for (const [
|
|
10600
|
-
const keyResult = def2.keyType._zod.run({ value:
|
|
9628
|
+
for (const [key, value] of input) {
|
|
9629
|
+
const keyResult = def2.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
10601
9630
|
const valueResult = def2.valueType._zod.run({ value, issues: [] }, ctx);
|
|
10602
9631
|
if (keyResult instanceof Promise || valueResult instanceof Promise) {
|
|
10603
9632
|
proms.push(Promise.all([keyResult, valueResult]).then(([keyResult2, valueResult2]) => {
|
|
10604
|
-
handleMapResult(keyResult2, valueResult2, payload,
|
|
9633
|
+
handleMapResult(keyResult2, valueResult2, payload, key, input, inst, ctx);
|
|
10605
9634
|
}));
|
|
10606
9635
|
} else {
|
|
10607
|
-
handleMapResult(keyResult, valueResult, payload,
|
|
9636
|
+
handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);
|
|
10608
9637
|
}
|
|
10609
9638
|
}
|
|
10610
9639
|
if (proms.length)
|
|
@@ -10612,10 +9641,10 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def2) => {
|
|
|
10612
9641
|
return payload;
|
|
10613
9642
|
};
|
|
10614
9643
|
});
|
|
10615
|
-
function handleMapResult(keyResult, valueResult, final,
|
|
9644
|
+
function handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {
|
|
10616
9645
|
if (keyResult.issues.length) {
|
|
10617
|
-
if (propertyKeyTypes.has(typeof
|
|
10618
|
-
final.issues.push(...prefixIssues(
|
|
9646
|
+
if (propertyKeyTypes.has(typeof key)) {
|
|
9647
|
+
final.issues.push(...prefixIssues(key, keyResult.issues));
|
|
10619
9648
|
} else {
|
|
10620
9649
|
final.issues.push({
|
|
10621
9650
|
code: "invalid_key",
|
|
@@ -10627,15 +9656,15 @@ function handleMapResult(keyResult, valueResult, final, key2, input, inst, ctx)
|
|
|
10627
9656
|
}
|
|
10628
9657
|
}
|
|
10629
9658
|
if (valueResult.issues.length) {
|
|
10630
|
-
if (propertyKeyTypes.has(typeof
|
|
10631
|
-
final.issues.push(...prefixIssues(
|
|
9659
|
+
if (propertyKeyTypes.has(typeof key)) {
|
|
9660
|
+
final.issues.push(...prefixIssues(key, valueResult.issues));
|
|
10632
9661
|
} else {
|
|
10633
9662
|
final.issues.push({
|
|
10634
9663
|
origin: "map",
|
|
10635
9664
|
code: "invalid_element",
|
|
10636
9665
|
input,
|
|
10637
9666
|
inst,
|
|
10638
|
-
key
|
|
9667
|
+
key,
|
|
10639
9668
|
issues: valueResult.issues.map((iss) => finalizeIssue(iss, ctx, config()))
|
|
10640
9669
|
});
|
|
10641
9670
|
}
|
|
@@ -11213,7 +10242,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
11213
10242
|
payload.issues.push(issue(_iss));
|
|
11214
10243
|
}
|
|
11215
10244
|
}
|
|
11216
|
-
// node_modules/.
|
|
10245
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/index.js
|
|
11217
10246
|
var exports_locales = {};
|
|
11218
10247
|
__export(exports_locales, {
|
|
11219
10248
|
zhTW: () => zh_TW_default,
|
|
@@ -11267,7 +10296,7 @@ __export(exports_locales, {
|
|
|
11267
10296
|
ar: () => ar_default
|
|
11268
10297
|
});
|
|
11269
10298
|
|
|
11270
|
-
// node_modules/.
|
|
10299
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ar.js
|
|
11271
10300
|
var error = () => {
|
|
11272
10301
|
const Sizable = {
|
|
11273
10302
|
string: { unit: "حرف", verb: "أن يحوي" },
|
|
@@ -11373,7 +10402,7 @@ function ar_default() {
|
|
|
11373
10402
|
localeError: error()
|
|
11374
10403
|
};
|
|
11375
10404
|
}
|
|
11376
|
-
// node_modules/.
|
|
10405
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/az.js
|
|
11377
10406
|
var error2 = () => {
|
|
11378
10407
|
const Sizable = {
|
|
11379
10408
|
string: { unit: "simvol", verb: "olmalıdır" },
|
|
@@ -11478,7 +10507,7 @@ function az_default() {
|
|
|
11478
10507
|
localeError: error2()
|
|
11479
10508
|
};
|
|
11480
10509
|
}
|
|
11481
|
-
// node_modules/.
|
|
10510
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/be.js
|
|
11482
10511
|
function getBelarusianPlural(count, one, few, many) {
|
|
11483
10512
|
const absCount = Math.abs(count);
|
|
11484
10513
|
const lastDigit = absCount % 10;
|
|
@@ -11634,7 +10663,7 @@ function be_default() {
|
|
|
11634
10663
|
localeError: error3()
|
|
11635
10664
|
};
|
|
11636
10665
|
}
|
|
11637
|
-
// node_modules/.
|
|
10666
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/bg.js
|
|
11638
10667
|
var error4 = () => {
|
|
11639
10668
|
const Sizable = {
|
|
11640
10669
|
string: { unit: "символа", verb: "да съдържа" },
|
|
@@ -11754,7 +10783,7 @@ function bg_default() {
|
|
|
11754
10783
|
localeError: error4()
|
|
11755
10784
|
};
|
|
11756
10785
|
}
|
|
11757
|
-
// node_modules/.
|
|
10786
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ca.js
|
|
11758
10787
|
var error5 = () => {
|
|
11759
10788
|
const Sizable = {
|
|
11760
10789
|
string: { unit: "caràcters", verb: "contenir" },
|
|
@@ -11861,7 +10890,7 @@ function ca_default() {
|
|
|
11861
10890
|
localeError: error5()
|
|
11862
10891
|
};
|
|
11863
10892
|
}
|
|
11864
|
-
// node_modules/.
|
|
10893
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/cs.js
|
|
11865
10894
|
var error6 = () => {
|
|
11866
10895
|
const Sizable = {
|
|
11867
10896
|
string: { unit: "znaků", verb: "mít" },
|
|
@@ -11972,7 +11001,7 @@ function cs_default() {
|
|
|
11972
11001
|
localeError: error6()
|
|
11973
11002
|
};
|
|
11974
11003
|
}
|
|
11975
|
-
// node_modules/.
|
|
11004
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/da.js
|
|
11976
11005
|
var error7 = () => {
|
|
11977
11006
|
const Sizable = {
|
|
11978
11007
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -12087,7 +11116,7 @@ function da_default() {
|
|
|
12087
11116
|
localeError: error7()
|
|
12088
11117
|
};
|
|
12089
11118
|
}
|
|
12090
|
-
// node_modules/.
|
|
11119
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/de.js
|
|
12091
11120
|
var error8 = () => {
|
|
12092
11121
|
const Sizable = {
|
|
12093
11122
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -12195,7 +11224,7 @@ function de_default() {
|
|
|
12195
11224
|
localeError: error8()
|
|
12196
11225
|
};
|
|
12197
11226
|
}
|
|
12198
|
-
// node_modules/.
|
|
11227
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/en.js
|
|
12199
11228
|
var error9 = () => {
|
|
12200
11229
|
const Sizable = {
|
|
12201
11230
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -12301,7 +11330,7 @@ function en_default() {
|
|
|
12301
11330
|
localeError: error9()
|
|
12302
11331
|
};
|
|
12303
11332
|
}
|
|
12304
|
-
// node_modules/.
|
|
11333
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/eo.js
|
|
12305
11334
|
var error10 = () => {
|
|
12306
11335
|
const Sizable = {
|
|
12307
11336
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -12410,7 +11439,7 @@ function eo_default() {
|
|
|
12410
11439
|
localeError: error10()
|
|
12411
11440
|
};
|
|
12412
11441
|
}
|
|
12413
|
-
// node_modules/.
|
|
11442
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/es.js
|
|
12414
11443
|
var error11 = () => {
|
|
12415
11444
|
const Sizable = {
|
|
12416
11445
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -12542,7 +11571,7 @@ function es_default() {
|
|
|
12542
11571
|
localeError: error11()
|
|
12543
11572
|
};
|
|
12544
11573
|
}
|
|
12545
|
-
// node_modules/.
|
|
11574
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fa.js
|
|
12546
11575
|
var error12 = () => {
|
|
12547
11576
|
const Sizable = {
|
|
12548
11577
|
string: { unit: "کاراکتر", verb: "داشته باشد" },
|
|
@@ -12656,7 +11685,7 @@ function fa_default() {
|
|
|
12656
11685
|
localeError: error12()
|
|
12657
11686
|
};
|
|
12658
11687
|
}
|
|
12659
|
-
// node_modules/.
|
|
11688
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fi.js
|
|
12660
11689
|
var error13 = () => {
|
|
12661
11690
|
const Sizable = {
|
|
12662
11691
|
string: { unit: "merkkiä", subject: "merkkijonon" },
|
|
@@ -12768,7 +11797,7 @@ function fi_default() {
|
|
|
12768
11797
|
localeError: error13()
|
|
12769
11798
|
};
|
|
12770
11799
|
}
|
|
12771
|
-
// node_modules/.
|
|
11800
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr.js
|
|
12772
11801
|
var error14 = () => {
|
|
12773
11802
|
const Sizable = {
|
|
12774
11803
|
string: { unit: "caractères", verb: "avoir" },
|
|
@@ -12876,7 +11905,7 @@ function fr_default() {
|
|
|
12876
11905
|
localeError: error14()
|
|
12877
11906
|
};
|
|
12878
11907
|
}
|
|
12879
|
-
// node_modules/.
|
|
11908
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
|
|
12880
11909
|
var error15 = () => {
|
|
12881
11910
|
const Sizable = {
|
|
12882
11911
|
string: { unit: "caractères", verb: "avoir" },
|
|
@@ -12983,7 +12012,7 @@ function fr_CA_default() {
|
|
|
12983
12012
|
localeError: error15()
|
|
12984
12013
|
};
|
|
12985
12014
|
}
|
|
12986
|
-
// node_modules/.
|
|
12015
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/he.js
|
|
12987
12016
|
var error16 = () => {
|
|
12988
12017
|
const TypeNames = {
|
|
12989
12018
|
string: { label: "מחרוזת", gender: "f" },
|
|
@@ -13176,7 +12205,7 @@ function he_default() {
|
|
|
13176
12205
|
localeError: error16()
|
|
13177
12206
|
};
|
|
13178
12207
|
}
|
|
13179
|
-
// node_modules/.
|
|
12208
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hu.js
|
|
13180
12209
|
var error17 = () => {
|
|
13181
12210
|
const Sizable = {
|
|
13182
12211
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -13284,7 +12313,7 @@ function hu_default() {
|
|
|
13284
12313
|
localeError: error17()
|
|
13285
12314
|
};
|
|
13286
12315
|
}
|
|
13287
|
-
// node_modules/.
|
|
12316
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hy.js
|
|
13288
12317
|
function getArmenianPlural(count, one, many) {
|
|
13289
12318
|
return Math.abs(count) === 1 ? one : many;
|
|
13290
12319
|
}
|
|
@@ -13431,7 +12460,7 @@ function hy_default() {
|
|
|
13431
12460
|
localeError: error18()
|
|
13432
12461
|
};
|
|
13433
12462
|
}
|
|
13434
|
-
// node_modules/.
|
|
12463
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/id.js
|
|
13435
12464
|
var error19 = () => {
|
|
13436
12465
|
const Sizable = {
|
|
13437
12466
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -13537,7 +12566,7 @@ function id_default() {
|
|
|
13537
12566
|
localeError: error19()
|
|
13538
12567
|
};
|
|
13539
12568
|
}
|
|
13540
|
-
// node_modules/.
|
|
12569
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/is.js
|
|
13541
12570
|
var error20 = () => {
|
|
13542
12571
|
const Sizable = {
|
|
13543
12572
|
string: { unit: "stafi", verb: "að hafa" },
|
|
@@ -13646,7 +12675,7 @@ function is_default() {
|
|
|
13646
12675
|
localeError: error20()
|
|
13647
12676
|
};
|
|
13648
12677
|
}
|
|
13649
|
-
// node_modules/.
|
|
12678
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/it.js
|
|
13650
12679
|
var error21 = () => {
|
|
13651
12680
|
const Sizable = {
|
|
13652
12681
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -13754,7 +12783,7 @@ function it_default() {
|
|
|
13754
12783
|
localeError: error21()
|
|
13755
12784
|
};
|
|
13756
12785
|
}
|
|
13757
|
-
// node_modules/.
|
|
12786
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ja.js
|
|
13758
12787
|
var error22 = () => {
|
|
13759
12788
|
const Sizable = {
|
|
13760
12789
|
string: { unit: "文字", verb: "である" },
|
|
@@ -13861,7 +12890,7 @@ function ja_default() {
|
|
|
13861
12890
|
localeError: error22()
|
|
13862
12891
|
};
|
|
13863
12892
|
}
|
|
13864
|
-
// node_modules/.
|
|
12893
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ka.js
|
|
13865
12894
|
var error23 = () => {
|
|
13866
12895
|
const Sizable = {
|
|
13867
12896
|
string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
|
|
@@ -13973,7 +13002,7 @@ function ka_default() {
|
|
|
13973
13002
|
localeError: error23()
|
|
13974
13003
|
};
|
|
13975
13004
|
}
|
|
13976
|
-
// node_modules/.
|
|
13005
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/km.js
|
|
13977
13006
|
var error24 = () => {
|
|
13978
13007
|
const Sizable = {
|
|
13979
13008
|
string: { unit: "តួអក្សរ", verb: "គួរមាន" },
|
|
@@ -14084,11 +13113,11 @@ function km_default() {
|
|
|
14084
13113
|
};
|
|
14085
13114
|
}
|
|
14086
13115
|
|
|
14087
|
-
// node_modules/.
|
|
13116
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/kh.js
|
|
14088
13117
|
function kh_default() {
|
|
14089
13118
|
return km_default();
|
|
14090
13119
|
}
|
|
14091
|
-
// node_modules/.
|
|
13120
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ko.js
|
|
14092
13121
|
var error25 = () => {
|
|
14093
13122
|
const Sizable = {
|
|
14094
13123
|
string: { unit: "문자", verb: "to have" },
|
|
@@ -14199,9 +13228,9 @@ function ko_default() {
|
|
|
14199
13228
|
localeError: error25()
|
|
14200
13229
|
};
|
|
14201
13230
|
}
|
|
14202
|
-
// node_modules/.
|
|
14203
|
-
var capitalizeFirstCharacter = (
|
|
14204
|
-
return
|
|
13231
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/lt.js
|
|
13232
|
+
var capitalizeFirstCharacter = (text2) => {
|
|
13233
|
+
return text2.charAt(0).toUpperCase() + text2.slice(1);
|
|
14205
13234
|
};
|
|
14206
13235
|
function getUnitTypeFromNumber(number2) {
|
|
14207
13236
|
const abs = Math.abs(number2);
|
|
@@ -14402,7 +13431,7 @@ function lt_default() {
|
|
|
14402
13431
|
localeError: error26()
|
|
14403
13432
|
};
|
|
14404
13433
|
}
|
|
14405
|
-
// node_modules/.
|
|
13434
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/mk.js
|
|
14406
13435
|
var error27 = () => {
|
|
14407
13436
|
const Sizable = {
|
|
14408
13437
|
string: { unit: "знаци", verb: "да имаат" },
|
|
@@ -14511,7 +13540,7 @@ function mk_default() {
|
|
|
14511
13540
|
localeError: error27()
|
|
14512
13541
|
};
|
|
14513
13542
|
}
|
|
14514
|
-
// node_modules/.
|
|
13543
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ms.js
|
|
14515
13544
|
var error28 = () => {
|
|
14516
13545
|
const Sizable = {
|
|
14517
13546
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -14618,7 +13647,7 @@ function ms_default() {
|
|
|
14618
13647
|
localeError: error28()
|
|
14619
13648
|
};
|
|
14620
13649
|
}
|
|
14621
|
-
// node_modules/.
|
|
13650
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/nl.js
|
|
14622
13651
|
var error29 = () => {
|
|
14623
13652
|
const Sizable = {
|
|
14624
13653
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -14728,7 +13757,7 @@ function nl_default() {
|
|
|
14728
13757
|
localeError: error29()
|
|
14729
13758
|
};
|
|
14730
13759
|
}
|
|
14731
|
-
// node_modules/.
|
|
13760
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/no.js
|
|
14732
13761
|
var error30 = () => {
|
|
14733
13762
|
const Sizable = {
|
|
14734
13763
|
string: { unit: "tegn", verb: "å ha" },
|
|
@@ -14836,7 +13865,7 @@ function no_default() {
|
|
|
14836
13865
|
localeError: error30()
|
|
14837
13866
|
};
|
|
14838
13867
|
}
|
|
14839
|
-
// node_modules/.
|
|
13868
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ota.js
|
|
14840
13869
|
var error31 = () => {
|
|
14841
13870
|
const Sizable = {
|
|
14842
13871
|
string: { unit: "harf", verb: "olmalıdır" },
|
|
@@ -14945,7 +13974,7 @@ function ota_default() {
|
|
|
14945
13974
|
localeError: error31()
|
|
14946
13975
|
};
|
|
14947
13976
|
}
|
|
14948
|
-
// node_modules/.
|
|
13977
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ps.js
|
|
14949
13978
|
var error32 = () => {
|
|
14950
13979
|
const Sizable = {
|
|
14951
13980
|
string: { unit: "توکي", verb: "ولري" },
|
|
@@ -15059,7 +14088,7 @@ function ps_default() {
|
|
|
15059
14088
|
localeError: error32()
|
|
15060
14089
|
};
|
|
15061
14090
|
}
|
|
15062
|
-
// node_modules/.
|
|
14091
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pl.js
|
|
15063
14092
|
var error33 = () => {
|
|
15064
14093
|
const Sizable = {
|
|
15065
14094
|
string: { unit: "znaków", verb: "mieć" },
|
|
@@ -15168,7 +14197,7 @@ function pl_default() {
|
|
|
15168
14197
|
localeError: error33()
|
|
15169
14198
|
};
|
|
15170
14199
|
}
|
|
15171
|
-
// node_modules/.
|
|
14200
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pt.js
|
|
15172
14201
|
var error34 = () => {
|
|
15173
14202
|
const Sizable = {
|
|
15174
14203
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -15276,7 +14305,7 @@ function pt_default() {
|
|
|
15276
14305
|
localeError: error34()
|
|
15277
14306
|
};
|
|
15278
14307
|
}
|
|
15279
|
-
// node_modules/.
|
|
14308
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ru.js
|
|
15280
14309
|
function getRussianPlural(count, one, few, many) {
|
|
15281
14310
|
const absCount = Math.abs(count);
|
|
15282
14311
|
const lastDigit = absCount % 10;
|
|
@@ -15432,7 +14461,7 @@ function ru_default() {
|
|
|
15432
14461
|
localeError: error35()
|
|
15433
14462
|
};
|
|
15434
14463
|
}
|
|
15435
|
-
// node_modules/.
|
|
14464
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sl.js
|
|
15436
14465
|
var error36 = () => {
|
|
15437
14466
|
const Sizable = {
|
|
15438
14467
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -15541,7 +14570,7 @@ function sl_default() {
|
|
|
15541
14570
|
localeError: error36()
|
|
15542
14571
|
};
|
|
15543
14572
|
}
|
|
15544
|
-
// node_modules/.
|
|
14573
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sv.js
|
|
15545
14574
|
var error37 = () => {
|
|
15546
14575
|
const Sizable = {
|
|
15547
14576
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -15651,7 +14680,7 @@ function sv_default() {
|
|
|
15651
14680
|
localeError: error37()
|
|
15652
14681
|
};
|
|
15653
14682
|
}
|
|
15654
|
-
// node_modules/.
|
|
14683
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ta.js
|
|
15655
14684
|
var error38 = () => {
|
|
15656
14685
|
const Sizable = {
|
|
15657
14686
|
string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
@@ -15761,7 +14790,7 @@ function ta_default() {
|
|
|
15761
14790
|
localeError: error38()
|
|
15762
14791
|
};
|
|
15763
14792
|
}
|
|
15764
|
-
// node_modules/.
|
|
14793
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/th.js
|
|
15765
14794
|
var error39 = () => {
|
|
15766
14795
|
const Sizable = {
|
|
15767
14796
|
string: { unit: "ตัวอักษร", verb: "ควรมี" },
|
|
@@ -15871,7 +14900,7 @@ function th_default() {
|
|
|
15871
14900
|
localeError: error39()
|
|
15872
14901
|
};
|
|
15873
14902
|
}
|
|
15874
|
-
// node_modules/.
|
|
14903
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/tr.js
|
|
15875
14904
|
var error40 = () => {
|
|
15876
14905
|
const Sizable = {
|
|
15877
14906
|
string: { unit: "karakter", verb: "olmalı" },
|
|
@@ -15976,7 +15005,7 @@ function tr_default() {
|
|
|
15976
15005
|
localeError: error40()
|
|
15977
15006
|
};
|
|
15978
15007
|
}
|
|
15979
|
-
// node_modules/.
|
|
15008
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uk.js
|
|
15980
15009
|
var error41 = () => {
|
|
15981
15010
|
const Sizable = {
|
|
15982
15011
|
string: { unit: "символів", verb: "матиме" },
|
|
@@ -16085,11 +15114,11 @@ function uk_default() {
|
|
|
16085
15114
|
};
|
|
16086
15115
|
}
|
|
16087
15116
|
|
|
16088
|
-
// node_modules/.
|
|
15117
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ua.js
|
|
16089
15118
|
function ua_default() {
|
|
16090
15119
|
return uk_default();
|
|
16091
15120
|
}
|
|
16092
|
-
// node_modules/.
|
|
15121
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ur.js
|
|
16093
15122
|
var error42 = () => {
|
|
16094
15123
|
const Sizable = {
|
|
16095
15124
|
string: { unit: "حروف", verb: "ہونا" },
|
|
@@ -16199,7 +15228,7 @@ function ur_default() {
|
|
|
16199
15228
|
localeError: error42()
|
|
16200
15229
|
};
|
|
16201
15230
|
}
|
|
16202
|
-
// node_modules/.
|
|
15231
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uz.js
|
|
16203
15232
|
var error43 = () => {
|
|
16204
15233
|
const Sizable = {
|
|
16205
15234
|
string: { unit: "belgi", verb: "bo‘lishi kerak" },
|
|
@@ -16308,7 +15337,7 @@ function uz_default() {
|
|
|
16308
15337
|
localeError: error43()
|
|
16309
15338
|
};
|
|
16310
15339
|
}
|
|
16311
|
-
// node_modules/.
|
|
15340
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/vi.js
|
|
16312
15341
|
var error44 = () => {
|
|
16313
15342
|
const Sizable = {
|
|
16314
15343
|
string: { unit: "ký tự", verb: "có" },
|
|
@@ -16416,7 +15445,7 @@ function vi_default() {
|
|
|
16416
15445
|
localeError: error44()
|
|
16417
15446
|
};
|
|
16418
15447
|
}
|
|
16419
|
-
// node_modules/.
|
|
15448
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
|
|
16420
15449
|
var error45 = () => {
|
|
16421
15450
|
const Sizable = {
|
|
16422
15451
|
string: { unit: "字符", verb: "包含" },
|
|
@@ -16525,7 +15554,7 @@ function zh_CN_default() {
|
|
|
16525
15554
|
localeError: error45()
|
|
16526
15555
|
};
|
|
16527
15556
|
}
|
|
16528
|
-
// node_modules/.
|
|
15557
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
|
|
16529
15558
|
var error46 = () => {
|
|
16530
15559
|
const Sizable = {
|
|
16531
15560
|
string: { unit: "字元", verb: "擁有" },
|
|
@@ -16632,7 +15661,7 @@ function zh_TW_default() {
|
|
|
16632
15661
|
localeError: error46()
|
|
16633
15662
|
};
|
|
16634
15663
|
}
|
|
16635
|
-
// node_modules/.
|
|
15664
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/yo.js
|
|
16636
15665
|
var error47 = () => {
|
|
16637
15666
|
const Sizable = {
|
|
16638
15667
|
string: { unit: "àmi", verb: "ní" },
|
|
@@ -16739,7 +15768,7 @@ function yo_default() {
|
|
|
16739
15768
|
localeError: error47()
|
|
16740
15769
|
};
|
|
16741
15770
|
}
|
|
16742
|
-
// node_modules/.
|
|
15771
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
16743
15772
|
var _a;
|
|
16744
15773
|
var $output = Symbol("ZodOutput");
|
|
16745
15774
|
var $input = Symbol("ZodInput");
|
|
@@ -16789,7 +15818,7 @@ function registry() {
|
|
|
16789
15818
|
}
|
|
16790
15819
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
16791
15820
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
16792
|
-
// node_modules/.
|
|
15821
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
16793
15822
|
function _string(Class2, params) {
|
|
16794
15823
|
return new Class2({
|
|
16795
15824
|
type: "string",
|
|
@@ -17395,10 +16424,10 @@ function _toUpperCase() {
|
|
|
17395
16424
|
function _slugify() {
|
|
17396
16425
|
return _overwrite((input) => slugify(input));
|
|
17397
16426
|
}
|
|
17398
|
-
function _array(Class2,
|
|
16427
|
+
function _array(Class2, element, params) {
|
|
17399
16428
|
return new Class2({
|
|
17400
16429
|
type: "array",
|
|
17401
|
-
element
|
|
16430
|
+
element,
|
|
17402
16431
|
...normalizeParams(params)
|
|
17403
16432
|
});
|
|
17404
16433
|
}
|
|
@@ -17709,7 +16738,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
17709
16738
|
const inst = new Class2(def2);
|
|
17710
16739
|
return inst;
|
|
17711
16740
|
}
|
|
17712
|
-
// node_modules/.
|
|
16741
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
|
|
17713
16742
|
function initializeContext(params) {
|
|
17714
16743
|
let target = params?.target ?? "draft-2020-12";
|
|
17715
16744
|
if (target === "draft-4")
|
|
@@ -17829,8 +16858,8 @@ function extractDefs(ctx, schema) {
|
|
|
17829
16858
|
if (defId)
|
|
17830
16859
|
seen.defId = defId;
|
|
17831
16860
|
const schema2 = seen.schema;
|
|
17832
|
-
for (const
|
|
17833
|
-
delete schema2[
|
|
16861
|
+
for (const key in schema2) {
|
|
16862
|
+
delete schema2[key];
|
|
17834
16863
|
}
|
|
17835
16864
|
schema2.$ref = ref;
|
|
17836
16865
|
};
|
|
@@ -17897,20 +16926,20 @@ function finalize(ctx, schema) {
|
|
|
17897
16926
|
Object.assign(schema2, _cached);
|
|
17898
16927
|
const isParentRef = zodSchema._zod.parent === ref;
|
|
17899
16928
|
if (isParentRef) {
|
|
17900
|
-
for (const
|
|
17901
|
-
if (
|
|
16929
|
+
for (const key in schema2) {
|
|
16930
|
+
if (key === "$ref" || key === "allOf")
|
|
17902
16931
|
continue;
|
|
17903
|
-
if (!(
|
|
17904
|
-
delete schema2[
|
|
16932
|
+
if (!(key in _cached)) {
|
|
16933
|
+
delete schema2[key];
|
|
17905
16934
|
}
|
|
17906
16935
|
}
|
|
17907
16936
|
}
|
|
17908
16937
|
if (refSchema.$ref && refSeen.def) {
|
|
17909
|
-
for (const
|
|
17910
|
-
if (
|
|
16938
|
+
for (const key in schema2) {
|
|
16939
|
+
if (key === "$ref" || key === "allOf")
|
|
17911
16940
|
continue;
|
|
17912
|
-
if (
|
|
17913
|
-
delete schema2[
|
|
16941
|
+
if (key in refSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(refSeen.def[key])) {
|
|
16942
|
+
delete schema2[key];
|
|
17914
16943
|
}
|
|
17915
16944
|
}
|
|
17916
16945
|
}
|
|
@@ -17922,11 +16951,11 @@ function finalize(ctx, schema) {
|
|
|
17922
16951
|
if (parentSeen?.schema.$ref) {
|
|
17923
16952
|
schema2.$ref = parentSeen.schema.$ref;
|
|
17924
16953
|
if (parentSeen.def) {
|
|
17925
|
-
for (const
|
|
17926
|
-
if (
|
|
16954
|
+
for (const key in schema2) {
|
|
16955
|
+
if (key === "$ref" || key === "allOf")
|
|
17927
16956
|
continue;
|
|
17928
|
-
if (
|
|
17929
|
-
delete schema2[
|
|
16957
|
+
if (key in parentSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(parentSeen.def[key])) {
|
|
16958
|
+
delete schema2[key];
|
|
17930
16959
|
}
|
|
17931
16960
|
}
|
|
17932
16961
|
}
|
|
@@ -18017,8 +17046,8 @@ function isTransforming(_schema, _ctx) {
|
|
|
18017
17046
|
return isTransforming(def2.in, ctx) || isTransforming(def2.out, ctx);
|
|
18018
17047
|
}
|
|
18019
17048
|
if (def2.type === "object") {
|
|
18020
|
-
for (const
|
|
18021
|
-
if (isTransforming(def2.shape[
|
|
17049
|
+
for (const key in def2.shape) {
|
|
17050
|
+
if (isTransforming(def2.shape[key], ctx))
|
|
18022
17051
|
return true;
|
|
18023
17052
|
}
|
|
18024
17053
|
return false;
|
|
@@ -18054,7 +17083,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
18054
17083
|
extractDefs(ctx, schema);
|
|
18055
17084
|
return finalize(ctx, schema);
|
|
18056
17085
|
};
|
|
18057
|
-
// node_modules/.
|
|
17086
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
18058
17087
|
var formatMap = {
|
|
18059
17088
|
guid: "uuid",
|
|
18060
17089
|
url: "uri",
|
|
@@ -18309,15 +17338,15 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
18309
17338
|
json.type = "object";
|
|
18310
17339
|
json.properties = {};
|
|
18311
17340
|
const shape = def2.shape;
|
|
18312
|
-
for (const
|
|
18313
|
-
json.properties[
|
|
17341
|
+
for (const key in shape) {
|
|
17342
|
+
json.properties[key] = process(shape[key], ctx, {
|
|
18314
17343
|
...params,
|
|
18315
|
-
path: [...params.path, "properties",
|
|
17344
|
+
path: [...params.path, "properties", key]
|
|
18316
17345
|
});
|
|
18317
17346
|
}
|
|
18318
17347
|
const allKeys = new Set(Object.keys(shape));
|
|
18319
|
-
const requiredKeys = new Set([...allKeys].filter((
|
|
18320
|
-
const v = def2.shape[
|
|
17348
|
+
const requiredKeys = new Set([...allKeys].filter((key) => {
|
|
17349
|
+
const v = def2.shape[key]._zod;
|
|
18321
17350
|
if (ctx.io === "input") {
|
|
18322
17351
|
return v.optin === undefined;
|
|
18323
17352
|
} else {
|
|
@@ -18582,9 +17611,9 @@ function toJSONSchema(input, params) {
|
|
|
18582
17611
|
};
|
|
18583
17612
|
ctx2.external = external;
|
|
18584
17613
|
for (const entry of registry2._idmap.entries()) {
|
|
18585
|
-
const [
|
|
17614
|
+
const [key, schema] = entry;
|
|
18586
17615
|
extractDefs(ctx2, schema);
|
|
18587
|
-
schemas[
|
|
17616
|
+
schemas[key] = finalize(ctx2, schema);
|
|
18588
17617
|
}
|
|
18589
17618
|
if (Object.keys(defs).length > 0) {
|
|
18590
17619
|
const defsSegment = ctx2.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
@@ -18599,7 +17628,7 @@ function toJSONSchema(input, params) {
|
|
|
18599
17628
|
extractDefs(ctx, input);
|
|
18600
17629
|
return finalize(ctx, input);
|
|
18601
17630
|
}
|
|
18602
|
-
// node_modules/.
|
|
17631
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
|
|
18603
17632
|
class JSONSchemaGenerator {
|
|
18604
17633
|
get metadataRegistry() {
|
|
18605
17634
|
return this.ctx.metadataRegistry;
|
|
@@ -18658,9 +17687,9 @@ class JSONSchemaGenerator {
|
|
|
18658
17687
|
return plainResult;
|
|
18659
17688
|
}
|
|
18660
17689
|
}
|
|
18661
|
-
// node_modules/.
|
|
17690
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
|
|
18662
17691
|
var exports_json_schema = {};
|
|
18663
|
-
// node_modules/.
|
|
17692
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
18664
17693
|
var exports_schemas2 = {};
|
|
18665
17694
|
__export(exports_schemas2, {
|
|
18666
17695
|
xor: () => xor,
|
|
@@ -18728,7 +17757,7 @@ __export(exports_schemas2, {
|
|
|
18728
17757
|
httpUrl: () => httpUrl,
|
|
18729
17758
|
hostname: () => hostname2,
|
|
18730
17759
|
hex: () => hex2,
|
|
18731
|
-
hash: () =>
|
|
17760
|
+
hash: () => hash,
|
|
18732
17761
|
guid: () => guid2,
|
|
18733
17762
|
function: () => _function,
|
|
18734
17763
|
float64: () => float64,
|
|
@@ -18829,7 +17858,7 @@ __export(exports_schemas2, {
|
|
|
18829
17858
|
ZodAny: () => ZodAny
|
|
18830
17859
|
});
|
|
18831
17860
|
|
|
18832
|
-
// node_modules/.
|
|
17861
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/checks.js
|
|
18833
17862
|
var exports_checks2 = {};
|
|
18834
17863
|
__export(exports_checks2, {
|
|
18835
17864
|
uppercase: () => _uppercase,
|
|
@@ -18863,7 +17892,7 @@ __export(exports_checks2, {
|
|
|
18863
17892
|
endsWith: () => _endsWith
|
|
18864
17893
|
});
|
|
18865
17894
|
|
|
18866
|
-
// node_modules/.
|
|
17895
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/iso.js
|
|
18867
17896
|
var exports_iso = {};
|
|
18868
17897
|
__export(exports_iso, {
|
|
18869
17898
|
time: () => time2,
|
|
@@ -18904,7 +17933,7 @@ function duration2(params) {
|
|
|
18904
17933
|
return _isoDuration(ZodISODuration, params);
|
|
18905
17934
|
}
|
|
18906
17935
|
|
|
18907
|
-
// node_modules/.
|
|
17936
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/errors.js
|
|
18908
17937
|
var initializer2 = (inst, issues) => {
|
|
18909
17938
|
$ZodError.init(inst, issues);
|
|
18910
17939
|
inst.name = "ZodError";
|
|
@@ -18939,7 +17968,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
18939
17968
|
Parent: Error
|
|
18940
17969
|
});
|
|
18941
17970
|
|
|
18942
|
-
// node_modules/.
|
|
17971
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/parse.js
|
|
18943
17972
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
18944
17973
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
18945
17974
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -18953,7 +17982,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
18953
17982
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
18954
17983
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
18955
17984
|
|
|
18956
|
-
// node_modules/.
|
|
17985
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
18957
17986
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def2) => {
|
|
18958
17987
|
$ZodType.init(inst, def2);
|
|
18959
17988
|
Object.assign(inst["~standard"], {
|
|
@@ -19268,7 +18297,7 @@ function hostname2(_params) {
|
|
|
19268
18297
|
function hex2(_params) {
|
|
19269
18298
|
return _stringFormat(ZodCustomStringFormat, "hex", exports_regexes.hex, _params);
|
|
19270
18299
|
}
|
|
19271
|
-
function
|
|
18300
|
+
function hash(alg, params) {
|
|
19272
18301
|
const enc = params?.enc ?? "hex";
|
|
19273
18302
|
const format = `${alg}_${enc}`;
|
|
19274
18303
|
const regex = exports_regexes[format];
|
|
@@ -19447,8 +18476,8 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def2) => {
|
|
|
19447
18476
|
inst.length = (len, params) => inst.check(_length(len, params));
|
|
19448
18477
|
inst.unwrap = () => inst.element;
|
|
19449
18478
|
});
|
|
19450
|
-
function array(
|
|
19451
|
-
return _array(ZodArray,
|
|
18479
|
+
function array(element, params) {
|
|
18480
|
+
return _array(ZodArray, element, params);
|
|
19452
18481
|
}
|
|
19453
18482
|
function keyof(schema) {
|
|
19454
18483
|
const shape = schema._zod.def.shape;
|
|
@@ -20029,7 +19058,7 @@ function json(params) {
|
|
|
20029
19058
|
function preprocess(fn, schema) {
|
|
20030
19059
|
return pipe(transform(fn), schema);
|
|
20031
19060
|
}
|
|
20032
|
-
// node_modules/.
|
|
19061
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/compat.js
|
|
20033
19062
|
var ZodIssueCode = {
|
|
20034
19063
|
invalid_type: "invalid_type",
|
|
20035
19064
|
too_big: "too_big",
|
|
@@ -20053,7 +19082,7 @@ function getErrorMap() {
|
|
|
20053
19082
|
}
|
|
20054
19083
|
var ZodFirstPartyTypeKind;
|
|
20055
19084
|
(function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
20056
|
-
// node_modules/.
|
|
19085
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
|
|
20057
19086
|
var z = {
|
|
20058
19087
|
...exports_schemas2,
|
|
20059
19088
|
...exports_checks2,
|
|
@@ -20141,11 +19170,11 @@ function resolveRef(ref, ctx) {
|
|
|
20141
19170
|
}
|
|
20142
19171
|
const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
|
|
20143
19172
|
if (path[0] === defsKey) {
|
|
20144
|
-
const
|
|
20145
|
-
if (!
|
|
19173
|
+
const key = path[1];
|
|
19174
|
+
if (!key || !ctx.defs[key]) {
|
|
20146
19175
|
throw new Error(`Reference not found: ${ref}`);
|
|
20147
19176
|
}
|
|
20148
|
-
return ctx.defs[
|
|
19177
|
+
return ctx.defs[key];
|
|
20149
19178
|
}
|
|
20150
19179
|
throw new Error(`Reference not found: ${ref}`);
|
|
20151
19180
|
}
|
|
@@ -20331,9 +19360,9 @@ function convertBaseSchema(schema, ctx) {
|
|
|
20331
19360
|
const shape = {};
|
|
20332
19361
|
const properties = schema.properties || {};
|
|
20333
19362
|
const requiredSet = new Set(schema.required || []);
|
|
20334
|
-
for (const [
|
|
19363
|
+
for (const [key, propSchema] of Object.entries(properties)) {
|
|
20335
19364
|
const propZodSchema = convertSchema(propSchema, ctx);
|
|
20336
|
-
shape[
|
|
19365
|
+
shape[key] = requiredSet.has(key) ? propZodSchema : propZodSchema.optional();
|
|
20337
19366
|
}
|
|
20338
19367
|
if (schema.propertyNames) {
|
|
20339
19368
|
const keySchema = convertSchema(schema.propertyNames, ctx);
|
|
@@ -20416,8 +19445,8 @@ function convertBaseSchema(schema, ctx) {
|
|
|
20416
19445
|
zodSchema = zodSchema.check(z.maxLength(schema.maxItems));
|
|
20417
19446
|
}
|
|
20418
19447
|
} else if (items !== undefined) {
|
|
20419
|
-
const
|
|
20420
|
-
let arraySchema = z.array(
|
|
19448
|
+
const element = convertSchema(items, ctx);
|
|
19449
|
+
let arraySchema = z.array(element);
|
|
20421
19450
|
if (typeof schema.minItems === "number") {
|
|
20422
19451
|
arraySchema = arraySchema.min(schema.minItems);
|
|
20423
19452
|
}
|
|
@@ -20477,20 +19506,20 @@ function convertSchema(schema, ctx) {
|
|
|
20477
19506
|
}
|
|
20478
19507
|
const extraMeta = {};
|
|
20479
19508
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
20480
|
-
for (const
|
|
20481
|
-
if (
|
|
20482
|
-
extraMeta[
|
|
19509
|
+
for (const key of coreMetadataKeys) {
|
|
19510
|
+
if (key in schema) {
|
|
19511
|
+
extraMeta[key] = schema[key];
|
|
20483
19512
|
}
|
|
20484
19513
|
}
|
|
20485
19514
|
const contentMetadataKeys = ["contentEncoding", "contentMediaType", "contentSchema"];
|
|
20486
|
-
for (const
|
|
20487
|
-
if (
|
|
20488
|
-
extraMeta[
|
|
19515
|
+
for (const key of contentMetadataKeys) {
|
|
19516
|
+
if (key in schema) {
|
|
19517
|
+
extraMeta[key] = schema[key];
|
|
20489
19518
|
}
|
|
20490
19519
|
}
|
|
20491
|
-
for (const
|
|
20492
|
-
if (!RECOGNIZED_KEYS.has(
|
|
20493
|
-
extraMeta[
|
|
19520
|
+
for (const key of Object.keys(schema)) {
|
|
19521
|
+
if (!RECOGNIZED_KEYS.has(key)) {
|
|
19522
|
+
extraMeta[key] = schema[key];
|
|
20494
19523
|
}
|
|
20495
19524
|
}
|
|
20496
19525
|
if (Object.keys(extraMeta).length > 0) {
|
|
@@ -20514,7 +19543,7 @@ function fromJSONSchema(schema, params) {
|
|
|
20514
19543
|
};
|
|
20515
19544
|
return convertSchema(schema, ctx);
|
|
20516
19545
|
}
|
|
20517
|
-
// node_modules/.
|
|
19546
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
|
|
20518
19547
|
var exports_coerce = {};
|
|
20519
19548
|
__export(exports_coerce, {
|
|
20520
19549
|
string: () => string3,
|
|
@@ -20539,7 +19568,7 @@ function date4(params) {
|
|
|
20539
19568
|
return _coercedDate(ZodDate, params);
|
|
20540
19569
|
}
|
|
20541
19570
|
|
|
20542
|
-
// node_modules/.
|
|
19571
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
20543
19572
|
config(en_default());
|
|
20544
19573
|
// src/lib/client/schemas/search-reference-schema.ts
|
|
20545
19574
|
var metadataValueSchema = exports_external.union([exports_external.string(), exports_external.number(), exports_external.boolean(), exports_external.array(exports_external.string()), exports_external.array(exports_external.number()), exports_external.array(exports_external.boolean())]);
|
|
@@ -21168,17 +20197,7 @@ var chatConfigSchema = completeChatConfigSchema.partial();
|
|
|
21168
20197
|
var chatConfigSchemaWithLegacyThemeName = exports_external.intersection(chatConfigSchema, exports_external.object({
|
|
21169
20198
|
theme: exports_external.object({ name: exports_external.string().optional() }).optional()
|
|
21170
20199
|
}));
|
|
21171
|
-
|
|
21172
|
-
// node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/stringify.js
|
|
21173
|
-
var byteToHex = [];
|
|
21174
|
-
for (let i = 0;i < 256; ++i) {
|
|
21175
|
-
byteToHex.push((i + 256).toString(16).slice(1));
|
|
21176
|
-
}
|
|
21177
|
-
function unsafeStringify(arr, offset = 0) {
|
|
21178
|
-
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
21179
|
-
}
|
|
21180
|
-
|
|
21181
|
-
// node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/rng.js
|
|
20200
|
+
// node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/rng.js
|
|
21182
20201
|
var getRandomValues;
|
|
21183
20202
|
var rnds8 = new Uint8Array(16);
|
|
21184
20203
|
function rng() {
|
|
@@ -21191,26 +20210,35 @@ function rng() {
|
|
|
21191
20210
|
return getRandomValues(rnds8);
|
|
21192
20211
|
}
|
|
21193
20212
|
|
|
21194
|
-
// node_modules/.
|
|
20213
|
+
// node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/stringify.js
|
|
20214
|
+
var byteToHex = [];
|
|
20215
|
+
for (let i = 0;i < 256; ++i) {
|
|
20216
|
+
byteToHex.push((i + 256).toString(16).slice(1));
|
|
20217
|
+
}
|
|
20218
|
+
function unsafeStringify(arr, offset = 0) {
|
|
20219
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
20220
|
+
}
|
|
20221
|
+
|
|
20222
|
+
// node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/v7.js
|
|
21195
20223
|
var _state = {};
|
|
21196
20224
|
function v7(options2, buf, offset) {
|
|
21197
20225
|
let bytes;
|
|
21198
20226
|
if (options2) {
|
|
21199
20227
|
bytes = v7Bytes(options2.random ?? options2.rng?.() ?? rng(), options2.msecs, options2.seq, buf, offset);
|
|
21200
20228
|
} else {
|
|
21201
|
-
const
|
|
20229
|
+
const now = Date.now();
|
|
21202
20230
|
const rnds = rng();
|
|
21203
|
-
updateV7State(_state,
|
|
20231
|
+
updateV7State(_state, now, rnds);
|
|
21204
20232
|
bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset);
|
|
21205
20233
|
}
|
|
21206
20234
|
return buf ?? unsafeStringify(bytes);
|
|
21207
20235
|
}
|
|
21208
|
-
function updateV7State(state2,
|
|
20236
|
+
function updateV7State(state2, now, rnds) {
|
|
21209
20237
|
state2.msecs ??= -Infinity;
|
|
21210
20238
|
state2.seq ??= 0;
|
|
21211
|
-
if (
|
|
20239
|
+
if (now > state2.msecs) {
|
|
21212
20240
|
state2.seq = rnds[6] << 23 | rnds[7] << 16 | rnds[8] << 8 | rnds[9];
|
|
21213
|
-
state2.msecs =
|
|
20241
|
+
state2.msecs = now;
|
|
21214
20242
|
} else {
|
|
21215
20243
|
state2.seq = state2.seq + 1 | 0;
|
|
21216
20244
|
if (state2.seq === 0) {
|
|
@@ -21262,17 +20290,17 @@ class ServerStorage {
|
|
|
21262
20290
|
clear() {
|
|
21263
20291
|
storage.clear();
|
|
21264
20292
|
}
|
|
21265
|
-
getItem(
|
|
21266
|
-
return storage.get(
|
|
20293
|
+
getItem(key) {
|
|
20294
|
+
return storage.get(key) || null;
|
|
21267
20295
|
}
|
|
21268
|
-
key(
|
|
21269
|
-
return Array.from(storage.keys())[
|
|
20296
|
+
key(index) {
|
|
20297
|
+
return Array.from(storage.keys())[index] || null;
|
|
21270
20298
|
}
|
|
21271
|
-
removeItem(
|
|
21272
|
-
storage.delete(
|
|
20299
|
+
removeItem(key) {
|
|
20300
|
+
storage.delete(key);
|
|
21273
20301
|
}
|
|
21274
|
-
setItem(
|
|
21275
|
-
storage.set(
|
|
20302
|
+
setItem(key, value) {
|
|
20303
|
+
storage.set(key, String(value));
|
|
21276
20304
|
}
|
|
21277
20305
|
}
|
|
21278
20306
|
var agnosticStorage = globalThis.localStorage ?? new ServerStorage;
|
|
@@ -21281,7 +20309,7 @@ var agnosticStorage = globalThis.localStorage ?? new ServerStorage;
|
|
|
21281
20309
|
var getUserData = async (restClient) => {
|
|
21282
20310
|
try {
|
|
21283
20311
|
const userId = agnosticStorage.getItem("liipgpt:uID") || agnosticStorage.getItem("uID");
|
|
21284
|
-
const
|
|
20312
|
+
const init = {
|
|
21285
20313
|
method: "POST",
|
|
21286
20314
|
headers: {
|
|
21287
20315
|
Accept: "application/json",
|
|
@@ -21292,9 +20320,9 @@ var getUserData = async (restClient) => {
|
|
|
21292
20320
|
uID: userId
|
|
21293
20321
|
})
|
|
21294
20322
|
};
|
|
21295
|
-
const response = await restClient.fetchData("/login", userDataResponseSchema, {},
|
|
20323
|
+
const response = await restClient.fetchData("/login", userDataResponseSchema, {}, init).catch((e) => {
|
|
21296
20324
|
console.log("Failed to /login use /log", e);
|
|
21297
|
-
return restClient.fetchData("/log", userDataResponseSchema, {},
|
|
20325
|
+
return restClient.fetchData("/log", userDataResponseSchema, {}, init);
|
|
21298
20326
|
});
|
|
21299
20327
|
if ("maintenance" in response && response.maintenance) {
|
|
21300
20328
|
return { mode: "maintenance" };
|
|
@@ -21313,7 +20341,7 @@ var getUserData = async (restClient) => {
|
|
|
21313
20341
|
}
|
|
21314
20342
|
};
|
|
21315
20343
|
|
|
21316
|
-
// node_modules/.
|
|
20344
|
+
// node_modules/.bun/sse.js@2.8.0/node_modules/sse.js/lib/sse.js
|
|
21317
20345
|
var SSE = function(url2, options2) {
|
|
21318
20346
|
if (!(this instanceof SSE)) {
|
|
21319
20347
|
return new SSE(url2, options2);
|
|
@@ -21352,9 +20380,9 @@ var SSE = function(url2, options2) {
|
|
|
21352
20380
|
return;
|
|
21353
20381
|
}
|
|
21354
20382
|
const filtered = [];
|
|
21355
|
-
this.listeners[type].forEach(function(
|
|
21356
|
-
if (
|
|
21357
|
-
filtered.push(
|
|
20383
|
+
this.listeners[type].forEach(function(element) {
|
|
20384
|
+
if (element !== listener) {
|
|
20385
|
+
filtered.push(element);
|
|
21358
20386
|
}
|
|
21359
20387
|
});
|
|
21360
20388
|
if (filtered.length === 0) {
|
|
@@ -21414,16 +20442,16 @@ var SSE = function(url2, options2) {
|
|
|
21414
20442
|
}
|
|
21415
20443
|
};
|
|
21416
20444
|
this._setReadyState = function(state2) {
|
|
21417
|
-
const
|
|
21418
|
-
|
|
20445
|
+
const event = new CustomEvent("readystatechange");
|
|
20446
|
+
event.readyState = state2;
|
|
21419
20447
|
this.readyState = state2;
|
|
21420
|
-
this.dispatchEvent(
|
|
20448
|
+
this.dispatchEvent(event);
|
|
21421
20449
|
};
|
|
21422
20450
|
this._onStreamFailure = function(e) {
|
|
21423
|
-
const
|
|
21424
|
-
|
|
21425
|
-
|
|
21426
|
-
this.dispatchEvent(
|
|
20451
|
+
const event = new CustomEvent("error");
|
|
20452
|
+
event.responseCode = e.currentTarget.status;
|
|
20453
|
+
event.data = e.currentTarget.response;
|
|
20454
|
+
this.dispatchEvent(event);
|
|
21427
20455
|
this._markClosed();
|
|
21428
20456
|
};
|
|
21429
20457
|
this._onStreamAbort = function() {
|
|
@@ -21471,13 +20499,13 @@ var SSE = function(url2, options2) {
|
|
|
21471
20499
|
}
|
|
21472
20500
|
const e = { id: null, retry: null, data: null, event: null };
|
|
21473
20501
|
chunk.split(/\n|\r\n|\r/).forEach(function(line) {
|
|
21474
|
-
const
|
|
20502
|
+
const index = line.indexOf(this.FIELD_SEPARATOR);
|
|
21475
20503
|
let field, value;
|
|
21476
|
-
if (
|
|
21477
|
-
const skip = line[
|
|
21478
|
-
field = line.substring(0,
|
|
21479
|
-
value = line.substring(
|
|
21480
|
-
} else if (
|
|
20504
|
+
if (index > 0) {
|
|
20505
|
+
const skip = line[index + 1] === " " ? 2 : 1;
|
|
20506
|
+
field = line.substring(0, index);
|
|
20507
|
+
value = line.substring(index + skip);
|
|
20508
|
+
} else if (index < 0) {
|
|
21481
20509
|
field = line;
|
|
21482
20510
|
value = "";
|
|
21483
20511
|
} else {
|
|
@@ -21502,11 +20530,11 @@ var SSE = function(url2, options2) {
|
|
|
21502
20530
|
if (e.data === null) {
|
|
21503
20531
|
return null;
|
|
21504
20532
|
}
|
|
21505
|
-
const
|
|
21506
|
-
|
|
21507
|
-
|
|
21508
|
-
|
|
21509
|
-
return
|
|
20533
|
+
const event = new CustomEvent(e.event || "message");
|
|
20534
|
+
event.id = e.id;
|
|
20535
|
+
event.data = e.data || "";
|
|
20536
|
+
event.lastEventId = this.lastEventId;
|
|
20537
|
+
return event;
|
|
21510
20538
|
};
|
|
21511
20539
|
this._onReadyStateChange = function() {
|
|
21512
20540
|
if (!this.xhr) {
|
|
@@ -21517,15 +20545,15 @@ var SSE = function(url2, options2) {
|
|
|
21517
20545
|
const headerPairs = this.xhr.getAllResponseHeaders().trim().split(`\r
|
|
21518
20546
|
`);
|
|
21519
20547
|
for (const headerPair of headerPairs) {
|
|
21520
|
-
const [
|
|
20548
|
+
const [key, ...valueParts] = headerPair.split(":");
|
|
21521
20549
|
const value = valueParts.join(":").trim();
|
|
21522
|
-
headers[
|
|
21523
|
-
headers[
|
|
20550
|
+
headers[key.trim().toLowerCase()] = headers[key.trim().toLowerCase()] || [];
|
|
20551
|
+
headers[key.trim().toLowerCase()].push(value);
|
|
21524
20552
|
}
|
|
21525
|
-
const
|
|
21526
|
-
|
|
21527
|
-
|
|
21528
|
-
this.dispatchEvent(
|
|
20553
|
+
const event = new CustomEvent("open");
|
|
20554
|
+
event.responseCode = this.xhr.status;
|
|
20555
|
+
event.headers = headers;
|
|
20556
|
+
this.dispatchEvent(event);
|
|
21529
20557
|
this._setReadyState(SSE.OPEN);
|
|
21530
20558
|
}
|
|
21531
20559
|
};
|
|
@@ -21586,16 +20614,16 @@ class SseSubscription {
|
|
|
21586
20614
|
sseoptions.headers["api-key"] = options2.apiKey;
|
|
21587
20615
|
}
|
|
21588
20616
|
this.eventSource = new (options2.EventSource ?? SSE)(url2, sseoptions);
|
|
21589
|
-
this.eventSource.onmessage = (
|
|
20617
|
+
this.eventSource.onmessage = (event) => {
|
|
21590
20618
|
try {
|
|
21591
|
-
const data = JSON.parse(
|
|
20619
|
+
const data = JSON.parse(event.data);
|
|
21592
20620
|
options2.onMessage(data);
|
|
21593
20621
|
} catch (error48) {
|
|
21594
20622
|
options2.onError(new CustomEvent("parse-error", { detail: error48 }));
|
|
21595
20623
|
}
|
|
21596
20624
|
};
|
|
21597
|
-
this.eventSource.onerror = (
|
|
21598
|
-
options2.onError(
|
|
20625
|
+
this.eventSource.onerror = (event) => {
|
|
20626
|
+
options2.onError(event);
|
|
21599
20627
|
if (this.isClosed()) {
|
|
21600
20628
|
this.close();
|
|
21601
20629
|
}
|
|
@@ -21756,8 +20784,8 @@ class ChatResponse {
|
|
|
21756
20784
|
await this.chatResponseData.readyForFeedback.toPromise();
|
|
21757
20785
|
return true;
|
|
21758
20786
|
}
|
|
21759
|
-
subscribe(
|
|
21760
|
-
return this.chatResponseData.readableStore.subscribe(
|
|
20787
|
+
subscribe(run, invalidate) {
|
|
20788
|
+
return this.chatResponseData.readableStore.subscribe(run, invalidate);
|
|
21761
20789
|
}
|
|
21762
20790
|
getContent() {
|
|
21763
20791
|
return this.chatResponseData.content.toPromise();
|
|
@@ -21813,8 +20841,8 @@ class LiipGPTClientPrimitive {
|
|
|
21813
20841
|
setMarkedExtensions(...extensions) {
|
|
21814
20842
|
this.markedExtensions = extensions;
|
|
21815
20843
|
}
|
|
21816
|
-
setNewTabSrText(
|
|
21817
|
-
this._newTabSrText =
|
|
20844
|
+
setNewTabSrText(text2) {
|
|
20845
|
+
this._newTabSrText = text2;
|
|
21818
20846
|
}
|
|
21819
20847
|
getMetadata() {
|
|
21820
20848
|
return this.internalData.metadata;
|
|
@@ -21913,9 +20941,9 @@ class LiipGPTClientPrimitive {
|
|
|
21913
20941
|
}
|
|
21914
20942
|
options2.onMessage?.(data);
|
|
21915
20943
|
},
|
|
21916
|
-
onError: (
|
|
21917
|
-
console.error(" sse-error:",
|
|
21918
|
-
if ("data" in
|
|
20944
|
+
onError: (event) => {
|
|
20945
|
+
console.error(" sse-error:", event);
|
|
20946
|
+
if ("data" in event && !event.data && "responseCode" in event && event.responseCode === 0) {
|
|
21919
20947
|
return;
|
|
21920
20948
|
}
|
|
21921
20949
|
chatResultBuilder.pushError("sse-error");
|