@axium/server 0.12.1 → 0.12.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/build/client/_app/immutable/assets/3.KnidqurY.css +1 -0
- package/build/client/_app/immutable/assets/3.KnidqurY.css.br +0 -0
- package/build/client/_app/immutable/assets/3.KnidqurY.css.gz +0 -0
- package/build/client/_app/immutable/assets/FormDialog.Cbakz6hh.css +1 -0
- package/build/client/_app/immutable/assets/FormDialog.Cbakz6hh.css.br +0 -0
- package/build/client/_app/immutable/assets/FormDialog.Cbakz6hh.css.gz +0 -0
- package/build/client/_app/immutable/assets/_page.FMqx8A_G.css +1 -0
- package/build/client/_app/immutable/assets/_page.FMqx8A_G.css.br +0 -0
- package/build/client/_app/immutable/assets/_page.FMqx8A_G.css.gz +0 -0
- package/build/client/_app/immutable/assets/user.Cbakz6hh.css +1 -0
- package/build/client/_app/immutable/assets/user.Cbakz6hh.css.br +0 -0
- package/build/client/_app/immutable/assets/user.Cbakz6hh.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BuQsdvxH.js +1 -0
- package/build/client/_app/immutable/chunks/BuQsdvxH.js.br +0 -0
- package/build/client/_app/immutable/chunks/BuQsdvxH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CWj6FrbW.js +1 -0
- package/build/client/_app/immutable/chunks/CWj6FrbW.js.br +0 -0
- package/build/client/_app/immutable/chunks/CWj6FrbW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5yCkbIu.js +1 -0
- package/build/client/_app/immutable/chunks/D5yCkbIu.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5yCkbIu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DOVJ9LQt.js +1 -0
- package/build/client/_app/immutable/chunks/DOVJ9LQt.js.br +0 -0
- package/build/client/_app/immutable/chunks/DOVJ9LQt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DdlABs80.js +3 -0
- package/build/client/_app/immutable/chunks/DdlABs80.js.br +0 -0
- package/build/client/_app/immutable/chunks/DdlABs80.js.gz +0 -0
- package/build/client/_app/immutable/chunks/UmPEH60o.js +1 -0
- package/build/client/_app/immutable/chunks/UmPEH60o.js.br +1 -0
- package/build/client/_app/immutable/chunks/UmPEH60o.js.gz +0 -0
- package/build/client/_app/immutable/chunks/XS99-ehg.js +32 -0
- package/build/client/_app/immutable/chunks/XS99-ehg.js.br +0 -0
- package/build/client/_app/immutable/chunks/XS99-ehg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/nXp3Dhop.js +1 -0
- package/build/client/_app/immutable/chunks/nXp3Dhop.js.br +0 -0
- package/build/client/_app/immutable/chunks/nXp3Dhop.js.gz +0 -0
- package/build/client/_app/immutable/chunks/sBvhjZvA.js +2 -0
- package/build/client/_app/immutable/chunks/sBvhjZvA.js.br +0 -0
- package/build/client/_app/immutable/chunks/sBvhjZvA.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.B8Fn8nhy.js +2 -0
- package/build/client/_app/immutable/entry/app.B8Fn8nhy.js.br +0 -0
- package/build/client/_app/immutable/entry/app.B8Fn8nhy.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.D25rwj7x.js +1 -0
- package/build/client/_app/immutable/entry/start.D25rwj7x.js.br +2 -0
- package/build/client/_app/immutable/entry/start.D25rwj7x.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.qBSjDH9J.js +1 -0
- package/build/client/_app/immutable/nodes/0.qBSjDH9J.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.qBSjDH9J.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.xGMYh02A.js +1 -0
- package/build/client/_app/immutable/nodes/1.xGMYh02A.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.xGMYh02A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.UKc0Z14i.js +1 -0
- package/build/client/_app/immutable/nodes/2.UKc0Z14i.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.UKc0Z14i.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.B-dYETEY.js +1 -0
- package/build/client/_app/immutable/nodes/3.B-dYETEY.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.B-dYETEY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.DiJNTRdN.js +1 -0
- package/build/client/_app/immutable/nodes/4.DiJNTRdN.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.DiJNTRdN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CikYDQCG.js +1 -0
- package/build/client/_app/immutable/nodes/5.CikYDQCG.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CikYDQCG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.B-xpcmEc.js +1 -0
- package/build/client/_app/immutable/nodes/6.B-xpcmEc.js.br +4 -0
- package/build/client/_app/immutable/nodes/6.B-xpcmEc.js.gz +0 -0
- package/build/client/_app/version.json +1 -0
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/icons/brands.svg +1493 -0
- package/build/client/icons/brands.svg.br +0 -0
- package/build/client/icons/brands.svg.gz +0 -0
- package/build/client/icons/light.svg +9977 -0
- package/build/client/icons/light.svg.br +0 -0
- package/build/client/icons/light.svg.gz +0 -0
- package/build/client/icons/regular.svg +9977 -0
- package/build/client/icons/regular.svg.br +0 -0
- package/build/client/icons/regular.svg.gz +0 -0
- package/build/client/icons/solid.svg +9977 -0
- package/build/client/icons/solid.svg.br +0 -0
- package/build/client/icons/solid.svg.gz +0 -0
- package/build/client/styles.css +102 -0
- package/build/client/styles.css.br +0 -0
- package/build/client/styles.css.gz +0 -0
- package/build/env.js +45 -0
- package/build/handler.js +1375 -0
- package/build/index.js +334 -0
- package/build/server/chunks/0-50xswu-B.js +9 -0
- package/build/server/chunks/0-50xswu-B.js.map +1 -0
- package/build/server/chunks/1-DT2Iedu7.js +9 -0
- package/build/server/chunks/1-DT2Iedu7.js.map +1 -0
- package/build/server/chunks/2-BV8AWU0U.js +9 -0
- package/build/server/chunks/2-BV8AWU0U.js.map +1 -0
- package/build/server/chunks/3-CMbPqkIH.js +9 -0
- package/build/server/chunks/3-CMbPqkIH.js.map +1 -0
- package/build/server/chunks/4-CXAEWvNq.js +9 -0
- package/build/server/chunks/4-CXAEWvNq.js.map +1 -0
- package/build/server/chunks/5-BVP7AYfH.js +9 -0
- package/build/server/chunks/5-BVP7AYfH.js.map +1 -0
- package/build/server/chunks/6-D30Y8eMO.js +9 -0
- package/build/server/chunks/6-D30Y8eMO.js.map +1 -0
- package/build/server/chunks/_page.svelte-B3384cfj.js +44 -0
- package/build/server/chunks/_page.svelte-B3384cfj.js.map +1 -0
- package/build/server/chunks/_page.svelte-BgEfD3kA.js +50 -0
- package/build/server/chunks/_page.svelte-BgEfD3kA.js.map +1 -0
- package/build/server/chunks/_page.svelte-CR8Oo7e9.js +641 -0
- package/build/server/chunks/_page.svelte-CR8Oo7e9.js.map +1 -0
- package/build/server/chunks/_page.svelte-CTxNa7SS.js +6 -0
- package/build/server/chunks/_page.svelte-CTxNa7SS.js.map +1 -0
- package/build/server/chunks/_page.svelte-DRiG-AM0.js +15 -0
- package/build/server/chunks/_page.svelte-DRiG-AM0.js.map +1 -0
- package/build/server/chunks/client-Bm0tawqd.js +6 -0
- package/build/server/chunks/client-Bm0tawqd.js.map +1 -0
- package/build/server/chunks/client2-CDtZFfLJ.js +39 -0
- package/build/server/chunks/client2-CDtZFfLJ.js.map +1 -0
- package/build/server/chunks/error.svelte-xp9OLkmb.js +24 -0
- package/build/server/chunks/error.svelte-xp9OLkmb.js.map +1 -0
- package/build/server/chunks/exports-Bdi6Ec6W.js +635 -0
- package/build/server/chunks/exports-Bdi6Ec6W.js.map +1 -0
- package/build/server/chunks/hooks.server-C9d9yKyi.js +16 -0
- package/build/server/chunks/hooks.server-C9d9yKyi.js.map +1 -0
- package/build/server/chunks/layout.svelte-4V-_rMCU.js +8 -0
- package/build/server/chunks/layout.svelte-4V-_rMCU.js.map +1 -0
- package/build/server/chunks/user-DYj9NpWz.js +811 -0
- package/build/server/chunks/user-DYj9NpWz.js.map +1 -0
- package/build/server/chunks/user2-D249re2A.js +11560 -0
- package/build/server/chunks/user2-D249re2A.js.map +1 -0
- package/build/server/index.js +6009 -0
- package/build/server/index.js.map +1 -0
- package/build/server/manifest.js +75 -0
- package/build/server/manifest.js.map +1 -0
- package/build/shims.js +32 -0
- package/dist/config.d.ts +2 -0
- package/dist/config.js +4 -1
- package/dist/database.d.ts +1 -1
- package/dist/state.d.ts +1 -0
- package/dist/state.js +5 -1
- package/package.json +1 -1
|
@@ -0,0 +1,635 @@
|
|
|
1
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx$1(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
2
|
+
|
|
3
|
+
const DEV = false;
|
|
4
|
+
var is_array = Array.isArray;
|
|
5
|
+
var index_of = Array.prototype.indexOf;
|
|
6
|
+
var array_from = Array.from;
|
|
7
|
+
var define_property = Object.defineProperty;
|
|
8
|
+
var get_descriptor = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var object_prototype = Object.prototype;
|
|
10
|
+
var array_prototype = Array.prototype;
|
|
11
|
+
var get_prototype_of = Object.getPrototypeOf;
|
|
12
|
+
var is_extensible = Object.isExtensible;
|
|
13
|
+
const noop = () => {
|
|
14
|
+
};
|
|
15
|
+
function is_promise(value) {
|
|
16
|
+
return typeof value?.then === "function";
|
|
17
|
+
}
|
|
18
|
+
function run_all(arr) {
|
|
19
|
+
for (var i = 0; i < arr.length; i++) {
|
|
20
|
+
arr[i]();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function equals(value) {
|
|
24
|
+
return value === this.v;
|
|
25
|
+
}
|
|
26
|
+
function safe_not_equal(a, b) {
|
|
27
|
+
return a != a ? b == b : a !== b || a !== null && typeof a === "object" || typeof a === "function";
|
|
28
|
+
}
|
|
29
|
+
function safe_equals(value) {
|
|
30
|
+
return !safe_not_equal(value, this.v);
|
|
31
|
+
}
|
|
32
|
+
const DERIVED = 1 << 1;
|
|
33
|
+
const EFFECT = 1 << 2;
|
|
34
|
+
const RENDER_EFFECT = 1 << 3;
|
|
35
|
+
const BLOCK_EFFECT = 1 << 4;
|
|
36
|
+
const BRANCH_EFFECT = 1 << 5;
|
|
37
|
+
const ROOT_EFFECT = 1 << 6;
|
|
38
|
+
const BOUNDARY_EFFECT = 1 << 7;
|
|
39
|
+
const UNOWNED = 1 << 8;
|
|
40
|
+
const DISCONNECTED = 1 << 9;
|
|
41
|
+
const CLEAN = 1 << 10;
|
|
42
|
+
const DIRTY = 1 << 11;
|
|
43
|
+
const MAYBE_DIRTY = 1 << 12;
|
|
44
|
+
const INERT = 1 << 13;
|
|
45
|
+
const DESTROYED = 1 << 14;
|
|
46
|
+
const EFFECT_RAN = 1 << 15;
|
|
47
|
+
const EFFECT_TRANSPARENT = 1 << 16;
|
|
48
|
+
const INSPECT_EFFECT = 1 << 17;
|
|
49
|
+
const HEAD_EFFECT = 1 << 18;
|
|
50
|
+
const EFFECT_PRESERVED = 1 << 19;
|
|
51
|
+
const EFFECT_IS_UPDATING = 1 << 20;
|
|
52
|
+
const USER_EFFECT = 1 << 21;
|
|
53
|
+
const STATE_SYMBOL = Symbol("$state");
|
|
54
|
+
const LEGACY_PROPS = Symbol("legacy props");
|
|
55
|
+
const STALE_REACTION = new class StaleReactionError extends Error {
|
|
56
|
+
name = "StaleReactionError";
|
|
57
|
+
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
58
|
+
}();
|
|
59
|
+
const COMMENT_NODE = 8;
|
|
60
|
+
const HYDRATION_START = "[";
|
|
61
|
+
const HYDRATION_START_ELSE = "[!";
|
|
62
|
+
const HYDRATION_END = "]";
|
|
63
|
+
const HYDRATION_ERROR = {};
|
|
64
|
+
const ELEMENT_IS_NAMESPACED = 1;
|
|
65
|
+
const ELEMENT_PRESERVE_ATTRIBUTE_CASE = 1 << 1;
|
|
66
|
+
const UNINITIALIZED = Symbol();
|
|
67
|
+
function lifecycle_outside_component(name) {
|
|
68
|
+
{
|
|
69
|
+
throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const DOM_BOOLEAN_ATTRIBUTES = [
|
|
73
|
+
"allowfullscreen",
|
|
74
|
+
"async",
|
|
75
|
+
"autofocus",
|
|
76
|
+
"autoplay",
|
|
77
|
+
"checked",
|
|
78
|
+
"controls",
|
|
79
|
+
"default",
|
|
80
|
+
"disabled",
|
|
81
|
+
"formnovalidate",
|
|
82
|
+
"hidden",
|
|
83
|
+
"indeterminate",
|
|
84
|
+
"inert",
|
|
85
|
+
"ismap",
|
|
86
|
+
"loop",
|
|
87
|
+
"multiple",
|
|
88
|
+
"muted",
|
|
89
|
+
"nomodule",
|
|
90
|
+
"novalidate",
|
|
91
|
+
"open",
|
|
92
|
+
"playsinline",
|
|
93
|
+
"readonly",
|
|
94
|
+
"required",
|
|
95
|
+
"reversed",
|
|
96
|
+
"seamless",
|
|
97
|
+
"selected",
|
|
98
|
+
"webkitdirectory",
|
|
99
|
+
"defer",
|
|
100
|
+
"disablepictureinpicture",
|
|
101
|
+
"disableremoteplayback"
|
|
102
|
+
];
|
|
103
|
+
function is_boolean_attribute(name) {
|
|
104
|
+
return DOM_BOOLEAN_ATTRIBUTES.includes(name);
|
|
105
|
+
}
|
|
106
|
+
const PASSIVE_EVENTS = ["touchstart", "touchmove"];
|
|
107
|
+
function is_passive_event(name) {
|
|
108
|
+
return PASSIVE_EVENTS.includes(name);
|
|
109
|
+
}
|
|
110
|
+
const ATTR_REGEX = /[&"<]/g;
|
|
111
|
+
const CONTENT_REGEX = /[&<]/g;
|
|
112
|
+
function escape_html(value, is_attr) {
|
|
113
|
+
const str = String(value ?? "");
|
|
114
|
+
const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;
|
|
115
|
+
pattern.lastIndex = 0;
|
|
116
|
+
let escaped = "";
|
|
117
|
+
let last = 0;
|
|
118
|
+
while (pattern.test(str)) {
|
|
119
|
+
const i = pattern.lastIndex - 1;
|
|
120
|
+
const ch = str[i];
|
|
121
|
+
escaped += str.substring(last, i) + (ch === "&" ? "&" : ch === '"' ? """ : "<");
|
|
122
|
+
last = i + 1;
|
|
123
|
+
}
|
|
124
|
+
return escaped + str.substring(last);
|
|
125
|
+
}
|
|
126
|
+
const replacements = {
|
|
127
|
+
translate: /* @__PURE__ */ new Map([
|
|
128
|
+
[true, "yes"],
|
|
129
|
+
[false, "no"]
|
|
130
|
+
])
|
|
131
|
+
};
|
|
132
|
+
function attr(name, value, is_boolean = false) {
|
|
133
|
+
if (value == null || !value && is_boolean) return "";
|
|
134
|
+
const normalized = name in replacements && replacements[name].get(value) || value;
|
|
135
|
+
const assignment = is_boolean ? "" : `="${escape_html(normalized, true)}"`;
|
|
136
|
+
return ` ${name}${assignment}`;
|
|
137
|
+
}
|
|
138
|
+
function clsx(value) {
|
|
139
|
+
if (typeof value === "object") {
|
|
140
|
+
return clsx$1(value);
|
|
141
|
+
} else {
|
|
142
|
+
return value ?? "";
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function to_class(value, hash, directives) {
|
|
146
|
+
var classname = value == null ? "" : "" + value;
|
|
147
|
+
if (hash) {
|
|
148
|
+
classname = classname ? classname + " " + hash : hash;
|
|
149
|
+
}
|
|
150
|
+
return classname === "" ? null : classname;
|
|
151
|
+
}
|
|
152
|
+
function append_styles(styles, important = false) {
|
|
153
|
+
var separator = important ? " !important;" : ";";
|
|
154
|
+
var css = "";
|
|
155
|
+
for (var key in styles) {
|
|
156
|
+
var value = styles[key];
|
|
157
|
+
if (value != null && value !== "") {
|
|
158
|
+
css += " " + key + ": " + value + separator;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return css;
|
|
162
|
+
}
|
|
163
|
+
function to_style(value, styles) {
|
|
164
|
+
if (styles) {
|
|
165
|
+
var new_style = "";
|
|
166
|
+
var normal_styles;
|
|
167
|
+
var important_styles;
|
|
168
|
+
if (Array.isArray(styles)) {
|
|
169
|
+
normal_styles = styles[0];
|
|
170
|
+
important_styles = styles[1];
|
|
171
|
+
} else {
|
|
172
|
+
normal_styles = styles;
|
|
173
|
+
}
|
|
174
|
+
if (normal_styles) {
|
|
175
|
+
new_style += append_styles(normal_styles);
|
|
176
|
+
}
|
|
177
|
+
if (important_styles) {
|
|
178
|
+
new_style += append_styles(important_styles, true);
|
|
179
|
+
}
|
|
180
|
+
new_style = new_style.trim();
|
|
181
|
+
return new_style === "" ? null : new_style;
|
|
182
|
+
}
|
|
183
|
+
return String(value);
|
|
184
|
+
}
|
|
185
|
+
var current_component = null;
|
|
186
|
+
function getContext(key) {
|
|
187
|
+
const context_map = get_or_init_context_map();
|
|
188
|
+
const result = (
|
|
189
|
+
/** @type {T} */
|
|
190
|
+
context_map.get(key)
|
|
191
|
+
);
|
|
192
|
+
return result;
|
|
193
|
+
}
|
|
194
|
+
function setContext(key, context) {
|
|
195
|
+
get_or_init_context_map().set(key, context);
|
|
196
|
+
return context;
|
|
197
|
+
}
|
|
198
|
+
function get_or_init_context_map(name) {
|
|
199
|
+
if (current_component === null) {
|
|
200
|
+
lifecycle_outside_component();
|
|
201
|
+
}
|
|
202
|
+
return current_component.c ??= new Map(get_parent_context(current_component) || void 0);
|
|
203
|
+
}
|
|
204
|
+
function push(fn) {
|
|
205
|
+
current_component = { p: current_component, c: null, d: null };
|
|
206
|
+
}
|
|
207
|
+
function pop() {
|
|
208
|
+
var component = (
|
|
209
|
+
/** @type {Component} */
|
|
210
|
+
current_component
|
|
211
|
+
);
|
|
212
|
+
var ondestroy = component.d;
|
|
213
|
+
if (ondestroy) {
|
|
214
|
+
on_destroy.push(...ondestroy);
|
|
215
|
+
}
|
|
216
|
+
current_component = component.p;
|
|
217
|
+
}
|
|
218
|
+
function get_parent_context(component_context) {
|
|
219
|
+
let parent = component_context.p;
|
|
220
|
+
while (parent !== null) {
|
|
221
|
+
const context_map = parent.c;
|
|
222
|
+
if (context_map !== null) {
|
|
223
|
+
return context_map;
|
|
224
|
+
}
|
|
225
|
+
parent = parent.p;
|
|
226
|
+
}
|
|
227
|
+
return null;
|
|
228
|
+
}
|
|
229
|
+
const BLOCK_OPEN = `<!--${HYDRATION_START}-->`;
|
|
230
|
+
const BLOCK_OPEN_ELSE = `<!--${HYDRATION_START_ELSE}-->`;
|
|
231
|
+
const BLOCK_CLOSE = `<!--${HYDRATION_END}-->`;
|
|
232
|
+
class HeadPayload {
|
|
233
|
+
/** @type {Set<{ hash: string; code: string }>} */
|
|
234
|
+
css = /* @__PURE__ */ new Set();
|
|
235
|
+
out = "";
|
|
236
|
+
uid = () => "";
|
|
237
|
+
title = "";
|
|
238
|
+
constructor(css = /* @__PURE__ */ new Set(), out = "", title = "", uid = () => "") {
|
|
239
|
+
this.css = css;
|
|
240
|
+
this.out = out;
|
|
241
|
+
this.title = title;
|
|
242
|
+
this.uid = uid;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
class Payload {
|
|
246
|
+
/** @type {Set<{ hash: string; code: string }>} */
|
|
247
|
+
css = /* @__PURE__ */ new Set();
|
|
248
|
+
out = "";
|
|
249
|
+
uid = () => "";
|
|
250
|
+
select_value = void 0;
|
|
251
|
+
head = new HeadPayload();
|
|
252
|
+
constructor(id_prefix = "") {
|
|
253
|
+
this.uid = props_id_generator(id_prefix);
|
|
254
|
+
this.head.uid = this.uid;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
function copy_payload({ out, css, head: head2, uid }) {
|
|
258
|
+
const payload = new Payload();
|
|
259
|
+
payload.out = out;
|
|
260
|
+
payload.css = new Set(css);
|
|
261
|
+
payload.uid = uid;
|
|
262
|
+
payload.head = new HeadPayload();
|
|
263
|
+
payload.head.out = head2.out;
|
|
264
|
+
payload.head.css = new Set(head2.css);
|
|
265
|
+
payload.head.title = head2.title;
|
|
266
|
+
payload.head.uid = head2.uid;
|
|
267
|
+
return payload;
|
|
268
|
+
}
|
|
269
|
+
function assign_payload(p1, p2) {
|
|
270
|
+
p1.out = p2.out;
|
|
271
|
+
p1.css = p2.css;
|
|
272
|
+
p1.head = p2.head;
|
|
273
|
+
p1.uid = p2.uid;
|
|
274
|
+
}
|
|
275
|
+
function props_id_generator(prefix) {
|
|
276
|
+
let uid = 1;
|
|
277
|
+
return () => `${prefix}s${uid++}`;
|
|
278
|
+
}
|
|
279
|
+
let controller = null;
|
|
280
|
+
function abort() {
|
|
281
|
+
controller?.abort(STALE_REACTION);
|
|
282
|
+
controller = null;
|
|
283
|
+
}
|
|
284
|
+
const INVALID_ATTR_NAME_CHAR_REGEX = /[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;
|
|
285
|
+
let on_destroy = [];
|
|
286
|
+
function render(component, options = {}) {
|
|
287
|
+
try {
|
|
288
|
+
const payload = new Payload(options.idPrefix ? options.idPrefix + "-" : "");
|
|
289
|
+
const prev_on_destroy = on_destroy;
|
|
290
|
+
on_destroy = [];
|
|
291
|
+
payload.out += BLOCK_OPEN;
|
|
292
|
+
let reset_reset_element;
|
|
293
|
+
if (DEV) ;
|
|
294
|
+
if (options.context) {
|
|
295
|
+
push();
|
|
296
|
+
current_component.c = options.context;
|
|
297
|
+
}
|
|
298
|
+
component(payload, options.props ?? {}, {}, {});
|
|
299
|
+
if (options.context) {
|
|
300
|
+
pop();
|
|
301
|
+
}
|
|
302
|
+
if (reset_reset_element) ;
|
|
303
|
+
payload.out += BLOCK_CLOSE;
|
|
304
|
+
for (const cleanup of on_destroy) cleanup();
|
|
305
|
+
on_destroy = prev_on_destroy;
|
|
306
|
+
let head2 = payload.head.out + payload.head.title;
|
|
307
|
+
for (const { hash, code } of payload.css) {
|
|
308
|
+
head2 += `<style id="${hash}">${code}</style>`;
|
|
309
|
+
}
|
|
310
|
+
return {
|
|
311
|
+
head: head2,
|
|
312
|
+
html: payload.out,
|
|
313
|
+
body: payload.out
|
|
314
|
+
};
|
|
315
|
+
} finally {
|
|
316
|
+
abort();
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
function head(payload, fn) {
|
|
320
|
+
const head_payload = payload.head;
|
|
321
|
+
head_payload.out += BLOCK_OPEN;
|
|
322
|
+
fn(head_payload);
|
|
323
|
+
head_payload.out += BLOCK_CLOSE;
|
|
324
|
+
}
|
|
325
|
+
function css_props(payload, is_html, props, component, dynamic = false) {
|
|
326
|
+
const styles = style_object_to_string(props);
|
|
327
|
+
{
|
|
328
|
+
payload.out += `<svelte-css-wrapper style="display: contents; ${styles}">`;
|
|
329
|
+
}
|
|
330
|
+
if (dynamic) {
|
|
331
|
+
payload.out += "<!---->";
|
|
332
|
+
}
|
|
333
|
+
component();
|
|
334
|
+
{
|
|
335
|
+
payload.out += `<!----></svelte-css-wrapper>`;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
function spread_attributes(attrs, css_hash, classes, styles, flags = 0) {
|
|
339
|
+
if (attrs.class) {
|
|
340
|
+
attrs.class = clsx(attrs.class);
|
|
341
|
+
}
|
|
342
|
+
{
|
|
343
|
+
attrs.class = to_class(attrs.class, css_hash);
|
|
344
|
+
}
|
|
345
|
+
let attr_str = "";
|
|
346
|
+
let name;
|
|
347
|
+
const is_html = (flags & ELEMENT_IS_NAMESPACED) === 0;
|
|
348
|
+
const lowercase = (flags & ELEMENT_PRESERVE_ATTRIBUTE_CASE) === 0;
|
|
349
|
+
for (name in attrs) {
|
|
350
|
+
if (typeof attrs[name] === "function") continue;
|
|
351
|
+
if (name[0] === "$" && name[1] === "$") continue;
|
|
352
|
+
if (INVALID_ATTR_NAME_CHAR_REGEX.test(name)) continue;
|
|
353
|
+
var value = attrs[name];
|
|
354
|
+
if (lowercase) {
|
|
355
|
+
name = name.toLowerCase();
|
|
356
|
+
}
|
|
357
|
+
attr_str += attr(name, value, is_html && is_boolean_attribute(name));
|
|
358
|
+
}
|
|
359
|
+
return attr_str;
|
|
360
|
+
}
|
|
361
|
+
function spread_props(props) {
|
|
362
|
+
const merged_props = {};
|
|
363
|
+
let key;
|
|
364
|
+
for (let i = 0; i < props.length; i++) {
|
|
365
|
+
const obj = props[i];
|
|
366
|
+
for (key in obj) {
|
|
367
|
+
const desc = Object.getOwnPropertyDescriptor(obj, key);
|
|
368
|
+
if (desc) {
|
|
369
|
+
Object.defineProperty(merged_props, key, desc);
|
|
370
|
+
} else {
|
|
371
|
+
merged_props[key] = obj[key];
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
return merged_props;
|
|
376
|
+
}
|
|
377
|
+
function stringify(value) {
|
|
378
|
+
return typeof value === "string" ? value : value == null ? "" : value + "";
|
|
379
|
+
}
|
|
380
|
+
function style_object_to_string(style_object) {
|
|
381
|
+
return Object.keys(style_object).filter(
|
|
382
|
+
/** @param {any} key */
|
|
383
|
+
(key) => style_object[key] != null && style_object[key] !== ""
|
|
384
|
+
).map(
|
|
385
|
+
/** @param {any} key */
|
|
386
|
+
(key) => `${key}: ${escape_html(style_object[key], true)};`
|
|
387
|
+
).join(" ");
|
|
388
|
+
}
|
|
389
|
+
function attr_class(value, hash, directives) {
|
|
390
|
+
var result = to_class(value, hash);
|
|
391
|
+
return result ? ` class="${escape_html(result, true)}"` : "";
|
|
392
|
+
}
|
|
393
|
+
function attr_style(value, directives) {
|
|
394
|
+
var result = to_style(value, directives);
|
|
395
|
+
return result ? ` style="${escape_html(result, true)}"` : "";
|
|
396
|
+
}
|
|
397
|
+
function bind_props(props_parent, props_now) {
|
|
398
|
+
for (const key in props_now) {
|
|
399
|
+
const initial_value = props_parent[key];
|
|
400
|
+
const value = props_now[key];
|
|
401
|
+
if (initial_value === void 0 && value !== void 0 && Object.getOwnPropertyDescriptor(props_parent, key)?.set) {
|
|
402
|
+
props_parent[key] = value;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
function await_block(payload, promise, pending_fn, then_fn) {
|
|
407
|
+
if (is_promise(promise)) {
|
|
408
|
+
payload.out += BLOCK_OPEN;
|
|
409
|
+
promise.then(null, noop);
|
|
410
|
+
} else if (then_fn !== null) {
|
|
411
|
+
payload.out += BLOCK_OPEN_ELSE;
|
|
412
|
+
then_fn(promise);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
function ensure_array_like(array_like_or_iterator) {
|
|
416
|
+
if (array_like_or_iterator) {
|
|
417
|
+
return array_like_or_iterator.length !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator);
|
|
418
|
+
}
|
|
419
|
+
return [];
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
const internal = new URL("sveltekit-internal://");
|
|
423
|
+
function resolve(base, path) {
|
|
424
|
+
if (path[0] === "/" && path[1] === "/") return path;
|
|
425
|
+
let url = new URL(base, internal);
|
|
426
|
+
url = new URL(path, url);
|
|
427
|
+
return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;
|
|
428
|
+
}
|
|
429
|
+
function normalize_path(path, trailing_slash) {
|
|
430
|
+
if (path === "/" || trailing_slash === "ignore") return path;
|
|
431
|
+
if (trailing_slash === "never") {
|
|
432
|
+
return path.endsWith("/") ? path.slice(0, -1) : path;
|
|
433
|
+
} else if (trailing_slash === "always" && !path.endsWith("/")) {
|
|
434
|
+
return path + "/";
|
|
435
|
+
}
|
|
436
|
+
return path;
|
|
437
|
+
}
|
|
438
|
+
function decode_pathname(pathname) {
|
|
439
|
+
return pathname.split("%25").map(decodeURI).join("%25");
|
|
440
|
+
}
|
|
441
|
+
function decode_params(params) {
|
|
442
|
+
for (const key in params) {
|
|
443
|
+
params[key] = decodeURIComponent(params[key]);
|
|
444
|
+
}
|
|
445
|
+
return params;
|
|
446
|
+
}
|
|
447
|
+
function make_trackable(url, callback, search_params_callback, allow_hash = false) {
|
|
448
|
+
const tracked = new URL(url);
|
|
449
|
+
Object.defineProperty(tracked, "searchParams", {
|
|
450
|
+
value: new Proxy(tracked.searchParams, {
|
|
451
|
+
get(obj, key) {
|
|
452
|
+
if (key === "get" || key === "getAll" || key === "has") {
|
|
453
|
+
return (param) => {
|
|
454
|
+
search_params_callback(param);
|
|
455
|
+
return obj[key](param);
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
callback();
|
|
459
|
+
const value = Reflect.get(obj, key);
|
|
460
|
+
return typeof value === "function" ? value.bind(obj) : value;
|
|
461
|
+
}
|
|
462
|
+
}),
|
|
463
|
+
enumerable: true,
|
|
464
|
+
configurable: true
|
|
465
|
+
});
|
|
466
|
+
const tracked_url_properties = ["href", "pathname", "search", "toString", "toJSON"];
|
|
467
|
+
if (allow_hash) tracked_url_properties.push("hash");
|
|
468
|
+
for (const property of tracked_url_properties) {
|
|
469
|
+
Object.defineProperty(tracked, property, {
|
|
470
|
+
get() {
|
|
471
|
+
callback();
|
|
472
|
+
return url[property];
|
|
473
|
+
},
|
|
474
|
+
enumerable: true,
|
|
475
|
+
configurable: true
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
{
|
|
479
|
+
tracked[Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
|
|
480
|
+
return inspect(url, opts);
|
|
481
|
+
};
|
|
482
|
+
tracked.searchParams[Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
|
|
483
|
+
return inspect(url.searchParams, opts);
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
if (!allow_hash) {
|
|
487
|
+
disable_hash(tracked);
|
|
488
|
+
}
|
|
489
|
+
return tracked;
|
|
490
|
+
}
|
|
491
|
+
function disable_hash(url) {
|
|
492
|
+
allow_nodejs_console_log(url);
|
|
493
|
+
Object.defineProperty(url, "hash", {
|
|
494
|
+
get() {
|
|
495
|
+
throw new Error(
|
|
496
|
+
"Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead"
|
|
497
|
+
);
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
function disable_search(url) {
|
|
502
|
+
allow_nodejs_console_log(url);
|
|
503
|
+
for (const property of ["search", "searchParams"]) {
|
|
504
|
+
Object.defineProperty(url, property, {
|
|
505
|
+
get() {
|
|
506
|
+
throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
function allow_nodejs_console_log(url) {
|
|
512
|
+
{
|
|
513
|
+
url[Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
|
|
514
|
+
return inspect(new URL(url), opts);
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
const subscriber_queue = [];
|
|
519
|
+
function readable(value, start) {
|
|
520
|
+
return {
|
|
521
|
+
subscribe: writable(value, start).subscribe
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
function writable(value, start = noop) {
|
|
525
|
+
let stop = null;
|
|
526
|
+
const subscribers = /* @__PURE__ */ new Set();
|
|
527
|
+
function set(new_value) {
|
|
528
|
+
if (safe_not_equal(value, new_value)) {
|
|
529
|
+
value = new_value;
|
|
530
|
+
if (stop) {
|
|
531
|
+
const run_queue = !subscriber_queue.length;
|
|
532
|
+
for (const subscriber of subscribers) {
|
|
533
|
+
subscriber[1]();
|
|
534
|
+
subscriber_queue.push(subscriber, value);
|
|
535
|
+
}
|
|
536
|
+
if (run_queue) {
|
|
537
|
+
for (let i = 0; i < subscriber_queue.length; i += 2) {
|
|
538
|
+
subscriber_queue[i][0](subscriber_queue[i + 1]);
|
|
539
|
+
}
|
|
540
|
+
subscriber_queue.length = 0;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
function update(fn) {
|
|
546
|
+
set(fn(
|
|
547
|
+
/** @type {T} */
|
|
548
|
+
value
|
|
549
|
+
));
|
|
550
|
+
}
|
|
551
|
+
function subscribe(run, invalidate = noop) {
|
|
552
|
+
const subscriber = [run, invalidate];
|
|
553
|
+
subscribers.add(subscriber);
|
|
554
|
+
if (subscribers.size === 1) {
|
|
555
|
+
stop = start(set, update) || noop;
|
|
556
|
+
}
|
|
557
|
+
run(
|
|
558
|
+
/** @type {T} */
|
|
559
|
+
value
|
|
560
|
+
);
|
|
561
|
+
return () => {
|
|
562
|
+
subscribers.delete(subscriber);
|
|
563
|
+
if (subscribers.size === 0 && stop) {
|
|
564
|
+
stop();
|
|
565
|
+
stop = null;
|
|
566
|
+
}
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
return { set, update, subscribe };
|
|
570
|
+
}
|
|
571
|
+
function validator(expected) {
|
|
572
|
+
function validate(module, file) {
|
|
573
|
+
if (!module) return;
|
|
574
|
+
for (const key in module) {
|
|
575
|
+
if (key[0] === "_" || expected.has(key)) continue;
|
|
576
|
+
const values = [...expected.values()];
|
|
577
|
+
const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf("."))) ?? `valid exports are ${values.join(", ")}, or anything with a '_' prefix`;
|
|
578
|
+
throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : ""} (${hint})`);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
return validate;
|
|
582
|
+
}
|
|
583
|
+
function hint_for_supported_files(key, ext = ".js") {
|
|
584
|
+
const supported_files = [];
|
|
585
|
+
if (valid_layout_exports.has(key)) {
|
|
586
|
+
supported_files.push(`+layout${ext}`);
|
|
587
|
+
}
|
|
588
|
+
if (valid_page_exports.has(key)) {
|
|
589
|
+
supported_files.push(`+page${ext}`);
|
|
590
|
+
}
|
|
591
|
+
if (valid_layout_server_exports.has(key)) {
|
|
592
|
+
supported_files.push(`+layout.server${ext}`);
|
|
593
|
+
}
|
|
594
|
+
if (valid_page_server_exports.has(key)) {
|
|
595
|
+
supported_files.push(`+page.server${ext}`);
|
|
596
|
+
}
|
|
597
|
+
if (valid_server_exports.has(key)) {
|
|
598
|
+
supported_files.push(`+server${ext}`);
|
|
599
|
+
}
|
|
600
|
+
if (supported_files.length > 0) {
|
|
601
|
+
return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(", ")}${supported_files.length > 1 ? " or " : ""}${supported_files.at(-1)}`;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
const valid_layout_exports = /* @__PURE__ */ new Set([
|
|
605
|
+
"load",
|
|
606
|
+
"prerender",
|
|
607
|
+
"csr",
|
|
608
|
+
"ssr",
|
|
609
|
+
"trailingSlash",
|
|
610
|
+
"config"
|
|
611
|
+
]);
|
|
612
|
+
const valid_page_exports = /* @__PURE__ */ new Set([...valid_layout_exports, "entries"]);
|
|
613
|
+
const valid_layout_server_exports = /* @__PURE__ */ new Set([...valid_layout_exports]);
|
|
614
|
+
const valid_page_server_exports = /* @__PURE__ */ new Set([...valid_layout_server_exports, "actions", "entries"]);
|
|
615
|
+
const valid_server_exports = /* @__PURE__ */ new Set([
|
|
616
|
+
"GET",
|
|
617
|
+
"POST",
|
|
618
|
+
"PATCH",
|
|
619
|
+
"PUT",
|
|
620
|
+
"DELETE",
|
|
621
|
+
"OPTIONS",
|
|
622
|
+
"HEAD",
|
|
623
|
+
"fallback",
|
|
624
|
+
"prerender",
|
|
625
|
+
"trailingSlash",
|
|
626
|
+
"config",
|
|
627
|
+
"entries"
|
|
628
|
+
]);
|
|
629
|
+
const validate_layout_exports = validator(valid_layout_exports);
|
|
630
|
+
const validate_page_exports = validator(valid_page_exports);
|
|
631
|
+
const validate_layout_server_exports = validator(valid_layout_server_exports);
|
|
632
|
+
const validate_page_server_exports = validator(valid_page_server_exports);
|
|
633
|
+
|
|
634
|
+
export { validate_page_server_exports as $, HEAD_EFFECT as A, BRANCH_EFFECT as B, COMMENT_NODE as C, DERIVED as D, EFFECT as E, BLOCK_EFFECT as F, DEV as G, HYDRATION_START as H, INERT as I, EFFECT_TRANSPARENT as J, index_of as K, LEGACY_PROPS as L, MAYBE_DIRTY as M, INSPECT_EFFECT as N, RENDER_EFFECT as O, push as P, setContext as Q, ROOT_EFFECT as R, STATE_SYMBOL as S, pop as T, UNOWNED as U, decode_pathname as V, decode_params as W, normalize_path as X, disable_search as Y, validate_layout_server_exports as Z, validate_layout_exports as _, HYDRATION_ERROR as a, validate_page_exports as a0, resolve as a1, make_trackable as a2, readable as a3, writable as a4, escape_html as a5, getContext as a6, copy_payload as a7, assign_payload as a8, head as a9, await_block as aa, ensure_array_like as ab, attr as ac, stringify as ad, css_props as ae, attr_style as af, bind_props as ag, spread_props as ah, spread_attributes as ai, attr_class as aj, clsx as ak, noop as al, HYDRATION_END as b, array_prototype as c, define_property as d, UNINITIALIZED as e, DIRTY as f, get_descriptor as g, CLEAN as h, DISCONNECTED as i, is_extensible as j, array_from as k, equals as l, get_prototype_of as m, is_array as n, object_prototype as o, is_passive_event as p, run_all as q, render as r, safe_equals as s, DESTROYED as t, USER_EFFECT as u, EFFECT_IS_UPDATING as v, STALE_REACTION as w, EFFECT_RAN as x, EFFECT_PRESERVED as y, BOUNDARY_EFFECT as z };
|
|
635
|
+
//# sourceMappingURL=exports-Bdi6Ec6W.js.map
|