@valaxyjs/devtools 0.23.5 → 0.23.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{about-rjfU4__7.js → about-CKnJAe7D.js} +1 -1
- package/dist/client/assets/{categories-BBfumNEa.js → categories-c6XTc6fg.js} +1 -1
- package/dist/client/assets/{index-Ch6xFAPn.js → index-B0hInhA7.js} +10 -1118
- package/dist/client/assets/{index-C08qRPwv.js → index-SkBrsFRK.js} +331 -413
- package/dist/client/assets/{migration-Bm3qOgQn.js → migration-BbA8qycI.js} +2 -2
- package/dist/client/assets/{splitpanes.es-Cne9xE0z.js → splitpanes.es-BzR2UKwq.js} +4 -743
- package/dist/client/assets/{tags-CCpP7bH0.js → tags-BqCHcWyi.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +6 -6
|
@@ -1,40 +1,32 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-B0hInhA7.js","./splitpanes.es-BzR2UKwq.js","./index-DKnSvpEK.css","./migration-BbA8qycI.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
true &&(function polyfill() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
function processPreload(link) {
|
|
32
|
-
if (link.ep)
|
|
33
|
-
return;
|
|
34
|
-
link.ep = true;
|
|
35
|
-
const fetchOpts = getFetchOpts(link);
|
|
36
|
-
fetch(link.href, fetchOpts);
|
|
37
|
-
}
|
|
3
|
+
const relList = document.createElement("link").relList;
|
|
4
|
+
if (relList && relList.supports && relList.supports("modulepreload")) return;
|
|
5
|
+
for (const link of document.querySelectorAll("link[rel=\"modulepreload\"]")) processPreload(link);
|
|
6
|
+
new MutationObserver((mutations) => {
|
|
7
|
+
for (const mutation of mutations) {
|
|
8
|
+
if (mutation.type !== "childList") continue;
|
|
9
|
+
for (const node of mutation.addedNodes) if (node.tagName === "LINK" && node.rel === "modulepreload") processPreload(node);
|
|
10
|
+
}
|
|
11
|
+
}).observe(document, {
|
|
12
|
+
childList: true,
|
|
13
|
+
subtree: true
|
|
14
|
+
});
|
|
15
|
+
function getFetchOpts(link) {
|
|
16
|
+
const fetchOpts = {};
|
|
17
|
+
if (link.integrity) fetchOpts.integrity = link.integrity;
|
|
18
|
+
if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy;
|
|
19
|
+
if (link.crossOrigin === "use-credentials") fetchOpts.credentials = "include";
|
|
20
|
+
else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit";
|
|
21
|
+
else fetchOpts.credentials = "same-origin";
|
|
22
|
+
return fetchOpts;
|
|
23
|
+
}
|
|
24
|
+
function processPreload(link) {
|
|
25
|
+
if (link.ep) return;
|
|
26
|
+
link.ep = true;
|
|
27
|
+
const fetchOpts = getFetchOpts(link);
|
|
28
|
+
fetch(link.href, fetchOpts);
|
|
29
|
+
}
|
|
38
30
|
}());
|
|
39
31
|
/* Injected with object hook! */
|
|
40
32
|
|
|
@@ -1565,7 +1557,7 @@ var index = _objectSpread$3(_objectSpread$3({}, e$Q), {}, {
|
|
|
1565
1557
|
/* Injected with object hook! */
|
|
1566
1558
|
|
|
1567
1559
|
/**
|
|
1568
|
-
* @vue/shared v3.5.
|
|
1560
|
+
* @vue/shared v3.5.17
|
|
1569
1561
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1570
1562
|
* @license MIT
|
|
1571
1563
|
**/
|
|
@@ -1813,7 +1805,7 @@ const stringifySymbol = (v, i = "") => {
|
|
|
1813
1805
|
/* Injected with object hook! */
|
|
1814
1806
|
|
|
1815
1807
|
/**
|
|
1816
|
-
* @vue/reactivity v3.5.
|
|
1808
|
+
* @vue/reactivity v3.5.17
|
|
1817
1809
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1818
1810
|
* @license MIT
|
|
1819
1811
|
**/
|
|
@@ -2222,6 +2214,7 @@ class Link {
|
|
|
2222
2214
|
}
|
|
2223
2215
|
}
|
|
2224
2216
|
class Dep {
|
|
2217
|
+
// TODO isolatedDeclarations "__v_skip"
|
|
2225
2218
|
constructor(computed2) {
|
|
2226
2219
|
this.computed = computed2;
|
|
2227
2220
|
this.version = 0;
|
|
@@ -2230,6 +2223,7 @@ class Dep {
|
|
|
2230
2223
|
this.map = void 0;
|
|
2231
2224
|
this.key = void 0;
|
|
2232
2225
|
this.sc = 0;
|
|
2226
|
+
this.__v_skip = true;
|
|
2233
2227
|
}
|
|
2234
2228
|
track(debugInfo) {
|
|
2235
2229
|
if (!activeSub || !shouldTrack || activeSub === this.computed) {
|
|
@@ -3392,7 +3386,7 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
3392
3386
|
/* Injected with object hook! */
|
|
3393
3387
|
|
|
3394
3388
|
/**
|
|
3395
|
-
* @vue/runtime-core v3.5.
|
|
3389
|
+
* @vue/runtime-core v3.5.17
|
|
3396
3390
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
3397
3391
|
* @license MIT
|
|
3398
3392
|
**/
|
|
@@ -5757,6 +5751,8 @@ const assignSlots = (slots, children, optimized) => {
|
|
|
5757
5751
|
const initSlots = (instance, children, optimized) => {
|
|
5758
5752
|
const slots = instance.slots = createInternalObject();
|
|
5759
5753
|
if (instance.vnode.shapeFlag & 32) {
|
|
5754
|
+
const cacheIndexes = children.__;
|
|
5755
|
+
if (cacheIndexes) def(slots, "__", cacheIndexes, true);
|
|
5760
5756
|
const type = children._;
|
|
5761
5757
|
if (type) {
|
|
5762
5758
|
assignSlots(slots, children, optimized);
|
|
@@ -5914,6 +5910,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5914
5910
|
}
|
|
5915
5911
|
if (ref3 != null && parentComponent) {
|
|
5916
5912
|
setRef(ref3, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
|
|
5913
|
+
} else if (ref3 == null && n1 && n1.ref != null) {
|
|
5914
|
+
setRef(n1.ref, null, parentSuspense, n1, true);
|
|
5917
5915
|
}
|
|
5918
5916
|
};
|
|
5919
5917
|
const processText = (n1, n2, container, anchor) => {
|
|
@@ -6387,7 +6385,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6387
6385
|
}
|
|
6388
6386
|
toggleRecurse(instance, true);
|
|
6389
6387
|
{
|
|
6390
|
-
if (root.ce
|
|
6388
|
+
if (root.ce && // @ts-expect-error _def is private
|
|
6389
|
+
root.ce._def.shadowRoot !== false) {
|
|
6391
6390
|
root.ce._injectChildStyle(type);
|
|
6392
6391
|
}
|
|
6393
6392
|
const subTree = instance.subTree = renderComponentRoot(instance);
|
|
@@ -8240,12 +8239,12 @@ function h(type, propsOrChildren, children) {
|
|
|
8240
8239
|
return createVNode(type, propsOrChildren, children);
|
|
8241
8240
|
}
|
|
8242
8241
|
}
|
|
8243
|
-
const version = "3.5.
|
|
8242
|
+
const version = "3.5.17";
|
|
8244
8243
|
|
|
8245
8244
|
/* Injected with object hook! */
|
|
8246
8245
|
|
|
8247
8246
|
/**
|
|
8248
|
-
* @vue/runtime-dom v3.5.
|
|
8247
|
+
* @vue/runtime-dom v3.5.17
|
|
8249
8248
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8250
8249
|
* @license MIT
|
|
8251
8250
|
**/
|
|
@@ -9146,6 +9145,164 @@ function normalizeContainer(container) {
|
|
|
9146
9145
|
|
|
9147
9146
|
/* Injected with object hook! */
|
|
9148
9147
|
|
|
9148
|
+
const TYPE_REQUEST = "q";
|
|
9149
|
+
const TYPE_RESPONSE = "s";
|
|
9150
|
+
const DEFAULT_TIMEOUT = 6e4;
|
|
9151
|
+
function defaultSerialize(i) {
|
|
9152
|
+
return i;
|
|
9153
|
+
}
|
|
9154
|
+
const defaultDeserialize = defaultSerialize;
|
|
9155
|
+
const { clearTimeout: clearTimeout$1, setTimeout: setTimeout$1 } = globalThis;
|
|
9156
|
+
const random = Math.random.bind(Math);
|
|
9157
|
+
function createBirpc(functions, options) {
|
|
9158
|
+
const {
|
|
9159
|
+
post,
|
|
9160
|
+
on,
|
|
9161
|
+
off = () => {
|
|
9162
|
+
},
|
|
9163
|
+
eventNames = [],
|
|
9164
|
+
serialize = defaultSerialize,
|
|
9165
|
+
deserialize = defaultDeserialize,
|
|
9166
|
+
resolver,
|
|
9167
|
+
bind = "rpc",
|
|
9168
|
+
timeout = DEFAULT_TIMEOUT
|
|
9169
|
+
} = options;
|
|
9170
|
+
const rpcPromiseMap = /* @__PURE__ */ new Map();
|
|
9171
|
+
let _promise;
|
|
9172
|
+
let closed = false;
|
|
9173
|
+
const rpc = new Proxy({}, {
|
|
9174
|
+
get(_, method) {
|
|
9175
|
+
if (method === "$functions")
|
|
9176
|
+
return functions;
|
|
9177
|
+
if (method === "$close")
|
|
9178
|
+
return close;
|
|
9179
|
+
if (method === "$closed")
|
|
9180
|
+
return closed;
|
|
9181
|
+
if (method === "then" && !eventNames.includes("then") && !("then" in functions))
|
|
9182
|
+
return undefined;
|
|
9183
|
+
const sendEvent = (...args) => {
|
|
9184
|
+
post(serialize({ m: method, a: args, t: TYPE_REQUEST }));
|
|
9185
|
+
};
|
|
9186
|
+
if (eventNames.includes(method)) {
|
|
9187
|
+
sendEvent.asEvent = sendEvent;
|
|
9188
|
+
return sendEvent;
|
|
9189
|
+
}
|
|
9190
|
+
const sendCall = async (...args) => {
|
|
9191
|
+
if (closed)
|
|
9192
|
+
throw new Error(`[birpc] rpc is closed, cannot call "${method}"`);
|
|
9193
|
+
if (_promise) {
|
|
9194
|
+
try {
|
|
9195
|
+
await _promise;
|
|
9196
|
+
} finally {
|
|
9197
|
+
_promise = undefined;
|
|
9198
|
+
}
|
|
9199
|
+
}
|
|
9200
|
+
return new Promise((resolve, reject) => {
|
|
9201
|
+
const id = nanoid();
|
|
9202
|
+
let timeoutId;
|
|
9203
|
+
if (timeout >= 0) {
|
|
9204
|
+
timeoutId = setTimeout$1(() => {
|
|
9205
|
+
try {
|
|
9206
|
+
const handleResult = options.onTimeoutError?.(method, args);
|
|
9207
|
+
if (handleResult !== true)
|
|
9208
|
+
throw new Error(`[birpc] timeout on calling "${method}"`);
|
|
9209
|
+
} catch (e) {
|
|
9210
|
+
reject(e);
|
|
9211
|
+
}
|
|
9212
|
+
rpcPromiseMap.delete(id);
|
|
9213
|
+
}, timeout);
|
|
9214
|
+
if (typeof timeoutId === "object")
|
|
9215
|
+
timeoutId = timeoutId.unref?.();
|
|
9216
|
+
}
|
|
9217
|
+
rpcPromiseMap.set(id, { resolve, reject, timeoutId, method });
|
|
9218
|
+
post(serialize({ m: method, a: args, i: id, t: "q" }));
|
|
9219
|
+
});
|
|
9220
|
+
};
|
|
9221
|
+
sendCall.asEvent = sendEvent;
|
|
9222
|
+
return sendCall;
|
|
9223
|
+
}
|
|
9224
|
+
});
|
|
9225
|
+
function close(error) {
|
|
9226
|
+
closed = true;
|
|
9227
|
+
rpcPromiseMap.forEach(({ reject, method }) => {
|
|
9228
|
+
reject(error || new Error(`[birpc] rpc is closed, cannot call "${method}"`));
|
|
9229
|
+
});
|
|
9230
|
+
rpcPromiseMap.clear();
|
|
9231
|
+
off(onMessage);
|
|
9232
|
+
}
|
|
9233
|
+
async function onMessage(data, ...extra) {
|
|
9234
|
+
let msg;
|
|
9235
|
+
try {
|
|
9236
|
+
msg = deserialize(data);
|
|
9237
|
+
} catch (e) {
|
|
9238
|
+
if (options.onGeneralError?.(e) !== true)
|
|
9239
|
+
throw e;
|
|
9240
|
+
return;
|
|
9241
|
+
}
|
|
9242
|
+
if (msg.t === TYPE_REQUEST) {
|
|
9243
|
+
const { m: method, a: args } = msg;
|
|
9244
|
+
let result, error;
|
|
9245
|
+
const fn = resolver ? resolver(method, functions[method]) : functions[method];
|
|
9246
|
+
if (!fn) {
|
|
9247
|
+
error = new Error(`[birpc] function "${method}" not found`);
|
|
9248
|
+
} else {
|
|
9249
|
+
try {
|
|
9250
|
+
result = await fn.apply(bind === "rpc" ? rpc : functions, args);
|
|
9251
|
+
} catch (e) {
|
|
9252
|
+
error = e;
|
|
9253
|
+
}
|
|
9254
|
+
}
|
|
9255
|
+
if (msg.i) {
|
|
9256
|
+
if (error && options.onError)
|
|
9257
|
+
options.onError(error, method, args);
|
|
9258
|
+
if (error && options.onFunctionError) {
|
|
9259
|
+
if (options.onFunctionError(error, method, args) === true)
|
|
9260
|
+
return;
|
|
9261
|
+
}
|
|
9262
|
+
if (!error) {
|
|
9263
|
+
try {
|
|
9264
|
+
post(serialize({ t: TYPE_RESPONSE, i: msg.i, r: result }), ...extra);
|
|
9265
|
+
return;
|
|
9266
|
+
} catch (e) {
|
|
9267
|
+
error = e;
|
|
9268
|
+
if (options.onGeneralError?.(e, method, args) !== true)
|
|
9269
|
+
throw e;
|
|
9270
|
+
}
|
|
9271
|
+
}
|
|
9272
|
+
try {
|
|
9273
|
+
post(serialize({ t: TYPE_RESPONSE, i: msg.i, e: error }), ...extra);
|
|
9274
|
+
} catch (e) {
|
|
9275
|
+
if (options.onGeneralError?.(e, method, args) !== true)
|
|
9276
|
+
throw e;
|
|
9277
|
+
}
|
|
9278
|
+
}
|
|
9279
|
+
} else {
|
|
9280
|
+
const { i: ack, r: result, e: error } = msg;
|
|
9281
|
+
const promise = rpcPromiseMap.get(ack);
|
|
9282
|
+
if (promise) {
|
|
9283
|
+
clearTimeout$1(promise.timeoutId);
|
|
9284
|
+
if (error)
|
|
9285
|
+
promise.reject(error);
|
|
9286
|
+
else
|
|
9287
|
+
promise.resolve(result);
|
|
9288
|
+
}
|
|
9289
|
+
rpcPromiseMap.delete(ack);
|
|
9290
|
+
}
|
|
9291
|
+
}
|
|
9292
|
+
_promise = on(onMessage);
|
|
9293
|
+
return rpc;
|
|
9294
|
+
}
|
|
9295
|
+
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
9296
|
+
function nanoid(size = 21) {
|
|
9297
|
+
let id = "";
|
|
9298
|
+
let i = size;
|
|
9299
|
+
while (i--)
|
|
9300
|
+
id += urlAlphabet[random() * 64 | 0];
|
|
9301
|
+
return id;
|
|
9302
|
+
}
|
|
9303
|
+
|
|
9304
|
+
/* Injected with object hook! */
|
|
9305
|
+
|
|
9149
9306
|
/*!
|
|
9150
9307
|
* pinia v3.0.3
|
|
9151
9308
|
* (c) 2025 Eduardo San Martin Morote
|
|
@@ -9215,130 +9372,7 @@ var FilterMatchMode = {
|
|
|
9215
9372
|
|
|
9216
9373
|
/* Injected with object hook! */
|
|
9217
9374
|
|
|
9218
|
-
var style=
|
|
9219
|
-
*,
|
|
9220
|
-
::before,
|
|
9221
|
-
::after {
|
|
9222
|
-
box-sizing: border-box;
|
|
9223
|
-
}
|
|
9224
|
-
|
|
9225
|
-
/* Non vue overlay animations */
|
|
9226
|
-
.p-connected-overlay {
|
|
9227
|
-
opacity: 0;
|
|
9228
|
-
transform: scaleY(0.8);
|
|
9229
|
-
transition:
|
|
9230
|
-
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
|
|
9231
|
-
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
|
|
9232
|
-
}
|
|
9233
|
-
|
|
9234
|
-
.p-connected-overlay-visible {
|
|
9235
|
-
opacity: 1;
|
|
9236
|
-
transform: scaleY(1);
|
|
9237
|
-
}
|
|
9238
|
-
|
|
9239
|
-
.p-connected-overlay-hidden {
|
|
9240
|
-
opacity: 0;
|
|
9241
|
-
transform: scaleY(1);
|
|
9242
|
-
transition: opacity 0.1s linear;
|
|
9243
|
-
}
|
|
9244
|
-
|
|
9245
|
-
/* Vue based overlay animations */
|
|
9246
|
-
.p-connected-overlay-enter-from {
|
|
9247
|
-
opacity: 0;
|
|
9248
|
-
transform: scaleY(0.8);
|
|
9249
|
-
}
|
|
9250
|
-
|
|
9251
|
-
.p-connected-overlay-leave-to {
|
|
9252
|
-
opacity: 0;
|
|
9253
|
-
}
|
|
9254
|
-
|
|
9255
|
-
.p-connected-overlay-enter-active {
|
|
9256
|
-
transition:
|
|
9257
|
-
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
|
|
9258
|
-
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
|
|
9259
|
-
}
|
|
9260
|
-
|
|
9261
|
-
.p-connected-overlay-leave-active {
|
|
9262
|
-
transition: opacity 0.1s linear;
|
|
9263
|
-
}
|
|
9264
|
-
|
|
9265
|
-
/* Toggleable Content */
|
|
9266
|
-
.p-toggleable-content-enter-from,
|
|
9267
|
-
.p-toggleable-content-leave-to {
|
|
9268
|
-
max-height: 0;
|
|
9269
|
-
}
|
|
9270
|
-
|
|
9271
|
-
.p-toggleable-content-enter-to,
|
|
9272
|
-
.p-toggleable-content-leave-from {
|
|
9273
|
-
max-height: 1000px;
|
|
9274
|
-
}
|
|
9275
|
-
|
|
9276
|
-
.p-toggleable-content-leave-active {
|
|
9277
|
-
overflow: hidden;
|
|
9278
|
-
transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
|
|
9279
|
-
}
|
|
9280
|
-
|
|
9281
|
-
.p-toggleable-content-enter-active {
|
|
9282
|
-
overflow: hidden;
|
|
9283
|
-
transition: max-height 1s ease-in-out;
|
|
9284
|
-
}
|
|
9285
|
-
|
|
9286
|
-
.p-disabled,
|
|
9287
|
-
.p-disabled * {
|
|
9288
|
-
cursor: default;
|
|
9289
|
-
pointer-events: none;
|
|
9290
|
-
user-select: none;
|
|
9291
|
-
}
|
|
9292
|
-
|
|
9293
|
-
.p-disabled,
|
|
9294
|
-
.p-component:disabled {
|
|
9295
|
-
opacity: dt('disabled.opacity');
|
|
9296
|
-
}
|
|
9297
|
-
|
|
9298
|
-
.pi {
|
|
9299
|
-
font-size: dt('icon.size');
|
|
9300
|
-
}
|
|
9301
|
-
|
|
9302
|
-
.p-icon {
|
|
9303
|
-
width: dt('icon.size');
|
|
9304
|
-
height: dt('icon.size');
|
|
9305
|
-
}
|
|
9306
|
-
|
|
9307
|
-
.p-overlay-mask {
|
|
9308
|
-
background: dt('mask.background');
|
|
9309
|
-
color: dt('mask.color');
|
|
9310
|
-
position: fixed;
|
|
9311
|
-
top: 0;
|
|
9312
|
-
left: 0;
|
|
9313
|
-
width: 100%;
|
|
9314
|
-
height: 100%;
|
|
9315
|
-
}
|
|
9316
|
-
|
|
9317
|
-
.p-overlay-mask-enter {
|
|
9318
|
-
animation: p-overlay-mask-enter-animation dt('mask.transition.duration') forwards;
|
|
9319
|
-
}
|
|
9320
|
-
|
|
9321
|
-
.p-overlay-mask-leave {
|
|
9322
|
-
animation: p-overlay-mask-leave-animation dt('mask.transition.duration') forwards;
|
|
9323
|
-
}
|
|
9324
|
-
|
|
9325
|
-
@keyframes p-overlay-mask-enter-animation {
|
|
9326
|
-
from {
|
|
9327
|
-
background: transparent;
|
|
9328
|
-
}
|
|
9329
|
-
to {
|
|
9330
|
-
background: dt('mask.background');
|
|
9331
|
-
}
|
|
9332
|
-
}
|
|
9333
|
-
@keyframes p-overlay-mask-leave-animation {
|
|
9334
|
-
from {
|
|
9335
|
-
background: dt('mask.background');
|
|
9336
|
-
}
|
|
9337
|
-
to {
|
|
9338
|
-
background: transparent;
|
|
9339
|
-
}
|
|
9340
|
-
}
|
|
9341
|
-
`;/* Injected with object hook! */
|
|
9375
|
+
var style="\n *,\n ::before,\n ::after {\n box-sizing: border-box;\n }\n\n /* Non vue overlay animations */\n .p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition:\n transform 0.12s cubic-bezier(0, 0, 0.2, 1),\n opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n }\n\n .p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity 0.1s linear;\n }\n\n /* Vue based overlay animations */\n .p-connected-overlay-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-connected-overlay-leave-to {\n opacity: 0;\n }\n\n .p-connected-overlay-enter-active {\n transition:\n transform 0.12s cubic-bezier(0, 0, 0.2, 1),\n opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-leave-active {\n transition: opacity 0.1s linear;\n }\n\n /* Toggleable Content */\n .p-toggleable-content-enter-from,\n .p-toggleable-content-leave-to {\n max-height: 0;\n }\n\n .p-toggleable-content-enter-to,\n .p-toggleable-content-leave-from {\n max-height: 1000px;\n }\n\n .p-toggleable-content-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n }\n\n .p-toggleable-content-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n }\n\n .p-disabled,\n .p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n }\n\n .p-disabled,\n .p-component:disabled {\n opacity: dt('disabled.opacity');\n }\n\n .pi {\n font-size: dt('icon.size');\n }\n\n .p-icon {\n width: dt('icon.size');\n height: dt('icon.size');\n }\n\n .p-overlay-mask {\n background: dt('mask.background');\n color: dt('mask.color');\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-overlay-mask-enter {\n animation: p-overlay-mask-enter-animation dt('mask.transition.duration') forwards;\n }\n\n .p-overlay-mask-leave {\n animation: p-overlay-mask-leave-animation dt('mask.transition.duration') forwards;\n }\n\n @keyframes p-overlay-mask-enter-animation {\n from {\n background: transparent;\n }\n to {\n background: dt('mask.background');\n }\n }\n @keyframes p-overlay-mask-leave-animation {\n from {\n background: dt('mask.background');\n }\n to {\n background: transparent;\n }\n }\n";/* Injected with object hook! */
|
|
9342
9376
|
|
|
9343
9377
|
function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
|
|
9344
9378
|
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -11716,81 +11750,58 @@ function useRoute(_name) {
|
|
|
11716
11750
|
/* Injected with object hook! */
|
|
11717
11751
|
|
|
11718
11752
|
const scriptRel = 'modulepreload';const assetsURL = function(dep, importerUrl) { return new URL(dep, importerUrl).href };const seen = {};const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
);
|
|
11772
|
-
});
|
|
11773
|
-
}
|
|
11774
|
-
})
|
|
11775
|
-
);
|
|
11776
|
-
}
|
|
11777
|
-
function handlePreloadError(err) {
|
|
11778
|
-
const e = new Event("vite:preloadError", {
|
|
11779
|
-
cancelable: true
|
|
11780
|
-
});
|
|
11781
|
-
e.payload = err;
|
|
11782
|
-
window.dispatchEvent(e);
|
|
11783
|
-
if (!e.defaultPrevented) {
|
|
11784
|
-
throw err;
|
|
11785
|
-
}
|
|
11786
|
-
}
|
|
11787
|
-
return promise.then((res) => {
|
|
11788
|
-
for (const item of res || []) {
|
|
11789
|
-
if (item.status !== "rejected") continue;
|
|
11790
|
-
handlePreloadError(item.reason);
|
|
11791
|
-
}
|
|
11792
|
-
return baseModule().catch(handlePreloadError);
|
|
11793
|
-
});
|
|
11753
|
+
let promise = Promise.resolve();
|
|
11754
|
+
if (true && deps && deps.length > 0) {
|
|
11755
|
+
const links = document.getElementsByTagName("link");
|
|
11756
|
+
const cspNonceMeta = document.querySelector("meta[property=csp-nonce]");
|
|
11757
|
+
const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
|
|
11758
|
+
function allSettled(promises$2) {
|
|
11759
|
+
return Promise.all(promises$2.map((p$1) => Promise.resolve(p$1).then((value$1) => ({
|
|
11760
|
+
status: "fulfilled",
|
|
11761
|
+
value: value$1
|
|
11762
|
+
}), (reason) => ({
|
|
11763
|
+
status: "rejected",
|
|
11764
|
+
reason
|
|
11765
|
+
}))));
|
|
11766
|
+
}
|
|
11767
|
+
promise = allSettled(deps.map((dep) => {
|
|
11768
|
+
dep = assetsURL(dep, importerUrl);
|
|
11769
|
+
if (dep in seen) return;
|
|
11770
|
+
seen[dep] = true;
|
|
11771
|
+
const isCss = dep.endsWith(".css");
|
|
11772
|
+
const cssSelector = isCss ? "[rel=\"stylesheet\"]" : "";
|
|
11773
|
+
const isBaseRelative = !!importerUrl;
|
|
11774
|
+
if (isBaseRelative) for (let i$1 = links.length - 1; i$1 >= 0; i$1--) {
|
|
11775
|
+
const link$1 = links[i$1];
|
|
11776
|
+
if (link$1.href === dep && (!isCss || link$1.rel === "stylesheet")) return;
|
|
11777
|
+
}
|
|
11778
|
+
else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;
|
|
11779
|
+
const link = document.createElement("link");
|
|
11780
|
+
link.rel = isCss ? "stylesheet" : scriptRel;
|
|
11781
|
+
if (!isCss) link.as = "script";
|
|
11782
|
+
link.crossOrigin = "";
|
|
11783
|
+
link.href = dep;
|
|
11784
|
+
if (cspNonce) link.setAttribute("nonce", cspNonce);
|
|
11785
|
+
document.head.appendChild(link);
|
|
11786
|
+
if (isCss) return new Promise((res, rej) => {
|
|
11787
|
+
link.addEventListener("load", res);
|
|
11788
|
+
link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
|
|
11789
|
+
});
|
|
11790
|
+
}));
|
|
11791
|
+
}
|
|
11792
|
+
function handlePreloadError(err$2) {
|
|
11793
|
+
const e$1 = new Event("vite:preloadError", { cancelable: true });
|
|
11794
|
+
e$1.payload = err$2;
|
|
11795
|
+
window.dispatchEvent(e$1);
|
|
11796
|
+
if (!e$1.defaultPrevented) throw err$2;
|
|
11797
|
+
}
|
|
11798
|
+
return promise.then((res) => {
|
|
11799
|
+
for (const item of res || []) {
|
|
11800
|
+
if (item.status !== "rejected") continue;
|
|
11801
|
+
handlePreloadError(item.reason);
|
|
11802
|
+
}
|
|
11803
|
+
return baseModule().catch(handlePreloadError);
|
|
11804
|
+
});
|
|
11794
11805
|
};
|
|
11795
11806
|
/* Injected with object hook! */
|
|
11796
11807
|
|
|
@@ -11798,31 +11809,31 @@ const routes = [
|
|
|
11798
11809
|
{
|
|
11799
11810
|
path: "/",
|
|
11800
11811
|
name: "/",
|
|
11801
|
-
component: () => __vitePreload(() => import('./index-
|
|
11812
|
+
component: () => __vitePreload(() => import('./index-B0hInhA7.js'),true ?__vite__mapDeps([0,1,2]):void 0,import.meta.url)
|
|
11802
11813
|
/* no children */
|
|
11803
11814
|
},
|
|
11804
11815
|
{
|
|
11805
11816
|
path: "/about",
|
|
11806
11817
|
name: "/about",
|
|
11807
|
-
component: () => __vitePreload(() => import('./about-
|
|
11818
|
+
component: () => __vitePreload(() => import('./about-CKnJAe7D.js'),true ?[]:void 0,import.meta.url)
|
|
11808
11819
|
/* no children */
|
|
11809
11820
|
},
|
|
11810
11821
|
{
|
|
11811
11822
|
path: "/categories",
|
|
11812
11823
|
name: "/categories",
|
|
11813
|
-
component: () => __vitePreload(() => import('./categories-
|
|
11824
|
+
component: () => __vitePreload(() => import('./categories-c6XTc6fg.js'),true ?[]:void 0,import.meta.url)
|
|
11814
11825
|
/* no children */
|
|
11815
11826
|
},
|
|
11816
11827
|
{
|
|
11817
11828
|
path: "/migration",
|
|
11818
11829
|
name: "/migration",
|
|
11819
|
-
component: () => __vitePreload(() => import('./migration-
|
|
11830
|
+
component: () => __vitePreload(() => import('./migration-BbA8qycI.js'),true ?__vite__mapDeps([3,1]):void 0,import.meta.url)
|
|
11820
11831
|
/* no children */
|
|
11821
11832
|
},
|
|
11822
11833
|
{
|
|
11823
11834
|
path: "/tags",
|
|
11824
11835
|
name: "/tags",
|
|
11825
|
-
component: () => __vitePreload(() => import('./tags-
|
|
11836
|
+
component: () => __vitePreload(() => import('./tags-BqCHcWyi.js'),true ?[]:void 0,import.meta.url)
|
|
11826
11837
|
/* no children */
|
|
11827
11838
|
}
|
|
11828
11839
|
];
|
|
@@ -11849,7 +11860,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11849
11860
|
/* Injected with object hook! */
|
|
11850
11861
|
|
|
11851
11862
|
/*!
|
|
11852
|
-
* shared v11.1.
|
|
11863
|
+
* shared v11.1.7
|
|
11853
11864
|
* (c) 2025 kazuya kawaguchi
|
|
11854
11865
|
* Released under the MIT License.
|
|
11855
11866
|
*/
|
|
@@ -11927,7 +11938,7 @@ function deepCopy(src, des) {
|
|
|
11927
11938
|
/* Injected with object hook! */
|
|
11928
11939
|
|
|
11929
11940
|
/*!
|
|
11930
|
-
* message-compiler v11.1.
|
|
11941
|
+
* message-compiler v11.1.7
|
|
11931
11942
|
* (c) 2025 kazuya kawaguchi
|
|
11932
11943
|
* Released under the MIT License.
|
|
11933
11944
|
*/
|
|
@@ -13350,7 +13361,7 @@ function baseCompile$1(source, options = {}) {
|
|
|
13350
13361
|
/* Injected with object hook! */
|
|
13351
13362
|
|
|
13352
13363
|
/*!
|
|
13353
|
-
* core-base v11.1.
|
|
13364
|
+
* core-base v11.1.7
|
|
13354
13365
|
* (c) 2025 kazuya kawaguchi
|
|
13355
13366
|
* Released under the MIT License.
|
|
13356
13367
|
*/
|
|
@@ -14117,7 +14128,7 @@ function resolveValue(obj, path) {
|
|
|
14117
14128
|
}
|
|
14118
14129
|
return last;
|
|
14119
14130
|
}
|
|
14120
|
-
const VERSION$1 = "11.1.
|
|
14131
|
+
const VERSION$1 = "11.1.7";
|
|
14121
14132
|
const NOT_REOSLVED = -1;
|
|
14122
14133
|
const DEFAULT_LOCALE = "en-US";
|
|
14123
14134
|
const MISSING_RESOLVE_VALUE = "";
|
|
@@ -14808,11 +14819,11 @@ function getMessageContextOptions(context, locale, message, options) {
|
|
|
14808
14819
|
/* Injected with object hook! */
|
|
14809
14820
|
|
|
14810
14821
|
/*!
|
|
14811
|
-
* vue-i18n v11.1.
|
|
14822
|
+
* vue-i18n v11.1.7
|
|
14812
14823
|
* (c) 2025 kazuya kawaguchi
|
|
14813
14824
|
* Released under the MIT License.
|
|
14814
14825
|
*/
|
|
14815
|
-
const VERSION = "11.1.
|
|
14826
|
+
const VERSION = "11.1.7";
|
|
14816
14827
|
function initFeatureFlags() {
|
|
14817
14828
|
if (typeof __INTLIFY_PROD_DEVTOOLS__ !== "boolean") {
|
|
14818
14829
|
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false;
|
|
@@ -15876,6 +15887,7 @@ const injectLocal = (...args) => {
|
|
|
15876
15887
|
|
|
15877
15888
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
15878
15889
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
15890
|
+
const notNullish = (val) => val != null;
|
|
15879
15891
|
const toString = Object.prototype.toString;
|
|
15880
15892
|
const isObject = (val) => toString.call(val) === "[object Object]";
|
|
15881
15893
|
const noop = () => {
|
|
@@ -15917,7 +15929,7 @@ function debounceFilter(ms, options = {}) {
|
|
|
15917
15929
|
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
15918
15930
|
if (maxTimer) {
|
|
15919
15931
|
_clearTimeout(maxTimer);
|
|
15920
|
-
maxTimer =
|
|
15932
|
+
maxTimer = void 0;
|
|
15921
15933
|
}
|
|
15922
15934
|
return Promise.resolve(invoke());
|
|
15923
15935
|
}
|
|
@@ -15928,14 +15940,14 @@ function debounceFilter(ms, options = {}) {
|
|
|
15928
15940
|
maxTimer = setTimeout(() => {
|
|
15929
15941
|
if (timer)
|
|
15930
15942
|
_clearTimeout(timer);
|
|
15931
|
-
maxTimer =
|
|
15943
|
+
maxTimer = void 0;
|
|
15932
15944
|
resolve(lastInvoker());
|
|
15933
15945
|
}, maxDuration);
|
|
15934
15946
|
}
|
|
15935
15947
|
timer = setTimeout(() => {
|
|
15936
15948
|
if (maxTimer)
|
|
15937
15949
|
_clearTimeout(maxTimer);
|
|
15938
|
-
maxTimer =
|
|
15950
|
+
maxTimer = void 0;
|
|
15939
15951
|
resolve(invoke());
|
|
15940
15952
|
}, duration);
|
|
15941
15953
|
});
|
|
@@ -16187,6 +16199,46 @@ function useSupported(callback) {
|
|
|
16187
16199
|
return Boolean(callback());
|
|
16188
16200
|
});
|
|
16189
16201
|
}
|
|
16202
|
+
function useMutationObserver(target, callback, options = {}) {
|
|
16203
|
+
const { window: window2 = defaultWindow, ...mutationOptions } = options;
|
|
16204
|
+
let observer;
|
|
16205
|
+
const isSupported = useSupported(() => window2 && "MutationObserver" in window2);
|
|
16206
|
+
const cleanup = () => {
|
|
16207
|
+
if (observer) {
|
|
16208
|
+
observer.disconnect();
|
|
16209
|
+
observer = void 0;
|
|
16210
|
+
}
|
|
16211
|
+
};
|
|
16212
|
+
const targets = computed(() => {
|
|
16213
|
+
const value = toValue(target);
|
|
16214
|
+
const items = toArray(value).map(unrefElement).filter(notNullish);
|
|
16215
|
+
return new Set(items);
|
|
16216
|
+
});
|
|
16217
|
+
const stopWatch = watch(
|
|
16218
|
+
() => targets.value,
|
|
16219
|
+
(targets2) => {
|
|
16220
|
+
cleanup();
|
|
16221
|
+
if (isSupported.value && targets2.size) {
|
|
16222
|
+
observer = new MutationObserver(callback);
|
|
16223
|
+
targets2.forEach((el) => observer.observe(el, mutationOptions));
|
|
16224
|
+
}
|
|
16225
|
+
},
|
|
16226
|
+
{ immediate: true, flush: "post" }
|
|
16227
|
+
);
|
|
16228
|
+
const takeRecords = () => {
|
|
16229
|
+
return observer == null ? void 0 : observer.takeRecords();
|
|
16230
|
+
};
|
|
16231
|
+
const stop = () => {
|
|
16232
|
+
stopWatch();
|
|
16233
|
+
cleanup();
|
|
16234
|
+
};
|
|
16235
|
+
tryOnScopeDispose(stop);
|
|
16236
|
+
return {
|
|
16237
|
+
isSupported,
|
|
16238
|
+
stop,
|
|
16239
|
+
takeRecords
|
|
16240
|
+
};
|
|
16241
|
+
}
|
|
16190
16242
|
const ssrWidthSymbol = Symbol("vueuse-ssr-width");
|
|
16191
16243
|
function useSSRWidth() {
|
|
16192
16244
|
const ssrWidth = hasInjectionContext() ? injectLocal(ssrWidthSymbol, null) : null;
|
|
@@ -16558,6 +16610,9 @@ function useScroll(element, options = {}) {
|
|
|
16558
16610
|
top: 0,
|
|
16559
16611
|
bottom: 0
|
|
16560
16612
|
},
|
|
16613
|
+
observe: _observe = {
|
|
16614
|
+
mutation: false
|
|
16615
|
+
},
|
|
16561
16616
|
eventListenerOptions = {
|
|
16562
16617
|
capture: false,
|
|
16563
16618
|
passive: true
|
|
@@ -16568,6 +16623,9 @@ function useScroll(element, options = {}) {
|
|
|
16568
16623
|
console.error(e);
|
|
16569
16624
|
}
|
|
16570
16625
|
} = options;
|
|
16626
|
+
const observe = typeof _observe === "boolean" ? {
|
|
16627
|
+
mutation: _observe
|
|
16628
|
+
} : _observe;
|
|
16571
16629
|
const internalX = shallowRef(0);
|
|
16572
16630
|
const internalY = shallowRef(0);
|
|
16573
16631
|
const x = computed({
|
|
@@ -16690,6 +16748,22 @@ function useScroll(element, options = {}) {
|
|
|
16690
16748
|
onError(e);
|
|
16691
16749
|
}
|
|
16692
16750
|
});
|
|
16751
|
+
if ((observe == null ? void 0 : observe.mutation) && element != null && element !== window2 && element !== document) {
|
|
16752
|
+
useMutationObserver(
|
|
16753
|
+
element,
|
|
16754
|
+
() => {
|
|
16755
|
+
const _element = toValue(element);
|
|
16756
|
+
if (!_element)
|
|
16757
|
+
return;
|
|
16758
|
+
setArrivedState(_element);
|
|
16759
|
+
},
|
|
16760
|
+
{
|
|
16761
|
+
attributes: true,
|
|
16762
|
+
childList: true,
|
|
16763
|
+
subtree: true
|
|
16764
|
+
}
|
|
16765
|
+
);
|
|
16766
|
+
}
|
|
16693
16767
|
useEventListener(
|
|
16694
16768
|
element,
|
|
16695
16769
|
"scrollend",
|
|
@@ -16933,162 +17007,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
16933
17007
|
|
|
16934
17008
|
/* Injected with object hook! */
|
|
16935
17009
|
|
|
16936
|
-
const TYPE_REQUEST = "q";
|
|
16937
|
-
const TYPE_RESPONSE = "s";
|
|
16938
|
-
const DEFAULT_TIMEOUT = 6e4;
|
|
16939
|
-
function defaultSerialize(i) {
|
|
16940
|
-
return i;
|
|
16941
|
-
}
|
|
16942
|
-
const defaultDeserialize = defaultSerialize;
|
|
16943
|
-
const { clearTimeout: clearTimeout$1, setTimeout: setTimeout$1 } = globalThis;
|
|
16944
|
-
const random = Math.random.bind(Math);
|
|
16945
|
-
function createBirpc(functions, options) {
|
|
16946
|
-
const {
|
|
16947
|
-
post,
|
|
16948
|
-
on,
|
|
16949
|
-
off = () => {
|
|
16950
|
-
},
|
|
16951
|
-
eventNames = [],
|
|
16952
|
-
serialize = defaultSerialize,
|
|
16953
|
-
deserialize = defaultDeserialize,
|
|
16954
|
-
resolver,
|
|
16955
|
-
bind = "rpc",
|
|
16956
|
-
timeout = DEFAULT_TIMEOUT
|
|
16957
|
-
} = options;
|
|
16958
|
-
const rpcPromiseMap = /* @__PURE__ */ new Map();
|
|
16959
|
-
let _promise;
|
|
16960
|
-
let closed = false;
|
|
16961
|
-
const rpc = new Proxy({}, {
|
|
16962
|
-
get(_, method) {
|
|
16963
|
-
if (method === "$functions")
|
|
16964
|
-
return functions;
|
|
16965
|
-
if (method === "$close")
|
|
16966
|
-
return close;
|
|
16967
|
-
if (method === "then" && !eventNames.includes("then") && !("then" in functions))
|
|
16968
|
-
return void 0;
|
|
16969
|
-
const sendEvent = (...args) => {
|
|
16970
|
-
post(serialize({ m: method, a: args, t: TYPE_REQUEST }));
|
|
16971
|
-
};
|
|
16972
|
-
if (eventNames.includes(method)) {
|
|
16973
|
-
sendEvent.asEvent = sendEvent;
|
|
16974
|
-
return sendEvent;
|
|
16975
|
-
}
|
|
16976
|
-
const sendCall = async (...args) => {
|
|
16977
|
-
if (closed)
|
|
16978
|
-
throw new Error(`[birpc] rpc is closed, cannot call "${method}"`);
|
|
16979
|
-
if (_promise) {
|
|
16980
|
-
try {
|
|
16981
|
-
await _promise;
|
|
16982
|
-
} finally {
|
|
16983
|
-
_promise = void 0;
|
|
16984
|
-
}
|
|
16985
|
-
}
|
|
16986
|
-
return new Promise((resolve, reject) => {
|
|
16987
|
-
const id = nanoid();
|
|
16988
|
-
let timeoutId;
|
|
16989
|
-
if (timeout >= 0) {
|
|
16990
|
-
timeoutId = setTimeout$1(() => {
|
|
16991
|
-
try {
|
|
16992
|
-
const handleResult = options.onTimeoutError?.(method, args);
|
|
16993
|
-
if (handleResult !== true)
|
|
16994
|
-
throw new Error(`[birpc] timeout on calling "${method}"`);
|
|
16995
|
-
} catch (e) {
|
|
16996
|
-
reject(e);
|
|
16997
|
-
}
|
|
16998
|
-
rpcPromiseMap.delete(id);
|
|
16999
|
-
}, timeout);
|
|
17000
|
-
if (typeof timeoutId === "object")
|
|
17001
|
-
timeoutId = timeoutId.unref?.();
|
|
17002
|
-
}
|
|
17003
|
-
rpcPromiseMap.set(id, { resolve, reject, timeoutId, method });
|
|
17004
|
-
post(serialize({ m: method, a: args, i: id, t: "q" }));
|
|
17005
|
-
});
|
|
17006
|
-
};
|
|
17007
|
-
sendCall.asEvent = sendEvent;
|
|
17008
|
-
return sendCall;
|
|
17009
|
-
}
|
|
17010
|
-
});
|
|
17011
|
-
function close(error) {
|
|
17012
|
-
closed = true;
|
|
17013
|
-
rpcPromiseMap.forEach(({ reject, method }) => {
|
|
17014
|
-
reject(error || new Error(`[birpc] rpc is closed, cannot call "${method}"`));
|
|
17015
|
-
});
|
|
17016
|
-
rpcPromiseMap.clear();
|
|
17017
|
-
off(onMessage);
|
|
17018
|
-
}
|
|
17019
|
-
async function onMessage(data, ...extra) {
|
|
17020
|
-
let msg;
|
|
17021
|
-
try {
|
|
17022
|
-
msg = deserialize(data);
|
|
17023
|
-
} catch (e) {
|
|
17024
|
-
if (options.onGeneralError?.(e) !== true)
|
|
17025
|
-
throw e;
|
|
17026
|
-
return;
|
|
17027
|
-
}
|
|
17028
|
-
if (msg.t === TYPE_REQUEST) {
|
|
17029
|
-
const { m: method, a: args } = msg;
|
|
17030
|
-
let result, error;
|
|
17031
|
-
const fn = resolver ? resolver(method, functions[method]) : functions[method];
|
|
17032
|
-
if (!fn) {
|
|
17033
|
-
error = new Error(`[birpc] function "${method}" not found`);
|
|
17034
|
-
} else {
|
|
17035
|
-
try {
|
|
17036
|
-
result = await fn.apply(bind === "rpc" ? rpc : functions, args);
|
|
17037
|
-
} catch (e) {
|
|
17038
|
-
error = e;
|
|
17039
|
-
}
|
|
17040
|
-
}
|
|
17041
|
-
if (msg.i) {
|
|
17042
|
-
if (error && options.onError)
|
|
17043
|
-
options.onError(error, method, args);
|
|
17044
|
-
if (error && options.onFunctionError) {
|
|
17045
|
-
if (options.onFunctionError(error, method, args) === true)
|
|
17046
|
-
return;
|
|
17047
|
-
}
|
|
17048
|
-
if (!error) {
|
|
17049
|
-
try {
|
|
17050
|
-
post(serialize({ t: TYPE_RESPONSE, i: msg.i, r: result }), ...extra);
|
|
17051
|
-
return;
|
|
17052
|
-
} catch (e) {
|
|
17053
|
-
error = e;
|
|
17054
|
-
if (options.onGeneralError?.(e, method, args) !== true)
|
|
17055
|
-
throw e;
|
|
17056
|
-
}
|
|
17057
|
-
}
|
|
17058
|
-
try {
|
|
17059
|
-
post(serialize({ t: TYPE_RESPONSE, i: msg.i, e: error }), ...extra);
|
|
17060
|
-
} catch (e) {
|
|
17061
|
-
if (options.onGeneralError?.(e, method, args) !== true)
|
|
17062
|
-
throw e;
|
|
17063
|
-
}
|
|
17064
|
-
}
|
|
17065
|
-
} else {
|
|
17066
|
-
const { i: ack, r: result, e: error } = msg;
|
|
17067
|
-
const promise = rpcPromiseMap.get(ack);
|
|
17068
|
-
if (promise) {
|
|
17069
|
-
clearTimeout$1(promise.timeoutId);
|
|
17070
|
-
if (error)
|
|
17071
|
-
promise.reject(error);
|
|
17072
|
-
else
|
|
17073
|
-
promise.resolve(result);
|
|
17074
|
-
}
|
|
17075
|
-
rpcPromiseMap.delete(ack);
|
|
17076
|
-
}
|
|
17077
|
-
}
|
|
17078
|
-
_promise = on(onMessage);
|
|
17079
|
-
return rpc;
|
|
17080
|
-
}
|
|
17081
|
-
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
17082
|
-
function nanoid(size = 21) {
|
|
17083
|
-
let id = "";
|
|
17084
|
-
let i = size;
|
|
17085
|
-
while (i--)
|
|
17086
|
-
id += urlAlphabet[random() * 64 | 0];
|
|
17087
|
-
return id;
|
|
17088
|
-
}
|
|
17089
|
-
|
|
17090
|
-
/* Injected with object hook! */
|
|
17091
|
-
|
|
17092
17010
|
function createRPCClient(name, hot, functions = {}, options = {}) {
|
|
17093
17011
|
const event = `${name}:rpc`;
|
|
17094
17012
|
const promise = Promise.resolve(hot).then((r) => {
|
|
@@ -17127,7 +17045,7 @@ async function getViteClient(base = "/", warning = true) {
|
|
|
17127
17045
|
if (warning)
|
|
17128
17046
|
console.error(`[vite-hot-client] Failed to import "${base}@vite/client"`);
|
|
17129
17047
|
}
|
|
17130
|
-
return
|
|
17048
|
+
return void 0;
|
|
17131
17049
|
}
|
|
17132
17050
|
async function createHotContext(path = "/____", base = "/") {
|
|
17133
17051
|
const viteClient = await getViteClient(base);
|
|
@@ -17327,4 +17245,4 @@ app.mount("#app");
|
|
|
17327
17245
|
|
|
17328
17246
|
/* Injected with object hook! */
|
|
17329
17247
|
|
|
17330
|
-
export {
|
|
17248
|
+
export { toHandlers as $, contains as A, BaseStyle as B, getScrollableParents as C, isClient$1 as D, EventBus as E, Fragment as F, setAttribute as G, localeComparator as H, getFocusableElements as I, find as J, findSingle as K, getIndex as L, getAttribute as M, relativePosition as N, getOuterWidth as O, absolutePosition as P, isTouchDevice as Q, addStyle as R, normalizeStyle as S, Teleport as T, resolveDynamicComponent as U, Transition as V, vShow as W, withKeys as X, clearSelection as Y, getSelection as Z, _export_sfc as _, createBaseVNode as a, useI18n as a0, dayjs as a1, clientPageData as a2, toRaw as a3, pageData as a4, activePath as a5, onMounted as a6, rpc as a7, getDefaultExportFromCjs as a8, computed as a9, isElement as aA, useSlots as aB, onBeforeUnmount as aC, provide as aD, inject as aE, getCurrentInstance as aF, h as aG, nextTick as aH, devtoolsRouter as aa, useScroll as ab, postList as ac, isStaticMode as ad, vModelCheckbox as ae, vModelText as af, getKeyValue as ag, isFunction$2 as ah, toCapitalCase as ai, service_default as aj, config_default as ak, isString$2 as al, toFlatCase as am, resolve$1 as an, isObject$3 as ao, isEmpty as ap, PrimeVueService as aq, isArray$3 as ar, removeClass as as, getHeight as at, getWidth as au, getOuterHeight as av, getOffset as aw, addClass as ax, createElement as ay, useId as az, renderSlot as b, createElementBlock as c, createCommentVNode as d, equals as e, resolveFieldData as f, getAppWindow as g, resolveComponent as h, isNotEmpty as i, renderList as j, createBlock as k, createSlots as l, mergeProps as m, normalizeClass as n, openBlock as o, withCtx as p, defineComponent as q, resolveDirective as r, ref as s, toDisplayString$1 as t, useModel as u, watch as v, withDirectives as w, createVNode as x, unref as y, createTextVNode as z };
|