@deot/docs-client 1.1.3 → 1.1.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.
Files changed (55) hide show
  1. package/README.md +88 -4
  2. package/dist/chunks/browser-Cmwcvs-d.js +505 -0
  3. package/dist/chunks/cdn-DQoETju_-DS-873Vi.js +38 -0
  4. package/dist/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +14 -0
  5. package/dist/chunks/compile-BHD98Ttf-BJaenUUQ.js +79915 -0
  6. package/dist/chunks/compiler-sfc.esm-browser-B4_kBkG5.js +24975 -0
  7. package/dist/chunks/dayjs.min-B3g34Qcz.js +300 -0
  8. package/dist/chunks/dist-0ySyXNpo.js +415 -0
  9. package/dist/chunks/dist-9UPCn_ag.js +24601 -0
  10. package/dist/chunks/dist-B44jICwZ.js +22 -0
  11. package/dist/chunks/dist-BQyOK8Qy.js +17 -0
  12. package/dist/chunks/dist-BUw25nXJ.js +65 -0
  13. package/dist/chunks/dist-BeOE8qTX.js +345 -0
  14. package/dist/chunks/dist-C3V7reR4.js +197 -0
  15. package/dist/chunks/dist-C8z9l0mA.js +58 -0
  16. package/dist/chunks/dist-CI9Lp9Cj.js +247 -0
  17. package/dist/chunks/dist-COjpr4FU.js +426 -0
  18. package/dist/chunks/dist-CQir6D4y.js +244 -0
  19. package/dist/chunks/dist-Cxf7_ocf.js +44 -0
  20. package/dist/chunks/dist-DF4kisl2.js +43 -0
  21. package/dist/chunks/dist-DLj8yJdm.js +38 -0
  22. package/dist/chunks/dist-DWn6r6un.js +76 -0
  23. package/dist/chunks/dist-DWqBe2Ah.js +132 -0
  24. package/dist/chunks/dist-D_Uqh6m9.js +80 -0
  25. package/dist/chunks/dist-DcIU51zW.js +166 -0
  26. package/dist/chunks/dist-kiZUqqzR.js +27 -0
  27. package/dist/chunks/dist-oZ12SGqg.js +6 -0
  28. package/dist/chunks/dist-uXnwGrO3.js +76 -0
  29. package/dist/chunks/dist-va7FmnW4.js +156 -0
  30. package/dist/chunks/{echarts-I1Rk_oCV.js → echarts-Dk-pu7GM.js} +450 -398
  31. package/dist/chunks/files-BqucFldk-B-hTQ-ip.js +148 -0
  32. package/dist/chunks/html2canvas-Deo0mM5K.js +4022 -0
  33. package/dist/chunks/index.es-UlJ0gfdF.js +5757 -0
  34. package/dist/chunks/jspdf.es.min-CJc40v7q.js +17873 -0
  35. package/dist/chunks/jsx-CwMPlI4_-CAiik-V7.js +128454 -0
  36. package/dist/chunks/jszip.min-BbVwZKYP.js +3044 -0
  37. package/dist/chunks/linker-xqjVl0X0-CWWI367H.js +118 -0
  38. package/dist/chunks/local-sandbox-DvcgaBOa-CzJxrdVx.js +298 -0
  39. package/dist/chunks/lodash-Cxf6dD_I.js +5161 -0
  40. package/dist/chunks/modules-BGzPcoRR-C9BWX8hC.js +154 -0
  41. package/dist/chunks/{photoswipe.esm-CT37djgx.js → photoswipe.esm-B0V-xGTB.js} +36 -31
  42. package/dist/chunks/pinia-pDJilYOg.js +326 -0
  43. package/dist/chunks/purify.es-BiqY1C6m.js +867 -0
  44. package/dist/chunks/remote-mq4zvrI1-Bib9tTkb.js +104 -0
  45. package/dist/chunks/script-DjUf9uWK-Cu5Kla_E.js +15055 -0
  46. package/dist/chunks/store-BOyC8F2y-CbodPye0.js +17037 -0
  47. package/dist/chunks/vue-router-C0mj8Ot5.js +1196 -0
  48. package/dist/chunks/vue.runtime.esm-bundler-XxHGOLq2.js +4879 -0
  49. package/dist/index.cjs +997 -340
  50. package/dist/index.d.ts +2 -1
  51. package/dist/index.js +42205 -103464
  52. package/dist/index.style.css +3 -4
  53. package/package.json +9 -9
  54. package/dist/chunks/_commonjsHelpers-BFTU3MAI-D_7z5o6A.js +0 -8
  55. package/dist/chunks/jsx-H2PmTOgp-C0GVSSMR.js +0 -128281
@@ -0,0 +1,244 @@
1
+ globalThis.process;
2
+ import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
+ import { a as t } from "./dist-C3V7reR4.js";
4
+ //#region node_modules/.pnpm/@deot+helper-cache@1.1.11/node_modules/@deot/helper-cache/dist/index.js
5
+ var n = /* @__PURE__ */ e({
6
+ Cookie: () => a,
7
+ IndexedDB: () => p,
8
+ IndexedDBStore: () => f,
9
+ Storage: () => u
10
+ }), r = class {
11
+ options;
12
+ constructor() {
13
+ this.options = {
14
+ version: "",
15
+ versions: [],
16
+ get: (e) => t(e),
17
+ set: (e) => e
18
+ };
19
+ }
20
+ configure(e) {
21
+ typeof window < "u" && (this.options = {
22
+ ...this.options,
23
+ ...e
24
+ });
25
+ }
26
+ }, i = (() => {
27
+ try {
28
+ return document.cookie = "test", !0;
29
+ } catch {
30
+ return !1;
31
+ }
32
+ })(), a = new class extends r {
33
+ get(e) {
34
+ if (!i) return null;
35
+ let t = RegExp("(?:^|;+|\\s+)" + e + "=([^;]*)"), n = window.document.cookie.match(t), r = n ? decodeURIComponent(n[1]) : null;
36
+ return this.options.get(r);
37
+ }
38
+ set(e, t, n) {
39
+ if (!i) return;
40
+ let { days: r, path: a, domain: o } = n || {}, s = /* @__PURE__ */ new Date();
41
+ s.setTime(s.getTime() + (r ? 864e5 * r : 432e5)), t = this.options.set(typeof t == "string" ? t : JSON.stringify(t)), document.cookie = `${e}=${encodeURIComponent(t)};expires=${s.toString()};path=${a || "/"};${o ? `domain=${o};` : ""}`;
42
+ }
43
+ remove(e, t) {
44
+ if (!i) return;
45
+ let { path: n, domain: r } = t || {};
46
+ document.cookie = `${e}=;expires=${(/* @__PURE__ */ new Date(0)).toUTCString()};path=${n || "/"};${r ? `domain=${r};` : ""}`;
47
+ }
48
+ }(), o = class {
49
+ store = {};
50
+ getItem(e) {
51
+ return this.store[e] || null;
52
+ }
53
+ setItem(e, t) {
54
+ this.store[e] = t;
55
+ }
56
+ removeItem(e) {
57
+ delete this.store[e];
58
+ }
59
+ }, s = "@deot/helper/", c = (e, t) => {
60
+ let n = t.filter((e) => e !== void 0)[0];
61
+ return `${n ? `${s}${n}:` : ""}${e}`;
62
+ }, l = (() => {
63
+ let e = "test";
64
+ try {
65
+ return window.localStorage.setItem(e, e), window.localStorage.removeItem(e), !0;
66
+ } catch {
67
+ return !1;
68
+ }
69
+ })(), u = new class extends r {
70
+ sessionStorage = new o();
71
+ localStorage = new o();
72
+ getInvoke(e) {
73
+ return e?.session ? "sessionStorage" : "localStorage";
74
+ }
75
+ configure(e) {
76
+ if (super.configure(e), !l) return;
77
+ let { version: t, versions: n } = this.options, r = [t, ...n];
78
+ Object.keys(window.localStorage).forEach((e) => {
79
+ /* istanbul ignore else -- @preserve */
80
+ e.includes(s) && !r.some((t) => e.includes(`${s}${t}`)) && window.localStorage.removeItem(e);
81
+ });
82
+ }
83
+ set(e, t, n) {
84
+ if (!l) return;
85
+ let r = this.getInvoke(n);
86
+ e = c(e, [n?.version, this.options.version]), t = this.options.set(typeof t == "string" ? t : JSON.stringify(t));
87
+ try {
88
+ window[r].setItem(e, t);
89
+ } catch {
90
+ this[r].setItem(e, t);
91
+ }
92
+ }
93
+ get(e, t) {
94
+ if (!l) return null;
95
+ let n = this.getInvoke(t);
96
+ e = c(e, [t?.version, this.options.version]);
97
+ let r = this[n].getItem(e) || window[n].getItem(e);
98
+ return this.options.get(r);
99
+ }
100
+ remove(e, t) {
101
+ if (!l) return;
102
+ let n = this.getInvoke(t);
103
+ e = c(e, [t?.version, this.options.version]), this[n].removeItem(e), window[n].removeItem(e);
104
+ }
105
+ }(), d = (() => {
106
+ try {
107
+ return window.indexedDB.open, !0;
108
+ } catch {
109
+ return !1;
110
+ }
111
+ })(), f = class extends r {
112
+ timestramp = (/* @__PURE__ */ new Date()).getTime();
113
+ count = 0;
114
+ db = null;
115
+ pending = [];
116
+ constructor(e) {
117
+ super(), this.options = {
118
+ ...this.options,
119
+ keyPath: "__id",
120
+ name: "default-db",
121
+ storeName: "default-store",
122
+ version: 1
123
+ }, e && this.configure(e);
124
+ }
125
+ getUid() {
126
+ return `${this.timestramp}${this.count++}`;
127
+ }
128
+ configure(e) {
129
+ super.configure(e), typeof this.options.version == "string" && (this.options.version = parseInt(this.options.version, 10));
130
+ }
131
+ concurrent(e) {
132
+ let t = new Promise((t, n) => {
133
+ e().then(t).catch(n);
134
+ });
135
+ return this.pending.push(t), t.finally(() => this.close(t)), t;
136
+ }
137
+ async task(e) {
138
+ return new Promise((t, n) => {
139
+ e.onsuccess = t, e.onerror = n;
140
+ });
141
+ }
142
+ async close(e) {
143
+ if (e) this.pending = this.pending.filter((t) => t !== e);
144
+ else {
145
+ let e = async (t) => {
146
+ t.length && (await Promise.allSettled(t), await e(this.pending));
147
+ };
148
+ await e(this.pending);
149
+ }
150
+ if (!this.pending.length && this.db) {
151
+ let e = this.db;
152
+ this.db = null, (await e).close();
153
+ }
154
+ }
155
+ openDatabase() {
156
+ return this.db = this.db || (async () => {
157
+ let { name: e, version: t, keyPath: n, storeName: r } = this.options, i = () => new Promise((i, a) => {
158
+ let o = window.indexedDB.open(e, t);
159
+ o.onsuccess = () => {
160
+ i(o.result);
161
+ }, o.onerror = () => {
162
+ a(/* @__PURE__ */ Error("IndexedDB Open Failed. DeleteDatabase first!"));
163
+ }, o.onupgradeneeded = () => {
164
+ let e = o.result;
165
+ e.objectStoreNames.contains(r) && e.deleteObjectStore(r), e.createObjectStore(r, { keyPath: n });
166
+ };
167
+ }), a;
168
+ for (let e = 0; e < 3; e++) {
169
+ try {
170
+ a = await i();
171
+ } catch {}
172
+ /* istanbul ignore next -- @preserve */
173
+ if (a || e === 2) break;
174
+ }
175
+ return a ||= (await this.deleteDatabase(), await i()), a;
176
+ })(), this.db;
177
+ }
178
+ async openObjectStore(e) {
179
+ let { storeName: t } = this.options;
180
+ return (await this.openDatabase()).transaction([t], e || "readwrite").objectStore(t);
181
+ }
182
+ async deleteDatabase() {
183
+ let { name: e } = this.options, t = window.indexedDB.deleteDatabase(e);
184
+ await new Promise((e, n) => {
185
+ t.onsuccess = e, t.onerror = n;
186
+ });
187
+ }
188
+ write(e) {
189
+ return this.concurrent(async () => {
190
+ let { keyPath: t } = this.options, n = await this.openObjectStore(), r = {
191
+ [t]: this.getUid(),
192
+ ...e
193
+ }, i = n.add(r);
194
+ return await new Promise((e, t) => {
195
+ i.onsuccess = e, i.onerror = t;
196
+ }), r;
197
+ });
198
+ }
199
+ read(e) {
200
+ return this.concurrent(async () => {
201
+ let t = (await this.openObjectStore()).get(e);
202
+ return await this.task(t), t.result;
203
+ });
204
+ }
205
+ update(e, t) {
206
+ return this.concurrent(async () => {
207
+ let { keyPath: n } = this.options, r = await this.openObjectStore(), i = {
208
+ [n]: e,
209
+ ...t
210
+ }, a = r.put(i);
211
+ return await this.task(a), i;
212
+ });
213
+ }
214
+ async delete(e) {
215
+ return this.concurrent(async () => {
216
+ let t = (await this.openObjectStore()).delete(e);
217
+ await this.task(t);
218
+ });
219
+ }
220
+ search() {
221
+ return this.concurrent(async () => {
222
+ let e = (await this.openObjectStore()).openCursor(), t = [];
223
+ return await new Promise((n, r) => {
224
+ e.onsuccess = () => {
225
+ let r = e.result;
226
+ r ? (t.push(r.value), r.continue()) : n(t);
227
+ }, e.onerror = r;
228
+ }), t;
229
+ });
230
+ }
231
+ async get(e) {
232
+ if (!d) return null;
233
+ let t = await this.read(e);
234
+ return this.options.get(t ? t.data : null);
235
+ }
236
+ async set(e, t) {
237
+ d && await this.update(e, { data: this.options.set(typeof t == "string" ? t : JSON.stringify(t)) });
238
+ }
239
+ async remove(e) {
240
+ d && await this.delete(e);
241
+ }
242
+ }, p = new f();
243
+ //#endregion
244
+ export { n as a, u as i, p as n, f as r, a as t };
@@ -0,0 +1,44 @@
1
+ globalThis.process;
2
+ import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
+ //#region node_modules/.pnpm/@deot+helper-emitter@1.1.3/node_modules/@deot/helper-emitter/dist/index.js
4
+ var t = /* @__PURE__ */ e({ Emitter: () => n }), n = class e {
5
+ static of(t) {
6
+ return new e(t);
7
+ }
8
+ events = {};
9
+ listeners = [];
10
+ context;
11
+ constructor(e) {
12
+ this.context = e || null;
13
+ }
14
+ on(e, t) {
15
+ /* istanbul ignore else -- @preserve */
16
+ if (typeof e == "object") for (let t in e)
17
+ /* istanbul ignore else -- @preserve */
18
+ e[t] && typeof e[t] == "function" && this.on(t, e[t]);
19
+ else typeof e == "string" && typeof t == "function" ? (this.events[e] || (this.events[e] = []), this.events[e].push(t)) : typeof e == "function" && this.listeners.push(e);
20
+ return this;
21
+ }
22
+ off(e, t) {
23
+ return typeof e == "string" && !t ? delete this.events[e] : typeof e == "string" && this.events[e] && t ? (this.events[e] = this.events[e].filter((e) => e !== t), this.events[e].length === 0 && delete this.events[e]) : e === void 0 && (this.listeners = []), this;
24
+ }
25
+ once(e, t) {
26
+ let n = this.context;
27
+ /* istanbul ignore else -- @preserve */
28
+ if (typeof e == "string" && typeof t == "function") {
29
+ let r = (...i) => {
30
+ this.off(e, r), t.apply(n, i);
31
+ };
32
+ this.on(e, r);
33
+ }
34
+ return this;
35
+ }
36
+ emit(e, ...t) {
37
+ let n = this.context;
38
+ if (this.events[e]?.length) for (let r = 0; this.events[e] && r < this.events[e].length && this.events[e][r].apply(n, t) !== !1; r++);
39
+ for (let r = 0; r < this.listeners.length && this.listeners[r].apply(n, [e].concat(t)) !== !1; r++);
40
+ return this;
41
+ }
42
+ };
43
+ //#endregion
44
+ export { t as n, n as t };
@@ -0,0 +1,43 @@
1
+ globalThis.process;
2
+ import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
+ import { a as t, i as n } from "./dist-C3V7reR4.js";
4
+ //#region node_modules/.pnpm/@deot+helper-route@1.1.10/node_modules/@deot/helper-route/dist/index.js
5
+ var r = /* @__PURE__ */ e({
6
+ get: () => i,
7
+ merge: () => a,
8
+ parse: () => o
9
+ }), i = (e, r, i) => {
10
+ let a = {
11
+ parse: t,
12
+ ...typeof r == "object" ? r : { url: r },
13
+ ...i
14
+ }, o = a.url || (typeof window > "u" ? "" : window.location.search), s = o.substring(o.indexOf("?") + 1).match(RegExp("(^|&)" + e + "=([^&]*)")), c = s == null ? null : s[2];
15
+ return c === null ? null : (c = n(c), typeof a.parse == "function" ? a.parse(c) : c);
16
+ }, a = (e) => {
17
+ let { origin: t = "", path: r = "", query: i } = e, a = t;
18
+ a += r instanceof Array ? r.length ? `/${r.join("/")}` : "" : r;
19
+ let o = [];
20
+ for (let e in i) if (i[e] || i[e] === !1 || i[e] === 0) {
21
+ let t = n(i[e]);
22
+ o = [...o, `${e}=${encodeURIComponent(t)}`];
23
+ }
24
+ return o.length > 0 && (a += (a.indexOf("?") > -1 ? "&" : "?") + o.join("&")), a;
25
+ }, o = (e, r) => {
26
+ let i = {
27
+ parse: t,
28
+ ...typeof e == "object" ? e : { url: e },
29
+ ...r
30
+ }, [a, o] = (i.url || (typeof window > "u" ? "" : `${window.location.pathname}${window.location.search}`)).split("?"), s = {};
31
+ o && Array.from(o.match(/[^?=&]+=[^&]*/g) || []).forEach((e) => {
32
+ let [t, r] = e.split("="), a = n(r);
33
+ s[t] = typeof i.parse == "function" ? i.parse(a) : a;
34
+ });
35
+ let c = a.indexOf("://"), l = a.indexOf("/", c === -1 ? 0 : c + 3);
36
+ return {
37
+ origin: (l === -1 ? a : a.slice(0, l)) || "",
38
+ path: l === -1 ? "" : a.slice(l),
39
+ query: s
40
+ };
41
+ };
42
+ //#endregion
43
+ export { i as get, a as merge, o as parse, r as t };
@@ -0,0 +1,38 @@
1
+ globalThis.process;
2
+ import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
+ //#region node_modules/.pnpm/@deot+helper-is@1.1.3/node_modules/@deot/helper-is/dist/index.js
4
+ var t = /* @__PURE__ */ e({
5
+ array: () => u,
6
+ arrayBuffer: () => d,
7
+ arrayBufferView: () => f,
8
+ blob: () => g,
9
+ bool: () => l,
10
+ buffer: () => w,
11
+ date: () => h,
12
+ file: () => _,
13
+ files: () => v,
14
+ fn: () => s,
15
+ formData: () => S,
16
+ formEl: () => x,
17
+ instance: () => r,
18
+ nil: () => i,
19
+ number: () => c,
20
+ object: () => C,
21
+ params: () => y,
22
+ plainObject: () => E,
23
+ regexp: () => b,
24
+ stream: () => T,
25
+ string: () => o,
26
+ type: () => n,
27
+ typedArray: () => m,
28
+ undef: () => a
29
+ }), n = (e, t) => !!t && typeof e === t, r = (e, t) => typeof t == "function" ? e instanceof t : Object.prototype.toString.call(e) === `[object ${t}]`, i = (e) => e === null, a = (e) => n(e, "undefined"), o = (e) => n(e, "string"), s = (e) => n(e, "function"), c = (e) => n(e, "number"), l = (e) => e === !0 || e === !1, u = (e) => Array.isArray(e), d = (e) => r(e, "ArrayBuffer"), f = (e) => {
30
+ let t;
31
+ return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && d(e.buffer), t;
32
+ }, p = typeof Uint8Array < "u" && Object.getPrototypeOf(Uint8Array), m = (e) => !!(p && r(e, p)), h = (e) => r(e, "Date"), g = (e) => r(e, "Blob"), _ = (e) => r(e, "File"), v = (e) => r(e, "FileList"), y = (e) => r(e, "URLSearchParams"), b = (e) => r(e, "RegExp"), x = (e) => r(e, "HTMLFormElement"), S = (e) => r(e, "FormData"), C = (e) => !i(e) && n(e, "object"), w = (e) => !!e?.constructor?.isBuffer?.(e), T = (e) => C(e) && s(e.pipe), E = (e) => {
33
+ if (!r(e, "Object")) return !1;
34
+ let t = Object.getPrototypeOf(e);
35
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
36
+ };
37
+ //#endregion
38
+ export { w as a, v as c, C as d, y as f, o as h, g as i, S as l, T as m, d as n, t as o, E as p, f as r, _ as s, u as t, x as u };
@@ -0,0 +1,76 @@
1
+ globalThis.process;
2
+ import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
+ //#region node_modules/.pnpm/@deot+helper-resize@1.1.6/node_modules/@deot/helper-resize/dist/index.js
4
+ var t = /* @__PURE__ */ e({ Resize: () => r }), n = class e {
5
+ static listeners = /* @__PURE__ */ new WeakMap();
6
+ static observers = /* @__PURE__ */ new WeakMap();
7
+ static observerOf(t) {
8
+ let n = e.observers.get(t);
9
+ return n || (n = {
10
+ ro: new ResizeObserver((n) => {
11
+ let r = n.filter((n) => e.listeners.get(n.target)?.has(t));
12
+ r.length && t(r);
13
+ }),
14
+ els: /* @__PURE__ */ new Set()
15
+ }, e.observers.set(t, n)), n;
16
+ }
17
+ static on(t, n) {
18
+ if (typeof ResizeObserver > "u") return () => {};
19
+ let r = e.listeners.get(t);
20
+ if (r || (r = /* @__PURE__ */ new Set(), e.listeners.set(t, r)), !r.has(n)) {
21
+ r.add(n);
22
+ let i = e.observerOf(n);
23
+ i.els.add(t), i.ro.observe(t);
24
+ }
25
+ return () => e.off(t, n);
26
+ }
27
+ static off(t, n) {
28
+ let r = e.listeners.get(t);
29
+ r && ((n ? [n] : [...r]).forEach((n) => {
30
+ if (!r.delete(n)) return;
31
+ let i = e.observers.get(n);
32
+ i.els.delete(t), i.ro.unobserve(t);
33
+ }), r.size || e.listeners.delete(t));
34
+ }
35
+ static disconnect(t) {
36
+ e.observers.get(t)?.els.forEach((n) => e.off(n, t));
37
+ }
38
+ }, r = class e {
39
+ el;
40
+ static of(t) {
41
+ return new e(t);
42
+ }
43
+ static on(t, r, i) {
44
+ return i?.shared ? n.on(t, r) : new e(t).on(r);
45
+ }
46
+ static off(t, r, i) {
47
+ return i?.shared ? n.off(t, r) : new e(t).off(r);
48
+ }
49
+ static disconnect(e) {
50
+ return n.disconnect(e);
51
+ }
52
+ listeners = [];
53
+ ro = null;
54
+ constructor(t) {
55
+ this.el = t;
56
+ let n = t.__rz__;
57
+ n && n instanceof e && (this.listeners = n.listeners, this.ro = n.ro);
58
+ }
59
+ handleResize = (e) => {
60
+ /* istanbul ignore else -- @preserve */
61
+ e.some((e) => e.target === this.el) && this.listeners?.forEach((e) => e());
62
+ };
63
+ on(e) {
64
+ return typeof ResizeObserver > "u" ? () => {} : (this.listeners.length || (this.ro = this.ro || new ResizeObserver(this.handleResize), this.ro.observe(this.el), this.el.__rz__ = this), this.listeners.push(e), () => this.off(e));
65
+ }
66
+ off(e) {
67
+ if (e) {
68
+ let t = this.listeners.indexOf(e);
69
+ if (t === -1) return;
70
+ this.listeners.splice(t, 1);
71
+ } else this.listeners.length = 0;
72
+ !this.listeners.length && this.ro && this.ro.disconnect();
73
+ }
74
+ };
75
+ //#endregion
76
+ export { t as n, r as t };
@@ -0,0 +1,132 @@
1
+ globalThis.process;
2
+ import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
+ import { i as t, n, r, t as i } from "./dist-BeOE8qTX.js";
4
+ import { n as a, r as o } from "./dist-BUw25nXJ.js";
5
+ //#region node_modules/.pnpm/@deot+http-client@1.1.10/node_modules/@deot/http-client/dist/index.js
6
+ var s = /* @__PURE__ */ e({
7
+ Network: () => h,
8
+ createInstance: () => m
9
+ }), c = {
10
+ age: !0,
11
+ authorization: !0,
12
+ "content-length": !0,
13
+ "content-type": !0,
14
+ etag: !0,
15
+ expires: !0,
16
+ from: !0,
17
+ host: !0,
18
+ "if-modified-since": !0,
19
+ "if-unmodified-since": !0,
20
+ "last-modified": !0,
21
+ location: !0,
22
+ "max-forwards": !0,
23
+ "proxy-authorization": !0,
24
+ referer: !0,
25
+ "retry-after": !0,
26
+ "user-agent": !0
27
+ }, l = (e) => {
28
+ let t = {}, n, r, i;
29
+ return e && e.split("\n").forEach((e) => {
30
+ /* istanbul ignore next -- @preserve */
31
+ i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && c[n]) &&
32
+ /* istanbul ignore next -- @preserve */
33
+ (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
34
+ }), t;
35
+ }, u = (e, n) => new Promise((a, o) => {
36
+ let { onDownloadProgress: s, onUploadProgress: c, responseType: u, timeout: d, credentials: f, body: p, headers: m, method: h, url: g, async: _ = !0 } = e, v = new XMLHttpRequest(), y = () => ({
37
+ status: v.status,
38
+ headers: new r(l(v.getAllResponseHeaders()))
39
+ }), b = (e, n) => {
40
+ o(t.error(e, {
41
+ ...y(),
42
+ body: n
43
+ }));
44
+ }, x = (e) => {
45
+ a(new t({
46
+ ...y(),
47
+ body: e
48
+ }));
49
+ }, S = (e, t, n) => {
50
+ n ||= v, t && n.addEventListener(e, t);
51
+ };
52
+ S("readystatechange", () => {
53
+ if (v.readyState === 4 && v.status !== 0) {
54
+ if (v.status >= 200 && v.status < 300) {
55
+ let e = v.responseType ? v.response : v.responseText;
56
+ v.responseType && e === null ? b(i.HTTP_RESPONSE_PARSING_FAILED) : x(e);
57
+ } else b(i.HTTP_STATUS_ERROR);
58
+ }
59
+ }), S("abort", (e) => b(i.HTTP_CANCEL, e)), S(
60
+ "error",
61
+ /* istanbul ignore next */
62
+ (e) => b(i.HTTP_STATUS_ERROR, e)
63
+ ), S("timeout", (e) => b(i.HTTP_REQUEST_TIMEOUT, e)), S("progress", s), S("progress", c, v.upload), v.open(h, g, _), v.withCredentials = f !== "omit" && !!f, d && (v.timeout = d), u && (v.responseType = u);
64
+ for (let e in m.toJSON()) v.setRequestHeader(e, m[e]);
65
+ v.send(p);
66
+ let C = n.cancel;
67
+ n.cancel = async () => {
68
+ v.abort(), await C();
69
+ }, n.server = v;
70
+ }), d = (e, n) => new Promise((a, o) => {
71
+ let { url: s, headers: c, body: l, credentials: u, method: d, timeout: f, responseType: p, ...m } = e, h = new AbortController(), g = f ? setTimeout(() => {
72
+ h.abort(i.HTTP_REQUEST_TIMEOUT), y(i.HTTP_REQUEST_TIMEOUT);
73
+ }, f) : null, _, v = () => {
74
+ let e = new r();
75
+ return _ && _.headers.forEach((t, n) => e.set(n, t, !0)), {
76
+ status: _?.status,
77
+ headers: e
78
+ };
79
+ }, y = (e, n) => {
80
+ [i.HTTP_CANCEL, i.HTTP_REQUEST_TIMEOUT].includes(h.signal.reason) && (e = h.signal.reason), o(t.error(e, {
81
+ ...v(),
82
+ body: n
83
+ })), g && clearTimeout(g), g = null;
84
+ }, b = (e) => {
85
+ a(new t({
86
+ ...v(),
87
+ body: e
88
+ })), g && clearTimeout(g), g = null;
89
+ }, x = fetch(s, {
90
+ headers: c.toJSON(),
91
+ body: l,
92
+ credentials: u,
93
+ method: d,
94
+ signal: h.signal,
95
+ ...m
96
+ }).then((e) => {
97
+ if (_ = e, e.status >= 200 && e.status < 300) {
98
+ let t = e[p || "text"];
99
+ if (!t) return b(e);
100
+ t.call(e).then((e) => {
101
+ b(e);
102
+ }).catch((e) => {
103
+ y(i.HTTP_RESPONSE_PARSING_FAILED, e);
104
+ });
105
+ } else y(i.HTTP_STATUS_ERROR, e);
106
+ return e;
107
+ }).catch((e) => {
108
+ y(i.HTTP_STATUS_ERROR, e);
109
+ }), S = n.cancel;
110
+ n.cancel = async () => {
111
+ h.abort(i.HTTP_CANCEL), await S();
112
+ }, n.server = x;
113
+ }), f = (e) => new Promise((n, r) => {
114
+ let { jsonp: a, url: o } = e;
115
+ if (typeof a != "string" || window[a]) {
116
+ r(t.error(i.HTTP_CODE_ILLEGAL));
117
+ return;
118
+ }
119
+ Object.defineProperty(window, a, { value: (e) => n(new t({ body: e })) });
120
+ let s = document.createElement("script"), c = document.getElementsByTagName("head")[0];
121
+ s.src = o, c.appendChild(s);
122
+ }), p = (e, t) => e.jsonp ? f(e) : e.useXHR || !window?.fetch ? u(e, t) : d(e, t), m = (e = {}) => {
123
+ let t = Array.isArray(e.onRequest) ? e.onRequest : e.onRequest ? [e.onRequest] : [], r = Array.isArray(e.onResponse) ? e.onResponse : e.onResponse ? [e.onResponse] : [];
124
+ return new n({
125
+ ...e,
126
+ onRequest: t.concat([a]),
127
+ onResponse: [o].concat(r),
128
+ provider: p
129
+ });
130
+ }, h = m({});
131
+ //#endregion
132
+ export { m as n, s as r, h as t };
@@ -0,0 +1,80 @@
1
+ globalThis.process;
2
+ import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
+ //#region node_modules/.pnpm/@deot+helper-load@1.1.3/node_modules/@deot/helper-load/dist/index.js
4
+ var t = /* @__PURE__ */ e({
5
+ image: () => s,
6
+ link: () => o,
7
+ removeStyle: () => a,
8
+ script: () => r,
9
+ style: () => i
10
+ }), n = typeof window > "u", r = (e, t) => {
11
+ if (n) return;
12
+ if (r.cache.has(e)) return r.cache.get(e);
13
+ let i = new Promise((n, i) => {
14
+ let a = document.createElement("script"), o = t?.async === !1;
15
+ if (!o) a.src = e, a.onload = () => n(1), a.onerror = (t) => {
16
+ r.cache.delete(e), i(t);
17
+ };
18
+ else {
19
+ let t = new XMLHttpRequest();
20
+ t.open("GET", e, !1), t.send(), a.innerHTML = t.responseText;
21
+ }
22
+ document.getElementsByTagName("head")[0].appendChild(a), o && n(1);
23
+ });
24
+ return r.cache.set(e, i), i;
25
+ };
26
+ r.cache = /* @__PURE__ */ new Map();
27
+ var i = (e, t) => {
28
+ if (n) return;
29
+ if (t?.id) {
30
+ let n = typeof t.id == "string" ? document.getElementById(t.id) : t.id;
31
+ if (n) {
32
+ n.innerHTML = e;
33
+ return;
34
+ }
35
+ }
36
+ if (i.cache.has(e)) return;
37
+ i.cache.add(e);
38
+ let r = document.createElement("style");
39
+ t?.id && typeof t.id == "string" && r.setAttribute("id", t.id), r.innerHTML = e, document.getElementsByTagName("head")[0].appendChild(r);
40
+ }, a = (e) => {
41
+ if (!n && e) {
42
+ let t = typeof e == "string" ? document.getElementById(e) : e;
43
+ if (!t) return;
44
+ let n = t.innerHTML;
45
+ document.getElementsByTagName("head")[0].removeChild(t), i.cache.has(n) && i.cache.delete(n);
46
+ }
47
+ };
48
+ i.cache = /* @__PURE__ */ new Set();
49
+ var o = (e) => {
50
+ if (n) return;
51
+ if (o.cache.has(e)) return o.cache.get(e);
52
+ let t = new Promise((t, n) => {
53
+ let r = document.createElement("link");
54
+ r.type = "text/css", r.rel = "linksheet", r.href = e, r.onload = () => t(1), r.onerror = (t) => {
55
+ o.cache.delete(e), n(t);
56
+ }, document.getElementsByTagName("head")[0].appendChild(r);
57
+ });
58
+ return o.cache.set(e, t), t;
59
+ };
60
+ o.cache = /* @__PURE__ */ new Map();
61
+ var s = (e) => {
62
+ if (n) return;
63
+ if (s.cache.has(e)) return s.cache.get(e);
64
+ let t = new Promise((t, n) => {
65
+ let r = new Image();
66
+ r.src = e, r.onload = () => {
67
+ t({
68
+ source: e,
69
+ width: r.naturalWidth,
70
+ height: r.naturalHeight
71
+ });
72
+ }, r.onerror = (t) => {
73
+ s.cache.delete(e), n(t);
74
+ };
75
+ });
76
+ return s.cache.set(e, t), t;
77
+ };
78
+ s.placeholder = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQYV2P48OP/fwAJqgPnYfITggAAAABJRU5ErkJggg==", s.cache = /* @__PURE__ */ new Map();
79
+ //#endregion
80
+ export { a as n, i as r, t };