@delta-comic/plugin 1.3.2 → 1.3.5
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/core-BF7YwnuZ.js +2 -0
- package/dist/{core-wAb1OuYe.js → core-Czlf2w3A.js} +34 -34
- package/dist/{core-wAb1OuYe.js.map → core-Czlf2w3A.js.map} +1 -1
- package/dist/index.js +249 -249
- package/dist/index.js.map +1 -1
- package/dist/lib/config.d.ts +3 -3
- package/dist/lib/plugin/search.d.ts +4 -1
- package/dist/lib/plugin/subscribe.d.ts +3 -1
- package/dist/pack.tgz +0 -0
- package/package.json +8 -8
- package/dist/core-NoooY1bz.js +0 -2
|
@@ -18,28 +18,28 @@ var b = Object.defineProperty, x = (e, t) => () => (t || e((t = { exports: {} })
|
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/predicate/isLength.mjs
|
|
21
|
-
function
|
|
21
|
+
function C(e) {
|
|
22
22
|
return Number.isSafeInteger(e) && e >= 0;
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/predicate/isString.mjs
|
|
26
|
-
function
|
|
26
|
+
function w(e) {
|
|
27
27
|
return typeof e == "string";
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/predicate/isUndefined.mjs
|
|
31
|
-
function
|
|
31
|
+
function T(e) {
|
|
32
32
|
return e === void 0;
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
|
|
36
|
-
function
|
|
37
|
-
return e != null && typeof e != "function" &&
|
|
36
|
+
function E(e) {
|
|
37
|
+
return e != null && typeof e != "function" && C(e.length);
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/object/fromPairs.mjs
|
|
41
|
-
function
|
|
42
|
-
if (!
|
|
41
|
+
function te(e) {
|
|
42
|
+
if (!E(e)) return {};
|
|
43
43
|
let t = {};
|
|
44
44
|
for (let n = 0; n < e.length; n++) {
|
|
45
45
|
let [r, i] = e[n];
|
|
@@ -49,12 +49,12 @@ function ne(e) {
|
|
|
49
49
|
}
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/predicate/isFunction.mjs
|
|
52
|
-
function
|
|
52
|
+
function D(e) {
|
|
53
53
|
return typeof e == "function";
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region ../../node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/dist/mitt.mjs
|
|
57
|
-
function
|
|
57
|
+
function O(e) {
|
|
58
58
|
return {
|
|
59
59
|
all: e ||= /* @__PURE__ */ new Map(),
|
|
60
60
|
on: function(t, n) {
|
|
@@ -77,24 +77,24 @@ function D(e) {
|
|
|
77
77
|
}
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region lib/plugin/index.ts
|
|
80
|
-
var
|
|
81
|
-
if (
|
|
80
|
+
var k = O(), A = async (e) => {
|
|
81
|
+
if (D(e)) var t = e(window.$$safe$$);
|
|
82
82
|
else var t = e;
|
|
83
|
-
return console.log("[definePlugin] new plugin defining...", t),
|
|
84
|
-
},
|
|
83
|
+
return console.log("[definePlugin] new plugin defining...", t), k.emit("definedPlugin", t), t;
|
|
84
|
+
}, j = (e) => ({
|
|
85
85
|
name: {
|
|
86
86
|
display: e["name:display"],
|
|
87
87
|
id: e["name:id"]
|
|
88
88
|
},
|
|
89
89
|
author: e.author ?? "",
|
|
90
90
|
description: e.description,
|
|
91
|
-
require: (e.require ?
|
|
91
|
+
require: (e.require ? w(e.require) ? [e.require] : e.require : []).map((e) => {
|
|
92
92
|
let [t, ...n] = e.split(":");
|
|
93
93
|
if (t.startsWith("dc|")) return {
|
|
94
94
|
id: t.replace(/^dc\|/, ""),
|
|
95
95
|
download: n.join(":")
|
|
96
96
|
};
|
|
97
|
-
}).filter((e) => !
|
|
97
|
+
}).filter((e) => !T(e)),
|
|
98
98
|
version: {
|
|
99
99
|
plugin: e.version.split("/")[0],
|
|
100
100
|
supportCore: (() => {
|
|
@@ -102,10 +102,10 @@ var O = D(), k = async (e) => {
|
|
|
102
102
|
return e.version.split("/")[2] ? t.replaceAll(">=", "^") : t;
|
|
103
103
|
})()
|
|
104
104
|
}
|
|
105
|
-
}),
|
|
105
|
+
}), M = /* @__PURE__ */ new WeakMap(), ne = (...e) => {
|
|
106
106
|
let t = e[0], n = a()?.proxy ?? o();
|
|
107
107
|
if (n == null && !s()) throw Error("injectLocal must be called in setup");
|
|
108
|
-
return n &&
|
|
108
|
+
return n && M.has(n) && t in M.get(n) ? M.get(n)[t] : c(...e);
|
|
109
109
|
}, N = typeof window < "u" && typeof document < "u";
|
|
110
110
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
111
111
|
var re = Object.prototype.toString, ie = (e) => re.call(e) === "[object Object]";
|
|
@@ -122,7 +122,7 @@ function I(e, t, n) {
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
//#endregion
|
|
125
|
-
//#region ../../node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.
|
|
125
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
|
|
126
126
|
var L = N ? window : void 0;
|
|
127
127
|
N && window.document, N && window.navigator, N && window.location;
|
|
128
128
|
function R(e) {
|
|
@@ -161,7 +161,7 @@ function V(e) {
|
|
|
161
161
|
var H = Symbol("vueuse-ssr-width");
|
|
162
162
|
/* @__NO_SIDE_EFFECTS__ */
|
|
163
163
|
function U() {
|
|
164
|
-
let e = s() ?
|
|
164
|
+
let e = s() ? ne(H, null) : null;
|
|
165
165
|
return typeof e == "number" ? e : void 0;
|
|
166
166
|
}
|
|
167
167
|
function W(e, t = {}) {
|
|
@@ -251,7 +251,7 @@ var K = class {
|
|
|
251
251
|
$load: i,
|
|
252
252
|
$isExistConfig: s,
|
|
253
253
|
$resignerConfig: e.action((e) => {
|
|
254
|
-
let n = J(), r = t(e.pluginName, "config",
|
|
254
|
+
let n = J(), r = t(e.pluginName, "config", te(Object.entries(e.config).map(([e, t]) => [e, t.defaultValue])));
|
|
255
255
|
n.form.set(e.key, {
|
|
256
256
|
form: e.config,
|
|
257
257
|
value: r
|
|
@@ -266,7 +266,7 @@ var K = class {
|
|
|
266
266
|
allSearchSource: o,
|
|
267
267
|
pluginSteps: i
|
|
268
268
|
};
|
|
269
|
-
}), "core/plugin/store"),
|
|
269
|
+
}), "core/plugin/store"), Q = (/* @__PURE__ */ x(((e, t) => {
|
|
270
270
|
var n = (function() {
|
|
271
271
|
var e = String.fromCharCode, t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", r = {};
|
|
272
272
|
function i(e, t) {
|
|
@@ -384,28 +384,28 @@ var K = class {
|
|
|
384
384
|
index: 1
|
|
385
385
|
};
|
|
386
386
|
for (u = 0; u < 3; u += 1) i[u] = u;
|
|
387
|
-
for (f = 0, m = 2 ** 2, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= (p > 0
|
|
387
|
+
for (f = 0, m = 2 ** 2, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= +(p > 0) * h, h <<= 1;
|
|
388
388
|
switch (f) {
|
|
389
389
|
case 0:
|
|
390
|
-
for (f = 0, m = 2 ** 8, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= (p > 0
|
|
390
|
+
for (f = 0, m = 2 ** 8, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= +(p > 0) * h, h <<= 1;
|
|
391
391
|
g = e(f);
|
|
392
392
|
break;
|
|
393
393
|
case 1:
|
|
394
|
-
for (f = 0, m = 2 ** 16, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= (p > 0
|
|
394
|
+
for (f = 0, m = 2 ** 16, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= +(p > 0) * h, h <<= 1;
|
|
395
395
|
g = e(f);
|
|
396
396
|
break;
|
|
397
397
|
case 2: return "";
|
|
398
398
|
}
|
|
399
399
|
for (i[3] = g, d = g, l.push(g);;) {
|
|
400
400
|
if (_.index > t) return "";
|
|
401
|
-
for (f = 0, m = 2 ** s, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= (p > 0
|
|
401
|
+
for (f = 0, m = 2 ** s, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= +(p > 0) * h, h <<= 1;
|
|
402
402
|
switch (g = f) {
|
|
403
403
|
case 0:
|
|
404
|
-
for (f = 0, m = 2 ** 8, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= (p > 0
|
|
404
|
+
for (f = 0, m = 2 ** 8, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= +(p > 0) * h, h <<= 1;
|
|
405
405
|
i[o++] = e(f), g = o - 1, a--;
|
|
406
406
|
break;
|
|
407
407
|
case 1:
|
|
408
|
-
for (f = 0, m = 2 ** 16, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= (p > 0
|
|
408
|
+
for (f = 0, m = 2 ** 16, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= +(p > 0) * h, h <<= 1;
|
|
409
409
|
i[o++] = e(f), g = o - 1, a--;
|
|
410
410
|
break;
|
|
411
411
|
case 2: return l.join("");
|
|
@@ -424,7 +424,7 @@ var K = class {
|
|
|
424
424
|
}) : t !== void 0 && t != null ? t.exports = n : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
|
|
425
425
|
return n;
|
|
426
426
|
});
|
|
427
|
-
})),
|
|
427
|
+
})))(), oe = () => i("svg", {
|
|
428
428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
429
429
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
430
430
|
viewBox: "0 0 24 24"
|
|
@@ -441,20 +441,20 @@ var K = class {
|
|
|
441
441
|
d: "M12.5 10.25h2v.54c0 .45.54.67.85.35l1.29-1.29c.2-.2.2-.51 0-.71l-1.29-1.29a.5.5 0 0 0-.85.35v.54H12c-.55 0-1 .45-1 1v1.5c0 .41.34.75.75.75s.75-.34.75-.75v-.99z",
|
|
442
442
|
fill: "currentColor"
|
|
443
443
|
}, null)
|
|
444
|
-
]),
|
|
444
|
+
]), se = () => i("svg", {
|
|
445
445
|
xmlns: "http://www.w3.org/2000/svg",
|
|
446
446
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
447
447
|
viewBox: "0 0 1024 1024"
|
|
448
448
|
}, [i("path", {
|
|
449
449
|
d: "M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3L589 164.6L836 188l23.4 247l-399.7 399.7zM680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88s88-39.5 88-88s-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z",
|
|
450
450
|
fill: "currentColor"
|
|
451
|
-
}, null)]),
|
|
451
|
+
}, null)]), ce = () => A({
|
|
452
452
|
name: $,
|
|
453
453
|
config: [q],
|
|
454
454
|
share: {
|
|
455
455
|
initiative: [{
|
|
456
456
|
filter: (e) => !!e.preload,
|
|
457
|
-
icon:
|
|
457
|
+
icon: se,
|
|
458
458
|
key: "token",
|
|
459
459
|
name: "复制口令",
|
|
460
460
|
async call(e) {
|
|
@@ -473,7 +473,7 @@ var K = class {
|
|
|
473
473
|
}
|
|
474
474
|
}, {
|
|
475
475
|
filter: (e) => !!e.preload,
|
|
476
|
-
icon:
|
|
476
|
+
icon: oe,
|
|
477
477
|
key: "native",
|
|
478
478
|
name: "原生分享",
|
|
479
479
|
async call(e) {
|
|
@@ -516,6 +516,6 @@ var K = class {
|
|
|
516
516
|
}), $ = "core";
|
|
517
517
|
n(Y($), "core/plugin/coreFlag");
|
|
518
518
|
//#endregion
|
|
519
|
-
export { ee as _, X as a, q as c,
|
|
519
|
+
export { ee as _, X as a, q as c, A as d, k as f, S as g, x as h, Y as i, J as l, w as m, $ as n, ae as o, E as p, Z as r, K as s, ce as t, j as u };
|
|
520
520
|
|
|
521
|
-
//# sourceMappingURL=core-
|
|
521
|
+
//# sourceMappingURL=core-Czlf2w3A.js.map
|