@xwiki/cristal-wiki-config-default 0.21.0 → 0.22.0

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/index.es.js CHANGED
@@ -1,1509 +1,37 @@
1
- function vt(t, e, n) {
2
- return Reflect.getOwnMetadata(e, t, n);
3
- }
4
- function we(t, e, n, s) {
5
- Reflect.defineMetadata(e, n, t, s);
6
- }
7
- function U(t, e, n, s, r) {
8
- const o = s(vt(t, e, r) ?? n());
9
- Reflect.defineMetadata(e, o, t, r);
10
- }
11
- var Vt, jt, Tt;
12
- (function(t) {
13
- t.moduleId = "moduleId", t.serviceId = "serviceId";
14
- })(Vt || (Vt = {}));
15
- (function(t) {
16
- t.id = "id", t.moduleId = "moduleId", t.serviceId = "serviceId";
17
- })(jt || (jt = {}));
18
- (function(t) {
19
- t.moduleId = "moduleId", t.serviceId = "serviceId";
20
- })(Tt || (Tt = {}));
21
- const G = "@inversifyjs/core/classMetadataReflectKey";
22
- function Q() {
23
- return { constructorArguments: [], lifecycle: { postConstructMethodName: void 0, preDestroyMethodName: void 0 }, properties: /* @__PURE__ */ new Map(), scope: void 0 };
24
- }
25
- const Ee = "@inversifyjs/core/pendingClassMetadataCountReflectKey", it = Symbol.for("@inversifyjs/core/InversifyCoreError");
26
- class v extends Error {
27
- [it];
28
- kind;
29
- constructor(e, n, s) {
30
- super(n, s), this[it] = !0, this.kind = e;
31
- }
32
- static is(e) {
33
- return typeof e == "object" && e !== null && e[it] === !0;
34
- }
35
- static isErrorOfKind(e, n) {
36
- return v.is(e) && e.kind === n;
37
- }
38
- }
39
- var b, Z, j;
40
- function ve() {
41
- return 0;
42
- }
43
- function be(t) {
44
- return (e) => {
45
- e !== void 0 && e.kind === Z.unknown && U(t, Ee, ve, (n) => n - 1);
46
- };
47
- }
48
- function Ne(t, e) {
49
- return (...n) => (s) => {
50
- if (s === void 0) return t(...n);
51
- if (s.kind === j.unmanaged) throw new v(b.injectionDecoratorConflict, "Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found");
52
- return e(s, ...n);
53
- };
54
- }
55
- function Oe(t) {
56
- if (t.kind !== Z.unknown && t.isFromTypescriptParamType !== !0) throw new v(b.injectionDecoratorConflict, "Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found");
57
- }
58
- (function(t) {
59
- t[t.injectionDecoratorConflict = 0] = "injectionDecoratorConflict", t[t.missingInjectionDecorator = 1] = "missingInjectionDecorator", t[t.planning = 2] = "planning", t[t.resolution = 3] = "resolution", t[t.unknown = 4] = "unknown";
60
- })(b || (b = {})), function(t) {
61
- t[t.unknown = 32] = "unknown";
62
- }(Z || (Z = {})), function(t) {
63
- t[t.multipleInjection = 0] = "multipleInjection", t[t.singleInjection = 1] = "singleInjection", t[t.unmanaged = 2] = "unmanaged";
64
- }(j || (j = {}));
65
- const Se = Ne(function(t, e, n) {
66
- return t === j.multipleInjection ? { chained: n?.chained ?? !1, kind: t, name: void 0, optional: !1, tags: /* @__PURE__ */ new Map(), value: e } : { kind: t, name: void 0, optional: !1, tags: /* @__PURE__ */ new Map(), value: e };
67
- }, function(t, e, n, s) {
68
- return Oe(t), e === j.multipleInjection ? { ...t, chained: s?.chained ?? !1, kind: e, value: n } : { ...t, kind: e, value: n };
69
- });
70
- function At(t, e) {
71
- return (n) => {
72
- const s = n.properties.get(e);
73
- return n.properties.set(e, t(s)), n;
74
- };
75
- }
76
- var C;
77
- function Re(t, e, n, s) {
78
- if (v.isErrorOfKind(s, b.injectionDecoratorConflict)) {
79
- const r = function(o, i, c) {
80
- if (c === void 0) {
81
- if (i === void 0) throw new v(b.unknown, "Unexpected undefined property and index values");
82
- return { kind: C.property, property: i, targetClass: o.constructor };
83
- }
84
- return typeof c == "number" ? { index: c, kind: C.parameter, targetClass: o } : { kind: C.method, method: i, targetClass: o };
85
- }(t, e, n);
86
- throw new v(b.injectionDecoratorConflict, `Unexpected injection error.
87
-
88
- Cause:
89
-
90
- ${s.message}
91
-
92
- Details
93
-
94
- ${function(o) {
95
- switch (o.kind) {
96
- case C.method:
97
- return `[class: "${o.targetClass.name}", method: "${o.method.toString()}"]`;
98
- case C.parameter:
99
- return `[class: "${o.targetClass.name}", index: "${o.index.toString()}"]`;
100
- case C.property:
101
- return `[class: "${o.targetClass.name}", property: "${o.property.toString()}"]`;
102
- }
103
- }(r)}`, { cause: s });
104
- }
105
- throw s;
106
- }
107
- function Ie(t, e) {
108
- return (n, s, r) => {
109
- try {
110
- r === void 0 ? function(o, i) {
111
- const c = ct(o, i);
112
- return (l, u) => {
113
- U(l.constructor, G, Q, At(c(l), u));
114
- };
115
- }(t, e)(n, s) : typeof r == "number" ? function(o, i) {
116
- const c = ct(o, i);
117
- return (l, u, p) => {
118
- if (!/* @__PURE__ */ function(a, f) {
119
- return typeof a == "function" && f === void 0;
120
- }(l, u)) throw new v(b.injectionDecoratorConflict, `Found an @inject decorator in a non constructor parameter.
121
- Found @inject decorator at method "${u?.toString() ?? ""}" at class "${l.constructor.name}"`);
122
- U(l, G, Q, /* @__PURE__ */ function(a, f) {
123
- return (h) => {
124
- const m = h.constructorArguments[f];
125
- return h.constructorArguments[f] = a(m), h;
126
- };
127
- }(c(l), p));
128
- };
129
- }(t, e)(n, s, r) : function(o, i) {
130
- const c = ct(o, i);
131
- return (l, u, p) => {
132
- if (!function(a) {
133
- return a.set !== void 0;
134
- }(p)) throw new v(b.injectionDecoratorConflict, `Found an @inject decorator in a non setter property method.
135
- Found @inject decorator at method "${u.toString()}" at class "${l.constructor.name}"`);
136
- U(l.constructor, G, Q, At(c(l), u));
137
- };
138
- }(t, e)(n, s, r);
139
- } catch (o) {
140
- Re(n, s, r, o);
141
- }
142
- };
143
- }
144
- function ct(t, e) {
145
- return (n) => {
146
- const s = e(n);
147
- return (r) => (s(r), t(r));
148
- };
149
- }
150
- function Ce(t) {
151
- return Ie(Se(j.singleInjection, t), be);
152
- }
153
- (function(t) {
154
- t[t.method = 0] = "method", t[t.parameter = 1] = "parameter", t[t.property = 2] = "property";
155
- })(C || (C = {}));
156
- const Mt = "@inversifyjs/core/classIsInjectableFlagReflectKey", De = [Array, BigInt, Boolean, Function, Number, Object, String];
157
- function xe(t) {
158
- const e = vt(t, "design:paramtypes");
159
- e !== void 0 && U(t, G, Q, /* @__PURE__ */ function(n) {
160
- return (s) => (n.forEach((r, o) => {
161
- var i;
162
- s.constructorArguments[o] !== void 0 || (i = r, De.includes(i)) || (s.constructorArguments[o] = function(c) {
163
- return { isFromTypescriptParamType: !0, kind: j.singleInjection, name: void 0, optional: !1, tags: /* @__PURE__ */ new Map(), value: c };
164
- }(r));
165
- }), s);
166
- }(e));
167
- }
168
- function Ve(t) {
169
- return (e) => {
170
- (function(n) {
171
- if (vt(n, Mt) !== void 0) throw new v(b.injectionDecoratorConflict, `Cannot apply @injectable decorator multiple times at class "${n.name}"`);
172
- we(n, Mt, !0);
173
- })(e), xe(e);
174
- };
175
- }
176
- var $t;
177
- (function(t) {
178
- t[t.multipleInjection = 0] = "multipleInjection", t[t.singleInjection = 1] = "singleInjection";
179
- })($t || ($t = {}));
180
- /**
181
- * @vue/shared v3.5.18
182
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
183
- * @license MIT
184
- **/
185
- /*! #__NO_SIDE_EFFECTS__ */
186
- // @__NO_SIDE_EFFECTS__
187
- function je(t) {
188
- const e = /* @__PURE__ */ Object.create(null);
189
- for (const n of t.split(",")) e[n] = 1;
190
- return (n) => n in e;
191
- }
192
- const _t = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
193
- process.env.NODE_ENV !== "production" && Object.freeze([]);
194
- const Lt = () => {
195
- }, Te = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
196
- (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), k = Object.assign, Ae = Object.prototype.hasOwnProperty, gt = (t, e) => Ae.call(t, e), g = Array.isArray, z = (t) => Wt(t) === "[object Map]", T = (t) => typeof t == "function", R = (t) => typeof t == "string", B = (t) => typeof t == "symbol", w = (t) => t !== null && typeof t == "object", Me = Object.prototype.toString, Wt = (t) => Me.call(t), Bt = (t) => Wt(t).slice(8, -1), bt = (t) => R(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, $e = (t) => {
197
- const e = /* @__PURE__ */ Object.create(null);
198
- return (n) => e[n] || (e[n] = t(n));
199
- }, Pe = $e((t) => t.charAt(0).toUpperCase() + t.slice(1)), Nt = (t, e) => !Object.is(t, e);
200
- let Pt;
201
- const st = () => Pt || (Pt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
202
- function Ot(t) {
203
- if (g(t)) {
204
- const e = {};
205
- for (let n = 0; n < t.length; n++) {
206
- const s = t[n], r = R(s) ? He(s) : Ot(s);
207
- if (r)
208
- for (const o in r)
209
- e[o] = r[o];
210
- }
211
- return e;
212
- } else if (R(t) || w(t))
213
- return t;
214
- }
215
- const Fe = /;(?![^(]*\))/g, ke = /:([^]+)/, Ke = /\/\*[^]*?\*\//g;
216
- function He(t) {
217
- const e = {};
218
- return t.replace(Ke, "").split(Fe).forEach((n) => {
219
- if (n) {
220
- const s = n.split(ke);
221
- s.length > 1 && (e[s[0].trim()] = s[1].trim());
222
- }
223
- }), e;
224
- }
225
- function St(t) {
226
- let e = "";
227
- if (R(t))
228
- e = t;
229
- else if (g(t))
230
- for (let n = 0; n < t.length; n++) {
231
- const s = St(t[n]);
232
- s && (e += s + " ");
233
- }
234
- else if (w(t))
235
- for (const n in t)
236
- t[n] && (e += n + " ");
237
- return e.trim();
238
- }
239
- /**
240
- * @vue/reactivity v3.5.18
241
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
242
- * @license MIT
243
- **/
244
- function L(t, ...e) {
245
- console.warn(`[Vue warn] ${t}`, ...e);
246
- }
247
- let Yt = 0, at;
248
- function Rt() {
249
- Yt++;
250
- }
251
- function It() {
252
- if (--Yt > 0)
253
- return;
254
- let t;
255
- for (; at; ) {
256
- let e = at;
257
- for (at = void 0; e; ) {
258
- const n = e.next;
259
- if (e.next = void 0, e.flags &= -9, e.flags & 1)
260
- try {
261
- e.trigger();
262
- } catch (s) {
263
- t || (t = s);
264
- }
265
- e = n;
266
- }
267
- }
268
- if (t) throw t;
269
- }
270
- class Ue {
271
- // TODO isolatedDeclarations "__v_skip"
272
- constructor(e) {
273
- this.computed = e, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
274
- }
275
- track(e) {
276
- }
277
- trigger(e) {
278
- this.version++, this.notify(e);
279
- }
280
- notify(e) {
281
- Rt();
282
- try {
283
- if (process.env.NODE_ENV !== "production")
284
- for (let n = this.subsHead; n; n = n.nextSub)
285
- n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
286
- k(
287
- {
288
- effect: n.sub
289
- },
290
- e
291
- )
292
- );
293
- for (let n = this.subs; n; n = n.prevSub)
294
- n.sub.notify() && n.sub.dep.notify();
295
- } finally {
296
- It();
297
- }
298
- }
299
- }
300
- const ze = /* @__PURE__ */ new WeakMap(), lt = Symbol(
301
- process.env.NODE_ENV !== "production" ? "Object iterate" : ""
302
- ), Ft = Symbol(
303
- process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
304
- ), kt = Symbol(
305
- process.env.NODE_ENV !== "production" ? "Array iterate" : ""
306
- );
307
- function x(t, e, n, s, r, o) {
308
- const i = ze.get(t);
309
- if (!i)
310
- return;
311
- const c = (l) => {
312
- l && (process.env.NODE_ENV !== "production" ? l.trigger({
313
- target: t,
314
- type: e,
315
- key: n,
316
- newValue: s,
317
- oldValue: r,
318
- oldTarget: o
319
- }) : l.trigger());
320
- };
321
- if (Rt(), e === "clear")
322
- i.forEach(c);
323
- else {
324
- const l = g(t), u = l && bt(n);
325
- if (l && n === "length") {
326
- const p = Number(s);
327
- i.forEach((a, f) => {
328
- (f === "length" || f === kt || !B(f) && f >= p) && c(a);
329
- });
330
- } else
331
- switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(kt)), e) {
332
- case "add":
333
- l ? u && c(i.get("length")) : (c(i.get(lt)), z(t) && c(i.get(Ft)));
334
- break;
335
- case "delete":
336
- l || (c(i.get(lt)), z(t) && c(i.get(Ft)));
337
- break;
338
- case "set":
339
- z(t) && c(i.get(lt));
340
- break;
341
- }
342
- }
343
- It();
344
- }
345
- function A(t) {
346
- const e = d(t);
347
- return e === t || E(t) ? e : e.map(_);
348
- }
349
- function Ct(t) {
350
- return t = d(t), t;
351
- }
352
- const Le = {
353
- __proto__: null,
354
- [Symbol.iterator]() {
355
- return ut(this, Symbol.iterator, _);
356
- },
357
- concat(...t) {
358
- return A(this).concat(
359
- ...t.map((e) => g(e) ? A(e) : e)
360
- );
361
- },
362
- entries() {
363
- return ut(this, "entries", (t) => (t[1] = _(t[1]), t));
364
- },
365
- every(t, e) {
366
- return N(this, "every", t, e, void 0, arguments);
367
- },
368
- filter(t, e) {
369
- return N(this, "filter", t, e, (n) => n.map(_), arguments);
370
- },
371
- find(t, e) {
372
- return N(this, "find", t, e, _, arguments);
373
- },
374
- findIndex(t, e) {
375
- return N(this, "findIndex", t, e, void 0, arguments);
376
- },
377
- findLast(t, e) {
378
- return N(this, "findLast", t, e, _, arguments);
379
- },
380
- findLastIndex(t, e) {
381
- return N(this, "findLastIndex", t, e, void 0, arguments);
382
- },
383
- // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
384
- forEach(t, e) {
385
- return N(this, "forEach", t, e, void 0, arguments);
386
- },
387
- includes(...t) {
388
- return ft(this, "includes", t);
389
- },
390
- indexOf(...t) {
391
- return ft(this, "indexOf", t);
392
- },
393
- join(t) {
394
- return A(this).join(t);
395
- },
396
- // keys() iterator only reads `length`, no optimisation required
397
- lastIndexOf(...t) {
398
- return ft(this, "lastIndexOf", t);
399
- },
400
- map(t, e) {
401
- return N(this, "map", t, e, void 0, arguments);
402
- },
403
- pop() {
404
- return H(this, "pop");
405
- },
406
- push(...t) {
407
- return H(this, "push", t);
408
- },
409
- reduce(t, ...e) {
410
- return Kt(this, "reduce", t, e);
411
- },
412
- reduceRight(t, ...e) {
413
- return Kt(this, "reduceRight", t, e);
414
- },
415
- shift() {
416
- return H(this, "shift");
417
- },
418
- // slice could use ARRAY_ITERATE but also seems to beg for range tracking
419
- some(t, e) {
420
- return N(this, "some", t, e, void 0, arguments);
421
- },
422
- splice(...t) {
423
- return H(this, "splice", t);
424
- },
425
- toReversed() {
426
- return A(this).toReversed();
427
- },
428
- toSorted(t) {
429
- return A(this).toSorted(t);
430
- },
431
- toSpliced(...t) {
432
- return A(this).toSpliced(...t);
433
- },
434
- unshift(...t) {
435
- return H(this, "unshift", t);
436
- },
437
- values() {
438
- return ut(this, "values", _);
439
- }
440
- };
441
- function ut(t, e, n) {
442
- const s = Ct(t), r = s[e]();
443
- return s !== t && !E(t) && (r._next = r.next, r.next = () => {
444
- const o = r._next();
445
- return o.value && (o.value = n(o.value)), o;
446
- }), r;
447
- }
448
- const We = Array.prototype;
449
- function N(t, e, n, s, r, o) {
450
- const i = Ct(t), c = i !== t && !E(t), l = i[e];
451
- if (l !== We[e]) {
452
- const a = l.apply(t, o);
453
- return c ? _(a) : a;
454
- }
455
- let u = n;
456
- i !== t && (c ? u = function(a, f) {
457
- return n.call(this, _(a), f, t);
458
- } : n.length > 2 && (u = function(a, f) {
459
- return n.call(this, a, f, t);
460
- }));
461
- const p = l.call(i, u, s);
462
- return c && r ? r(p) : p;
463
- }
464
- function Kt(t, e, n, s) {
465
- const r = Ct(t);
466
- let o = n;
467
- return r !== t && (E(t) ? n.length > 3 && (o = function(i, c, l) {
468
- return n.call(this, i, c, l, t);
469
- }) : o = function(i, c, l) {
470
- return n.call(this, i, _(c), l, t);
471
- }), r[e](o, ...s);
472
- }
473
- function ft(t, e, n) {
474
- const s = d(t), r = s[e](...n);
475
- return (r === -1 || r === !1) && tt(n[0]) ? (n[0] = d(n[0]), s[e](...n)) : r;
476
- }
477
- function H(t, e, n = []) {
478
- Rt();
479
- const s = d(t)[e].apply(t, n);
480
- return It(), s;
481
- }
482
- const Be = /* @__PURE__ */ je("__proto__,__v_isRef,__isVue"), Jt = new Set(
483
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(B)
484
- );
485
- function Ye(t) {
486
- return B(t) || (t = String(t)), d(this).hasOwnProperty(t);
487
- }
488
- class qt {
489
- constructor(e = !1, n = !1) {
490
- this._isReadonly = e, this._isShallow = n;
491
- }
492
- get(e, n, s) {
493
- if (n === "__v_skip") return e.__v_skip;
494
- const r = this._isReadonly, o = this._isShallow;
495
- if (n === "__v_isReactive")
496
- return !r;
497
- if (n === "__v_isReadonly")
498
- return r;
499
- if (n === "__v_isShallow")
500
- return o;
501
- if (n === "__v_raw")
502
- return s === (r ? o ? rn : Xt : o ? nn : Qt).get(e) || // receiver is not the reactive proxy, but has the same prototype
503
- // this means the receiver is a user proxy of the reactive proxy
504
- Object.getPrototypeOf(e) === Object.getPrototypeOf(s) ? e : void 0;
505
- const i = g(e);
506
- if (!r) {
507
- let l;
508
- if (i && (l = Le[n]))
509
- return l;
510
- if (n === "hasOwnProperty")
511
- return Ye;
512
- }
513
- const c = Reflect.get(
514
- e,
515
- n,
516
- // if this is a proxy wrapping a ref, return methods using the raw ref
517
- // as receiver so that we don't have to call `toRaw` on the ref in all
518
- // its class methods
519
- S(e) ? e : s
520
- );
521
- return (B(n) ? Jt.has(n) : Be(n)) || o ? c : S(c) ? i && bt(n) ? c : c.value : w(c) ? r ? te(c) : Zt(c) : c;
522
- }
523
- }
524
- class Je extends qt {
525
- constructor(e = !1) {
526
- super(!1, e);
527
- }
528
- set(e, n, s, r) {
529
- let o = e[n];
530
- if (!this._isShallow) {
531
- const l = I(o);
532
- if (!E(s) && !I(s) && (o = d(o), s = d(s)), !g(e) && S(o) && !S(s))
533
- return l ? !1 : (o.value = s, !0);
534
- }
535
- const i = g(e) && bt(n) ? Number(n) < e.length : gt(e, n), c = Reflect.set(
536
- e,
537
- n,
538
- s,
539
- S(e) ? e : r
540
- );
541
- return e === d(r) && (i ? Nt(s, o) && x(e, "set", n, s, o) : x(e, "add", n, s)), c;
542
- }
543
- deleteProperty(e, n) {
544
- const s = gt(e, n), r = e[n], o = Reflect.deleteProperty(e, n);
545
- return o && s && x(e, "delete", n, void 0, r), o;
546
- }
547
- has(e, n) {
548
- const s = Reflect.has(e, n);
549
- return !B(n) || Jt.has(n), s;
550
- }
551
- ownKeys(e) {
552
- return Reflect.ownKeys(e);
553
- }
554
- }
555
- class qe extends qt {
556
- constructor(e = !1) {
557
- super(!0, e);
558
- }
559
- set(e, n) {
560
- return process.env.NODE_ENV !== "production" && L(
561
- `Set operation on key "${String(n)}" failed: target is readonly.`,
562
- e
563
- ), !0;
564
- }
565
- deleteProperty(e, n) {
566
- return process.env.NODE_ENV !== "production" && L(
567
- `Delete operation on key "${String(n)}" failed: target is readonly.`,
568
- e
569
- ), !0;
570
- }
571
- }
572
- const Ge = /* @__PURE__ */ new Je(), Qe = /* @__PURE__ */ new qe(), mt = (t) => t, Y = (t) => Reflect.getPrototypeOf(t);
573
- function Xe(t, e, n) {
574
- return function(...s) {
575
- const r = this.__v_raw, o = d(r), i = z(o), c = t === "entries" || t === Symbol.iterator && i, l = r[t](...s), u = n ? mt : e ? yt : _;
576
- return {
577
- // iterator protocol
578
- next() {
579
- const { value: p, done: a } = l.next();
580
- return a ? { value: p, done: a } : {
581
- value: c ? [u(p[0]), u(p[1])] : u(p),
582
- done: a
583
- };
584
- },
585
- // iterable protocol
586
- [Symbol.iterator]() {
587
- return this;
588
- }
589
- };
590
- };
591
- }
592
- function J(t) {
593
- return function(...e) {
594
- if (process.env.NODE_ENV !== "production") {
595
- const n = e[0] ? `on key "${e[0]}" ` : "";
596
- L(
597
- `${Pe(t)} operation ${n}failed: target is readonly.`,
598
- d(this)
599
- );
600
- }
601
- return t === "delete" ? !1 : t === "clear" ? void 0 : this;
602
- };
603
- }
604
- function Ze(t, e) {
605
- const n = {
606
- get(r) {
607
- const o = this.__v_raw, i = d(o), c = d(r), { has: l } = Y(i), u = e ? mt : t ? yt : _;
608
- if (l.call(i, r))
609
- return u(o.get(r));
610
- if (l.call(i, c))
611
- return u(o.get(c));
612
- o !== i && o.get(r);
613
- },
614
- get size() {
615
- const r = this.__v_raw;
616
- return !t && (d(r), void 0), Reflect.get(r, "size", r);
617
- },
618
- has(r) {
619
- const o = this.__v_raw;
620
- d(o);
621
- const i = d(r);
622
- return r === i ? o.has(r) : o.has(r) || o.has(i);
623
- },
624
- forEach(r, o) {
625
- const i = this, c = i.__v_raw;
626
- d(c);
627
- const l = e ? mt : t ? yt : _;
628
- return c.forEach((u, p) => r.call(o, l(u), l(p), i));
629
- }
630
- };
631
- return k(
632
- n,
633
- t ? {
634
- add: J("add"),
635
- set: J("set"),
636
- delete: J("delete"),
637
- clear: J("clear")
638
- } : {
639
- add(r) {
640
- !e && !E(r) && !I(r) && (r = d(r));
641
- const o = d(this);
642
- return Y(o).has.call(o, r) || (o.add(r), x(o, "add", r, r)), this;
643
- },
644
- set(r, o) {
645
- !e && !E(o) && !I(o) && (o = d(o));
646
- const i = d(this), { has: c, get: l } = Y(i);
647
- let u = c.call(i, r);
648
- u ? process.env.NODE_ENV !== "production" && Ht(i, c, r) : (r = d(r), u = c.call(i, r));
649
- const p = l.call(i, r);
650
- return i.set(r, o), u ? Nt(o, p) && x(i, "set", r, o, p) : x(i, "add", r, o), this;
651
- },
652
- delete(r) {
653
- const o = d(this), { has: i, get: c } = Y(o);
654
- let l = i.call(o, r);
655
- l ? process.env.NODE_ENV !== "production" && Ht(o, i, r) : (r = d(r), l = i.call(o, r));
656
- const u = c ? c.call(o, r) : void 0, p = o.delete(r);
657
- return l && x(o, "delete", r, void 0, u), p;
658
- },
659
- clear() {
660
- const r = d(this), o = r.size !== 0, i = process.env.NODE_ENV !== "production" ? z(r) ? new Map(r) : new Set(r) : void 0, c = r.clear();
661
- return o && x(
662
- r,
663
- "clear",
664
- void 0,
665
- void 0,
666
- i
667
- ), c;
668
- }
669
- }
670
- ), [
671
- "keys",
672
- "values",
673
- "entries",
674
- Symbol.iterator
675
- ].forEach((r) => {
676
- n[r] = Xe(r, t, e);
677
- }), n;
678
- }
679
- function Gt(t, e) {
680
- const n = Ze(t, e);
681
- return (s, r, o) => r === "__v_isReactive" ? !t : r === "__v_isReadonly" ? t : r === "__v_raw" ? s : Reflect.get(
682
- gt(n, r) && r in s ? n : s,
683
- r,
684
- o
685
- );
686
- }
687
- const tn = {
688
- get: /* @__PURE__ */ Gt(!1, !1)
689
- }, en = {
690
- get: /* @__PURE__ */ Gt(!0, !1)
691
- };
692
- function Ht(t, e, n) {
693
- const s = d(n);
694
- if (s !== n && e.call(t, s)) {
695
- const r = Bt(t);
696
- L(
697
- `Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
698
- );
699
- }
700
- }
701
- const Qt = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap();
702
- function on(t) {
703
- switch (t) {
704
- case "Object":
705
- case "Array":
706
- return 1;
707
- case "Map":
708
- case "Set":
709
- case "WeakMap":
710
- case "WeakSet":
711
- return 2;
712
- default:
713
- return 0;
714
- }
715
- }
716
- function sn(t) {
717
- return t.__v_skip || !Object.isExtensible(t) ? 0 : on(Bt(t));
718
- }
719
- function Zt(t) {
720
- return I(t) ? t : ee(
721
- t,
722
- !1,
723
- Ge,
724
- tn,
725
- Qt
726
- );
727
- }
728
- function te(t) {
729
- return ee(
730
- t,
731
- !0,
732
- Qe,
733
- en,
734
- Xt
735
- );
736
- }
737
- function ee(t, e, n, s, r) {
738
- if (!w(t))
739
- return process.env.NODE_ENV !== "production" && L(
740
- `value cannot be made ${e ? "readonly" : "reactive"}: ${String(
741
- t
742
- )}`
743
- ), t;
744
- if (t.__v_raw && !(e && t.__v_isReactive))
745
- return t;
746
- const o = sn(t);
747
- if (o === 0)
748
- return t;
749
- const i = r.get(t);
750
- if (i)
751
- return i;
752
- const c = new Proxy(
753
- t,
754
- o === 2 ? s : n
755
- );
756
- return r.set(t, c), c;
757
- }
758
- function ne(t) {
759
- return I(t) ? ne(t.__v_raw) : !!(t && t.__v_isReactive);
760
- }
761
- function I(t) {
762
- return !!(t && t.__v_isReadonly);
763
- }
764
- function E(t) {
765
- return !!(t && t.__v_isShallow);
766
- }
767
- function tt(t) {
768
- return t ? !!t.__v_raw : !1;
769
- }
770
- function d(t) {
771
- const e = t && t.__v_raw;
772
- return e ? d(e) : t;
773
- }
774
- const _ = (t) => w(t) ? Zt(t) : t, yt = (t) => w(t) ? te(t) : t;
775
- function S(t) {
776
- return t ? t.__v_isRef === !0 : !1;
777
- }
778
- function cn(t) {
779
- return an(t, !0);
780
- }
781
- function an(t, e) {
782
- return S(t) ? t : new ln(t, e);
783
- }
784
- class ln {
785
- constructor(e, n) {
786
- this.dep = new Ue(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : d(e), this._value = n ? e : _(e), this.__v_isShallow = n;
787
- }
788
- get value() {
789
- return process.env.NODE_ENV !== "production" ? this.dep.track({
790
- target: this,
791
- type: "get",
792
- key: "value"
793
- }) : this.dep.track(), this._value;
794
- }
795
- set value(e) {
796
- const n = this._rawValue, s = this.__v_isShallow || E(e) || I(e);
797
- e = s ? e : d(e), Nt(e, n) && (this._rawValue = e, this._value = s ? e : _(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
798
- target: this,
799
- type: "set",
800
- key: "value",
801
- newValue: e,
802
- oldValue: n
803
- }) : this.dep.trigger());
804
- }
805
- }
806
- function Ut(t) {
807
- t.dep && (process.env.NODE_ENV !== "production" ? t.dep.trigger({
808
- target: t,
809
- type: "set",
810
- key: "value",
811
- newValue: t._value
812
- }) : t.dep.trigger());
813
- }
814
- /**
815
- * @vue/runtime-core v3.5.18
816
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
817
- * @license MIT
818
- **/
819
- const V = [];
820
- function un(t) {
821
- V.push(t);
822
- }
823
- function fn() {
824
- V.pop();
825
- }
826
- let dt = !1;
827
- function F(t, ...e) {
828
- if (dt) return;
829
- dt = !0;
830
- const n = V.length ? V[V.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = dn();
831
- if (s)
832
- Dt(
833
- s,
834
- n,
835
- 11,
836
- [
837
- // eslint-disable-next-line no-restricted-syntax
838
- t + e.map((o) => {
839
- var i, c;
840
- return (c = (i = o.toString) == null ? void 0 : i.call(o)) != null ? c : JSON.stringify(o);
841
- }).join(""),
842
- n && n.proxy,
843
- r.map(
844
- ({ vnode: o }) => `at <${me(n, o.type)}>`
845
- ).join(`
846
- `),
847
- r
848
- ]
849
- );
850
- else {
851
- const o = [`[Vue warn]: ${t}`, ...e];
852
- r.length && o.push(`
853
- `, ...pn(r)), console.warn(...o);
854
- }
855
- dt = !1;
856
- }
857
- function dn() {
858
- let t = V[V.length - 1];
859
- if (!t)
860
- return [];
861
- const e = [];
862
- for (; t; ) {
863
- const n = e[0];
864
- n && n.vnode === t ? n.recurseCount++ : e.push({
865
- vnode: t,
866
- recurseCount: 0
867
- });
868
- const s = t.component && t.component.parent;
869
- t = s && s.vnode;
870
- }
871
- return e;
872
- }
873
- function pn(t) {
874
- const e = [];
875
- return t.forEach((n, s) => {
876
- e.push(...s === 0 ? [] : [`
877
- `], ...hn(n));
878
- }), e;
879
- }
880
- function hn({ vnode: t, recurseCount: e }) {
881
- const n = e > 0 ? `... (${e} recursive calls)` : "", s = t.component ? t.component.parent == null : !1, r = ` at <${me(
882
- t.component,
883
- t.type,
884
- s
885
- )}`, o = ">" + n;
886
- return t.props ? [r, ..._n(t.props), o] : [r + o];
887
- }
888
- function _n(t) {
889
- const e = [], n = Object.keys(t);
890
- return n.slice(0, 3).forEach((s) => {
891
- e.push(...re(s, t[s]));
892
- }), n.length > 3 && e.push(" ..."), e;
893
- }
894
- function re(t, e, n) {
895
- return R(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : S(e) ? (e = re(t, d(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : T(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = d(e), n ? e : [`${t}=`, e]);
896
- }
897
- const oe = {
898
- sp: "serverPrefetch hook",
899
- bc: "beforeCreate hook",
900
- c: "created hook",
901
- bm: "beforeMount hook",
902
- m: "mounted hook",
903
- bu: "beforeUpdate hook",
904
- u: "updated",
905
- bum: "beforeUnmount hook",
906
- um: "unmounted hook",
907
- a: "activated hook",
908
- da: "deactivated hook",
909
- ec: "errorCaptured hook",
910
- rtc: "renderTracked hook",
911
- rtg: "renderTriggered hook",
912
- 0: "setup function",
913
- 1: "render function",
914
- 2: "watcher getter",
915
- 3: "watcher callback",
916
- 4: "watcher cleanup function",
917
- 5: "native event handler",
918
- 6: "component event handler",
919
- 7: "vnode hook",
920
- 8: "directive hook",
921
- 9: "transition hook",
922
- 10: "app errorHandler",
923
- 11: "app warnHandler",
924
- 12: "ref function",
925
- 13: "async component loader",
926
- 14: "scheduler flush",
927
- 15: "component update",
928
- 16: "app unmount cleanup function"
929
- };
930
- function Dt(t, e, n, s) {
931
- try {
932
- return s ? t(...s) : t();
933
- } catch (r) {
934
- se(r, e, n);
935
- }
936
- }
937
- function se(t, e, n, s = !0) {
938
- const r = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || _t;
939
- if (e) {
940
- let c = e.parent;
941
- const l = e.proxy, u = process.env.NODE_ENV !== "production" ? oe[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
942
- for (; c; ) {
943
- const p = c.ec;
944
- if (p) {
945
- for (let a = 0; a < p.length; a++)
946
- if (p[a](t, l, u) === !1)
947
- return;
948
- }
949
- c = c.parent;
950
- }
951
- if (o) {
952
- Dt(o, null, 10, [
953
- t,
954
- l,
955
- u
956
- ]);
957
- return;
958
- }
959
- }
960
- gn(t, n, r, s, i);
961
- }
962
- function gn(t, e, n, s = !0, r = !1) {
963
- if (process.env.NODE_ENV !== "production") {
964
- const o = oe[e];
965
- if (n && un(n), F(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && fn(), s)
966
- throw t;
967
- console.error(t);
968
- } else {
969
- if (r)
970
- throw t;
971
- console.error(t);
972
- }
973
- }
974
- const y = [];
975
- let O = -1;
976
- const P = [];
977
- let D = null, M = 0;
978
- const mn = /* @__PURE__ */ Promise.resolve();
979
- let wt = null;
980
- const yn = 100;
981
- function wn(t) {
982
- let e = O + 1, n = y.length;
983
- for (; e < n; ) {
984
- const s = e + n >>> 1, r = y[s], o = W(r);
985
- o < t || o === t && r.flags & 2 ? e = s + 1 : n = s;
986
- }
987
- return e;
988
- }
989
- function En(t) {
990
- if (!(t.flags & 1)) {
991
- const e = W(t), n = y[y.length - 1];
992
- !n || // fast path when the job id is larger than the tail
993
- !(t.flags & 2) && e >= W(n) ? y.push(t) : y.splice(wn(e), 0, t), t.flags |= 1, ie();
994
- }
995
- }
996
- function ie() {
997
- wt || (wt = mn.then(ce));
998
- }
999
- function vn(t) {
1000
- g(t) ? P.push(...t) : D && t.id === -1 ? D.splice(M + 1, 0, t) : t.flags & 1 || (P.push(t), t.flags |= 1), ie();
1001
- }
1002
- function bn(t) {
1003
- if (P.length) {
1004
- const e = [...new Set(P)].sort(
1005
- (n, s) => W(n) - W(s)
1006
- );
1007
- if (P.length = 0, D) {
1008
- D.push(...e);
1009
- return;
1010
- }
1011
- for (D = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), M = 0; M < D.length; M++) {
1012
- const n = D[M];
1013
- process.env.NODE_ENV !== "production" && ae(t, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1014
- }
1015
- D = null, M = 0;
1016
- }
1017
- }
1018
- const W = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
1019
- function ce(t) {
1020
- process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
1021
- const e = process.env.NODE_ENV !== "production" ? (n) => ae(t, n) : Lt;
1022
- try {
1023
- for (O = 0; O < y.length; O++) {
1024
- const n = y[O];
1025
- if (n && !(n.flags & 8)) {
1026
- if (process.env.NODE_ENV !== "production" && e(n))
1027
- continue;
1028
- n.flags & 4 && (n.flags &= -2), Dt(
1029
- n,
1030
- n.i,
1031
- n.i ? 15 : 14
1032
- ), n.flags & 4 || (n.flags &= -2);
1033
- }
1034
- }
1035
- } finally {
1036
- for (; O < y.length; O++) {
1037
- const n = y[O];
1038
- n && (n.flags &= -2);
1039
- }
1040
- O = -1, y.length = 0, bn(t), wt = null, (y.length || P.length) && ce(t);
1041
- }
1042
- }
1043
- function ae(t, e) {
1044
- const n = t.get(e) || 0;
1045
- if (n > yn) {
1046
- const s = e.i, r = s && ge(s.type);
1047
- return se(
1048
- `Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
1049
- null,
1050
- 10
1051
- ), !0;
1052
- }
1053
- return t.set(e, n + 1), !1;
1054
- }
1055
- const pt = /* @__PURE__ */ new Map();
1056
- process.env.NODE_ENV !== "production" && (st().__VUE_HMR_RUNTIME__ = {
1057
- createRecord: ht(Nn),
1058
- rerender: ht(On),
1059
- reload: ht(Sn)
1060
- });
1061
- const et = /* @__PURE__ */ new Map();
1062
- function Nn(t, e) {
1063
- return et.has(t) ? !1 : (et.set(t, {
1064
- initialDef: nt(e),
1065
- instances: /* @__PURE__ */ new Set()
1066
- }), !0);
1067
- }
1068
- function nt(t) {
1069
- return ye(t) ? t.__vccOpts : t;
1070
- }
1071
- function On(t, e) {
1072
- const n = et.get(t);
1073
- n && (n.initialDef.render = e, [...n.instances].forEach((s) => {
1074
- e && (s.render = e, nt(s.type).render = e), s.renderCache = [], s.update();
1075
- }));
1076
- }
1077
- function Sn(t, e) {
1078
- const n = et.get(t);
1079
- if (!n) return;
1080
- e = nt(e), zt(n.initialDef, e);
1081
- const s = [...n.instances];
1082
- for (let r = 0; r < s.length; r++) {
1083
- const o = s[r], i = nt(o.type);
1084
- let c = pt.get(i);
1085
- c || (i !== n.initialDef && zt(i, e), pt.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(e.styles), c.delete(o)) : o.parent ? En(() => {
1086
- o.parent.update(), c.delete(o);
1087
- }) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1088
- "[HMR] Root or manually mounted instance modified. Full reload required."
1089
- ), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
1090
- }
1091
- vn(() => {
1092
- pt.clear();
1093
- });
1094
- }
1095
- function zt(t, e) {
1096
- k(t, e);
1097
- for (const n in t)
1098
- n !== "__file" && !(n in e) && delete t[n];
1099
- }
1100
- function ht(t) {
1101
- return (e, n) => {
1102
- try {
1103
- return t(e, n);
1104
- } catch (s) {
1105
- console.error(s), console.warn(
1106
- "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
1107
- );
1108
- }
1109
- };
1110
- }
1111
- let $, q = [];
1112
- function le(t, e) {
1113
- var n, s;
1114
- $ = t, $ ? ($.enabled = !0, q.forEach(({ event: r, args: o }) => $.emit(r, ...o)), q = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
1115
- window.HTMLElement && // also exclude jsdom
1116
- // eslint-disable-next-line no-restricted-syntax
1117
- !((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
1118
- le(o, e);
1119
- }), setTimeout(() => {
1120
- $ || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, q = []);
1121
- }, 3e3)) : q = [];
1122
- }
1123
- let rt = null, Rn = null;
1124
- const In = (t) => t.__isTeleport;
1125
- function ue(t, e) {
1126
- t.shapeFlag & 6 && t.component ? (t.transition = e, ue(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
1127
- }
1128
- st().requestIdleCallback;
1129
- st().cancelIdleCallback;
1130
- const Cn = Symbol.for("v-ndc"), Dn = {};
1131
- process.env.NODE_ENV !== "production" && (Dn.ownKeys = (t) => (F(
1132
- "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1133
- ), Reflect.ownKeys(t)));
1134
- const xn = {}, fe = (t) => Object.getPrototypeOf(t) === xn, Vn = (t) => t.__isSuspense, de = Symbol.for("v-fgt"), jn = Symbol.for("v-txt"), Tn = Symbol.for("v-cmt");
1135
- function An(t) {
1136
- return t ? t.__v_isVNode === !0 : !1;
1137
- }
1138
- const Mn = (...t) => he(
1139
- ...t
1140
- ), pe = ({ key: t }) => t ?? null, X = ({
1141
- ref: t,
1142
- ref_key: e,
1143
- ref_for: n
1144
- }) => (typeof t == "number" && (t = "" + t), t != null ? R(t) || S(t) || T(t) ? { i: rt, r: t, k: e, f: !!n } : t : null);
1145
- function $n(t, e = null, n = null, s = 0, r = null, o = t === de ? 0 : 1, i = !1, c = !1) {
1146
- const l = {
1147
- __v_isVNode: !0,
1148
- __v_skip: !0,
1149
- type: t,
1150
- props: e,
1151
- key: e && pe(e),
1152
- ref: e && X(e),
1153
- scopeId: Rn,
1154
- slotScopeIds: null,
1155
- children: n,
1156
- component: null,
1157
- suspense: null,
1158
- ssContent: null,
1159
- ssFallback: null,
1160
- dirs: null,
1161
- transition: null,
1162
- el: null,
1163
- anchor: null,
1164
- target: null,
1165
- targetStart: null,
1166
- targetAnchor: null,
1167
- staticCount: 0,
1168
- shapeFlag: o,
1169
- patchFlag: s,
1170
- dynamicProps: r,
1171
- dynamicChildren: null,
1172
- appContext: null,
1173
- ctx: rt
1174
- };
1175
- return c ? (xt(l, n), o & 128 && t.normalize(l)) : n && (l.shapeFlag |= R(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && F("VNode created with invalid key (NaN). VNode type:", l.type), l;
1176
- }
1177
- const Pn = process.env.NODE_ENV !== "production" ? Mn : he;
1178
- function he(t, e = null, n = null, s = 0, r = null, o = !1) {
1179
- if ((!t || t === Cn) && (process.env.NODE_ENV !== "production" && !t && F(`Invalid vnode type when creating vnode: ${t}.`), t = Tn), An(t)) {
1180
- const c = ot(
1181
- t,
1182
- e,
1183
- !0
1184
- /* mergeRef: true */
1185
- );
1186
- return n && xt(c, n), c.patchFlag = -2, c;
1187
- }
1188
- if (ye(t) && (t = t.__vccOpts), e) {
1189
- e = Fn(e);
1190
- let { class: c, style: l } = e;
1191
- c && !R(c) && (e.class = St(c)), w(l) && (tt(l) && !g(l) && (l = k({}, l)), e.style = Ot(l));
1192
- }
1193
- const i = R(t) ? 1 : Vn(t) ? 128 : In(t) ? 64 : w(t) ? 4 : T(t) ? 2 : 0;
1194
- return process.env.NODE_ENV !== "production" && i & 4 && tt(t) && (t = d(t), F(
1195
- "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
1196
- `
1197
- Component that was made reactive: `,
1198
- t
1199
- )), $n(
1200
- t,
1201
- e,
1202
- n,
1203
- s,
1204
- r,
1205
- i,
1206
- o,
1207
- !0
1208
- );
1209
- }
1210
- function Fn(t) {
1211
- return t ? tt(t) || fe(t) ? k({}, t) : t : null;
1212
- }
1213
- function ot(t, e, n = !1, s = !1) {
1214
- const { props: r, ref: o, patchFlag: i, children: c, transition: l } = t, u = e ? Kn(r || {}, e) : r, p = {
1215
- __v_isVNode: !0,
1216
- __v_skip: !0,
1217
- type: t.type,
1218
- props: u,
1219
- key: u && pe(u),
1220
- ref: e && e.ref ? (
1221
- // #2078 in the case of <component :is="vnode" ref="extra"/>
1222
- // if the vnode itself already has a ref, cloneVNode will need to merge
1223
- // the refs so the single vnode can be set on multiple refs
1224
- n && o ? g(o) ? o.concat(X(e)) : [o, X(e)] : X(e)
1225
- ) : o,
1226
- scopeId: t.scopeId,
1227
- slotScopeIds: t.slotScopeIds,
1228
- children: process.env.NODE_ENV !== "production" && i === -1 && g(c) ? c.map(_e) : c,
1229
- target: t.target,
1230
- targetStart: t.targetStart,
1231
- targetAnchor: t.targetAnchor,
1232
- staticCount: t.staticCount,
1233
- shapeFlag: t.shapeFlag,
1234
- // if the vnode is cloned with extra props, we can no longer assume its
1235
- // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1236
- // note: preserve flag for fragments since they use the flag for children
1237
- // fast paths only.
1238
- patchFlag: e && t.type !== de ? i === -1 ? 16 : i | 16 : i,
1239
- dynamicProps: t.dynamicProps,
1240
- dynamicChildren: t.dynamicChildren,
1241
- appContext: t.appContext,
1242
- dirs: t.dirs,
1243
- transition: l,
1244
- // These should technically only be non-null on mounted VNodes. However,
1245
- // they *should* be copied for kept-alive vnodes. So we just always copy
1246
- // them since them being non-null during a mount doesn't affect the logic as
1247
- // they will simply be overwritten.
1248
- component: t.component,
1249
- suspense: t.suspense,
1250
- ssContent: t.ssContent && ot(t.ssContent),
1251
- ssFallback: t.ssFallback && ot(t.ssFallback),
1252
- placeholder: t.placeholder,
1253
- el: t.el,
1254
- anchor: t.anchor,
1255
- ctx: t.ctx,
1256
- ce: t.ce
1257
- };
1258
- return l && s && ue(
1259
- p,
1260
- l.clone(p)
1261
- ), p;
1262
- }
1263
- function _e(t) {
1264
- const e = ot(t);
1265
- return g(t.children) && (e.children = t.children.map(_e)), e;
1266
- }
1267
- function kn(t = " ", e = 0) {
1268
- return Pn(jn, null, t, e);
1269
- }
1270
- function xt(t, e) {
1271
- let n = 0;
1272
- const { shapeFlag: s } = t;
1273
- if (e == null)
1274
- e = null;
1275
- else if (g(e))
1276
- n = 16;
1277
- else if (typeof e == "object")
1278
- if (s & 65) {
1279
- const r = e.default;
1280
- r && (r._c && (r._d = !1), xt(t, r()), r._c && (r._d = !0));
1281
- return;
1282
- } else
1283
- n = 32, !e._ && !fe(e) && (e._ctx = rt);
1284
- else T(e) ? (e = { default: e, _ctx: rt }, n = 32) : (e = String(e), s & 64 ? (n = 16, e = [kn(e)]) : n = 8);
1285
- t.children = e, t.shapeFlag |= n;
1286
- }
1287
- function Kn(...t) {
1288
- const e = {};
1289
- for (let n = 0; n < t.length; n++) {
1290
- const s = t[n];
1291
- for (const r in s)
1292
- if (r === "class")
1293
- e.class !== s.class && (e.class = St([e.class, s.class]));
1294
- else if (r === "style")
1295
- e.style = Ot([e.style, s.style]);
1296
- else if (Te(r)) {
1297
- const o = e[r], i = s[r];
1298
- i && o !== i && !(g(o) && o.includes(i)) && (e[r] = o ? [].concat(o, i) : i);
1299
- } else r !== "" && (e[r] = s[r]);
1300
- }
1301
- return e;
1302
- }
1303
- {
1304
- const t = st(), e = (n, s) => {
1305
- let r;
1306
- return (r = t[n]) || (r = t[n] = []), r.push(s), (o) => {
1307
- r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
1308
- };
1309
- };
1310
- e(
1311
- "__VUE_INSTANCE_SETTERS__",
1312
- (n) => n
1313
- ), e(
1314
- "__VUE_SSR_SETTERS__",
1315
- (n) => n
1316
- );
1317
- }
1318
- process.env.NODE_ENV;
1319
- const Hn = /(?:^|[-_])(\w)/g, Un = (t) => t.replace(Hn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1320
- function ge(t, e = !0) {
1321
- return T(t) ? t.displayName || t.name : t.name || e && t.__name;
1322
- }
1323
- function me(t, e, n = !1) {
1324
- let s = ge(e);
1325
- if (!s && e.__file) {
1326
- const r = e.__file.match(/([^/\\]+)\.\w+$/);
1327
- r && (s = r[1]);
1328
- }
1329
- if (!s && t && t.parent) {
1330
- const r = (o) => {
1331
- for (const i in o)
1332
- if (o[i] === e)
1333
- return i;
1334
- };
1335
- s = r(
1336
- t.components || t.parent.type.components
1337
- ) || r(t.appContext.components);
1338
- }
1339
- return s ? Un(s) : n ? "App" : "Anonymous";
1340
- }
1341
- function ye(t) {
1342
- return T(t) && "__vccOpts" in t;
1343
- }
1344
- function zn() {
1345
- if (process.env.NODE_ENV === "production" || typeof window > "u")
1346
- return;
1347
- const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
1348
- __vue_custom_formatter: !0,
1349
- header(a) {
1350
- if (!w(a))
1351
- return null;
1352
- if (a.__isVue)
1353
- return ["div", t, "VueInstance"];
1354
- if (S(a)) {
1355
- const f = a.value;
1356
- return [
1357
- "div",
1358
- {},
1359
- ["span", t, p(a)],
1360
- "<",
1361
- c(f),
1362
- ">"
1363
- ];
1364
- } else {
1365
- if (ne(a))
1366
- return [
1367
- "div",
1368
- {},
1369
- ["span", t, E(a) ? "ShallowReactive" : "Reactive"],
1370
- "<",
1371
- c(a),
1372
- `>${I(a) ? " (readonly)" : ""}`
1373
- ];
1374
- if (I(a))
1375
- return [
1376
- "div",
1377
- {},
1378
- ["span", t, E(a) ? "ShallowReadonly" : "Readonly"],
1379
- "<",
1380
- c(a),
1381
- ">"
1382
- ];
1383
- }
1384
- return null;
1385
- },
1386
- hasBody(a) {
1387
- return a && a.__isVue;
1388
- },
1389
- body(a) {
1390
- if (a && a.__isVue)
1391
- return [
1392
- "div",
1393
- {},
1394
- ...o(a.$)
1395
- ];
1396
- }
1397
- };
1398
- function o(a) {
1399
- const f = [];
1400
- a.type.props && a.props && f.push(i("props", d(a.props))), a.setupState !== _t && f.push(i("setup", a.setupState)), a.data !== _t && f.push(i("data", d(a.data)));
1401
- const h = l(a, "computed");
1402
- h && f.push(i("computed", h));
1403
- const m = l(a, "inject");
1404
- return m && f.push(i("injected", m)), f.push([
1405
- "div",
1406
- {},
1407
- [
1408
- "span",
1409
- {
1410
- style: s.style + ";opacity:0.66"
1411
- },
1412
- "$ (internal): "
1413
- ],
1414
- ["object", { object: a }]
1415
- ]), f;
1416
- }
1417
- function i(a, f) {
1418
- return f = k({}, f), Object.keys(f).length ? [
1419
- "div",
1420
- { style: "line-height:1.25em;margin-bottom:0.6em" },
1421
- [
1422
- "div",
1423
- {
1424
- style: "color:#476582"
1425
- },
1426
- a
1427
- ],
1428
- [
1429
- "div",
1430
- {
1431
- style: "padding-left:1.25em"
1432
- },
1433
- ...Object.keys(f).map((h) => [
1434
- "div",
1435
- {},
1436
- ["span", s, h + ": "],
1437
- c(f[h], !1)
1438
- ])
1439
- ]
1440
- ] : ["span", {}];
1441
- }
1442
- function c(a, f = !0) {
1443
- return typeof a == "number" ? ["span", e, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", s, a] : w(a) ? ["object", { object: f ? d(a) : a }] : ["span", n, String(a)];
1444
- }
1445
- function l(a, f) {
1446
- const h = a.type;
1447
- if (T(h))
1448
- return;
1449
- const m = {};
1450
- for (const K in a.ctx)
1451
- u(h, K, f) && (m[K] = a.ctx[K]);
1452
- return m;
1453
- }
1454
- function u(a, f, h) {
1455
- const m = a[h];
1456
- if (g(m) && m.includes(f) || w(m) && f in m || a.extends && u(a.extends, f, h) || a.mixins && a.mixins.some((K) => u(K, f, h)))
1457
- return !0;
1458
- }
1459
- function p(a) {
1460
- return E(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
1461
- }
1462
- window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
1463
- }
1464
- process.env.NODE_ENV;
1465
- process.env.NODE_ENV;
1466
- process.env.NODE_ENV;
1467
- /**
1468
- * vue v3.5.18
1469
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
1470
- * @license MIT
1471
- **/
1472
- function Ln() {
1473
- zn();
1474
- }
1475
- process.env.NODE_ENV !== "production" && Ln();
1476
- var Wn = Object.getOwnPropertyDescriptor, Bn = (t, e, n, s) => {
1477
- for (var r = s > 1 ? void 0 : s ? Wn(e, n) : e, o = t.length - 1, i; o >= 0; o--)
1478
- (i = t[o]) && (r = i(r) || r);
1479
- return r;
1480
- }, Yn = (t, e) => (n, s) => e(n, s, t);
1481
- let Et = class {
1482
- constructor(t) {
1483
- this.cristalApp = t, this.configurationsRef = cn(
1
+ import { injectable as f, inject as c } from "inversify";
2
+ import { shallowRef as g, triggerRef as l } from "vue";
3
+ var p = Object.getOwnPropertyDescriptor, u = (i, t, r, e) => {
4
+ for (var o = e > 1 ? void 0 : e ? p(t, r) : t, a = i.length - 1, s; a >= 0; a--)
5
+ (s = i[a]) && (o = s(o) || o);
6
+ return o;
7
+ }, v = (i, t) => (r, e) => t(r, e, i);
8
+ let n = class {
9
+ constructor(i) {
10
+ this.cristalApp = i, this.configurationsRef = g(
1484
11
  this.cristalApp.getAvailableConfigurations()
1485
12
  );
1486
13
  }
14
+ configurationsRef;
1487
15
  getAvailableConfigurations() {
1488
16
  return this.configurationsRef;
1489
17
  }
1490
- setAvailableConfigurations(t) {
1491
- this.cristalApp.setAvailableConfigurations(t), Ut(this.configurationsRef);
18
+ setAvailableConfigurations(i) {
19
+ this.cristalApp.setAvailableConfigurations(i), l(this.configurationsRef);
1492
20
  }
1493
- deleteAvailableConfiguration(t) {
1494
- this.cristalApp.deleteAvailableConfiguration(t), Ut(this.configurationsRef);
21
+ deleteAvailableConfiguration(i) {
22
+ this.cristalApp.deleteAvailableConfiguration(i), l(this.configurationsRef);
1495
23
  }
1496
24
  };
1497
- Et = Bn([
1498
- Ve(),
1499
- Yn(0, Ce("CristalApp"))
1500
- ], Et);
1501
- class Jn {
1502
- constructor(e) {
1503
- e.bind("WikiConfigProxy").to(Et).inSingletonScope();
25
+ n = u([
26
+ f(),
27
+ v(0, c("CristalApp"))
28
+ ], n);
29
+ class h {
30
+ constructor(t) {
31
+ t.bind("WikiConfigProxy").to(n).inSingletonScope();
1504
32
  }
1505
33
  }
1506
34
  export {
1507
- Jn as ComponentInit
35
+ h as ComponentInit
1508
36
  };
1509
37
  //# sourceMappingURL=index.es.js.map