ss-component-new 1.3.338 → 1.3.340

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 (144) hide show
  1. package/dist/{MTLLoader-BPkDlKQY.js → MTLLoader-C-XJYnXR.js} +1 -1
  2. package/dist/{MTLLoader-BSAD_hGU.cjs → MTLLoader-Dx_OCevv.cjs} +1 -1
  3. package/dist/{OrbitControls-DmrQ6Qms.cjs → OrbitControls-B55yzIKX.cjs} +1 -1
  4. package/dist/{OrbitControls-BmF9oSwu.js → OrbitControls-BB87FyuR.js} +1 -1
  5. package/dist/{URDFLoader-yNcNWc8y.js → URDFLoader-DgP2bMhH.js} +2 -2
  6. package/dist/{URDFLoader-BX2xO-G6.cjs → URDFLoader-Uh4bBb-n.cjs} +1 -1
  7. package/dist/{animationData-Fzp5MGPx.cjs → animationData-BfEyrEkb.cjs} +1 -1
  8. package/dist/{animationData-D0Wf5oqE.js → animationData-CF6benhM.js} +3 -3
  9. package/dist/array-Dk18oefG.cjs +1 -0
  10. package/dist/{array-qvvk1rzy.js → array-Dz0LlM28.js} +15 -14
  11. package/dist/clone-BDBSWARv.cjs +1 -0
  12. package/dist/clone-BqeCvECh.js +8 -0
  13. package/dist/{dayjs.min-BuNwfEqV.cjs → dayjs.min-CSW85jLQ.cjs} +1 -1
  14. package/dist/{dayjs.min-k4eV5VaF.js → dayjs.min-bC5IyY3C.js} +15 -15
  15. package/dist/{iconfont-DoIvvZJ4.js → iconfont-DV-mBuRs.js} +2 -2
  16. package/dist/{iconfont-RzjRJt3k.cjs → iconfont-rvMUQHIL.cjs} +1 -1
  17. package/dist/index--E8u7lHy.cjs +12 -0
  18. package/dist/{index-3SrvYl-e.js → index-0VkKesv_.js} +16 -15
  19. package/dist/{index-yzO3VRjc.js → index-9nQLsFiY.js} +2 -2
  20. package/dist/index-B38fQMRk.cjs +1 -0
  21. package/dist/index-BIg-Nt0x.cjs +25 -0
  22. package/dist/{index-CLWqjd6p.cjs → index-BPpYDffY.cjs} +1 -1
  23. package/dist/index-BQO25T-T.cjs +1 -0
  24. package/dist/{index-CFeJYmGf.js → index-BSCoLGXF.js} +123 -122
  25. package/dist/{index-DNAGMKpI.cjs → index-BTgJ9oD-.cjs} +1 -1
  26. package/dist/{index-DslJemMC.cjs → index-BWpqDCVF.cjs} +1 -1
  27. package/dist/index-BchGbZ1v.cjs +15 -0
  28. package/dist/{index-DlViTF82.js → index-Bdh2uHRO.js} +45 -44
  29. package/dist/index-Bio1_C_H.cjs +1 -0
  30. package/dist/index-BmJV5eVh.js +4669 -0
  31. package/dist/index-BtyugMgY.cjs +1 -0
  32. package/dist/index-BzeH13wt.cjs +1 -0
  33. package/dist/{index-CdrI3q21.js → index-C3-1AlM-.js} +11 -10
  34. package/dist/{index-DcFINcWZ.cjs → index-C3lScvOV.cjs} +1 -1
  35. package/dist/{index--rPeSICn.js → index-C4NN-IA4.js} +17 -16
  36. package/dist/{index-Le8Yusb8.js → index-C6gCT4vd.js} +71 -70
  37. package/dist/{index--edHnTba.js → index-C9baGOvW.js} +171 -170
  38. package/dist/{index-CQivR-lI.js → index-CHAqLCtD.js} +8 -7
  39. package/dist/{index-v-ovngKr.js → index-CHIMUYG3.js} +11 -10
  40. package/dist/{index-CTcYkvWl.js → index-CHnN0kSC.js} +17 -16
  41. package/dist/index-CMsGT7Tl.cjs +1 -0
  42. package/dist/index-COTur3RT.cjs +1 -0
  43. package/dist/index-COowXWF7.cjs +1 -0
  44. package/dist/index-CUp0Z80f.cjs +2 -0
  45. package/dist/{index-CKRf8Ami.js → index-CYgpY06q.js} +1 -1
  46. package/dist/{index-Cw_Pv2mr.cjs → index-Ca3THBbJ.cjs} +1 -1
  47. package/dist/{index-KjGumfMh.js → index-CbBP02RV.js} +2 -2
  48. package/dist/{index-hc0ka42R.js → index-CgjHHxqY.js} +7 -6
  49. package/dist/index-CoX9mofW.cjs +1 -0
  50. package/dist/index-CyQV3nI9.cjs +1 -0
  51. package/dist/{index-CzLk74Qf.js → index-D0gKkud0.js} +13 -12
  52. package/dist/{index-CzSyQ5Dz.js → index-D6Zkrpou.js} +14 -13
  53. package/dist/index-DBhc2SoQ.cjs +1 -0
  54. package/dist/index-DBrXonf1.cjs +1 -0
  55. package/dist/index-DEfKSijb.cjs +7 -0
  56. package/dist/{index-Dhr09zBK.js → index-DGwbEHLN.js} +7 -6
  57. package/dist/{index-cetb2cxj.js → index-DLLST1Nd.js} +11 -10
  58. package/dist/{index-Nlcszcxu.js → index-DMt7y2yA.js} +26 -25
  59. package/dist/{index-DDsxDvtn.js → index-DN4OcDlg.js} +1 -1
  60. package/dist/index-DNyLSjIf.cjs +1 -0
  61. package/dist/index-DOQApax-.cjs +1 -0
  62. package/dist/{index-sRpRqcWY.js → index-DWP-FYxV.js} +11 -10
  63. package/dist/{index-BRsJCA7J.js → index-Dcp8sI4C.js} +2 -2
  64. package/dist/index-DtlQjI5L.cjs +1 -0
  65. package/dist/{index-BJ3dWzJE.js → index-DyJCopUt.js} +4 -3
  66. package/dist/index-FJ_oMfF3.cjs +1 -0
  67. package/dist/{index-DTXDYM2Y.js → index-Ijbw1FIL.js} +8 -7
  68. package/dist/{index-DYLcmfM7.cjs → index-L9DruvvE.cjs} +1 -1
  69. package/dist/{index-CFfsuz29.js → index-S2ChvJMP.js} +1 -1
  70. package/dist/index-T25jN7df.cjs +104 -0
  71. package/dist/index-W6w3oiQ2.cjs +1 -0
  72. package/dist/{index-DzisQWri.cjs → index-Zvul3j_r.cjs} +1 -1
  73. package/dist/{index-jXcRil4X.js → index-c1EWDQO1.js} +1 -1
  74. package/dist/index-ipcwULw-.js +167 -0
  75. package/dist/{index-Dz46J_oX.js → index-rW-jQkgq.js} +14 -13
  76. package/dist/{index-DN-hIpic.js → index-voXPz7Hq.js} +8 -7
  77. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CqftJ73D.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CHrvpoVb.js} +1956 -1950
  78. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-GYMecS8S.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dyd5heHe.cjs} +336 -336
  79. package/dist/{main-CSmrLXc1.js → main-Cd_mObtH.js} +9 -8
  80. package/dist/main-FOjt8u8O.cjs +11 -0
  81. package/dist/menu-7kw8Lwp_.cjs +1 -0
  82. package/dist/menu-CK0ndSHP.js +1132 -0
  83. package/dist/{menuIndex-H4svQtY4.cjs → menuIndex-Ba-9R5jd.cjs} +1 -1
  84. package/dist/{menuIndex-DnIGdu3r.js → menuIndex-DiNvd_FY.js} +1 -1
  85. package/dist/obj/model.mtl +42 -0
  86. package/dist/obj/model.obj +26110 -0
  87. package/dist/ss-component.cjs +1 -1
  88. package/dist/ss-component.css +1 -1
  89. package/dist/ss-component.js +13 -13
  90. package/dist/ss-component2.cjs +1 -1
  91. package/dist/ss-component2.js +10 -115
  92. package/dist/ss-component3.cjs +1 -1
  93. package/dist/ss-component3.js +5 -10
  94. package/dist/{threeModel-DVoiGwQY.js → threeModel-CIZ5D8Df.js} +4 -4
  95. package/dist/{threeModel-DMLcMdcO.cjs → threeModel-Dekl17Re.cjs} +1 -1
  96. package/dist/{threePreview-BlBYsSIY.js → threePreview-B46ButBi.js} +7 -6
  97. package/dist/threePreview-DcCfaIpB.cjs +1 -0
  98. package/dist/{threeSceneView-DxmqccX0.cjs → threeSceneView-CoQQCgZ3.cjs} +1 -1
  99. package/dist/{threeSceneView-DmElWi83.js → threeSceneView-D4mxD9hv.js} +16 -15
  100. package/dist/{threeSceneViewForCPMPIP-CG3vUmL9.cjs → threeSceneViewForCPMPIP-BR01ytzC.cjs} +1 -1
  101. package/dist/{threeSceneViewForCPMPIP-BiCRauu-.js → threeSceneViewForCPMPIP-DTtZGOcw.js} +11 -10
  102. package/dist/{threeTrackPathView-PNsjrZQ4.js → threeTrackPathView-BQPS8ajS.js} +88 -87
  103. package/dist/threeTrackPathView-C6IiddAw.cjs +1 -0
  104. package/dist/threeViewerHost-B3elQtpE.cjs +1 -0
  105. package/dist/{threeViewerHost-DZOE1mqQ.js → threeViewerHost-CsMI9jbX.js} +15 -14
  106. package/dist/{urdfTree-6H5q4vZJ.js → urdfTree-B118FC_3.js} +1 -1
  107. package/dist/{urdfTree-BHCNo0In.cjs → urdfTree-umPKeRFh.cjs} +1 -1
  108. package/dist/{workpieceTreePanel-hvdMKyB1.cjs → workpieceTreePanel-CwUXRyn3.cjs} +1 -1
  109. package/dist/{workpieceTreePanel-vIuHvU5P.js → workpieceTreePanel-D9TnLdIy.js} +4 -4
  110. package/package.json +1 -1
  111. package/public/obj/model.mtl +42 -0
  112. package/public/obj/model.obj +26110 -0
  113. package/dist/array-pgerzJif.cjs +0 -1
  114. package/dist/clone-CD9irwJl.cjs +0 -1
  115. package/dist/clone-NBEQjHYy.js +0 -8
  116. package/dist/index-B03AQcTh.cjs +0 -25
  117. package/dist/index-BKkBbMbq.cjs +0 -1
  118. package/dist/index-BypZhlZy.cjs +0 -1
  119. package/dist/index-C0M6Lcz7.cjs +0 -1
  120. package/dist/index-C3ub7esH.cjs +0 -1
  121. package/dist/index-CKFKnWYs.cjs +0 -1
  122. package/dist/index-CMCBjpMf.cjs +0 -1
  123. package/dist/index-CYl8EVmW.cjs +0 -1
  124. package/dist/index-CfnRQDoO.cjs +0 -1
  125. package/dist/index-CjBKQL-I.cjs +0 -7
  126. package/dist/index-Ckzoh1F1.cjs +0 -1
  127. package/dist/index-Czr_BmcF.cjs +0 -104
  128. package/dist/index-D76hP8qR.cjs +0 -1
  129. package/dist/index-D9ZxWMRp.cjs +0 -1
  130. package/dist/index-DIhyy3bB.cjs +0 -1
  131. package/dist/index-DNi-yN1x.cjs +0 -1
  132. package/dist/index-DdM-FFFt.cjs +0 -1
  133. package/dist/index-DxmeuinP.cjs +0 -15
  134. package/dist/index-HhzebblY.cjs +0 -1
  135. package/dist/index-LkCWNS6C.cjs +0 -1
  136. package/dist/index-Ud1yGLeD.js +0 -154
  137. package/dist/index-nMK8yuAt.cjs +0 -1
  138. package/dist/index-sTz1k0DD.cjs +0 -2
  139. package/dist/main-CzYhl2gc.cjs +0 -11
  140. package/dist/menu-CtDRlErv.cjs +0 -12
  141. package/dist/menu-z-45O0EF.js +0 -5667
  142. package/dist/threePreview-BPEiRaxd.cjs +0 -1
  143. package/dist/threeTrackPathView-217IAm4H.cjs +0 -1
  144. package/dist/threeViewerHost-DcxUb5_x.cjs +0 -1
@@ -0,0 +1,4669 @@
1
+ import { effectScope as Ln, ref as I, markRaw as se, toRaw as de, computed as it, isRef as _e, isReactive as Me, toRef as Pe, hasInjectionContext as Hr, inject as Kr, getCurrentInstance as zr, reactive as jr, nextTick as St, watch as at, unref as Gr, getCurrentScope as Wr, onScopeDispose as Yr, toRefs as Ct } from "vue";
2
+ import { createRouter as qr, createWebHashHistory as Zr } from "vue-router";
3
+ var Xr = Object.create, Un = Object.defineProperty, Jr = Object.getOwnPropertyDescriptor, lt = Object.getOwnPropertyNames, Qr = Object.getPrototypeOf, eo = Object.prototype.hasOwnProperty, to = (e, t) => function() {
4
+ return e && (t = (0, e[lt(e)[0]])(e = 0)), t;
5
+ }, no = (e, t) => function() {
6
+ return t || (0, e[lt(e)[0]])((t = { exports: {} }).exports, t), t.exports;
7
+ }, ro = (e, t, n, r) => {
8
+ if (t && typeof t == "object" || typeof t == "function")
9
+ for (let o of lt(t))
10
+ !eo.call(e, o) && o !== n && Un(e, o, { get: () => t[o], enumerable: !(r = Jr(t, o)) || r.enumerable });
11
+ return e;
12
+ }, oo = (e, t, n) => (n = e != null ? Xr(Qr(e)) : {}, ro(
13
+ // If the importer is in node compatibility mode or this is not an ESM
14
+ // file that has been converted to a CommonJS file using a Babel-
15
+ // compatible transform (i.e. "__esModule" has not been set), then set
16
+ // "default" to the CommonJS "module.exports" for node compatibility.
17
+ Un(n, "default", { value: e, enumerable: !0 }),
18
+ e
19
+ )), Ie = to({
20
+ "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
21
+ }
22
+ }), so = no({
23
+ "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e, t) {
24
+ Ie(), t.exports = r;
25
+ function n(s) {
26
+ return s instanceof Buffer ? Buffer.from(s) : new s.constructor(s.buffer.slice(), s.byteOffset, s.length);
27
+ }
28
+ function r(s) {
29
+ if (s = s || {}, s.circles) return o(s);
30
+ const u = /* @__PURE__ */ new Map();
31
+ if (u.set(Date, (f) => new Date(f)), u.set(Map, (f, y) => new Map(l(Array.from(f), y))), u.set(Set, (f, y) => new Set(l(Array.from(f), y))), s.constructorHandlers)
32
+ for (const f of s.constructorHandlers)
33
+ u.set(f[0], f[1]);
34
+ let i = null;
35
+ return s.proto ? m : c;
36
+ function l(f, y) {
37
+ const d = Object.keys(f), _ = new Array(d.length);
38
+ for (let A = 0; A < d.length; A++) {
39
+ const h = d[A], g = f[h];
40
+ typeof g != "object" || g === null ? _[h] = g : g.constructor !== Object && (i = u.get(g.constructor)) ? _[h] = i(g, y) : ArrayBuffer.isView(g) ? _[h] = n(g) : _[h] = y(g);
41
+ }
42
+ return _;
43
+ }
44
+ function c(f) {
45
+ if (typeof f != "object" || f === null) return f;
46
+ if (Array.isArray(f)) return l(f, c);
47
+ if (f.constructor !== Object && (i = u.get(f.constructor)))
48
+ return i(f, c);
49
+ const y = {};
50
+ for (const d in f) {
51
+ if (Object.hasOwnProperty.call(f, d) === !1) continue;
52
+ const _ = f[d];
53
+ typeof _ != "object" || _ === null ? y[d] = _ : _.constructor !== Object && (i = u.get(_.constructor)) ? y[d] = i(_, c) : ArrayBuffer.isView(_) ? y[d] = n(_) : y[d] = c(_);
54
+ }
55
+ return y;
56
+ }
57
+ function m(f) {
58
+ if (typeof f != "object" || f === null) return f;
59
+ if (Array.isArray(f)) return l(f, m);
60
+ if (f.constructor !== Object && (i = u.get(f.constructor)))
61
+ return i(f, m);
62
+ const y = {};
63
+ for (const d in f) {
64
+ const _ = f[d];
65
+ typeof _ != "object" || _ === null ? y[d] = _ : _.constructor !== Object && (i = u.get(_.constructor)) ? y[d] = i(_, m) : ArrayBuffer.isView(_) ? y[d] = n(_) : y[d] = m(_);
66
+ }
67
+ return y;
68
+ }
69
+ }
70
+ function o(s) {
71
+ const u = [], i = [], l = /* @__PURE__ */ new Map();
72
+ if (l.set(Date, (d) => new Date(d)), l.set(Map, (d, _) => new Map(m(Array.from(d), _))), l.set(Set, (d, _) => new Set(m(Array.from(d), _))), s.constructorHandlers)
73
+ for (const d of s.constructorHandlers)
74
+ l.set(d[0], d[1]);
75
+ let c = null;
76
+ return s.proto ? y : f;
77
+ function m(d, _) {
78
+ const A = Object.keys(d), h = new Array(A.length);
79
+ for (let g = 0; g < A.length; g++) {
80
+ const b = A[g], T = d[b];
81
+ if (typeof T != "object" || T === null)
82
+ h[b] = T;
83
+ else if (T.constructor !== Object && (c = l.get(T.constructor)))
84
+ h[b] = c(T, _);
85
+ else if (ArrayBuffer.isView(T))
86
+ h[b] = n(T);
87
+ else {
88
+ const V = u.indexOf(T);
89
+ V !== -1 ? h[b] = i[V] : h[b] = _(T);
90
+ }
91
+ }
92
+ return h;
93
+ }
94
+ function f(d) {
95
+ if (typeof d != "object" || d === null) return d;
96
+ if (Array.isArray(d)) return m(d, f);
97
+ if (d.constructor !== Object && (c = l.get(d.constructor)))
98
+ return c(d, f);
99
+ const _ = {};
100
+ u.push(d), i.push(_);
101
+ for (const A in d) {
102
+ if (Object.hasOwnProperty.call(d, A) === !1) continue;
103
+ const h = d[A];
104
+ if (typeof h != "object" || h === null)
105
+ _[A] = h;
106
+ else if (h.constructor !== Object && (c = l.get(h.constructor)))
107
+ _[A] = c(h, f);
108
+ else if (ArrayBuffer.isView(h))
109
+ _[A] = n(h);
110
+ else {
111
+ const g = u.indexOf(h);
112
+ g !== -1 ? _[A] = i[g] : _[A] = f(h);
113
+ }
114
+ }
115
+ return u.pop(), i.pop(), _;
116
+ }
117
+ function y(d) {
118
+ if (typeof d != "object" || d === null) return d;
119
+ if (Array.isArray(d)) return m(d, y);
120
+ if (d.constructor !== Object && (c = l.get(d.constructor)))
121
+ return c(d, y);
122
+ const _ = {};
123
+ u.push(d), i.push(_);
124
+ for (const A in d) {
125
+ const h = d[A];
126
+ if (typeof h != "object" || h === null)
127
+ _[A] = h;
128
+ else if (h.constructor !== Object && (c = l.get(h.constructor)))
129
+ _[A] = c(h, y);
130
+ else if (ArrayBuffer.isView(h))
131
+ _[A] = n(h);
132
+ else {
133
+ const g = u.indexOf(h);
134
+ g !== -1 ? _[A] = i[g] : _[A] = y(h);
135
+ }
136
+ }
137
+ return u.pop(), i.pop(), _;
138
+ }
139
+ }
140
+ }
141
+ });
142
+ Ie();
143
+ Ie();
144
+ Ie();
145
+ var Bn = typeof navigator < "u", E = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : {};
146
+ typeof E.chrome < "u" && E.chrome.devtools;
147
+ Bn && (E.self, E.top);
148
+ var Tt;
149
+ typeof navigator < "u" && ((Tt = navigator.userAgent) == null || Tt.toLowerCase().includes("electron"));
150
+ Ie();
151
+ var uo = oo(so()), io = /(?:^|[-_/])(\w)/g;
152
+ function ao(e, t) {
153
+ return t ? t.toUpperCase() : "";
154
+ }
155
+ function lo(e) {
156
+ return e && `${e}`.replace(io, ao);
157
+ }
158
+ function co(e, t) {
159
+ let n = e.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
160
+ n.endsWith(`index${t}`) && (n = n.replace(`/index${t}`, t));
161
+ const r = n.lastIndexOf("/"), o = n.substring(r + 1);
162
+ {
163
+ const s = o.lastIndexOf(t);
164
+ return o.substring(0, s);
165
+ }
166
+ }
167
+ var bt = (0, uo.default)({ circles: !0 });
168
+ const fo = {
169
+ trailing: !0
170
+ };
171
+ function pe(e, t = 25, n = {}) {
172
+ if (n = { ...fo, ...n }, !Number.isFinite(t))
173
+ throw new TypeError("Expected `wait` to be a finite number");
174
+ let r, o, s = [], u, i;
175
+ const l = (c, m) => (u = _o(e, c, m), u.finally(() => {
176
+ if (u = null, n.trailing && i && !o) {
177
+ const f = l(c, i);
178
+ return i = null, f;
179
+ }
180
+ }), u);
181
+ return function(...c) {
182
+ return u ? (n.trailing && (i = c), u) : new Promise((m) => {
183
+ const f = !o && n.leading;
184
+ clearTimeout(o), o = setTimeout(() => {
185
+ o = null;
186
+ const y = n.leading ? r : l(this, c);
187
+ for (const d of s)
188
+ d(y);
189
+ s = [];
190
+ }, t), f ? (r = l(this, c), m(r)) : s.push(m);
191
+ });
192
+ };
193
+ }
194
+ async function _o(e, t, n) {
195
+ return await e.apply(t, n);
196
+ }
197
+ function Ze(e, t = {}, n) {
198
+ for (const r in e) {
199
+ const o = e[r], s = n ? `${n}:${r}` : r;
200
+ typeof o == "object" && o !== null ? Ze(o, t, s) : typeof o == "function" && (t[s] = o);
201
+ }
202
+ return t;
203
+ }
204
+ const po = { run: (e) => e() }, Eo = () => po, Mn = typeof console.createTask < "u" ? console.createTask : Eo;
205
+ function ho(e, t) {
206
+ const n = t.shift(), r = Mn(n);
207
+ return e.reduce(
208
+ (o, s) => o.then(() => r.run(() => s(...t))),
209
+ Promise.resolve()
210
+ );
211
+ }
212
+ function go(e, t) {
213
+ const n = t.shift(), r = Mn(n);
214
+ return Promise.all(e.map((o) => r.run(() => o(...t))));
215
+ }
216
+ function ze(e, t) {
217
+ for (const n of [...e])
218
+ n(t);
219
+ }
220
+ class mo {
221
+ constructor() {
222
+ this._hooks = {}, this._before = void 0, this._after = void 0, this._deprecatedMessages = void 0, this._deprecatedHooks = {}, this.hook = this.hook.bind(this), this.callHook = this.callHook.bind(this), this.callHookWith = this.callHookWith.bind(this);
223
+ }
224
+ hook(t, n, r = {}) {
225
+ if (!t || typeof n != "function")
226
+ return () => {
227
+ };
228
+ const o = t;
229
+ let s;
230
+ for (; this._deprecatedHooks[t]; )
231
+ s = this._deprecatedHooks[t], t = s.to;
232
+ if (s && !r.allowDeprecated) {
233
+ let u = s.message;
234
+ u || (u = `${o} hook has been deprecated` + (s.to ? `, please use ${s.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(u) || (console.warn(u), this._deprecatedMessages.add(u));
235
+ }
236
+ if (!n.name)
237
+ try {
238
+ Object.defineProperty(n, "name", {
239
+ get: () => "_" + t.replace(/\W+/g, "_") + "_hook_cb",
240
+ configurable: !0
241
+ });
242
+ } catch {
243
+ }
244
+ return this._hooks[t] = this._hooks[t] || [], this._hooks[t].push(n), () => {
245
+ n && (this.removeHook(t, n), n = void 0);
246
+ };
247
+ }
248
+ hookOnce(t, n) {
249
+ let r, o = (...s) => (typeof r == "function" && r(), r = void 0, o = void 0, n(...s));
250
+ return r = this.hook(t, o), r;
251
+ }
252
+ removeHook(t, n) {
253
+ if (this._hooks[t]) {
254
+ const r = this._hooks[t].indexOf(n);
255
+ r !== -1 && this._hooks[t].splice(r, 1), this._hooks[t].length === 0 && delete this._hooks[t];
256
+ }
257
+ }
258
+ deprecateHook(t, n) {
259
+ this._deprecatedHooks[t] = typeof n == "string" ? { to: n } : n;
260
+ const r = this._hooks[t] || [];
261
+ delete this._hooks[t];
262
+ for (const o of r)
263
+ this.hook(t, o);
264
+ }
265
+ deprecateHooks(t) {
266
+ Object.assign(this._deprecatedHooks, t);
267
+ for (const n in t)
268
+ this.deprecateHook(n, t[n]);
269
+ }
270
+ addHooks(t) {
271
+ const n = Ze(t), r = Object.keys(n).map(
272
+ (o) => this.hook(o, n[o])
273
+ );
274
+ return () => {
275
+ for (const o of r.splice(0, r.length))
276
+ o();
277
+ };
278
+ }
279
+ removeHooks(t) {
280
+ const n = Ze(t);
281
+ for (const r in n)
282
+ this.removeHook(r, n[r]);
283
+ }
284
+ removeAllHooks() {
285
+ for (const t in this._hooks)
286
+ delete this._hooks[t];
287
+ }
288
+ callHook(t, ...n) {
289
+ return n.unshift(t), this.callHookWith(ho, t, ...n);
290
+ }
291
+ callHookParallel(t, ...n) {
292
+ return n.unshift(t), this.callHookWith(go, t, ...n);
293
+ }
294
+ callHookWith(t, n, ...r) {
295
+ const o = this._before || this._after ? { name: n, args: r, context: {} } : void 0;
296
+ this._before && ze(this._before, o);
297
+ const s = t(
298
+ n in this._hooks ? [...this._hooks[n]] : [],
299
+ r
300
+ );
301
+ return s instanceof Promise ? s.finally(() => {
302
+ this._after && o && ze(this._after, o);
303
+ }) : (this._after && o && ze(this._after, o), s);
304
+ }
305
+ beforeEach(t) {
306
+ return this._before = this._before || [], this._before.push(t), () => {
307
+ if (this._before !== void 0) {
308
+ const n = this._before.indexOf(t);
309
+ n !== -1 && this._before.splice(n, 1);
310
+ }
311
+ };
312
+ }
313
+ afterEach(t) {
314
+ return this._after = this._after || [], this._after.push(t), () => {
315
+ if (this._after !== void 0) {
316
+ const n = this._after.indexOf(t);
317
+ n !== -1 && this._after.splice(n, 1);
318
+ }
319
+ };
320
+ }
321
+ }
322
+ function $n() {
323
+ return new mo();
324
+ }
325
+ var vo = Object.create, Hn = Object.defineProperty, yo = Object.getOwnPropertyDescriptor, ct = Object.getOwnPropertyNames, Oo = Object.getPrototypeOf, Ao = Object.prototype.hasOwnProperty, So = (e, t) => function() {
326
+ return e && (t = (0, e[ct(e)[0]])(e = 0)), t;
327
+ }, Kn = (e, t) => function() {
328
+ return t || (0, e[ct(e)[0]])((t = { exports: {} }).exports, t), t.exports;
329
+ }, Co = (e, t, n, r) => {
330
+ if (t && typeof t == "object" || typeof t == "function")
331
+ for (let o of ct(t))
332
+ !Ao.call(e, o) && o !== n && Hn(e, o, { get: () => t[o], enumerable: !(r = yo(t, o)) || r.enumerable });
333
+ return e;
334
+ }, To = (e, t, n) => (n = e != null ? vo(Oo(e)) : {}, Co(
335
+ // If the importer is in node compatibility mode or this is not an ESM
336
+ // file that has been converted to a CommonJS file using a Babel-
337
+ // compatible transform (i.e. "__esModule" has not been set), then set
338
+ // "default" to the CommonJS "module.exports" for node compatibility.
339
+ Hn(n, "default", { value: e, enumerable: !0 }),
340
+ e
341
+ )), a = So({
342
+ "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
343
+ }
344
+ }), bo = Kn({
345
+ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e, t) {
346
+ a(), function(n) {
347
+ var r = {
348
+ // latin
349
+ À: "A",
350
+ Á: "A",
351
+ Â: "A",
352
+ Ã: "A",
353
+ Ä: "Ae",
354
+ Å: "A",
355
+ Æ: "AE",
356
+ Ç: "C",
357
+ È: "E",
358
+ É: "E",
359
+ Ê: "E",
360
+ Ë: "E",
361
+ Ì: "I",
362
+ Í: "I",
363
+ Î: "I",
364
+ Ï: "I",
365
+ Ð: "D",
366
+ Ñ: "N",
367
+ Ò: "O",
368
+ Ó: "O",
369
+ Ô: "O",
370
+ Õ: "O",
371
+ Ö: "Oe",
372
+ Ő: "O",
373
+ Ø: "O",
374
+ Ù: "U",
375
+ Ú: "U",
376
+ Û: "U",
377
+ Ü: "Ue",
378
+ Ű: "U",
379
+ Ý: "Y",
380
+ Þ: "TH",
381
+ ß: "ss",
382
+ à: "a",
383
+ á: "a",
384
+ â: "a",
385
+ ã: "a",
386
+ ä: "ae",
387
+ å: "a",
388
+ æ: "ae",
389
+ ç: "c",
390
+ è: "e",
391
+ é: "e",
392
+ ê: "e",
393
+ ë: "e",
394
+ ì: "i",
395
+ í: "i",
396
+ î: "i",
397
+ ï: "i",
398
+ ð: "d",
399
+ ñ: "n",
400
+ ò: "o",
401
+ ó: "o",
402
+ ô: "o",
403
+ õ: "o",
404
+ ö: "oe",
405
+ ő: "o",
406
+ ø: "o",
407
+ ù: "u",
408
+ ú: "u",
409
+ û: "u",
410
+ ü: "ue",
411
+ ű: "u",
412
+ ý: "y",
413
+ þ: "th",
414
+ ÿ: "y",
415
+ "ẞ": "SS",
416
+ // language specific
417
+ // Arabic
418
+ ا: "a",
419
+ أ: "a",
420
+ إ: "i",
421
+ آ: "aa",
422
+ ؤ: "u",
423
+ ئ: "e",
424
+ ء: "a",
425
+ ب: "b",
426
+ ت: "t",
427
+ ث: "th",
428
+ ج: "j",
429
+ ح: "h",
430
+ خ: "kh",
431
+ د: "d",
432
+ ذ: "th",
433
+ ر: "r",
434
+ ز: "z",
435
+ س: "s",
436
+ ش: "sh",
437
+ ص: "s",
438
+ ض: "dh",
439
+ ط: "t",
440
+ ظ: "z",
441
+ ع: "a",
442
+ غ: "gh",
443
+ ف: "f",
444
+ ق: "q",
445
+ ك: "k",
446
+ ل: "l",
447
+ م: "m",
448
+ ن: "n",
449
+ ه: "h",
450
+ و: "w",
451
+ ي: "y",
452
+ ى: "a",
453
+ ة: "h",
454
+ ﻻ: "la",
455
+ ﻷ: "laa",
456
+ ﻹ: "lai",
457
+ ﻵ: "laa",
458
+ // Persian additional characters than Arabic
459
+ گ: "g",
460
+ چ: "ch",
461
+ پ: "p",
462
+ ژ: "zh",
463
+ ک: "k",
464
+ ی: "y",
465
+ // Arabic diactrics
466
+ "َ": "a",
467
+ "ً": "an",
468
+ "ِ": "e",
469
+ "ٍ": "en",
470
+ "ُ": "u",
471
+ "ٌ": "on",
472
+ "ْ": "",
473
+ // Arabic numbers
474
+ "٠": "0",
475
+ "١": "1",
476
+ "٢": "2",
477
+ "٣": "3",
478
+ "٤": "4",
479
+ "٥": "5",
480
+ "٦": "6",
481
+ "٧": "7",
482
+ "٨": "8",
483
+ "٩": "9",
484
+ // Persian numbers
485
+ "۰": "0",
486
+ "۱": "1",
487
+ "۲": "2",
488
+ "۳": "3",
489
+ "۴": "4",
490
+ "۵": "5",
491
+ "۶": "6",
492
+ "۷": "7",
493
+ "۸": "8",
494
+ "۹": "9",
495
+ // Burmese consonants
496
+ က: "k",
497
+ ခ: "kh",
498
+ ဂ: "g",
499
+ ဃ: "ga",
500
+ င: "ng",
501
+ စ: "s",
502
+ ဆ: "sa",
503
+ ဇ: "z",
504
+ "စျ": "za",
505
+ ည: "ny",
506
+ ဋ: "t",
507
+ ဌ: "ta",
508
+ ဍ: "d",
509
+ ဎ: "da",
510
+ ဏ: "na",
511
+ တ: "t",
512
+ ထ: "ta",
513
+ ဒ: "d",
514
+ ဓ: "da",
515
+ န: "n",
516
+ ပ: "p",
517
+ ဖ: "pa",
518
+ ဗ: "b",
519
+ ဘ: "ba",
520
+ မ: "m",
521
+ ယ: "y",
522
+ ရ: "ya",
523
+ လ: "l",
524
+ ဝ: "w",
525
+ သ: "th",
526
+ ဟ: "h",
527
+ ဠ: "la",
528
+ အ: "a",
529
+ // consonant character combos
530
+ "ြ": "y",
531
+ "ျ": "ya",
532
+ "ွ": "w",
533
+ "ြွ": "yw",
534
+ "ျွ": "ywa",
535
+ "ှ": "h",
536
+ // independent vowels
537
+ ဧ: "e",
538
+ "၏": "-e",
539
+ ဣ: "i",
540
+ ဤ: "-i",
541
+ ဉ: "u",
542
+ ဦ: "-u",
543
+ ဩ: "aw",
544
+ "သြော": "aw",
545
+ ဪ: "aw",
546
+ // numbers
547
+ "၀": "0",
548
+ "၁": "1",
549
+ "၂": "2",
550
+ "၃": "3",
551
+ "၄": "4",
552
+ "၅": "5",
553
+ "၆": "6",
554
+ "၇": "7",
555
+ "၈": "8",
556
+ "၉": "9",
557
+ // virama and tone marks which are silent in transliteration
558
+ "္": "",
559
+ "့": "",
560
+ "း": "",
561
+ // Czech
562
+ č: "c",
563
+ ď: "d",
564
+ ě: "e",
565
+ ň: "n",
566
+ ř: "r",
567
+ š: "s",
568
+ ť: "t",
569
+ ů: "u",
570
+ ž: "z",
571
+ Č: "C",
572
+ Ď: "D",
573
+ Ě: "E",
574
+ Ň: "N",
575
+ Ř: "R",
576
+ Š: "S",
577
+ Ť: "T",
578
+ Ů: "U",
579
+ Ž: "Z",
580
+ // Dhivehi
581
+ ހ: "h",
582
+ ށ: "sh",
583
+ ނ: "n",
584
+ ރ: "r",
585
+ ބ: "b",
586
+ ޅ: "lh",
587
+ ކ: "k",
588
+ އ: "a",
589
+ ވ: "v",
590
+ މ: "m",
591
+ ފ: "f",
592
+ ދ: "dh",
593
+ ތ: "th",
594
+ ލ: "l",
595
+ ގ: "g",
596
+ ޏ: "gn",
597
+ ސ: "s",
598
+ ޑ: "d",
599
+ ޒ: "z",
600
+ ޓ: "t",
601
+ ޔ: "y",
602
+ ޕ: "p",
603
+ ޖ: "j",
604
+ ޗ: "ch",
605
+ ޘ: "tt",
606
+ ޙ: "hh",
607
+ ޚ: "kh",
608
+ ޛ: "th",
609
+ ޜ: "z",
610
+ ޝ: "sh",
611
+ ޞ: "s",
612
+ ޟ: "d",
613
+ ޠ: "t",
614
+ ޡ: "z",
615
+ ޢ: "a",
616
+ ޣ: "gh",
617
+ ޤ: "q",
618
+ ޥ: "w",
619
+ "ަ": "a",
620
+ "ާ": "aa",
621
+ "ި": "i",
622
+ "ީ": "ee",
623
+ "ު": "u",
624
+ "ޫ": "oo",
625
+ "ެ": "e",
626
+ "ޭ": "ey",
627
+ "ޮ": "o",
628
+ "ޯ": "oa",
629
+ "ް": "",
630
+ // Georgian https://en.wikipedia.org/wiki/Romanization_of_Georgian
631
+ // National system (2002)
632
+ ა: "a",
633
+ ბ: "b",
634
+ გ: "g",
635
+ დ: "d",
636
+ ე: "e",
637
+ ვ: "v",
638
+ ზ: "z",
639
+ თ: "t",
640
+ ი: "i",
641
+ კ: "k",
642
+ ლ: "l",
643
+ მ: "m",
644
+ ნ: "n",
645
+ ო: "o",
646
+ პ: "p",
647
+ ჟ: "zh",
648
+ რ: "r",
649
+ ს: "s",
650
+ ტ: "t",
651
+ უ: "u",
652
+ ფ: "p",
653
+ ქ: "k",
654
+ ღ: "gh",
655
+ ყ: "q",
656
+ შ: "sh",
657
+ ჩ: "ch",
658
+ ც: "ts",
659
+ ძ: "dz",
660
+ წ: "ts",
661
+ ჭ: "ch",
662
+ ხ: "kh",
663
+ ჯ: "j",
664
+ ჰ: "h",
665
+ // Greek
666
+ α: "a",
667
+ β: "v",
668
+ γ: "g",
669
+ δ: "d",
670
+ ε: "e",
671
+ ζ: "z",
672
+ η: "i",
673
+ θ: "th",
674
+ ι: "i",
675
+ κ: "k",
676
+ λ: "l",
677
+ μ: "m",
678
+ ν: "n",
679
+ ξ: "ks",
680
+ ο: "o",
681
+ π: "p",
682
+ ρ: "r",
683
+ σ: "s",
684
+ τ: "t",
685
+ υ: "y",
686
+ φ: "f",
687
+ χ: "x",
688
+ ψ: "ps",
689
+ ω: "o",
690
+ ά: "a",
691
+ έ: "e",
692
+ ί: "i",
693
+ ό: "o",
694
+ ύ: "y",
695
+ ή: "i",
696
+ ώ: "o",
697
+ ς: "s",
698
+ ϊ: "i",
699
+ ΰ: "y",
700
+ ϋ: "y",
701
+ ΐ: "i",
702
+ Α: "A",
703
+ Β: "B",
704
+ Γ: "G",
705
+ Δ: "D",
706
+ Ε: "E",
707
+ Ζ: "Z",
708
+ Η: "I",
709
+ Θ: "TH",
710
+ Ι: "I",
711
+ Κ: "K",
712
+ Λ: "L",
713
+ Μ: "M",
714
+ Ν: "N",
715
+ Ξ: "KS",
716
+ Ο: "O",
717
+ Π: "P",
718
+ Ρ: "R",
719
+ Σ: "S",
720
+ Τ: "T",
721
+ Υ: "Y",
722
+ Φ: "F",
723
+ Χ: "X",
724
+ Ψ: "PS",
725
+ Ω: "O",
726
+ Ά: "A",
727
+ Έ: "E",
728
+ Ί: "I",
729
+ Ό: "O",
730
+ Ύ: "Y",
731
+ Ή: "I",
732
+ Ώ: "O",
733
+ Ϊ: "I",
734
+ Ϋ: "Y",
735
+ // Latvian
736
+ ā: "a",
737
+ // 'č': 'c', // duplicate
738
+ ē: "e",
739
+ ģ: "g",
740
+ ī: "i",
741
+ ķ: "k",
742
+ ļ: "l",
743
+ ņ: "n",
744
+ // 'š': 's', // duplicate
745
+ ū: "u",
746
+ // 'ž': 'z', // duplicate
747
+ Ā: "A",
748
+ // 'Č': 'C', // duplicate
749
+ Ē: "E",
750
+ Ģ: "G",
751
+ Ī: "I",
752
+ Ķ: "k",
753
+ Ļ: "L",
754
+ Ņ: "N",
755
+ // 'Š': 'S', // duplicate
756
+ Ū: "U",
757
+ // 'Ž': 'Z', // duplicate
758
+ // Macedonian
759
+ Ќ: "Kj",
760
+ ќ: "kj",
761
+ Љ: "Lj",
762
+ љ: "lj",
763
+ Њ: "Nj",
764
+ њ: "nj",
765
+ Тс: "Ts",
766
+ тс: "ts",
767
+ // Polish
768
+ ą: "a",
769
+ ć: "c",
770
+ ę: "e",
771
+ ł: "l",
772
+ ń: "n",
773
+ // 'ó': 'o', // duplicate
774
+ ś: "s",
775
+ ź: "z",
776
+ ż: "z",
777
+ Ą: "A",
778
+ Ć: "C",
779
+ Ę: "E",
780
+ Ł: "L",
781
+ Ń: "N",
782
+ Ś: "S",
783
+ Ź: "Z",
784
+ Ż: "Z",
785
+ // Ukranian
786
+ Є: "Ye",
787
+ І: "I",
788
+ Ї: "Yi",
789
+ Ґ: "G",
790
+ є: "ye",
791
+ і: "i",
792
+ ї: "yi",
793
+ ґ: "g",
794
+ // Romanian
795
+ ă: "a",
796
+ Ă: "A",
797
+ ș: "s",
798
+ Ș: "S",
799
+ // 'ş': 's', // duplicate
800
+ // 'Ş': 'S', // duplicate
801
+ ț: "t",
802
+ Ț: "T",
803
+ ţ: "t",
804
+ Ţ: "T",
805
+ // Russian https://en.wikipedia.org/wiki/Romanization_of_Russian
806
+ // ICAO
807
+ а: "a",
808
+ б: "b",
809
+ в: "v",
810
+ г: "g",
811
+ д: "d",
812
+ е: "e",
813
+ ё: "yo",
814
+ ж: "zh",
815
+ з: "z",
816
+ и: "i",
817
+ й: "i",
818
+ к: "k",
819
+ л: "l",
820
+ м: "m",
821
+ н: "n",
822
+ о: "o",
823
+ п: "p",
824
+ р: "r",
825
+ с: "s",
826
+ т: "t",
827
+ у: "u",
828
+ ф: "f",
829
+ х: "kh",
830
+ ц: "c",
831
+ ч: "ch",
832
+ ш: "sh",
833
+ щ: "sh",
834
+ ъ: "",
835
+ ы: "y",
836
+ ь: "",
837
+ э: "e",
838
+ ю: "yu",
839
+ я: "ya",
840
+ А: "A",
841
+ Б: "B",
842
+ В: "V",
843
+ Г: "G",
844
+ Д: "D",
845
+ Е: "E",
846
+ Ё: "Yo",
847
+ Ж: "Zh",
848
+ З: "Z",
849
+ И: "I",
850
+ Й: "I",
851
+ К: "K",
852
+ Л: "L",
853
+ М: "M",
854
+ Н: "N",
855
+ О: "O",
856
+ П: "P",
857
+ Р: "R",
858
+ С: "S",
859
+ Т: "T",
860
+ У: "U",
861
+ Ф: "F",
862
+ Х: "Kh",
863
+ Ц: "C",
864
+ Ч: "Ch",
865
+ Ш: "Sh",
866
+ Щ: "Sh",
867
+ Ъ: "",
868
+ Ы: "Y",
869
+ Ь: "",
870
+ Э: "E",
871
+ Ю: "Yu",
872
+ Я: "Ya",
873
+ // Serbian
874
+ ђ: "dj",
875
+ ј: "j",
876
+ // 'љ': 'lj', // duplicate
877
+ // 'њ': 'nj', // duplicate
878
+ ћ: "c",
879
+ џ: "dz",
880
+ Ђ: "Dj",
881
+ Ј: "j",
882
+ // 'Љ': 'Lj', // duplicate
883
+ // 'Њ': 'Nj', // duplicate
884
+ Ћ: "C",
885
+ Џ: "Dz",
886
+ // Slovak
887
+ ľ: "l",
888
+ ĺ: "l",
889
+ ŕ: "r",
890
+ Ľ: "L",
891
+ Ĺ: "L",
892
+ Ŕ: "R",
893
+ // Turkish
894
+ ş: "s",
895
+ Ş: "S",
896
+ ı: "i",
897
+ İ: "I",
898
+ // 'ç': 'c', // duplicate
899
+ // 'Ç': 'C', // duplicate
900
+ // 'ü': 'u', // duplicate, see langCharMap
901
+ // 'Ü': 'U', // duplicate, see langCharMap
902
+ // 'ö': 'o', // duplicate, see langCharMap
903
+ // 'Ö': 'O', // duplicate, see langCharMap
904
+ ğ: "g",
905
+ Ğ: "G",
906
+ // Vietnamese
907
+ ả: "a",
908
+ Ả: "A",
909
+ ẳ: "a",
910
+ Ẳ: "A",
911
+ ẩ: "a",
912
+ Ẩ: "A",
913
+ đ: "d",
914
+ Đ: "D",
915
+ ẹ: "e",
916
+ Ẹ: "E",
917
+ ẽ: "e",
918
+ Ẽ: "E",
919
+ ẻ: "e",
920
+ Ẻ: "E",
921
+ ế: "e",
922
+ Ế: "E",
923
+ ề: "e",
924
+ Ề: "E",
925
+ ệ: "e",
926
+ Ệ: "E",
927
+ ễ: "e",
928
+ Ễ: "E",
929
+ ể: "e",
930
+ Ể: "E",
931
+ ỏ: "o",
932
+ ọ: "o",
933
+ Ọ: "o",
934
+ ố: "o",
935
+ Ố: "O",
936
+ ồ: "o",
937
+ Ồ: "O",
938
+ ổ: "o",
939
+ Ổ: "O",
940
+ ộ: "o",
941
+ Ộ: "O",
942
+ ỗ: "o",
943
+ Ỗ: "O",
944
+ ơ: "o",
945
+ Ơ: "O",
946
+ ớ: "o",
947
+ Ớ: "O",
948
+ ờ: "o",
949
+ Ờ: "O",
950
+ ợ: "o",
951
+ Ợ: "O",
952
+ ỡ: "o",
953
+ Ỡ: "O",
954
+ Ở: "o",
955
+ ở: "o",
956
+ ị: "i",
957
+ Ị: "I",
958
+ ĩ: "i",
959
+ Ĩ: "I",
960
+ ỉ: "i",
961
+ Ỉ: "i",
962
+ ủ: "u",
963
+ Ủ: "U",
964
+ ụ: "u",
965
+ Ụ: "U",
966
+ ũ: "u",
967
+ Ũ: "U",
968
+ ư: "u",
969
+ Ư: "U",
970
+ ứ: "u",
971
+ Ứ: "U",
972
+ ừ: "u",
973
+ Ừ: "U",
974
+ ự: "u",
975
+ Ự: "U",
976
+ ữ: "u",
977
+ Ữ: "U",
978
+ ử: "u",
979
+ Ử: "ư",
980
+ ỷ: "y",
981
+ Ỷ: "y",
982
+ ỳ: "y",
983
+ Ỳ: "Y",
984
+ ỵ: "y",
985
+ Ỵ: "Y",
986
+ ỹ: "y",
987
+ Ỹ: "Y",
988
+ ạ: "a",
989
+ Ạ: "A",
990
+ ấ: "a",
991
+ Ấ: "A",
992
+ ầ: "a",
993
+ Ầ: "A",
994
+ ậ: "a",
995
+ Ậ: "A",
996
+ ẫ: "a",
997
+ Ẫ: "A",
998
+ // 'ă': 'a', // duplicate
999
+ // 'Ă': 'A', // duplicate
1000
+ ắ: "a",
1001
+ Ắ: "A",
1002
+ ằ: "a",
1003
+ Ằ: "A",
1004
+ ặ: "a",
1005
+ Ặ: "A",
1006
+ ẵ: "a",
1007
+ Ẵ: "A",
1008
+ "⓪": "0",
1009
+ "①": "1",
1010
+ "②": "2",
1011
+ "③": "3",
1012
+ "④": "4",
1013
+ "⑤": "5",
1014
+ "⑥": "6",
1015
+ "⑦": "7",
1016
+ "⑧": "8",
1017
+ "⑨": "9",
1018
+ "⑩": "10",
1019
+ "⑪": "11",
1020
+ "⑫": "12",
1021
+ "⑬": "13",
1022
+ "⑭": "14",
1023
+ "⑮": "15",
1024
+ "⑯": "16",
1025
+ "⑰": "17",
1026
+ "⑱": "18",
1027
+ "⑲": "18",
1028
+ "⑳": "18",
1029
+ "⓵": "1",
1030
+ "⓶": "2",
1031
+ "⓷": "3",
1032
+ "⓸": "4",
1033
+ "⓹": "5",
1034
+ "⓺": "6",
1035
+ "⓻": "7",
1036
+ "⓼": "8",
1037
+ "⓽": "9",
1038
+ "⓾": "10",
1039
+ "⓿": "0",
1040
+ "⓫": "11",
1041
+ "⓬": "12",
1042
+ "⓭": "13",
1043
+ "⓮": "14",
1044
+ "⓯": "15",
1045
+ "⓰": "16",
1046
+ "⓱": "17",
1047
+ "⓲": "18",
1048
+ "⓳": "19",
1049
+ "⓴": "20",
1050
+ "Ⓐ": "A",
1051
+ "Ⓑ": "B",
1052
+ "Ⓒ": "C",
1053
+ "Ⓓ": "D",
1054
+ "Ⓔ": "E",
1055
+ "Ⓕ": "F",
1056
+ "Ⓖ": "G",
1057
+ "Ⓗ": "H",
1058
+ "Ⓘ": "I",
1059
+ "Ⓙ": "J",
1060
+ "Ⓚ": "K",
1061
+ "Ⓛ": "L",
1062
+ "Ⓜ": "M",
1063
+ "Ⓝ": "N",
1064
+ "Ⓞ": "O",
1065
+ "Ⓟ": "P",
1066
+ "Ⓠ": "Q",
1067
+ "Ⓡ": "R",
1068
+ "Ⓢ": "S",
1069
+ "Ⓣ": "T",
1070
+ "Ⓤ": "U",
1071
+ "Ⓥ": "V",
1072
+ "Ⓦ": "W",
1073
+ "Ⓧ": "X",
1074
+ "Ⓨ": "Y",
1075
+ "Ⓩ": "Z",
1076
+ "ⓐ": "a",
1077
+ "ⓑ": "b",
1078
+ "ⓒ": "c",
1079
+ "ⓓ": "d",
1080
+ "ⓔ": "e",
1081
+ "ⓕ": "f",
1082
+ "ⓖ": "g",
1083
+ "ⓗ": "h",
1084
+ "ⓘ": "i",
1085
+ "ⓙ": "j",
1086
+ "ⓚ": "k",
1087
+ "ⓛ": "l",
1088
+ "ⓜ": "m",
1089
+ "ⓝ": "n",
1090
+ "ⓞ": "o",
1091
+ "ⓟ": "p",
1092
+ "ⓠ": "q",
1093
+ "ⓡ": "r",
1094
+ "ⓢ": "s",
1095
+ "ⓣ": "t",
1096
+ "ⓤ": "u",
1097
+ "ⓦ": "v",
1098
+ "ⓥ": "w",
1099
+ "ⓧ": "x",
1100
+ "ⓨ": "y",
1101
+ "ⓩ": "z",
1102
+ // symbols
1103
+ "“": '"',
1104
+ "”": '"',
1105
+ "‘": "'",
1106
+ "’": "'",
1107
+ "∂": "d",
1108
+ ƒ: "f",
1109
+ "™": "(TM)",
1110
+ "©": "(C)",
1111
+ œ: "oe",
1112
+ Œ: "OE",
1113
+ "®": "(R)",
1114
+ "†": "+",
1115
+ "℠": "(SM)",
1116
+ "…": "...",
1117
+ "˚": "o",
1118
+ º: "o",
1119
+ ª: "a",
1120
+ "•": "*",
1121
+ "၊": ",",
1122
+ "။": ".",
1123
+ // currency
1124
+ $: "USD",
1125
+ "€": "EUR",
1126
+ "₢": "BRN",
1127
+ "₣": "FRF",
1128
+ "£": "GBP",
1129
+ "₤": "ITL",
1130
+ "₦": "NGN",
1131
+ "₧": "ESP",
1132
+ "₩": "KRW",
1133
+ "₪": "ILS",
1134
+ "₫": "VND",
1135
+ "₭": "LAK",
1136
+ "₮": "MNT",
1137
+ "₯": "GRD",
1138
+ "₱": "ARS",
1139
+ "₲": "PYG",
1140
+ "₳": "ARA",
1141
+ "₴": "UAH",
1142
+ "₵": "GHS",
1143
+ "¢": "cent",
1144
+ "¥": "CNY",
1145
+ 元: "CNY",
1146
+ 円: "YEN",
1147
+ "﷼": "IRR",
1148
+ "₠": "EWE",
1149
+ "฿": "THB",
1150
+ "₨": "INR",
1151
+ "₹": "INR",
1152
+ "₰": "PF",
1153
+ "₺": "TRY",
1154
+ "؋": "AFN",
1155
+ "₼": "AZN",
1156
+ лв: "BGN",
1157
+ "៛": "KHR",
1158
+ "₡": "CRC",
1159
+ "₸": "KZT",
1160
+ ден: "MKD",
1161
+ zł: "PLN",
1162
+ "₽": "RUB",
1163
+ "₾": "GEL"
1164
+ }, o = [
1165
+ // burmese
1166
+ "်",
1167
+ // Dhivehi
1168
+ "ް"
1169
+ ], s = {
1170
+ // Burmese
1171
+ // dependent vowels
1172
+ "ာ": "a",
1173
+ "ါ": "a",
1174
+ "ေ": "e",
1175
+ "ဲ": "e",
1176
+ "ိ": "i",
1177
+ "ီ": "i",
1178
+ "ို": "o",
1179
+ "ု": "u",
1180
+ "ူ": "u",
1181
+ "ေါင်": "aung",
1182
+ "ော": "aw",
1183
+ "ော်": "aw",
1184
+ "ေါ": "aw",
1185
+ "ေါ်": "aw",
1186
+ "်": "်",
1187
+ // this is special case but the character will be converted to latin in the code
1188
+ "က်": "et",
1189
+ "ိုက်": "aik",
1190
+ "ောက်": "auk",
1191
+ "င်": "in",
1192
+ "ိုင်": "aing",
1193
+ "ောင်": "aung",
1194
+ "စ်": "it",
1195
+ "ည်": "i",
1196
+ "တ်": "at",
1197
+ "ိတ်": "eik",
1198
+ "ုတ်": "ok",
1199
+ "ွတ်": "ut",
1200
+ "ေတ်": "it",
1201
+ "ဒ်": "d",
1202
+ "ိုဒ်": "ok",
1203
+ "ုဒ်": "ait",
1204
+ "န်": "an",
1205
+ "ာန်": "an",
1206
+ "ိန်": "ein",
1207
+ "ုန်": "on",
1208
+ "ွန်": "un",
1209
+ "ပ်": "at",
1210
+ "ိပ်": "eik",
1211
+ "ုပ်": "ok",
1212
+ "ွပ်": "ut",
1213
+ "န်ုပ်": "nub",
1214
+ "မ်": "an",
1215
+ "ိမ်": "ein",
1216
+ "ုမ်": "on",
1217
+ "ွမ်": "un",
1218
+ "ယ်": "e",
1219
+ "ိုလ်": "ol",
1220
+ "ဉ်": "in",
1221
+ "ံ": "an",
1222
+ "ိံ": "ein",
1223
+ "ုံ": "on",
1224
+ // Dhivehi
1225
+ "ައް": "ah",
1226
+ "ަށް": "ah"
1227
+ }, u = {
1228
+ en: {},
1229
+ // default language
1230
+ az: {
1231
+ // Azerbaijani
1232
+ ç: "c",
1233
+ ə: "e",
1234
+ ğ: "g",
1235
+ ı: "i",
1236
+ ö: "o",
1237
+ ş: "s",
1238
+ ü: "u",
1239
+ Ç: "C",
1240
+ Ə: "E",
1241
+ Ğ: "G",
1242
+ İ: "I",
1243
+ Ö: "O",
1244
+ Ş: "S",
1245
+ Ü: "U"
1246
+ },
1247
+ cs: {
1248
+ // Czech
1249
+ č: "c",
1250
+ ď: "d",
1251
+ ě: "e",
1252
+ ň: "n",
1253
+ ř: "r",
1254
+ š: "s",
1255
+ ť: "t",
1256
+ ů: "u",
1257
+ ž: "z",
1258
+ Č: "C",
1259
+ Ď: "D",
1260
+ Ě: "E",
1261
+ Ň: "N",
1262
+ Ř: "R",
1263
+ Š: "S",
1264
+ Ť: "T",
1265
+ Ů: "U",
1266
+ Ž: "Z"
1267
+ },
1268
+ fi: {
1269
+ // Finnish
1270
+ // 'å': 'a', duplicate see charMap/latin
1271
+ // 'Å': 'A', duplicate see charMap/latin
1272
+ ä: "a",
1273
+ // ok
1274
+ Ä: "A",
1275
+ // ok
1276
+ ö: "o",
1277
+ // ok
1278
+ Ö: "O"
1279
+ // ok
1280
+ },
1281
+ hu: {
1282
+ // Hungarian
1283
+ ä: "a",
1284
+ // ok
1285
+ Ä: "A",
1286
+ // ok
1287
+ // 'á': 'a', duplicate see charMap/latin
1288
+ // 'Á': 'A', duplicate see charMap/latin
1289
+ ö: "o",
1290
+ // ok
1291
+ Ö: "O",
1292
+ // ok
1293
+ // 'ő': 'o', duplicate see charMap/latin
1294
+ // 'Ő': 'O', duplicate see charMap/latin
1295
+ ü: "u",
1296
+ Ü: "U",
1297
+ ű: "u",
1298
+ Ű: "U"
1299
+ },
1300
+ lt: {
1301
+ // Lithuanian
1302
+ ą: "a",
1303
+ č: "c",
1304
+ ę: "e",
1305
+ ė: "e",
1306
+ į: "i",
1307
+ š: "s",
1308
+ ų: "u",
1309
+ ū: "u",
1310
+ ž: "z",
1311
+ Ą: "A",
1312
+ Č: "C",
1313
+ Ę: "E",
1314
+ Ė: "E",
1315
+ Į: "I",
1316
+ Š: "S",
1317
+ Ų: "U",
1318
+ Ū: "U"
1319
+ },
1320
+ lv: {
1321
+ // Latvian
1322
+ ā: "a",
1323
+ č: "c",
1324
+ ē: "e",
1325
+ ģ: "g",
1326
+ ī: "i",
1327
+ ķ: "k",
1328
+ ļ: "l",
1329
+ ņ: "n",
1330
+ š: "s",
1331
+ ū: "u",
1332
+ ž: "z",
1333
+ Ā: "A",
1334
+ Č: "C",
1335
+ Ē: "E",
1336
+ Ģ: "G",
1337
+ Ī: "i",
1338
+ Ķ: "k",
1339
+ Ļ: "L",
1340
+ Ņ: "N",
1341
+ Š: "S",
1342
+ Ū: "u",
1343
+ Ž: "Z"
1344
+ },
1345
+ pl: {
1346
+ // Polish
1347
+ ą: "a",
1348
+ ć: "c",
1349
+ ę: "e",
1350
+ ł: "l",
1351
+ ń: "n",
1352
+ ó: "o",
1353
+ ś: "s",
1354
+ ź: "z",
1355
+ ż: "z",
1356
+ Ą: "A",
1357
+ Ć: "C",
1358
+ Ę: "e",
1359
+ Ł: "L",
1360
+ Ń: "N",
1361
+ Ó: "O",
1362
+ Ś: "S",
1363
+ Ź: "Z",
1364
+ Ż: "Z"
1365
+ },
1366
+ sv: {
1367
+ // Swedish
1368
+ // 'å': 'a', duplicate see charMap/latin
1369
+ // 'Å': 'A', duplicate see charMap/latin
1370
+ ä: "a",
1371
+ // ok
1372
+ Ä: "A",
1373
+ // ok
1374
+ ö: "o",
1375
+ // ok
1376
+ Ö: "O"
1377
+ // ok
1378
+ },
1379
+ sk: {
1380
+ // Slovak
1381
+ ä: "a",
1382
+ Ä: "A"
1383
+ },
1384
+ sr: {
1385
+ // Serbian
1386
+ љ: "lj",
1387
+ њ: "nj",
1388
+ Љ: "Lj",
1389
+ Њ: "Nj",
1390
+ đ: "dj",
1391
+ Đ: "Dj"
1392
+ },
1393
+ tr: {
1394
+ // Turkish
1395
+ Ü: "U",
1396
+ Ö: "O",
1397
+ ü: "u",
1398
+ ö: "o"
1399
+ }
1400
+ }, i = {
1401
+ ar: {
1402
+ "∆": "delta",
1403
+ "∞": "la-nihaya",
1404
+ "♥": "hob",
1405
+ "&": "wa",
1406
+ "|": "aw",
1407
+ "<": "aqal-men",
1408
+ ">": "akbar-men",
1409
+ "∑": "majmou",
1410
+ "¤": "omla"
1411
+ },
1412
+ az: {},
1413
+ ca: {
1414
+ "∆": "delta",
1415
+ "∞": "infinit",
1416
+ "♥": "amor",
1417
+ "&": "i",
1418
+ "|": "o",
1419
+ "<": "menys que",
1420
+ ">": "mes que",
1421
+ "∑": "suma dels",
1422
+ "¤": "moneda"
1423
+ },
1424
+ cs: {
1425
+ "∆": "delta",
1426
+ "∞": "nekonecno",
1427
+ "♥": "laska",
1428
+ "&": "a",
1429
+ "|": "nebo",
1430
+ "<": "mensi nez",
1431
+ ">": "vetsi nez",
1432
+ "∑": "soucet",
1433
+ "¤": "mena"
1434
+ },
1435
+ de: {
1436
+ "∆": "delta",
1437
+ "∞": "unendlich",
1438
+ "♥": "Liebe",
1439
+ "&": "und",
1440
+ "|": "oder",
1441
+ "<": "kleiner als",
1442
+ ">": "groesser als",
1443
+ "∑": "Summe von",
1444
+ "¤": "Waehrung"
1445
+ },
1446
+ dv: {
1447
+ "∆": "delta",
1448
+ "∞": "kolunulaa",
1449
+ "♥": "loabi",
1450
+ "&": "aai",
1451
+ "|": "noonee",
1452
+ "<": "ah vure kuda",
1453
+ ">": "ah vure bodu",
1454
+ "∑": "jumula",
1455
+ "¤": "faisaa"
1456
+ },
1457
+ en: {
1458
+ "∆": "delta",
1459
+ "∞": "infinity",
1460
+ "♥": "love",
1461
+ "&": "and",
1462
+ "|": "or",
1463
+ "<": "less than",
1464
+ ">": "greater than",
1465
+ "∑": "sum",
1466
+ "¤": "currency"
1467
+ },
1468
+ es: {
1469
+ "∆": "delta",
1470
+ "∞": "infinito",
1471
+ "♥": "amor",
1472
+ "&": "y",
1473
+ "|": "u",
1474
+ "<": "menos que",
1475
+ ">": "mas que",
1476
+ "∑": "suma de los",
1477
+ "¤": "moneda"
1478
+ },
1479
+ fa: {
1480
+ "∆": "delta",
1481
+ "∞": "bi-nahayat",
1482
+ "♥": "eshgh",
1483
+ "&": "va",
1484
+ "|": "ya",
1485
+ "<": "kamtar-az",
1486
+ ">": "bishtar-az",
1487
+ "∑": "majmooe",
1488
+ "¤": "vahed"
1489
+ },
1490
+ fi: {
1491
+ "∆": "delta",
1492
+ "∞": "aarettomyys",
1493
+ "♥": "rakkaus",
1494
+ "&": "ja",
1495
+ "|": "tai",
1496
+ "<": "pienempi kuin",
1497
+ ">": "suurempi kuin",
1498
+ "∑": "summa",
1499
+ "¤": "valuutta"
1500
+ },
1501
+ fr: {
1502
+ "∆": "delta",
1503
+ "∞": "infiniment",
1504
+ "♥": "Amour",
1505
+ "&": "et",
1506
+ "|": "ou",
1507
+ "<": "moins que",
1508
+ ">": "superieure a",
1509
+ "∑": "somme des",
1510
+ "¤": "monnaie"
1511
+ },
1512
+ ge: {
1513
+ "∆": "delta",
1514
+ "∞": "usasruloba",
1515
+ "♥": "siqvaruli",
1516
+ "&": "da",
1517
+ "|": "an",
1518
+ "<": "naklebi",
1519
+ ">": "meti",
1520
+ "∑": "jami",
1521
+ "¤": "valuta"
1522
+ },
1523
+ gr: {},
1524
+ hu: {
1525
+ "∆": "delta",
1526
+ "∞": "vegtelen",
1527
+ "♥": "szerelem",
1528
+ "&": "es",
1529
+ "|": "vagy",
1530
+ "<": "kisebb mint",
1531
+ ">": "nagyobb mint",
1532
+ "∑": "szumma",
1533
+ "¤": "penznem"
1534
+ },
1535
+ it: {
1536
+ "∆": "delta",
1537
+ "∞": "infinito",
1538
+ "♥": "amore",
1539
+ "&": "e",
1540
+ "|": "o",
1541
+ "<": "minore di",
1542
+ ">": "maggiore di",
1543
+ "∑": "somma",
1544
+ "¤": "moneta"
1545
+ },
1546
+ lt: {
1547
+ "∆": "delta",
1548
+ "∞": "begalybe",
1549
+ "♥": "meile",
1550
+ "&": "ir",
1551
+ "|": "ar",
1552
+ "<": "maziau nei",
1553
+ ">": "daugiau nei",
1554
+ "∑": "suma",
1555
+ "¤": "valiuta"
1556
+ },
1557
+ lv: {
1558
+ "∆": "delta",
1559
+ "∞": "bezgaliba",
1560
+ "♥": "milestiba",
1561
+ "&": "un",
1562
+ "|": "vai",
1563
+ "<": "mazak neka",
1564
+ ">": "lielaks neka",
1565
+ "∑": "summa",
1566
+ "¤": "valuta"
1567
+ },
1568
+ my: {
1569
+ "∆": "kwahkhyaet",
1570
+ "∞": "asaonasme",
1571
+ "♥": "akhyait",
1572
+ "&": "nhin",
1573
+ "|": "tho",
1574
+ "<": "ngethaw",
1575
+ ">": "kyithaw",
1576
+ "∑": "paungld",
1577
+ "¤": "ngwekye"
1578
+ },
1579
+ mk: {},
1580
+ nl: {
1581
+ "∆": "delta",
1582
+ "∞": "oneindig",
1583
+ "♥": "liefde",
1584
+ "&": "en",
1585
+ "|": "of",
1586
+ "<": "kleiner dan",
1587
+ ">": "groter dan",
1588
+ "∑": "som",
1589
+ "¤": "valuta"
1590
+ },
1591
+ pl: {
1592
+ "∆": "delta",
1593
+ "∞": "nieskonczonosc",
1594
+ "♥": "milosc",
1595
+ "&": "i",
1596
+ "|": "lub",
1597
+ "<": "mniejsze niz",
1598
+ ">": "wieksze niz",
1599
+ "∑": "suma",
1600
+ "¤": "waluta"
1601
+ },
1602
+ pt: {
1603
+ "∆": "delta",
1604
+ "∞": "infinito",
1605
+ "♥": "amor",
1606
+ "&": "e",
1607
+ "|": "ou",
1608
+ "<": "menor que",
1609
+ ">": "maior que",
1610
+ "∑": "soma",
1611
+ "¤": "moeda"
1612
+ },
1613
+ ro: {
1614
+ "∆": "delta",
1615
+ "∞": "infinit",
1616
+ "♥": "dragoste",
1617
+ "&": "si",
1618
+ "|": "sau",
1619
+ "<": "mai mic ca",
1620
+ ">": "mai mare ca",
1621
+ "∑": "suma",
1622
+ "¤": "valuta"
1623
+ },
1624
+ ru: {
1625
+ "∆": "delta",
1626
+ "∞": "beskonechno",
1627
+ "♥": "lubov",
1628
+ "&": "i",
1629
+ "|": "ili",
1630
+ "<": "menshe",
1631
+ ">": "bolshe",
1632
+ "∑": "summa",
1633
+ "¤": "valjuta"
1634
+ },
1635
+ sk: {
1636
+ "∆": "delta",
1637
+ "∞": "nekonecno",
1638
+ "♥": "laska",
1639
+ "&": "a",
1640
+ "|": "alebo",
1641
+ "<": "menej ako",
1642
+ ">": "viac ako",
1643
+ "∑": "sucet",
1644
+ "¤": "mena"
1645
+ },
1646
+ sr: {},
1647
+ tr: {
1648
+ "∆": "delta",
1649
+ "∞": "sonsuzluk",
1650
+ "♥": "ask",
1651
+ "&": "ve",
1652
+ "|": "veya",
1653
+ "<": "kucuktur",
1654
+ ">": "buyuktur",
1655
+ "∑": "toplam",
1656
+ "¤": "para birimi"
1657
+ },
1658
+ uk: {
1659
+ "∆": "delta",
1660
+ "∞": "bezkinechnist",
1661
+ "♥": "lubov",
1662
+ "&": "i",
1663
+ "|": "abo",
1664
+ "<": "menshe",
1665
+ ">": "bilshe",
1666
+ "∑": "suma",
1667
+ "¤": "valjuta"
1668
+ },
1669
+ vn: {
1670
+ "∆": "delta",
1671
+ "∞": "vo cuc",
1672
+ "♥": "yeu",
1673
+ "&": "va",
1674
+ "|": "hoac",
1675
+ "<": "nho hon",
1676
+ ">": "lon hon",
1677
+ "∑": "tong",
1678
+ "¤": "tien te"
1679
+ }
1680
+ }, l = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), c = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), m = [".", "!", "~", "*", "'", "(", ")"].join(""), f = function(h, g) {
1681
+ var b = "-", T = "", V = "", B = !0, L = {}, S, ne, x, v, p, D, P, M, X, $, C, z, w, J, W = "";
1682
+ if (typeof h != "string")
1683
+ return "";
1684
+ if (typeof g == "string" && (b = g), P = i.en, M = u.en, typeof g == "object") {
1685
+ S = g.maintainCase || !1, L = g.custom && typeof g.custom == "object" ? g.custom : L, x = +g.truncate > 1 && g.truncate || !1, v = g.uric || !1, p = g.uricNoSlash || !1, D = g.mark || !1, B = !(g.symbols === !1 || g.lang === !1), b = g.separator || b, v && (W += l), p && (W += c), D && (W += m), P = g.lang && i[g.lang] && B ? i[g.lang] : B ? i.en : {}, M = g.lang && u[g.lang] ? u[g.lang] : g.lang === !1 || g.lang === !0 ? {} : u.en, g.titleCase && typeof g.titleCase.length == "number" && Array.prototype.toString.call(g.titleCase) ? (g.titleCase.forEach(function(H) {
1686
+ L[H + ""] = H + "";
1687
+ }), ne = !0) : ne = !!g.titleCase, g.custom && typeof g.custom.length == "number" && Array.prototype.toString.call(g.custom) && g.custom.forEach(function(H) {
1688
+ L[H + ""] = H + "";
1689
+ }), Object.keys(L).forEach(function(H) {
1690
+ var re;
1691
+ H.length > 1 ? re = new RegExp("\\b" + d(H) + "\\b", "gi") : re = new RegExp(d(H), "gi"), h = h.replace(re, L[H]);
1692
+ });
1693
+ for (C in L)
1694
+ W += C;
1695
+ }
1696
+ for (W += b, W = d(W), h = h.replace(/(^\s+|\s+$)/g, ""), w = !1, J = !1, $ = 0, z = h.length; $ < z; $++)
1697
+ C = h[$], _(C, L) ? w = !1 : M[C] ? (C = w && M[C].match(/[A-Za-z0-9]/) ? " " + M[C] : M[C], w = !1) : C in r ? ($ + 1 < z && o.indexOf(h[$ + 1]) >= 0 ? (V += C, C = "") : J === !0 ? (C = s[V] + r[C], V = "") : C = w && r[C].match(/[A-Za-z0-9]/) ? " " + r[C] : r[C], w = !1, J = !1) : C in s ? (V += C, C = "", $ === z - 1 && (C = s[V]), J = !0) : /* process symbol chars */ P[C] && !(v && l.indexOf(C) !== -1) && !(p && c.indexOf(C) !== -1) ? (C = w || T.substr(-1).match(/[A-Za-z0-9]/) ? b + P[C] : P[C], C += h[$ + 1] !== void 0 && h[$ + 1].match(/[A-Za-z0-9]/) ? b : "", w = !0) : (J === !0 ? (C = s[V] + C, V = "", J = !1) : w && (/[A-Za-z0-9]/.test(C) || T.substr(-1).match(/A-Za-z0-9]/)) && (C = " " + C), w = !1), T += C.replace(new RegExp("[^\\w\\s" + W + "_-]", "g"), b);
1698
+ return ne && (T = T.replace(/(\w)(\S*)/g, function(H, re, ke) {
1699
+ var ve = re.toUpperCase() + (ke !== null ? ke : "");
1700
+ return Object.keys(L).indexOf(ve.toLowerCase()) < 0 ? ve : ve.toLowerCase();
1701
+ })), T = T.replace(/\s+/g, b).replace(new RegExp("\\" + b + "+", "g"), b).replace(new RegExp("(^\\" + b + "+|\\" + b + "+$)", "g"), ""), x && T.length > x && (X = T.charAt(x) === b, T = T.slice(0, x), X || (T = T.slice(0, T.lastIndexOf(b)))), !S && !ne && (T = T.toLowerCase()), T;
1702
+ }, y = function(h) {
1703
+ return function(b) {
1704
+ return f(b, h);
1705
+ };
1706
+ }, d = function(h) {
1707
+ return h.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
1708
+ }, _ = function(A, h) {
1709
+ for (var g in h)
1710
+ if (h[g] === A)
1711
+ return !0;
1712
+ };
1713
+ if (typeof t < "u" && t.exports)
1714
+ t.exports = f, t.exports.createSlug = y;
1715
+ else if (typeof define < "u" && define.amd)
1716
+ define([], function() {
1717
+ return f;
1718
+ });
1719
+ else
1720
+ try {
1721
+ if (n.getSlug || n.createSlug)
1722
+ throw "speakingurl: globals exists /(getSlug|createSlug)/";
1723
+ n.getSlug = f, n.createSlug = y;
1724
+ } catch {
1725
+ }
1726
+ }(e);
1727
+ }
1728
+ }), Do = Kn({
1729
+ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e, t) {
1730
+ a(), t.exports = bo();
1731
+ }
1732
+ });
1733
+ a();
1734
+ a();
1735
+ a();
1736
+ a();
1737
+ a();
1738
+ a();
1739
+ a();
1740
+ a();
1741
+ function Io(e) {
1742
+ var t;
1743
+ const n = e.name || e._componentTag || e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || e.__name;
1744
+ return n === "index" && ((t = e.__file) != null && t.endsWith("index.vue")) ? "" : n;
1745
+ }
1746
+ function ko(e) {
1747
+ const t = e.__file;
1748
+ if (t)
1749
+ return lo(co(t, ".vue"));
1750
+ }
1751
+ function Dt(e, t) {
1752
+ return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t;
1753
+ }
1754
+ function ft(e) {
1755
+ if (e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)
1756
+ return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
1757
+ if (e.root)
1758
+ return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
1759
+ }
1760
+ function zn(e) {
1761
+ var t, n;
1762
+ const r = (t = e.subTree) == null ? void 0 : t.type, o = ft(e);
1763
+ return o ? ((n = o == null ? void 0 : o.types) == null ? void 0 : n.Fragment) === r : !1;
1764
+ }
1765
+ function $e(e) {
1766
+ var t, n, r;
1767
+ const o = Io((e == null ? void 0 : e.type) || {});
1768
+ if (o)
1769
+ return o;
1770
+ if ((e == null ? void 0 : e.root) === e)
1771
+ return "Root";
1772
+ for (const u in (n = (t = e.parent) == null ? void 0 : t.type) == null ? void 0 : n.components)
1773
+ if (e.parent.type.components[u] === (e == null ? void 0 : e.type))
1774
+ return Dt(e, u);
1775
+ for (const u in (r = e.appContext) == null ? void 0 : r.components)
1776
+ if (e.appContext.components[u] === (e == null ? void 0 : e.type))
1777
+ return Dt(e, u);
1778
+ const s = ko((e == null ? void 0 : e.type) || {});
1779
+ return s || "Anonymous Component";
1780
+ }
1781
+ function wo(e) {
1782
+ var t, n, r;
1783
+ const o = (r = (n = (t = e == null ? void 0 : e.appContext) == null ? void 0 : t.app) == null ? void 0 : n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__) != null ? r : 0, s = e === (e == null ? void 0 : e.root) ? "root" : e.uid;
1784
+ return `${o}:${s}`;
1785
+ }
1786
+ function Xe(e, t) {
1787
+ return t = t || `${e.id}:root`, e.instanceMap.get(t) || e.instanceMap.get(":root");
1788
+ }
1789
+ function Po() {
1790
+ const e = {
1791
+ top: 0,
1792
+ bottom: 0,
1793
+ left: 0,
1794
+ right: 0,
1795
+ get width() {
1796
+ return e.right - e.left;
1797
+ },
1798
+ get height() {
1799
+ return e.bottom - e.top;
1800
+ }
1801
+ };
1802
+ return e;
1803
+ }
1804
+ var we;
1805
+ function Ro(e) {
1806
+ return we || (we = document.createRange()), we.selectNode(e), we.getBoundingClientRect();
1807
+ }
1808
+ function No(e) {
1809
+ const t = Po();
1810
+ if (!e.children)
1811
+ return t;
1812
+ for (let n = 0, r = e.children.length; n < r; n++) {
1813
+ const o = e.children[n];
1814
+ let s;
1815
+ if (o.component)
1816
+ s = ie(o.component);
1817
+ else if (o.el) {
1818
+ const u = o.el;
1819
+ u.nodeType === 1 || u.getBoundingClientRect ? s = u.getBoundingClientRect() : u.nodeType === 3 && u.data.trim() && (s = Ro(u));
1820
+ }
1821
+ s && Vo(t, s);
1822
+ }
1823
+ return t;
1824
+ }
1825
+ function Vo(e, t) {
1826
+ return (!e.top || t.top < e.top) && (e.top = t.top), (!e.bottom || t.bottom > e.bottom) && (e.bottom = t.bottom), (!e.left || t.left < e.left) && (e.left = t.left), (!e.right || t.right > e.right) && (e.right = t.right), e;
1827
+ }
1828
+ var It = {
1829
+ top: 0,
1830
+ left: 0,
1831
+ right: 0,
1832
+ bottom: 0,
1833
+ width: 0,
1834
+ height: 0
1835
+ };
1836
+ function ie(e) {
1837
+ const t = e.subTree.el;
1838
+ return typeof window > "u" ? It : zn(e) ? No(e.subTree) : (t == null ? void 0 : t.nodeType) === 1 ? t == null ? void 0 : t.getBoundingClientRect() : e.subTree.component ? ie(e.subTree.component) : It;
1839
+ }
1840
+ a();
1841
+ function dt(e) {
1842
+ return zn(e) ? xo(e.subTree) : e.subTree ? [e.subTree.el] : [];
1843
+ }
1844
+ function xo(e) {
1845
+ if (!e.children)
1846
+ return [];
1847
+ const t = [];
1848
+ return e.children.forEach((n) => {
1849
+ n.component ? t.push(...dt(n.component)) : n != null && n.el && t.push(n.el);
1850
+ }), t;
1851
+ }
1852
+ var jn = "__vue-devtools-component-inspector__", Gn = "__vue-devtools-component-inspector__card__", Wn = "__vue-devtools-component-inspector__name__", Yn = "__vue-devtools-component-inspector__indicator__", qn = {
1853
+ display: "block",
1854
+ zIndex: 2147483640,
1855
+ position: "fixed",
1856
+ backgroundColor: "#42b88325",
1857
+ border: "1px solid #42b88350",
1858
+ borderRadius: "5px",
1859
+ transition: "all 0.1s ease-in",
1860
+ pointerEvents: "none"
1861
+ }, Fo = {
1862
+ fontFamily: "Arial, Helvetica, sans-serif",
1863
+ padding: "5px 8px",
1864
+ borderRadius: "4px",
1865
+ textAlign: "left",
1866
+ position: "absolute",
1867
+ left: 0,
1868
+ color: "#e9e9e9",
1869
+ fontSize: "14px",
1870
+ fontWeight: 600,
1871
+ lineHeight: "24px",
1872
+ backgroundColor: "#42b883",
1873
+ boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"
1874
+ }, Lo = {
1875
+ display: "inline-block",
1876
+ fontWeight: 400,
1877
+ fontStyle: "normal",
1878
+ fontSize: "12px",
1879
+ opacity: 0.7
1880
+ };
1881
+ function ge() {
1882
+ return document.getElementById(jn);
1883
+ }
1884
+ function Uo() {
1885
+ return document.getElementById(Gn);
1886
+ }
1887
+ function Bo() {
1888
+ return document.getElementById(Yn);
1889
+ }
1890
+ function Mo() {
1891
+ return document.getElementById(Wn);
1892
+ }
1893
+ function _t(e) {
1894
+ return {
1895
+ left: `${Math.round(e.left * 100) / 100}px`,
1896
+ top: `${Math.round(e.top * 100) / 100}px`,
1897
+ width: `${Math.round(e.width * 100) / 100}px`,
1898
+ height: `${Math.round(e.height * 100) / 100}px`
1899
+ };
1900
+ }
1901
+ function pt(e) {
1902
+ var t;
1903
+ const n = document.createElement("div");
1904
+ n.id = (t = e.elementId) != null ? t : jn, Object.assign(n.style, {
1905
+ ...qn,
1906
+ ..._t(e.bounds),
1907
+ ...e.style
1908
+ });
1909
+ const r = document.createElement("span");
1910
+ r.id = Gn, Object.assign(r.style, {
1911
+ ...Fo,
1912
+ top: e.bounds.top < 35 ? 0 : "-35px"
1913
+ });
1914
+ const o = document.createElement("span");
1915
+ o.id = Wn, o.innerHTML = `&lt;${e.name}&gt;&nbsp;&nbsp;`;
1916
+ const s = document.createElement("i");
1917
+ return s.id = Yn, s.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(s.style, Lo), r.appendChild(o), r.appendChild(s), n.appendChild(r), document.body.appendChild(n), n;
1918
+ }
1919
+ function Et(e) {
1920
+ const t = ge(), n = Uo(), r = Mo(), o = Bo();
1921
+ t && (Object.assign(t.style, {
1922
+ ...qn,
1923
+ ..._t(e.bounds)
1924
+ }), Object.assign(n.style, {
1925
+ top: e.bounds.top < 35 ? 0 : "-35px"
1926
+ }), r.innerHTML = `&lt;${e.name}&gt;&nbsp;&nbsp;`, o.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`);
1927
+ }
1928
+ function $o(e) {
1929
+ const t = ie(e);
1930
+ if (!t.width && !t.height)
1931
+ return;
1932
+ const n = $e(e);
1933
+ ge() ? Et({ bounds: t, name: n }) : pt({ bounds: t, name: n });
1934
+ }
1935
+ function Zn() {
1936
+ const e = ge();
1937
+ e && (e.style.display = "none");
1938
+ }
1939
+ var Je = null;
1940
+ function Qe(e) {
1941
+ const t = e.target;
1942
+ if (t) {
1943
+ const n = t.__vueParentComponent;
1944
+ if (n && (Je = n, n.vnode.el)) {
1945
+ const o = ie(n), s = $e(n);
1946
+ ge() ? Et({ bounds: o, name: s }) : pt({ bounds: o, name: s });
1947
+ }
1948
+ }
1949
+ }
1950
+ function Ho(e, t) {
1951
+ if (e.preventDefault(), e.stopPropagation(), Je) {
1952
+ const n = wo(Je);
1953
+ t(n);
1954
+ }
1955
+ }
1956
+ var Ue = null;
1957
+ function Ko() {
1958
+ Zn(), window.removeEventListener("mouseover", Qe), window.removeEventListener("click", Ue, !0), Ue = null;
1959
+ }
1960
+ function zo() {
1961
+ return window.addEventListener("mouseover", Qe), new Promise((e) => {
1962
+ function t(n) {
1963
+ n.preventDefault(), n.stopPropagation(), Ho(n, (r) => {
1964
+ window.removeEventListener("click", t, !0), Ue = null, window.removeEventListener("mouseover", Qe);
1965
+ const o = ge();
1966
+ o && (o.style.display = "none"), e(JSON.stringify({ id: r }));
1967
+ });
1968
+ }
1969
+ Ue = t, window.addEventListener("click", t, !0);
1970
+ });
1971
+ }
1972
+ function jo(e) {
1973
+ const t = Xe(U.value, e.id);
1974
+ if (t) {
1975
+ const [n] = dt(t);
1976
+ if (typeof n.scrollIntoView == "function")
1977
+ n.scrollIntoView({
1978
+ behavior: "smooth"
1979
+ });
1980
+ else {
1981
+ const r = ie(t), o = document.createElement("div"), s = {
1982
+ ..._t(r),
1983
+ position: "absolute"
1984
+ };
1985
+ Object.assign(o.style, s), document.body.appendChild(o), o.scrollIntoView({
1986
+ behavior: "smooth"
1987
+ }), setTimeout(() => {
1988
+ document.body.removeChild(o);
1989
+ }, 2e3);
1990
+ }
1991
+ setTimeout(() => {
1992
+ const r = ie(t);
1993
+ if (r.width || r.height) {
1994
+ const o = $e(t), s = ge();
1995
+ s ? Et({ ...e, name: o, bounds: r }) : pt({ ...e, name: o, bounds: r }), setTimeout(() => {
1996
+ s && (s.style.display = "none");
1997
+ }, 1500);
1998
+ }
1999
+ }, 1200);
2000
+ }
2001
+ }
2002
+ a();
2003
+ var kt, wt;
2004
+ (wt = (kt = E).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__) != null || (kt.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = !0);
2005
+ function Go(e) {
2006
+ let t = 0;
2007
+ const n = setInterval(() => {
2008
+ E.__VUE_INSPECTOR__ && (clearInterval(n), t += 30, e()), t >= /* 5s */
2009
+ 5e3 && clearInterval(n);
2010
+ }, 30);
2011
+ }
2012
+ function Wo() {
2013
+ const e = E.__VUE_INSPECTOR__, t = e.openInEditor;
2014
+ e.openInEditor = async (...n) => {
2015
+ e.disable(), t(...n);
2016
+ };
2017
+ }
2018
+ function Yo() {
2019
+ return new Promise((e) => {
2020
+ function t() {
2021
+ Wo(), e(E.__VUE_INSPECTOR__);
2022
+ }
2023
+ E.__VUE_INSPECTOR__ ? t() : Go(() => {
2024
+ t();
2025
+ });
2026
+ });
2027
+ }
2028
+ a();
2029
+ a();
2030
+ function qo(e) {
2031
+ return !!(e && e.__v_isReadonly);
2032
+ }
2033
+ function Xn(e) {
2034
+ return qo(e) ? Xn(e.__v_raw) : !!(e && e.__v_isReactive);
2035
+ }
2036
+ function je(e) {
2037
+ return !!(e && e.__v_isRef === !0);
2038
+ }
2039
+ function ye(e) {
2040
+ const t = e && e.__v_raw;
2041
+ return t ? ye(t) : e;
2042
+ }
2043
+ var Zo = class {
2044
+ constructor() {
2045
+ this.refEditor = new Xo();
2046
+ }
2047
+ set(e, t, n, r) {
2048
+ const o = Array.isArray(t) ? t : t.split(".");
2049
+ for (; o.length > 1; ) {
2050
+ const i = o.shift();
2051
+ e instanceof Map ? e = e.get(i) : e instanceof Set ? e = Array.from(e.values())[i] : e = e[i], this.refEditor.isRef(e) && (e = this.refEditor.get(e));
2052
+ }
2053
+ const s = o[0], u = this.refEditor.get(e)[s];
2054
+ r ? r(e, s, n) : this.refEditor.isRef(u) ? this.refEditor.set(u, n) : e[s] = n;
2055
+ }
2056
+ get(e, t) {
2057
+ const n = Array.isArray(t) ? t : t.split(".");
2058
+ for (let r = 0; r < n.length; r++)
2059
+ if (e instanceof Map ? e = e.get(n[r]) : e = e[n[r]], this.refEditor.isRef(e) && (e = this.refEditor.get(e)), !e)
2060
+ return;
2061
+ return e;
2062
+ }
2063
+ has(e, t, n = !1) {
2064
+ if (typeof e > "u")
2065
+ return !1;
2066
+ const r = Array.isArray(t) ? t.slice() : t.split("."), o = n ? 2 : 1;
2067
+ for (; e && r.length > o; ) {
2068
+ const s = r.shift();
2069
+ e = e[s], this.refEditor.isRef(e) && (e = this.refEditor.get(e));
2070
+ }
2071
+ return e != null && Object.prototype.hasOwnProperty.call(e, r[0]);
2072
+ }
2073
+ createDefaultSetCallback(e) {
2074
+ return (t, n, r) => {
2075
+ if ((e.remove || e.newKey) && (Array.isArray(t) ? t.splice(n, 1) : ye(t) instanceof Map ? t.delete(n) : ye(t) instanceof Set ? t.delete(Array.from(t.values())[n]) : Reflect.deleteProperty(t, n)), !e.remove) {
2076
+ const o = t[e.newKey || n];
2077
+ this.refEditor.isRef(o) ? this.refEditor.set(o, r) : ye(t) instanceof Map ? t.set(e.newKey || n, r) : ye(t) instanceof Set ? t.add(r) : t[e.newKey || n] = r;
2078
+ }
2079
+ };
2080
+ }
2081
+ }, Xo = class {
2082
+ set(e, t) {
2083
+ if (je(e))
2084
+ e.value = t;
2085
+ else {
2086
+ if (e instanceof Set && Array.isArray(t)) {
2087
+ e.clear(), t.forEach((o) => e.add(o));
2088
+ return;
2089
+ }
2090
+ const n = Object.keys(t);
2091
+ if (e instanceof Map) {
2092
+ const o = new Set(e.keys());
2093
+ n.forEach((s) => {
2094
+ e.set(s, Reflect.get(t, s)), o.delete(s);
2095
+ }), o.forEach((s) => e.delete(s));
2096
+ return;
2097
+ }
2098
+ const r = new Set(Object.keys(e));
2099
+ n.forEach((o) => {
2100
+ Reflect.set(e, o, Reflect.get(t, o)), r.delete(o);
2101
+ }), r.forEach((o) => Reflect.deleteProperty(e, o));
2102
+ }
2103
+ }
2104
+ get(e) {
2105
+ return je(e) ? e.value : e;
2106
+ }
2107
+ isRef(e) {
2108
+ return je(e) || Xn(e);
2109
+ }
2110
+ };
2111
+ a();
2112
+ a();
2113
+ a();
2114
+ var Jo = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
2115
+ function Qo() {
2116
+ if (!Bn || typeof localStorage > "u" || localStorage === null)
2117
+ return {
2118
+ recordingState: !1,
2119
+ mouseEventEnabled: !1,
2120
+ keyboardEventEnabled: !1,
2121
+ componentEventEnabled: !1,
2122
+ performanceEventEnabled: !1,
2123
+ selected: ""
2124
+ };
2125
+ const e = localStorage.getItem(Jo);
2126
+ return e ? JSON.parse(e) : {
2127
+ recordingState: !1,
2128
+ mouseEventEnabled: !1,
2129
+ keyboardEventEnabled: !1,
2130
+ componentEventEnabled: !1,
2131
+ performanceEventEnabled: !1,
2132
+ selected: ""
2133
+ };
2134
+ }
2135
+ a();
2136
+ a();
2137
+ a();
2138
+ var Pt, Rt;
2139
+ (Rt = (Pt = E).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS) != null || (Pt.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = []);
2140
+ var es = new Proxy(E.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, {
2141
+ get(e, t, n) {
2142
+ return Reflect.get(e, t, n);
2143
+ }
2144
+ });
2145
+ function ts(e, t) {
2146
+ R.timelineLayersState[t.id] = !1, es.push({
2147
+ ...e,
2148
+ descriptorId: t.id,
2149
+ appRecord: ft(t.app)
2150
+ });
2151
+ }
2152
+ var Nt, Vt;
2153
+ (Vt = (Nt = E).__VUE_DEVTOOLS_KIT_INSPECTOR__) != null || (Nt.__VUE_DEVTOOLS_KIT_INSPECTOR__ = []);
2154
+ var ht = new Proxy(E.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
2155
+ get(e, t, n) {
2156
+ return Reflect.get(e, t, n);
2157
+ }
2158
+ }), Jn = pe(() => {
2159
+ me.hooks.callHook("sendInspectorToClient", Qn());
2160
+ });
2161
+ function ns(e, t) {
2162
+ var n, r;
2163
+ ht.push({
2164
+ options: e,
2165
+ descriptor: t,
2166
+ treeFilterPlaceholder: (n = e.treeFilterPlaceholder) != null ? n : "Search tree...",
2167
+ stateFilterPlaceholder: (r = e.stateFilterPlaceholder) != null ? r : "Search state...",
2168
+ treeFilter: "",
2169
+ selectedNodeId: "",
2170
+ appRecord: ft(t.app)
2171
+ }), Jn();
2172
+ }
2173
+ function Qn() {
2174
+ return ht.filter((e) => e.descriptor.app === U.value.app).filter((e) => e.descriptor.id !== "components").map((e) => {
2175
+ var t;
2176
+ const n = e.descriptor, r = e.options;
2177
+ return {
2178
+ id: r.id,
2179
+ label: r.label,
2180
+ logo: n.logo,
2181
+ icon: `custom-ic-baseline-${(t = r == null ? void 0 : r.icon) == null ? void 0 : t.replace(/_/g, "-")}`,
2182
+ packageName: n.packageName,
2183
+ homepage: n.homepage,
2184
+ pluginId: n.id
2185
+ };
2186
+ });
2187
+ }
2188
+ function Re(e, t) {
2189
+ return ht.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
2190
+ }
2191
+ function rs() {
2192
+ const e = $n();
2193
+ e.hook("addInspector", ({ inspector: r, plugin: o }) => {
2194
+ ns(r, o.descriptor);
2195
+ });
2196
+ const t = pe(async ({ inspectorId: r, plugin: o }) => {
2197
+ var s;
2198
+ if (!r || !((s = o == null ? void 0 : o.descriptor) != null && s.app) || R.highPerfModeEnabled)
2199
+ return;
2200
+ const u = Re(r, o.descriptor.app), i = {
2201
+ app: o.descriptor.app,
2202
+ inspectorId: r,
2203
+ filter: (u == null ? void 0 : u.treeFilter) || "",
2204
+ rootNodes: []
2205
+ };
2206
+ await new Promise((l) => {
2207
+ e.callHookWith(
2208
+ async (c) => {
2209
+ await Promise.all(c.map((m) => m(i))), l();
2210
+ },
2211
+ "getInspectorTree"
2212
+ /* GET_INSPECTOR_TREE */
2213
+ );
2214
+ }), e.callHookWith(
2215
+ async (l) => {
2216
+ await Promise.all(l.map((c) => c({
2217
+ inspectorId: r,
2218
+ rootNodes: i.rootNodes
2219
+ })));
2220
+ },
2221
+ "sendInspectorTreeToClient"
2222
+ /* SEND_INSPECTOR_TREE_TO_CLIENT */
2223
+ );
2224
+ }, 120);
2225
+ e.hook("sendInspectorTree", t);
2226
+ const n = pe(async ({ inspectorId: r, plugin: o }) => {
2227
+ var s;
2228
+ if (!r || !((s = o == null ? void 0 : o.descriptor) != null && s.app) || R.highPerfModeEnabled)
2229
+ return;
2230
+ const u = Re(r, o.descriptor.app), i = {
2231
+ app: o.descriptor.app,
2232
+ inspectorId: r,
2233
+ nodeId: (u == null ? void 0 : u.selectedNodeId) || "",
2234
+ state: null
2235
+ }, l = {
2236
+ currentTab: `custom-inspector:${r}`
2237
+ };
2238
+ i.nodeId && await new Promise((c) => {
2239
+ e.callHookWith(
2240
+ async (m) => {
2241
+ await Promise.all(m.map((f) => f(i, l))), c();
2242
+ },
2243
+ "getInspectorState"
2244
+ /* GET_INSPECTOR_STATE */
2245
+ );
2246
+ }), e.callHookWith(
2247
+ async (c) => {
2248
+ await Promise.all(c.map((m) => m({
2249
+ inspectorId: r,
2250
+ nodeId: i.nodeId,
2251
+ state: i.state
2252
+ })));
2253
+ },
2254
+ "sendInspectorStateToClient"
2255
+ /* SEND_INSPECTOR_STATE_TO_CLIENT */
2256
+ );
2257
+ }, 120);
2258
+ return e.hook("sendInspectorState", n), e.hook("customInspectorSelectNode", ({ inspectorId: r, nodeId: o, plugin: s }) => {
2259
+ const u = Re(r, s.descriptor.app);
2260
+ u && (u.selectedNodeId = o);
2261
+ }), e.hook("timelineLayerAdded", ({ options: r, plugin: o }) => {
2262
+ ts(r, o.descriptor);
2263
+ }), e.hook("timelineEventAdded", ({ options: r, plugin: o }) => {
2264
+ var s;
2265
+ const u = ["performance", "component-event", "keyboard", "mouse"];
2266
+ R.highPerfModeEnabled || !((s = R.timelineLayersState) != null && s[o.descriptor.id]) && !u.includes(r.layerId) || e.callHookWith(
2267
+ async (i) => {
2268
+ await Promise.all(i.map((l) => l(r)));
2269
+ },
2270
+ "sendTimelineEventToClient"
2271
+ /* SEND_TIMELINE_EVENT_TO_CLIENT */
2272
+ );
2273
+ }), e.hook("getComponentInstances", async ({ app: r }) => {
2274
+ const o = r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
2275
+ if (!o)
2276
+ return null;
2277
+ const s = o.id.toString();
2278
+ return [...o.instanceMap].filter(([i]) => i.split(":")[0] === s).map(([, i]) => i);
2279
+ }), e.hook("getComponentBounds", async ({ instance: r }) => ie(r)), e.hook("getComponentName", ({ instance: r }) => $e(r)), e.hook("componentHighlight", ({ uid: r }) => {
2280
+ const o = U.value.instanceMap.get(r);
2281
+ o && $o(o);
2282
+ }), e.hook("componentUnhighlight", () => {
2283
+ Zn();
2284
+ }), e;
2285
+ }
2286
+ var xt, Ft;
2287
+ (Ft = (xt = E).__VUE_DEVTOOLS_KIT_APP_RECORDS__) != null || (xt.__VUE_DEVTOOLS_KIT_APP_RECORDS__ = []);
2288
+ var Lt, Ut;
2289
+ (Ut = (Lt = E).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__) != null || (Lt.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {});
2290
+ var Bt, Mt;
2291
+ (Mt = (Bt = E).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__) != null || (Bt.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = "");
2292
+ var $t, Ht;
2293
+ (Ht = ($t = E).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__) != null || ($t.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ = []);
2294
+ var Kt, zt;
2295
+ (zt = (Kt = E).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__) != null || (Kt.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = []);
2296
+ var ue = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";
2297
+ function os() {
2298
+ return {
2299
+ connected: !1,
2300
+ clientConnected: !1,
2301
+ vitePluginDetected: !0,
2302
+ appRecords: [],
2303
+ activeAppRecordId: "",
2304
+ tabs: [],
2305
+ commands: [],
2306
+ highPerfModeEnabled: !0,
2307
+ devtoolsClientDetected: {},
2308
+ perfUniqueGroupId: 0,
2309
+ timelineLayersState: Qo()
2310
+ };
2311
+ }
2312
+ var jt, Gt;
2313
+ (Gt = (jt = E)[ue]) != null || (jt[ue] = os());
2314
+ var ss = pe((e) => {
2315
+ me.hooks.callHook("devtoolsStateUpdated", { state: e });
2316
+ });
2317
+ pe((e, t) => {
2318
+ me.hooks.callHook("devtoolsConnectedUpdated", { state: e, oldState: t });
2319
+ });
2320
+ var He = new Proxy(E.__VUE_DEVTOOLS_KIT_APP_RECORDS__, {
2321
+ get(e, t, n) {
2322
+ return t === "value" ? E.__VUE_DEVTOOLS_KIT_APP_RECORDS__ : E.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t];
2323
+ }
2324
+ }), U = new Proxy(E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, {
2325
+ get(e, t, n) {
2326
+ return t === "value" ? E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ : t === "id" ? E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ : E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t];
2327
+ }
2328
+ });
2329
+ function er() {
2330
+ ss({
2331
+ ...E[ue],
2332
+ appRecords: He.value,
2333
+ activeAppRecordId: U.id,
2334
+ tabs: E.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,
2335
+ commands: E.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__
2336
+ });
2337
+ }
2338
+ function us(e) {
2339
+ E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = e, er();
2340
+ }
2341
+ function is(e) {
2342
+ E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = e, er();
2343
+ }
2344
+ var R = new Proxy(E[ue], {
2345
+ get(e, t) {
2346
+ return t === "appRecords" ? He : t === "activeAppRecordId" ? U.id : t === "tabs" ? E.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? E.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : E[ue][t];
2347
+ },
2348
+ deleteProperty(e, t) {
2349
+ return delete e[t], !0;
2350
+ },
2351
+ set(e, t, n) {
2352
+ return { ...E[ue] }, e[t] = n, E[ue][t] = n, !0;
2353
+ }
2354
+ });
2355
+ function as(e = {}) {
2356
+ var t, n, r;
2357
+ const { file: o, host: s, baseUrl: u = window.location.origin, line: i = 0, column: l = 0 } = e;
2358
+ if (o) {
2359
+ if (s === "chrome-extension") {
2360
+ const c = o.replace(/\\/g, "\\\\"), m = (n = (t = window.VUE_DEVTOOLS_CONFIG) == null ? void 0 : t.openInEditorHost) != null ? n : "/";
2361
+ fetch(`${m}__open-in-editor?file=${encodeURI(o)}`).then((f) => {
2362
+ if (!f.ok) {
2363
+ const y = `Opening component ${c} failed`;
2364
+ console.log(`%c${y}`, "color:red");
2365
+ }
2366
+ });
2367
+ } else if (R.vitePluginDetected) {
2368
+ const c = (r = E.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__) != null ? r : u;
2369
+ E.__VUE_INSPECTOR__.openInEditor(c, o, i, l);
2370
+ }
2371
+ }
2372
+ }
2373
+ a();
2374
+ a();
2375
+ a();
2376
+ a();
2377
+ a();
2378
+ var Wt, Yt;
2379
+ (Yt = (Wt = E).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__) != null || (Wt.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = []);
2380
+ var gt = new Proxy(E.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, {
2381
+ get(e, t, n) {
2382
+ return Reflect.get(e, t, n);
2383
+ }
2384
+ });
2385
+ function et(e) {
2386
+ const t = {};
2387
+ return Object.keys(e).forEach((n) => {
2388
+ t[n] = e[n].defaultValue;
2389
+ }), t;
2390
+ }
2391
+ function mt(e) {
2392
+ return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`;
2393
+ }
2394
+ function ls(e) {
2395
+ var t, n, r;
2396
+ const o = (n = (t = gt.find((s) => {
2397
+ var u;
2398
+ return s[0].id === e && !!((u = s[0]) != null && u.settings);
2399
+ })) == null ? void 0 : t[0]) != null ? n : null;
2400
+ return (r = o == null ? void 0 : o.settings) != null ? r : null;
2401
+ }
2402
+ function tr(e, t) {
2403
+ var n, r, o;
2404
+ const s = mt(e);
2405
+ if (s) {
2406
+ const u = localStorage.getItem(s);
2407
+ if (u)
2408
+ return JSON.parse(u);
2409
+ }
2410
+ if (e) {
2411
+ const u = (r = (n = gt.find((i) => i[0].id === e)) == null ? void 0 : n[0]) != null ? r : null;
2412
+ return et((o = u == null ? void 0 : u.settings) != null ? o : {});
2413
+ }
2414
+ return et(t);
2415
+ }
2416
+ function cs(e, t) {
2417
+ const n = mt(e);
2418
+ localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(et(t)));
2419
+ }
2420
+ function fs(e, t, n) {
2421
+ const r = mt(e), o = localStorage.getItem(r), s = JSON.parse(o || "{}"), u = {
2422
+ ...s,
2423
+ [t]: n
2424
+ };
2425
+ localStorage.setItem(r, JSON.stringify(u)), me.hooks.callHookWith(
2426
+ (i) => {
2427
+ i.forEach((l) => l({
2428
+ pluginId: e,
2429
+ key: t,
2430
+ oldValue: s[t],
2431
+ newValue: n,
2432
+ settings: u
2433
+ }));
2434
+ },
2435
+ "setPluginSettings"
2436
+ /* SET_PLUGIN_SETTINGS */
2437
+ );
2438
+ }
2439
+ a();
2440
+ a();
2441
+ a();
2442
+ a();
2443
+ a();
2444
+ a();
2445
+ a();
2446
+ a();
2447
+ a();
2448
+ a();
2449
+ a();
2450
+ var qt, Zt, K = (Zt = (qt = E).__VUE_DEVTOOLS_HOOK) != null ? Zt : qt.__VUE_DEVTOOLS_HOOK = $n(), ds = {
2451
+ vueAppInit(e) {
2452
+ K.hook("app:init", e);
2453
+ },
2454
+ vueAppUnmount(e) {
2455
+ K.hook("app:unmount", e);
2456
+ },
2457
+ vueAppConnected(e) {
2458
+ K.hook("app:connected", e);
2459
+ },
2460
+ componentAdded(e) {
2461
+ return K.hook("component:added", e);
2462
+ },
2463
+ componentEmit(e) {
2464
+ return K.hook("component:emit", e);
2465
+ },
2466
+ componentUpdated(e) {
2467
+ return K.hook("component:updated", e);
2468
+ },
2469
+ componentRemoved(e) {
2470
+ return K.hook("component:removed", e);
2471
+ },
2472
+ setupDevtoolsPlugin(e) {
2473
+ K.hook("devtools-plugin:setup", e);
2474
+ },
2475
+ perfStart(e) {
2476
+ return K.hook("perf:start", e);
2477
+ },
2478
+ perfEnd(e) {
2479
+ return K.hook("perf:end", e);
2480
+ }
2481
+ }, nr = {
2482
+ on: ds,
2483
+ setupDevToolsPlugin(e, t) {
2484
+ return K.callHook("devtools-plugin:setup", e, t);
2485
+ }
2486
+ }, _s = class {
2487
+ constructor({ plugin: e, ctx: t }) {
2488
+ this.hooks = t.hooks, this.plugin = e;
2489
+ }
2490
+ get on() {
2491
+ return {
2492
+ // component inspector
2493
+ visitComponentTree: (e) => {
2494
+ this.hooks.hook("visitComponentTree", e);
2495
+ },
2496
+ inspectComponent: (e) => {
2497
+ this.hooks.hook("inspectComponent", e);
2498
+ },
2499
+ editComponentState: (e) => {
2500
+ this.hooks.hook("editComponentState", e);
2501
+ },
2502
+ // custom inspector
2503
+ getInspectorTree: (e) => {
2504
+ this.hooks.hook("getInspectorTree", e);
2505
+ },
2506
+ getInspectorState: (e) => {
2507
+ this.hooks.hook("getInspectorState", e);
2508
+ },
2509
+ editInspectorState: (e) => {
2510
+ this.hooks.hook("editInspectorState", e);
2511
+ },
2512
+ // timeline
2513
+ inspectTimelineEvent: (e) => {
2514
+ this.hooks.hook("inspectTimelineEvent", e);
2515
+ },
2516
+ timelineCleared: (e) => {
2517
+ this.hooks.hook("timelineCleared", e);
2518
+ },
2519
+ // settings
2520
+ setPluginSettings: (e) => {
2521
+ this.hooks.hook("setPluginSettings", e);
2522
+ }
2523
+ };
2524
+ }
2525
+ // component inspector
2526
+ notifyComponentUpdate(e) {
2527
+ var t;
2528
+ if (R.highPerfModeEnabled)
2529
+ return;
2530
+ const n = Qn().find((r) => r.packageName === this.plugin.descriptor.packageName);
2531
+ if (n != null && n.id) {
2532
+ if (e) {
2533
+ const r = [
2534
+ e.appContext.app,
2535
+ e.uid,
2536
+ (t = e.parent) == null ? void 0 : t.uid,
2537
+ e
2538
+ ];
2539
+ K.callHook("component:updated", ...r);
2540
+ } else
2541
+ K.callHook(
2542
+ "component:updated"
2543
+ /* COMPONENT_UPDATED */
2544
+ );
2545
+ this.hooks.callHook("sendInspectorState", { inspectorId: n.id, plugin: this.plugin });
2546
+ }
2547
+ }
2548
+ // custom inspector
2549
+ addInspector(e) {
2550
+ this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings && cs(e.id, this.plugin.descriptor.settings);
2551
+ }
2552
+ sendInspectorTree(e) {
2553
+ R.highPerfModeEnabled || this.hooks.callHook("sendInspectorTree", { inspectorId: e, plugin: this.plugin });
2554
+ }
2555
+ sendInspectorState(e) {
2556
+ R.highPerfModeEnabled || this.hooks.callHook("sendInspectorState", { inspectorId: e, plugin: this.plugin });
2557
+ }
2558
+ selectInspectorNode(e, t) {
2559
+ this.hooks.callHook("customInspectorSelectNode", { inspectorId: e, nodeId: t, plugin: this.plugin });
2560
+ }
2561
+ visitComponentTree(e) {
2562
+ return this.hooks.callHook("visitComponentTree", e);
2563
+ }
2564
+ // timeline
2565
+ now() {
2566
+ return R.highPerfModeEnabled ? 0 : Date.now();
2567
+ }
2568
+ addTimelineLayer(e) {
2569
+ this.hooks.callHook("timelineLayerAdded", { options: e, plugin: this.plugin });
2570
+ }
2571
+ addTimelineEvent(e) {
2572
+ R.highPerfModeEnabled || this.hooks.callHook("timelineEventAdded", { options: e, plugin: this.plugin });
2573
+ }
2574
+ // settings
2575
+ getSettings(e) {
2576
+ return tr(e ?? this.plugin.descriptor.id, this.plugin.descriptor.settings);
2577
+ }
2578
+ // utilities
2579
+ getComponentInstances(e) {
2580
+ return this.hooks.callHook("getComponentInstances", { app: e });
2581
+ }
2582
+ getComponentBounds(e) {
2583
+ return this.hooks.callHook("getComponentBounds", { instance: e });
2584
+ }
2585
+ getComponentName(e) {
2586
+ return this.hooks.callHook("getComponentName", { instance: e });
2587
+ }
2588
+ highlightElement(e) {
2589
+ const t = e.__VUE_DEVTOOLS_NEXT_UID__;
2590
+ return this.hooks.callHook("componentHighlight", { uid: t });
2591
+ }
2592
+ unhighlightElement() {
2593
+ return this.hooks.callHook(
2594
+ "componentUnhighlight"
2595
+ /* COMPONENT_UNHIGHLIGHT */
2596
+ );
2597
+ }
2598
+ }, ps = _s;
2599
+ a();
2600
+ a();
2601
+ a();
2602
+ a();
2603
+ var Es = "__vue_devtool_undefined__", hs = "__vue_devtool_infinity__", gs = "__vue_devtool_negative_infinity__", ms = "__vue_devtool_nan__";
2604
+ a();
2605
+ a();
2606
+ var vs = {
2607
+ [Es]: "undefined",
2608
+ [ms]: "NaN",
2609
+ [hs]: "Infinity",
2610
+ [gs]: "-Infinity"
2611
+ };
2612
+ Object.entries(vs).reduce((e, [t, n]) => (e[n] = t, e), {});
2613
+ a();
2614
+ a();
2615
+ a();
2616
+ a();
2617
+ a();
2618
+ var Xt, Jt;
2619
+ (Jt = (Xt = E).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__) != null || (Xt.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set());
2620
+ function rr(e, t) {
2621
+ return nr.setupDevToolsPlugin(e, t);
2622
+ }
2623
+ function ys(e, t) {
2624
+ const [n, r] = e;
2625
+ if (n.app !== t)
2626
+ return;
2627
+ const o = new ps({
2628
+ plugin: {
2629
+ setupFn: r,
2630
+ descriptor: n
2631
+ },
2632
+ ctx: me
2633
+ });
2634
+ n.packageName === "vuex" && o.on.editInspectorState((s) => {
2635
+ o.sendInspectorState(s.inspectorId);
2636
+ }), r(o);
2637
+ }
2638
+ function or(e, t) {
2639
+ E.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || R.highPerfModeEnabled && !(t != null && t.inspectingComponent) || (E.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), gt.forEach((n) => {
2640
+ ys(n, e);
2641
+ }));
2642
+ }
2643
+ a();
2644
+ a();
2645
+ var Se = "__VUE_DEVTOOLS_ROUTER__", Ee = "__VUE_DEVTOOLS_ROUTER_INFO__", Qt, en;
2646
+ (en = (Qt = E)[Ee]) != null || (Qt[Ee] = {
2647
+ currentRoute: null,
2648
+ routes: []
2649
+ });
2650
+ var tn, nn;
2651
+ (nn = (tn = E)[Se]) != null || (tn[Se] = {});
2652
+ new Proxy(E[Ee], {
2653
+ get(e, t) {
2654
+ return E[Ee][t];
2655
+ }
2656
+ });
2657
+ new Proxy(E[Se], {
2658
+ get(e, t) {
2659
+ if (t === "value")
2660
+ return E[Se];
2661
+ }
2662
+ });
2663
+ function Os(e) {
2664
+ const t = /* @__PURE__ */ new Map();
2665
+ return ((e == null ? void 0 : e.getRoutes()) || []).filter((n) => !t.has(n.path) && t.set(n.path, 1));
2666
+ }
2667
+ function vt(e) {
2668
+ return e.map((t) => {
2669
+ let { path: n, name: r, children: o, meta: s } = t;
2670
+ return o != null && o.length && (o = vt(o)), {
2671
+ path: n,
2672
+ name: r,
2673
+ children: o,
2674
+ meta: s
2675
+ };
2676
+ });
2677
+ }
2678
+ function As(e) {
2679
+ if (e) {
2680
+ const { fullPath: t, hash: n, href: r, path: o, name: s, matched: u, params: i, query: l } = e;
2681
+ return {
2682
+ fullPath: t,
2683
+ hash: n,
2684
+ href: r,
2685
+ path: o,
2686
+ name: s,
2687
+ params: i,
2688
+ query: l,
2689
+ matched: vt(u)
2690
+ };
2691
+ }
2692
+ return e;
2693
+ }
2694
+ function Ss(e, t) {
2695
+ function n() {
2696
+ var r;
2697
+ const o = (r = e.app) == null ? void 0 : r.config.globalProperties.$router, s = As(o == null ? void 0 : o.currentRoute.value), u = vt(Os(o)), i = console.warn;
2698
+ console.warn = () => {
2699
+ }, E[Ee] = {
2700
+ currentRoute: s ? bt(s) : {},
2701
+ routes: bt(u)
2702
+ }, E[Se] = o, console.warn = i;
2703
+ }
2704
+ n(), nr.on.componentUpdated(pe(() => {
2705
+ var r;
2706
+ ((r = t.value) == null ? void 0 : r.app) === e.app && (n(), !R.highPerfModeEnabled && me.hooks.callHook("routerInfoUpdated", { state: E[Ee] }));
2707
+ }, 200));
2708
+ }
2709
+ function Cs(e) {
2710
+ return {
2711
+ // get inspector tree
2712
+ async getInspectorTree(t) {
2713
+ const n = {
2714
+ ...t,
2715
+ app: U.value.app,
2716
+ rootNodes: []
2717
+ };
2718
+ return await new Promise((r) => {
2719
+ e.callHookWith(
2720
+ async (o) => {
2721
+ await Promise.all(o.map((s) => s(n))), r();
2722
+ },
2723
+ "getInspectorTree"
2724
+ /* GET_INSPECTOR_TREE */
2725
+ );
2726
+ }), n.rootNodes;
2727
+ },
2728
+ // get inspector state
2729
+ async getInspectorState(t) {
2730
+ const n = {
2731
+ ...t,
2732
+ app: U.value.app,
2733
+ state: null
2734
+ }, r = {
2735
+ currentTab: `custom-inspector:${t.inspectorId}`
2736
+ };
2737
+ return await new Promise((o) => {
2738
+ e.callHookWith(
2739
+ async (s) => {
2740
+ await Promise.all(s.map((u) => u(n, r))), o();
2741
+ },
2742
+ "getInspectorState"
2743
+ /* GET_INSPECTOR_STATE */
2744
+ );
2745
+ }), n.state;
2746
+ },
2747
+ // edit inspector state
2748
+ editInspectorState(t) {
2749
+ const n = new Zo(), r = {
2750
+ ...t,
2751
+ app: U.value.app,
2752
+ set: (o, s = t.path, u = t.state.value, i) => {
2753
+ n.set(o, s, u, i || n.createDefaultSetCallback(t.state));
2754
+ }
2755
+ };
2756
+ e.callHookWith(
2757
+ (o) => {
2758
+ o.forEach((s) => s(r));
2759
+ },
2760
+ "editInspectorState"
2761
+ /* EDIT_INSPECTOR_STATE */
2762
+ );
2763
+ },
2764
+ // send inspector state
2765
+ sendInspectorState(t) {
2766
+ const n = Re(t);
2767
+ e.callHook("sendInspectorState", { inspectorId: t, plugin: {
2768
+ descriptor: n.descriptor,
2769
+ setupFn: () => ({})
2770
+ } });
2771
+ },
2772
+ // inspect component inspector
2773
+ inspectComponentInspector() {
2774
+ return zo();
2775
+ },
2776
+ // cancel inspect component inspector
2777
+ cancelInspectComponentInspector() {
2778
+ return Ko();
2779
+ },
2780
+ // get component render code
2781
+ getComponentRenderCode(t) {
2782
+ const n = Xe(U.value, t);
2783
+ if (n)
2784
+ return typeof (n == null ? void 0 : n.type) != "function" ? n.render.toString() : n.type.toString();
2785
+ },
2786
+ // scroll to component
2787
+ scrollToComponent(t) {
2788
+ return jo({ id: t });
2789
+ },
2790
+ // open in editor
2791
+ openInEditor: as,
2792
+ // get vue inspector
2793
+ getVueInspector: Yo,
2794
+ // toggle app
2795
+ toggleApp(t, n) {
2796
+ const r = He.value.find((o) => o.id === t);
2797
+ r && (is(t), us(r), Ss(r, U), Jn(), or(r.app, n));
2798
+ },
2799
+ // inspect dom
2800
+ inspectDOM(t) {
2801
+ const n = Xe(U.value, t);
2802
+ if (n) {
2803
+ const [r] = dt(n);
2804
+ r && (E.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = r);
2805
+ }
2806
+ },
2807
+ updatePluginSettings(t, n, r) {
2808
+ fs(t, n, r);
2809
+ },
2810
+ getPluginSettings(t) {
2811
+ return {
2812
+ options: ls(t),
2813
+ values: tr(t)
2814
+ };
2815
+ }
2816
+ };
2817
+ }
2818
+ a();
2819
+ var rn, on;
2820
+ (on = (rn = E).__VUE_DEVTOOLS_ENV__) != null || (rn.__VUE_DEVTOOLS_ENV__ = {
2821
+ vitePluginDetected: !1
2822
+ });
2823
+ var sn = rs(), un, an;
2824
+ (an = (un = E).__VUE_DEVTOOLS_KIT_CONTEXT__) != null || (un.__VUE_DEVTOOLS_KIT_CONTEXT__ = {
2825
+ hooks: sn,
2826
+ get state() {
2827
+ return {
2828
+ ...R,
2829
+ activeAppRecordId: U.id,
2830
+ activeAppRecord: U.value,
2831
+ appRecords: He.value
2832
+ };
2833
+ },
2834
+ api: Cs(sn)
2835
+ });
2836
+ var me = E.__VUE_DEVTOOLS_KIT_CONTEXT__;
2837
+ a();
2838
+ To(Do());
2839
+ var ln, cn;
2840
+ (cn = (ln = E).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null || (ln.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
2841
+ id: 0,
2842
+ appIds: /* @__PURE__ */ new Set()
2843
+ });
2844
+ a();
2845
+ a();
2846
+ function Ts(e) {
2847
+ R.highPerfModeEnabled = e ?? !R.highPerfModeEnabled, !e && U.value && or(U.value.app);
2848
+ }
2849
+ a();
2850
+ a();
2851
+ a();
2852
+ function bs(e) {
2853
+ R.devtoolsClientDetected = {
2854
+ ...R.devtoolsClientDetected,
2855
+ ...e
2856
+ };
2857
+ const t = Object.values(R.devtoolsClientDetected).some(Boolean);
2858
+ Ts(!t);
2859
+ }
2860
+ var fn, dn;
2861
+ (dn = (fn = E).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null || (fn.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = bs);
2862
+ a();
2863
+ a();
2864
+ a();
2865
+ a();
2866
+ a();
2867
+ a();
2868
+ a();
2869
+ var Ds = class {
2870
+ constructor() {
2871
+ this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
2872
+ }
2873
+ set(e, t) {
2874
+ this.keyToValue.set(e, t), this.valueToKey.set(t, e);
2875
+ }
2876
+ getByKey(e) {
2877
+ return this.keyToValue.get(e);
2878
+ }
2879
+ getByValue(e) {
2880
+ return this.valueToKey.get(e);
2881
+ }
2882
+ clear() {
2883
+ this.keyToValue.clear(), this.valueToKey.clear();
2884
+ }
2885
+ }, sr = class {
2886
+ constructor(e) {
2887
+ this.generateIdentifier = e, this.kv = new Ds();
2888
+ }
2889
+ register(e, t) {
2890
+ this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
2891
+ }
2892
+ clear() {
2893
+ this.kv.clear();
2894
+ }
2895
+ getIdentifier(e) {
2896
+ return this.kv.getByValue(e);
2897
+ }
2898
+ getValue(e) {
2899
+ return this.kv.getByKey(e);
2900
+ }
2901
+ }, Is = class extends sr {
2902
+ constructor() {
2903
+ super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
2904
+ }
2905
+ register(e, t) {
2906
+ typeof t == "object" ? (t.allowProps && this.classToAllowedProps.set(e, t.allowProps), super.register(e, t.identifier)) : super.register(e, t);
2907
+ }
2908
+ getAllowedProps(e) {
2909
+ return this.classToAllowedProps.get(e);
2910
+ }
2911
+ };
2912
+ a();
2913
+ a();
2914
+ function ks(e) {
2915
+ if ("values" in Object)
2916
+ return Object.values(e);
2917
+ const t = [];
2918
+ for (const n in e)
2919
+ e.hasOwnProperty(n) && t.push(e[n]);
2920
+ return t;
2921
+ }
2922
+ function ws(e, t) {
2923
+ const n = ks(e);
2924
+ if ("find" in n)
2925
+ return n.find(t);
2926
+ const r = n;
2927
+ for (let o = 0; o < r.length; o++) {
2928
+ const s = r[o];
2929
+ if (t(s))
2930
+ return s;
2931
+ }
2932
+ }
2933
+ function he(e, t) {
2934
+ Object.entries(e).forEach(([n, r]) => t(r, n));
2935
+ }
2936
+ function Ne(e, t) {
2937
+ return e.indexOf(t) !== -1;
2938
+ }
2939
+ function _n(e, t) {
2940
+ for (let n = 0; n < e.length; n++) {
2941
+ const r = e[n];
2942
+ if (t(r))
2943
+ return r;
2944
+ }
2945
+ }
2946
+ var Ps = class {
2947
+ constructor() {
2948
+ this.transfomers = {};
2949
+ }
2950
+ register(e) {
2951
+ this.transfomers[e.name] = e;
2952
+ }
2953
+ findApplicable(e) {
2954
+ return ws(this.transfomers, (t) => t.isApplicable(e));
2955
+ }
2956
+ findByName(e) {
2957
+ return this.transfomers[e];
2958
+ }
2959
+ };
2960
+ a();
2961
+ a();
2962
+ var Rs = (e) => Object.prototype.toString.call(e).slice(8, -1), ur = (e) => typeof e > "u", Ns = (e) => e === null, Ce = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, tt = (e) => Ce(e) && Object.keys(e).length === 0, te = (e) => Array.isArray(e), Vs = (e) => typeof e == "string", xs = (e) => typeof e == "number" && !isNaN(e), Fs = (e) => typeof e == "boolean", Ls = (e) => e instanceof RegExp, Te = (e) => e instanceof Map, be = (e) => e instanceof Set, ir = (e) => Rs(e) === "Symbol", Us = (e) => e instanceof Date && !isNaN(e.valueOf()), Bs = (e) => e instanceof Error, pn = (e) => typeof e == "number" && isNaN(e), Ms = (e) => Fs(e) || Ns(e) || ur(e) || xs(e) || Vs(e) || ir(e), $s = (e) => typeof e == "bigint", Hs = (e) => e === 1 / 0 || e === -1 / 0, Ks = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), zs = (e) => e instanceof URL;
2963
+ a();
2964
+ var ar = (e) => e.replace(/\./g, "\\."), Ge = (e) => e.map(String).map(ar).join("."), Ae = (e) => {
2965
+ const t = [];
2966
+ let n = "";
2967
+ for (let o = 0; o < e.length; o++) {
2968
+ let s = e.charAt(o);
2969
+ if (s === "\\" && e.charAt(o + 1) === ".") {
2970
+ n += ".", o++;
2971
+ continue;
2972
+ }
2973
+ if (s === ".") {
2974
+ t.push(n), n = "";
2975
+ continue;
2976
+ }
2977
+ n += s;
2978
+ }
2979
+ const r = n;
2980
+ return t.push(r), t;
2981
+ };
2982
+ a();
2983
+ function Y(e, t, n, r) {
2984
+ return {
2985
+ isApplicable: e,
2986
+ annotation: t,
2987
+ transform: n,
2988
+ untransform: r
2989
+ };
2990
+ }
2991
+ var lr = [
2992
+ Y(ur, "undefined", () => null, () => {
2993
+ }),
2994
+ Y($s, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
2995
+ Y(Us, "Date", (e) => e.toISOString(), (e) => new Date(e)),
2996
+ Y(Bs, "Error", (e, t) => {
2997
+ const n = {
2998
+ name: e.name,
2999
+ message: e.message
3000
+ };
3001
+ return t.allowedErrorProps.forEach((r) => {
3002
+ n[r] = e[r];
3003
+ }), n;
3004
+ }, (e, t) => {
3005
+ const n = new Error(e.message);
3006
+ return n.name = e.name, n.stack = e.stack, t.allowedErrorProps.forEach((r) => {
3007
+ n[r] = e[r];
3008
+ }), n;
3009
+ }),
3010
+ Y(Ls, "regexp", (e) => "" + e, (e) => {
3011
+ const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
3012
+ return new RegExp(t, n);
3013
+ }),
3014
+ Y(
3015
+ be,
3016
+ "set",
3017
+ // (sets only exist in es6+)
3018
+ // eslint-disable-next-line es5/no-es6-methods
3019
+ (e) => [...e.values()],
3020
+ (e) => new Set(e)
3021
+ ),
3022
+ Y(Te, "map", (e) => [...e.entries()], (e) => new Map(e)),
3023
+ Y((e) => pn(e) || Hs(e), "number", (e) => pn(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
3024
+ Y((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
3025
+ Y(zs, "URL", (e) => e.toString(), (e) => new URL(e))
3026
+ ];
3027
+ function Ke(e, t, n, r) {
3028
+ return {
3029
+ isApplicable: e,
3030
+ annotation: t,
3031
+ transform: n,
3032
+ untransform: r
3033
+ };
3034
+ }
3035
+ var cr = Ke((e, t) => ir(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
3036
+ const r = n.symbolRegistry.getValue(t[1]);
3037
+ if (!r)
3038
+ throw new Error("Trying to deserialize unknown symbol");
3039
+ return r;
3040
+ }), js = [
3041
+ Int8Array,
3042
+ Uint8Array,
3043
+ Int16Array,
3044
+ Uint16Array,
3045
+ Int32Array,
3046
+ Uint32Array,
3047
+ Float32Array,
3048
+ Float64Array,
3049
+ Uint8ClampedArray
3050
+ ].reduce((e, t) => (e[t.name] = t, e), {}), fr = Ke(Ks, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
3051
+ const n = js[t[1]];
3052
+ if (!n)
3053
+ throw new Error("Trying to deserialize unknown typed array");
3054
+ return new n(e);
3055
+ });
3056
+ function dr(e, t) {
3057
+ return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
3058
+ }
3059
+ var _r = Ke(dr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
3060
+ const n = t.classRegistry.getAllowedProps(e.constructor);
3061
+ if (!n)
3062
+ return { ...e };
3063
+ const r = {};
3064
+ return n.forEach((o) => {
3065
+ r[o] = e[o];
3066
+ }), r;
3067
+ }, (e, t, n) => {
3068
+ const r = n.classRegistry.getValue(t[1]);
3069
+ if (!r)
3070
+ throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
3071
+ return Object.assign(Object.create(r.prototype), e);
3072
+ }), pr = Ke((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
3073
+ const r = n.customTransformerRegistry.findByName(t[1]);
3074
+ if (!r)
3075
+ throw new Error("Trying to deserialize unknown custom value");
3076
+ return r.deserialize(e);
3077
+ }), Gs = [_r, cr, pr, fr], En = (e, t) => {
3078
+ const n = _n(Gs, (o) => o.isApplicable(e, t));
3079
+ if (n)
3080
+ return {
3081
+ value: n.transform(e, t),
3082
+ type: n.annotation(e, t)
3083
+ };
3084
+ const r = _n(lr, (o) => o.isApplicable(e, t));
3085
+ if (r)
3086
+ return {
3087
+ value: r.transform(e, t),
3088
+ type: r.annotation
3089
+ };
3090
+ }, Er = {};
3091
+ lr.forEach((e) => {
3092
+ Er[e.annotation] = e;
3093
+ });
3094
+ var Ws = (e, t, n) => {
3095
+ if (te(t))
3096
+ switch (t[0]) {
3097
+ case "symbol":
3098
+ return cr.untransform(e, t, n);
3099
+ case "class":
3100
+ return _r.untransform(e, t, n);
3101
+ case "custom":
3102
+ return pr.untransform(e, t, n);
3103
+ case "typed-array":
3104
+ return fr.untransform(e, t, n);
3105
+ default:
3106
+ throw new Error("Unknown transformation: " + t);
3107
+ }
3108
+ else {
3109
+ const r = Er[t];
3110
+ if (!r)
3111
+ throw new Error("Unknown transformation: " + t);
3112
+ return r.untransform(e, n);
3113
+ }
3114
+ };
3115
+ a();
3116
+ var ce = (e, t) => {
3117
+ if (t > e.size)
3118
+ throw new Error("index out of bounds");
3119
+ const n = e.keys();
3120
+ for (; t > 0; )
3121
+ n.next(), t--;
3122
+ return n.next().value;
3123
+ };
3124
+ function hr(e) {
3125
+ if (Ne(e, "__proto__"))
3126
+ throw new Error("__proto__ is not allowed as a property");
3127
+ if (Ne(e, "prototype"))
3128
+ throw new Error("prototype is not allowed as a property");
3129
+ if (Ne(e, "constructor"))
3130
+ throw new Error("constructor is not allowed as a property");
3131
+ }
3132
+ var Ys = (e, t) => {
3133
+ hr(t);
3134
+ for (let n = 0; n < t.length; n++) {
3135
+ const r = t[n];
3136
+ if (be(e))
3137
+ e = ce(e, +r);
3138
+ else if (Te(e)) {
3139
+ const o = +r, s = +t[++n] == 0 ? "key" : "value", u = ce(e, o);
3140
+ switch (s) {
3141
+ case "key":
3142
+ e = u;
3143
+ break;
3144
+ case "value":
3145
+ e = e.get(u);
3146
+ break;
3147
+ }
3148
+ } else
3149
+ e = e[r];
3150
+ }
3151
+ return e;
3152
+ }, nt = (e, t, n) => {
3153
+ if (hr(t), t.length === 0)
3154
+ return n(e);
3155
+ let r = e;
3156
+ for (let s = 0; s < t.length - 1; s++) {
3157
+ const u = t[s];
3158
+ if (te(r)) {
3159
+ const i = +u;
3160
+ r = r[i];
3161
+ } else if (Ce(r))
3162
+ r = r[u];
3163
+ else if (be(r)) {
3164
+ const i = +u;
3165
+ r = ce(r, i);
3166
+ } else if (Te(r)) {
3167
+ if (s === t.length - 2)
3168
+ break;
3169
+ const l = +u, c = +t[++s] == 0 ? "key" : "value", m = ce(r, l);
3170
+ switch (c) {
3171
+ case "key":
3172
+ r = m;
3173
+ break;
3174
+ case "value":
3175
+ r = r.get(m);
3176
+ break;
3177
+ }
3178
+ }
3179
+ }
3180
+ const o = t[t.length - 1];
3181
+ if (te(r) ? r[+o] = n(r[+o]) : Ce(r) && (r[o] = n(r[o])), be(r)) {
3182
+ const s = ce(r, +o), u = n(s);
3183
+ s !== u && (r.delete(s), r.add(u));
3184
+ }
3185
+ if (Te(r)) {
3186
+ const s = +t[t.length - 2], u = ce(r, s);
3187
+ switch (+o == 0 ? "key" : "value") {
3188
+ case "key": {
3189
+ const l = n(u);
3190
+ r.set(l, r.get(u)), l !== u && r.delete(u);
3191
+ break;
3192
+ }
3193
+ case "value": {
3194
+ r.set(u, n(r.get(u)));
3195
+ break;
3196
+ }
3197
+ }
3198
+ }
3199
+ return e;
3200
+ };
3201
+ function rt(e, t, n = []) {
3202
+ if (!e)
3203
+ return;
3204
+ if (!te(e)) {
3205
+ he(e, (s, u) => rt(s, t, [...n, ...Ae(u)]));
3206
+ return;
3207
+ }
3208
+ const [r, o] = e;
3209
+ o && he(o, (s, u) => {
3210
+ rt(s, t, [...n, ...Ae(u)]);
3211
+ }), t(r, n);
3212
+ }
3213
+ function qs(e, t, n) {
3214
+ return rt(t, (r, o) => {
3215
+ e = nt(e, o, (s) => Ws(s, r, n));
3216
+ }), e;
3217
+ }
3218
+ function Zs(e, t) {
3219
+ function n(r, o) {
3220
+ const s = Ys(e, Ae(o));
3221
+ r.map(Ae).forEach((u) => {
3222
+ e = nt(e, u, () => s);
3223
+ });
3224
+ }
3225
+ if (te(t)) {
3226
+ const [r, o] = t;
3227
+ r.forEach((s) => {
3228
+ e = nt(e, Ae(s), () => e);
3229
+ }), o && he(o, n);
3230
+ } else
3231
+ he(t, n);
3232
+ return e;
3233
+ }
3234
+ var Xs = (e, t) => Ce(e) || te(e) || Te(e) || be(e) || dr(e, t);
3235
+ function Js(e, t, n) {
3236
+ const r = n.get(e);
3237
+ r ? r.push(t) : n.set(e, [t]);
3238
+ }
3239
+ function Qs(e, t) {
3240
+ const n = {};
3241
+ let r;
3242
+ return e.forEach((o) => {
3243
+ if (o.length <= 1)
3244
+ return;
3245
+ t || (o = o.map((i) => i.map(String)).sort((i, l) => i.length - l.length));
3246
+ const [s, ...u] = o;
3247
+ s.length === 0 ? r = u.map(Ge) : n[Ge(s)] = u.map(Ge);
3248
+ }), r ? tt(n) ? [r] : [r, n] : tt(n) ? void 0 : n;
3249
+ }
3250
+ var gr = (e, t, n, r, o = [], s = [], u = /* @__PURE__ */ new Map()) => {
3251
+ var i;
3252
+ const l = Ms(e);
3253
+ if (!l) {
3254
+ Js(e, o, t);
3255
+ const _ = u.get(e);
3256
+ if (_)
3257
+ return r ? {
3258
+ transformedValue: null
3259
+ } : _;
3260
+ }
3261
+ if (!Xs(e, n)) {
3262
+ const _ = En(e, n), A = _ ? {
3263
+ transformedValue: _.value,
3264
+ annotations: [_.type]
3265
+ } : {
3266
+ transformedValue: e
3267
+ };
3268
+ return l || u.set(e, A), A;
3269
+ }
3270
+ if (Ne(s, e))
3271
+ return {
3272
+ transformedValue: null
3273
+ };
3274
+ const c = En(e, n), m = (i = c == null ? void 0 : c.value) != null ? i : e, f = te(m) ? [] : {}, y = {};
3275
+ he(m, (_, A) => {
3276
+ if (A === "__proto__" || A === "constructor" || A === "prototype")
3277
+ throw new Error(`Detected property ${A}. This is a prototype pollution risk, please remove it from your object.`);
3278
+ const h = gr(_, t, n, r, [...o, A], [...s, e], u);
3279
+ f[A] = h.transformedValue, te(h.annotations) ? y[A] = h.annotations : Ce(h.annotations) && he(h.annotations, (g, b) => {
3280
+ y[ar(A) + "." + b] = g;
3281
+ });
3282
+ });
3283
+ const d = tt(y) ? {
3284
+ transformedValue: f,
3285
+ annotations: c ? [c.type] : void 0
3286
+ } : {
3287
+ transformedValue: f,
3288
+ annotations: c ? [c.type, y] : y
3289
+ };
3290
+ return l || u.set(e, d), d;
3291
+ };
3292
+ a();
3293
+ a();
3294
+ function mr(e) {
3295
+ return Object.prototype.toString.call(e).slice(8, -1);
3296
+ }
3297
+ function hn(e) {
3298
+ return mr(e) === "Array";
3299
+ }
3300
+ function eu(e) {
3301
+ if (mr(e) !== "Object")
3302
+ return !1;
3303
+ const t = Object.getPrototypeOf(e);
3304
+ return !!t && t.constructor === Object && t === Object.prototype;
3305
+ }
3306
+ function tu(e, t, n, r, o) {
3307
+ const s = {}.propertyIsEnumerable.call(r, t) ? "enumerable" : "nonenumerable";
3308
+ s === "enumerable" && (e[t] = n), o && s === "nonenumerable" && Object.defineProperty(e, t, {
3309
+ value: n,
3310
+ enumerable: !1,
3311
+ writable: !0,
3312
+ configurable: !0
3313
+ });
3314
+ }
3315
+ function ot(e, t = {}) {
3316
+ if (hn(e))
3317
+ return e.map((o) => ot(o, t));
3318
+ if (!eu(e))
3319
+ return e;
3320
+ const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
3321
+ return [...n, ...r].reduce((o, s) => {
3322
+ if (hn(t.props) && !t.props.includes(s))
3323
+ return o;
3324
+ const u = e[s], i = ot(u, t);
3325
+ return tu(o, s, i, e, t.nonenumerable), o;
3326
+ }, {});
3327
+ }
3328
+ var k = class {
3329
+ /**
3330
+ * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
3331
+ */
3332
+ constructor({ dedupe: e = !1 } = {}) {
3333
+ this.classRegistry = new Is(), this.symbolRegistry = new sr((t) => {
3334
+ var n;
3335
+ return (n = t.description) != null ? n : "";
3336
+ }), this.customTransformerRegistry = new Ps(), this.allowedErrorProps = [], this.dedupe = e;
3337
+ }
3338
+ serialize(e) {
3339
+ const t = /* @__PURE__ */ new Map(), n = gr(e, t, this, this.dedupe), r = {
3340
+ json: n.transformedValue
3341
+ };
3342
+ n.annotations && (r.meta = {
3343
+ ...r.meta,
3344
+ values: n.annotations
3345
+ });
3346
+ const o = Qs(t, this.dedupe);
3347
+ return o && (r.meta = {
3348
+ ...r.meta,
3349
+ referentialEqualities: o
3350
+ }), r;
3351
+ }
3352
+ deserialize(e) {
3353
+ const { json: t, meta: n } = e;
3354
+ let r = ot(t);
3355
+ return n != null && n.values && (r = qs(r, n.values, this)), n != null && n.referentialEqualities && (r = Zs(r, n.referentialEqualities)), r;
3356
+ }
3357
+ stringify(e) {
3358
+ return JSON.stringify(this.serialize(e));
3359
+ }
3360
+ parse(e) {
3361
+ return this.deserialize(JSON.parse(e));
3362
+ }
3363
+ registerClass(e, t) {
3364
+ this.classRegistry.register(e, t);
3365
+ }
3366
+ registerSymbol(e, t) {
3367
+ this.symbolRegistry.register(e, t);
3368
+ }
3369
+ registerCustom(e, t) {
3370
+ this.customTransformerRegistry.register({
3371
+ name: t,
3372
+ ...e
3373
+ });
3374
+ }
3375
+ allowErrorProps(...e) {
3376
+ this.allowedErrorProps.push(...e);
3377
+ }
3378
+ };
3379
+ k.defaultInstance = new k();
3380
+ k.serialize = k.defaultInstance.serialize.bind(k.defaultInstance);
3381
+ k.deserialize = k.defaultInstance.deserialize.bind(k.defaultInstance);
3382
+ k.stringify = k.defaultInstance.stringify.bind(k.defaultInstance);
3383
+ k.parse = k.defaultInstance.parse.bind(k.defaultInstance);
3384
+ k.registerClass = k.defaultInstance.registerClass.bind(k.defaultInstance);
3385
+ k.registerSymbol = k.defaultInstance.registerSymbol.bind(k.defaultInstance);
3386
+ k.registerCustom = k.defaultInstance.registerCustom.bind(k.defaultInstance);
3387
+ k.allowErrorProps = k.defaultInstance.allowErrorProps.bind(k.defaultInstance);
3388
+ a();
3389
+ a();
3390
+ a();
3391
+ a();
3392
+ a();
3393
+ a();
3394
+ a();
3395
+ a();
3396
+ a();
3397
+ a();
3398
+ a();
3399
+ a();
3400
+ a();
3401
+ a();
3402
+ a();
3403
+ a();
3404
+ a();
3405
+ a();
3406
+ a();
3407
+ a();
3408
+ a();
3409
+ a();
3410
+ a();
3411
+ var gn, mn;
3412
+ (mn = (gn = E).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__) != null || (gn.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = []);
3413
+ var vn, yn;
3414
+ (yn = (vn = E).__VUE_DEVTOOLS_KIT_RPC_CLIENT__) != null || (vn.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null);
3415
+ var On, An;
3416
+ (An = (On = E).__VUE_DEVTOOLS_KIT_RPC_SERVER__) != null || (On.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null);
3417
+ var Sn, Cn;
3418
+ (Cn = (Sn = E).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__) != null || (Sn.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = null);
3419
+ var Tn, bn;
3420
+ (bn = (Tn = E).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__) != null || (Tn.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null);
3421
+ var Dn, In;
3422
+ (In = (Dn = E).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__) != null || (Dn.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null);
3423
+ a();
3424
+ a();
3425
+ a();
3426
+ a();
3427
+ a();
3428
+ a();
3429
+ a();
3430
+ /*!
3431
+ * pinia v3.0.3
3432
+ * (c) 2025 Eduardo San Martin Morote
3433
+ * @license MIT
3434
+ */
3435
+ let Oe;
3436
+ const De = (e) => Oe = e, vr = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
3437
+ /* istanbul ignore next */
3438
+ Symbol()
3439
+ );
3440
+ function ae(e) {
3441
+ return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
3442
+ }
3443
+ var q;
3444
+ (function(e) {
3445
+ e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
3446
+ })(q || (q = {}));
3447
+ const Q = typeof window < "u", kn = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
3448
+ function nu(e, { autoBom: t = !1 } = {}) {
3449
+ return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
3450
+ }
3451
+ function yt(e, t, n) {
3452
+ const r = new XMLHttpRequest();
3453
+ r.open("GET", e), r.responseType = "blob", r.onload = function() {
3454
+ Ar(r.response, t, n);
3455
+ }, r.onerror = function() {
3456
+ console.error("could not download file");
3457
+ }, r.send();
3458
+ }
3459
+ function yr(e) {
3460
+ const t = new XMLHttpRequest();
3461
+ t.open("HEAD", e, !1);
3462
+ try {
3463
+ t.send();
3464
+ } catch {
3465
+ }
3466
+ return t.status >= 200 && t.status <= 299;
3467
+ }
3468
+ function Ve(e) {
3469
+ try {
3470
+ e.dispatchEvent(new MouseEvent("click"));
3471
+ } catch {
3472
+ const n = new MouseEvent("click", {
3473
+ bubbles: !0,
3474
+ cancelable: !0,
3475
+ view: window,
3476
+ detail: 0,
3477
+ screenX: 80,
3478
+ screenY: 20,
3479
+ clientX: 80,
3480
+ clientY: 20,
3481
+ ctrlKey: !1,
3482
+ altKey: !1,
3483
+ shiftKey: !1,
3484
+ metaKey: !1,
3485
+ button: 0,
3486
+ relatedTarget: null
3487
+ });
3488
+ e.dispatchEvent(n);
3489
+ }
3490
+ }
3491
+ const xe = typeof navigator == "object" ? navigator : { userAgent: "" }, Or = /Macintosh/.test(xe.userAgent) && /AppleWebKit/.test(xe.userAgent) && !/Safari/.test(xe.userAgent), Ar = Q ? (
3492
+ // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
3493
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Or ? ru : (
3494
+ // Use msSaveOrOpenBlob as a second approach
3495
+ "msSaveOrOpenBlob" in xe ? ou : (
3496
+ // Fallback to using FileReader and a popup
3497
+ su
3498
+ )
3499
+ )
3500
+ ) : () => {
3501
+ };
3502
+ function ru(e, t = "download", n) {
3503
+ const r = document.createElement("a");
3504
+ r.download = t, r.rel = "noopener", typeof e == "string" ? (r.href = e, r.origin !== location.origin ? yr(r.href) ? yt(e, t, n) : (r.target = "_blank", Ve(r)) : Ve(r)) : (r.href = URL.createObjectURL(e), setTimeout(function() {
3505
+ URL.revokeObjectURL(r.href);
3506
+ }, 4e4), setTimeout(function() {
3507
+ Ve(r);
3508
+ }, 0));
3509
+ }
3510
+ function ou(e, t = "download", n) {
3511
+ if (typeof e == "string")
3512
+ if (yr(e))
3513
+ yt(e, t, n);
3514
+ else {
3515
+ const r = document.createElement("a");
3516
+ r.href = e, r.target = "_blank", setTimeout(function() {
3517
+ Ve(r);
3518
+ });
3519
+ }
3520
+ else
3521
+ navigator.msSaveOrOpenBlob(nu(e, n), t);
3522
+ }
3523
+ function su(e, t, n, r) {
3524
+ if (r = r || open("", "_blank"), r && (r.document.title = r.document.body.innerText = "downloading..."), typeof e == "string")
3525
+ return yt(e, t, n);
3526
+ const o = e.type === "application/octet-stream", s = /constructor/i.test(String(kn.HTMLElement)) || "safari" in kn, u = /CriOS\/[\d]+/.test(navigator.userAgent);
3527
+ if ((u || o && s || Or) && typeof FileReader < "u") {
3528
+ const i = new FileReader();
3529
+ i.onloadend = function() {
3530
+ let l = i.result;
3531
+ if (typeof l != "string")
3532
+ throw r = null, new Error("Wrong reader.result type");
3533
+ l = u ? l : l.replace(/^data:[^;]*;/, "data:attachment/file;"), r ? r.location.href = l : location.assign(l), r = null;
3534
+ }, i.readAsDataURL(e);
3535
+ } else {
3536
+ const i = URL.createObjectURL(e);
3537
+ r ? r.location.assign(i) : location.href = i, r = null, setTimeout(function() {
3538
+ URL.revokeObjectURL(i);
3539
+ }, 4e4);
3540
+ }
3541
+ }
3542
+ function N(e, t) {
3543
+ const n = "🍍 " + e;
3544
+ typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(n, t) : t === "error" ? console.error(n) : t === "warn" ? console.warn(n) : console.log(n);
3545
+ }
3546
+ function Ot(e) {
3547
+ return "_a" in e && "install" in e;
3548
+ }
3549
+ function Sr() {
3550
+ if (!("clipboard" in navigator))
3551
+ return N("Your browser doesn't support the Clipboard API", "error"), !0;
3552
+ }
3553
+ function Cr(e) {
3554
+ return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (N('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
3555
+ }
3556
+ async function uu(e) {
3557
+ if (!Sr())
3558
+ try {
3559
+ await navigator.clipboard.writeText(JSON.stringify(e.state.value)), N("Global state copied to clipboard.");
3560
+ } catch (t) {
3561
+ if (Cr(t))
3562
+ return;
3563
+ N("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
3564
+ }
3565
+ }
3566
+ async function iu(e) {
3567
+ if (!Sr())
3568
+ try {
3569
+ Tr(e, JSON.parse(await navigator.clipboard.readText())), N("Global state pasted from clipboard.");
3570
+ } catch (t) {
3571
+ if (Cr(t))
3572
+ return;
3573
+ N("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
3574
+ }
3575
+ }
3576
+ async function au(e) {
3577
+ try {
3578
+ Ar(new Blob([JSON.stringify(e.state.value)], {
3579
+ type: "text/plain;charset=utf-8"
3580
+ }), "pinia-state.json");
3581
+ } catch (t) {
3582
+ N("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
3583
+ }
3584
+ }
3585
+ let Z;
3586
+ function lu() {
3587
+ Z || (Z = document.createElement("input"), Z.type = "file", Z.accept = ".json");
3588
+ function e() {
3589
+ return new Promise((t, n) => {
3590
+ Z.onchange = async () => {
3591
+ const r = Z.files;
3592
+ if (!r)
3593
+ return t(null);
3594
+ const o = r.item(0);
3595
+ return t(o ? { text: await o.text(), file: o } : null);
3596
+ }, Z.oncancel = () => t(null), Z.onerror = n, Z.click();
3597
+ });
3598
+ }
3599
+ return e;
3600
+ }
3601
+ async function cu(e) {
3602
+ try {
3603
+ const n = await lu()();
3604
+ if (!n)
3605
+ return;
3606
+ const { text: r, file: o } = n;
3607
+ Tr(e, JSON.parse(r)), N(`Global state imported from "${o.name}".`);
3608
+ } catch (t) {
3609
+ N("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
3610
+ }
3611
+ }
3612
+ function Tr(e, t) {
3613
+ for (const n in t) {
3614
+ const r = e.state.value[n];
3615
+ r ? Object.assign(r, t[n]) : e.state.value[n] = t[n];
3616
+ }
3617
+ }
3618
+ function G(e) {
3619
+ return {
3620
+ _custom: {
3621
+ display: e
3622
+ }
3623
+ };
3624
+ }
3625
+ const br = "🍍 Pinia (root)", Fe = "_root";
3626
+ function fu(e) {
3627
+ return Ot(e) ? {
3628
+ id: Fe,
3629
+ label: br
3630
+ } : {
3631
+ id: e.$id,
3632
+ label: e.$id
3633
+ };
3634
+ }
3635
+ function du(e) {
3636
+ if (Ot(e)) {
3637
+ const n = Array.from(e._s.keys()), r = e._s;
3638
+ return {
3639
+ state: n.map((s) => ({
3640
+ editable: !0,
3641
+ key: s,
3642
+ value: e.state.value[s]
3643
+ })),
3644
+ getters: n.filter((s) => r.get(s)._getters).map((s) => {
3645
+ const u = r.get(s);
3646
+ return {
3647
+ editable: !1,
3648
+ key: s,
3649
+ value: u._getters.reduce((i, l) => (i[l] = u[l], i), {})
3650
+ };
3651
+ })
3652
+ };
3653
+ }
3654
+ const t = {
3655
+ state: Object.keys(e.$state).map((n) => ({
3656
+ editable: !0,
3657
+ key: n,
3658
+ value: e.$state[n]
3659
+ }))
3660
+ };
3661
+ return e._getters && e._getters.length && (t.getters = e._getters.map((n) => ({
3662
+ editable: !1,
3663
+ key: n,
3664
+ value: e[n]
3665
+ }))), e._customProperties.size && (t.customProperties = Array.from(e._customProperties).map((n) => ({
3666
+ editable: !0,
3667
+ key: n,
3668
+ value: e[n]
3669
+ }))), t;
3670
+ }
3671
+ function _u(e) {
3672
+ return e ? Array.isArray(e) ? e.reduce((t, n) => (t.keys.push(n.key), t.operations.push(n.type), t.oldValue[n.key] = n.oldValue, t.newValue[n.key] = n.newValue, t), {
3673
+ oldValue: {},
3674
+ keys: [],
3675
+ operations: [],
3676
+ newValue: {}
3677
+ }) : {
3678
+ operation: G(e.type),
3679
+ key: G(e.key),
3680
+ oldValue: e.oldValue,
3681
+ newValue: e.newValue
3682
+ } : {};
3683
+ }
3684
+ function pu(e) {
3685
+ switch (e) {
3686
+ case q.direct:
3687
+ return "mutation";
3688
+ case q.patchFunction:
3689
+ return "$patch";
3690
+ case q.patchObject:
3691
+ return "$patch";
3692
+ default:
3693
+ return "unknown";
3694
+ }
3695
+ }
3696
+ let fe = !0;
3697
+ const Le = [], oe = "pinia:mutations", F = "pinia", { assign: Eu } = Object, Be = (e) => "🍍 " + e;
3698
+ function hu(e, t) {
3699
+ rr({
3700
+ id: "dev.esm.pinia",
3701
+ label: "Pinia 🍍",
3702
+ logo: "https://pinia.vuejs.org/logo.svg",
3703
+ packageName: "pinia",
3704
+ homepage: "https://pinia.vuejs.org",
3705
+ componentStateTypes: Le,
3706
+ app: e
3707
+ }, (n) => {
3708
+ typeof n.now != "function" && N("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
3709
+ id: oe,
3710
+ label: "Pinia 🍍",
3711
+ color: 15064968
3712
+ }), n.addInspector({
3713
+ id: F,
3714
+ label: "Pinia 🍍",
3715
+ icon: "storage",
3716
+ treeFilterPlaceholder: "Search stores",
3717
+ actions: [
3718
+ {
3719
+ icon: "content_copy",
3720
+ action: () => {
3721
+ uu(t);
3722
+ },
3723
+ tooltip: "Serialize and copy the state"
3724
+ },
3725
+ {
3726
+ icon: "content_paste",
3727
+ action: async () => {
3728
+ await iu(t), n.sendInspectorTree(F), n.sendInspectorState(F);
3729
+ },
3730
+ tooltip: "Replace the state with the content of your clipboard"
3731
+ },
3732
+ {
3733
+ icon: "save",
3734
+ action: () => {
3735
+ au(t);
3736
+ },
3737
+ tooltip: "Save the state as a JSON file"
3738
+ },
3739
+ {
3740
+ icon: "folder_open",
3741
+ action: async () => {
3742
+ await cu(t), n.sendInspectorTree(F), n.sendInspectorState(F);
3743
+ },
3744
+ tooltip: "Import the state from a JSON file"
3745
+ }
3746
+ ],
3747
+ nodeActions: [
3748
+ {
3749
+ icon: "restore",
3750
+ tooltip: 'Reset the state (with "$reset")',
3751
+ action: (r) => {
3752
+ const o = t._s.get(r);
3753
+ o ? typeof o.$reset != "function" ? N(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`, "warn") : (o.$reset(), N(`Store "${r}" reset.`)) : N(`Cannot reset "${r}" store because it wasn't found.`, "warn");
3754
+ }
3755
+ }
3756
+ ]
3757
+ }), n.on.inspectComponent((r) => {
3758
+ const o = r.componentInstance && r.componentInstance.proxy;
3759
+ if (o && o._pStores) {
3760
+ const s = r.componentInstance.proxy._pStores;
3761
+ Object.values(s).forEach((u) => {
3762
+ r.instanceData.state.push({
3763
+ type: Be(u.$id),
3764
+ key: "state",
3765
+ editable: !0,
3766
+ value: u._isOptionsAPI ? {
3767
+ _custom: {
3768
+ value: de(u.$state),
3769
+ actions: [
3770
+ {
3771
+ icon: "restore",
3772
+ tooltip: "Reset the state of this store",
3773
+ action: () => u.$reset()
3774
+ }
3775
+ ]
3776
+ }
3777
+ } : (
3778
+ // NOTE: workaround to unwrap transferred refs
3779
+ Object.keys(u.$state).reduce((i, l) => (i[l] = u.$state[l], i), {})
3780
+ )
3781
+ }), u._getters && u._getters.length && r.instanceData.state.push({
3782
+ type: Be(u.$id),
3783
+ key: "getters",
3784
+ editable: !1,
3785
+ value: u._getters.reduce((i, l) => {
3786
+ try {
3787
+ i[l] = u[l];
3788
+ } catch (c) {
3789
+ i[l] = c;
3790
+ }
3791
+ return i;
3792
+ }, {})
3793
+ });
3794
+ });
3795
+ }
3796
+ }), n.on.getInspectorTree((r) => {
3797
+ if (r.app === e && r.inspectorId === F) {
3798
+ let o = [t];
3799
+ o = o.concat(Array.from(t._s.values())), r.rootNodes = (r.filter ? o.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(r.filter.toLowerCase()) : br.toLowerCase().includes(r.filter.toLowerCase())) : o).map(fu);
3800
+ }
3801
+ }), globalThis.$pinia = t, n.on.getInspectorState((r) => {
3802
+ if (r.app === e && r.inspectorId === F) {
3803
+ const o = r.nodeId === Fe ? t : t._s.get(r.nodeId);
3804
+ if (!o)
3805
+ return;
3806
+ o && (r.nodeId !== Fe && (globalThis.$store = de(o)), r.state = du(o));
3807
+ }
3808
+ }), n.on.editInspectorState((r) => {
3809
+ if (r.app === e && r.inspectorId === F) {
3810
+ const o = r.nodeId === Fe ? t : t._s.get(r.nodeId);
3811
+ if (!o)
3812
+ return N(`store "${r.nodeId}" not found`, "error");
3813
+ const { path: s } = r;
3814
+ Ot(o) ? s.unshift("state") : (s.length !== 1 || !o._customProperties.has(s[0]) || s[0] in o.$state) && s.unshift("$state"), fe = !1, r.set(o, s, r.state.value), fe = !0;
3815
+ }
3816
+ }), n.on.editComponentState((r) => {
3817
+ if (r.type.startsWith("🍍")) {
3818
+ const o = r.type.replace(/^🍍\s*/, ""), s = t._s.get(o);
3819
+ if (!s)
3820
+ return N(`store "${o}" not found`, "error");
3821
+ const { path: u } = r;
3822
+ if (u[0] !== "state")
3823
+ return N(`Invalid path for store "${o}":
3824
+ ${u}
3825
+ Only state can be modified.`);
3826
+ u[0] = "$state", fe = !1, r.set(s, u, r.state.value), fe = !0;
3827
+ }
3828
+ });
3829
+ });
3830
+ }
3831
+ function gu(e, t) {
3832
+ Le.includes(Be(t.$id)) || Le.push(Be(t.$id)), rr({
3833
+ id: "dev.esm.pinia",
3834
+ label: "Pinia 🍍",
3835
+ logo: "https://pinia.vuejs.org/logo.svg",
3836
+ packageName: "pinia",
3837
+ homepage: "https://pinia.vuejs.org",
3838
+ componentStateTypes: Le,
3839
+ app: e,
3840
+ settings: {
3841
+ logStoreChanges: {
3842
+ label: "Notify about new/deleted stores",
3843
+ type: "boolean",
3844
+ defaultValue: !0
3845
+ }
3846
+ // useEmojis: {
3847
+ // label: 'Use emojis in messages ⚡️',
3848
+ // type: 'boolean',
3849
+ // defaultValue: true,
3850
+ // },
3851
+ }
3852
+ }, (n) => {
3853
+ const r = typeof n.now == "function" ? n.now.bind(n) : Date.now;
3854
+ t.$onAction(({ after: u, onError: i, name: l, args: c }) => {
3855
+ const m = Dr++;
3856
+ n.addTimelineEvent({
3857
+ layerId: oe,
3858
+ event: {
3859
+ time: r(),
3860
+ title: "🛫 " + l,
3861
+ subtitle: "start",
3862
+ data: {
3863
+ store: G(t.$id),
3864
+ action: G(l),
3865
+ args: c
3866
+ },
3867
+ groupId: m
3868
+ }
3869
+ }), u((f) => {
3870
+ ee = void 0, n.addTimelineEvent({
3871
+ layerId: oe,
3872
+ event: {
3873
+ time: r(),
3874
+ title: "🛬 " + l,
3875
+ subtitle: "end",
3876
+ data: {
3877
+ store: G(t.$id),
3878
+ action: G(l),
3879
+ args: c,
3880
+ result: f
3881
+ },
3882
+ groupId: m
3883
+ }
3884
+ });
3885
+ }), i((f) => {
3886
+ ee = void 0, n.addTimelineEvent({
3887
+ layerId: oe,
3888
+ event: {
3889
+ time: r(),
3890
+ logType: "error",
3891
+ title: "💥 " + l,
3892
+ subtitle: "end",
3893
+ data: {
3894
+ store: G(t.$id),
3895
+ action: G(l),
3896
+ args: c,
3897
+ error: f
3898
+ },
3899
+ groupId: m
3900
+ }
3901
+ });
3902
+ });
3903
+ }, !0), t._customProperties.forEach((u) => {
3904
+ at(() => Gr(t[u]), (i, l) => {
3905
+ n.notifyComponentUpdate(), n.sendInspectorState(F), fe && n.addTimelineEvent({
3906
+ layerId: oe,
3907
+ event: {
3908
+ time: r(),
3909
+ title: "Change",
3910
+ subtitle: u,
3911
+ data: {
3912
+ newValue: i,
3913
+ oldValue: l
3914
+ },
3915
+ groupId: ee
3916
+ }
3917
+ });
3918
+ }, { deep: !0 });
3919
+ }), t.$subscribe(({ events: u, type: i }, l) => {
3920
+ if (n.notifyComponentUpdate(), n.sendInspectorState(F), !fe)
3921
+ return;
3922
+ const c = {
3923
+ time: r(),
3924
+ title: pu(i),
3925
+ data: Eu({ store: G(t.$id) }, _u(u)),
3926
+ groupId: ee
3927
+ };
3928
+ i === q.patchFunction ? c.subtitle = "⤵️" : i === q.patchObject ? c.subtitle = "🧩" : u && !Array.isArray(u) && (c.subtitle = u.type), u && (c.data["rawEvent(s)"] = {
3929
+ _custom: {
3930
+ display: "DebuggerEvent",
3931
+ type: "object",
3932
+ tooltip: "raw DebuggerEvent[]",
3933
+ value: u
3934
+ }
3935
+ }), n.addTimelineEvent({
3936
+ layerId: oe,
3937
+ event: c
3938
+ });
3939
+ }, { detached: !0, flush: "sync" });
3940
+ const o = t._hotUpdate;
3941
+ t._hotUpdate = se((u) => {
3942
+ o(u), n.addTimelineEvent({
3943
+ layerId: oe,
3944
+ event: {
3945
+ time: r(),
3946
+ title: "🔥 " + t.$id,
3947
+ subtitle: "HMR update",
3948
+ data: {
3949
+ store: G(t.$id),
3950
+ info: G("HMR update")
3951
+ }
3952
+ }
3953
+ }), n.notifyComponentUpdate(), n.sendInspectorTree(F), n.sendInspectorState(F);
3954
+ });
3955
+ const { $dispose: s } = t;
3956
+ t.$dispose = () => {
3957
+ s(), n.notifyComponentUpdate(), n.sendInspectorTree(F), n.sendInspectorState(F), n.getSettings().logStoreChanges && N(`Disposed "${t.$id}" store 🗑`);
3958
+ }, n.notifyComponentUpdate(), n.sendInspectorTree(F), n.sendInspectorState(F), n.getSettings().logStoreChanges && N(`"${t.$id}" store installed 🆕`);
3959
+ });
3960
+ }
3961
+ let Dr = 0, ee;
3962
+ function wn(e, t, n) {
3963
+ const r = t.reduce((o, s) => (o[s] = de(e)[s], o), {});
3964
+ for (const o in r)
3965
+ e[o] = function() {
3966
+ const s = Dr, u = n ? new Proxy(e, {
3967
+ get(...l) {
3968
+ return ee = s, Reflect.get(...l);
3969
+ },
3970
+ set(...l) {
3971
+ return ee = s, Reflect.set(...l);
3972
+ }
3973
+ }) : e;
3974
+ ee = s;
3975
+ const i = r[o].apply(u, arguments);
3976
+ return ee = void 0, i;
3977
+ };
3978
+ }
3979
+ function mu({ app: e, store: t, options: n }) {
3980
+ if (!t.$id.startsWith("__hot:")) {
3981
+ if (t._isOptionsAPI = !!n.state, !t._p._testing) {
3982
+ wn(t, Object.keys(n.actions), t._isOptionsAPI);
3983
+ const r = t._hotUpdate;
3984
+ de(t)._hotUpdate = function(o) {
3985
+ r.apply(this, arguments), wn(t, Object.keys(o._hmrPayload.actions), !!t._isOptionsAPI);
3986
+ };
3987
+ }
3988
+ gu(
3989
+ e,
3990
+ // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
3991
+ t
3992
+ );
3993
+ }
3994
+ }
3995
+ function vu() {
3996
+ const e = Ln(!0), t = e.run(() => I({}));
3997
+ let n = [], r = [];
3998
+ const o = se({
3999
+ install(s) {
4000
+ De(o), o._a = s, s.provide(vr, o), s.config.globalProperties.$pinia = o, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Q && hu(s, o), r.forEach((u) => n.push(u)), r = [];
4001
+ },
4002
+ use(s) {
4003
+ return this._a ? n.push(s) : r.push(s), this;
4004
+ },
4005
+ _p: n,
4006
+ // it's actually undefined here
4007
+ // @ts-expect-error
4008
+ _a: null,
4009
+ _e: e,
4010
+ _s: /* @__PURE__ */ new Map(),
4011
+ state: t
4012
+ });
4013
+ return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Q && typeof Proxy < "u" && o.use(mu), o;
4014
+ }
4015
+ function Ir(e, t) {
4016
+ for (const n in t) {
4017
+ const r = t[n];
4018
+ if (!(n in e))
4019
+ continue;
4020
+ const o = e[n];
4021
+ ae(o) && ae(r) && !_e(r) && !Me(r) ? e[n] = Ir(o, r) : e[n] = r;
4022
+ }
4023
+ return e;
4024
+ }
4025
+ const kr = () => {
4026
+ };
4027
+ function Pn(e, t, n, r = kr) {
4028
+ e.push(t);
4029
+ const o = () => {
4030
+ const s = e.indexOf(t);
4031
+ s > -1 && (e.splice(s, 1), r());
4032
+ };
4033
+ return !n && Wr() && Yr(o), o;
4034
+ }
4035
+ function le(e, ...t) {
4036
+ e.slice().forEach((n) => {
4037
+ n(...t);
4038
+ });
4039
+ }
4040
+ const yu = (e) => e(), Rn = Symbol(), We = Symbol();
4041
+ function st(e, t) {
4042
+ e instanceof Map && t instanceof Map ? t.forEach((n, r) => e.set(r, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
4043
+ for (const n in t) {
4044
+ if (!t.hasOwnProperty(n))
4045
+ continue;
4046
+ const r = t[n], o = e[n];
4047
+ ae(o) && ae(r) && e.hasOwnProperty(n) && !_e(r) && !Me(r) ? e[n] = st(o, r) : e[n] = r;
4048
+ }
4049
+ return e;
4050
+ }
4051
+ const Ou = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
4052
+ /* istanbul ignore next */
4053
+ Symbol()
4054
+ );
4055
+ function Au(e) {
4056
+ return !ae(e) || !Object.prototype.hasOwnProperty.call(e, Ou);
4057
+ }
4058
+ const { assign: j } = Object;
4059
+ function Nn(e) {
4060
+ return !!(_e(e) && e.effect);
4061
+ }
4062
+ function Vn(e, t, n, r) {
4063
+ const { state: o, actions: s, getters: u } = t, i = n.state.value[e];
4064
+ let l;
4065
+ function c() {
4066
+ !i && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = o ? o() : {});
4067
+ const m = process.env.NODE_ENV !== "production" && r ? (
4068
+ // use ref() to unwrap refs inside state TODO: check if this is still necessary
4069
+ Ct(I(o ? o() : {}).value)
4070
+ ) : Ct(n.state.value[e]);
4071
+ return j(m, s, Object.keys(u || {}).reduce((f, y) => (process.env.NODE_ENV !== "production" && y in m && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${y}" in store "${e}".`), f[y] = se(it(() => {
4072
+ De(n);
4073
+ const d = n._s.get(e);
4074
+ return u[y].call(d, d);
4075
+ })), f), {}));
4076
+ }
4077
+ return l = ut(e, c, t, n, r, !0), l;
4078
+ }
4079
+ function ut(e, t, n = {}, r, o, s) {
4080
+ let u;
4081
+ const i = j({ actions: {} }, n);
4082
+ if (process.env.NODE_ENV !== "production" && !r._e.active)
4083
+ throw new Error("Pinia destroyed");
4084
+ const l = { deep: !0 };
4085
+ process.env.NODE_ENV !== "production" && (l.onTrigger = (v) => {
4086
+ c ? d = v : c == !1 && !S._hotUpdating && (Array.isArray(d) ? d.push(v) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
4087
+ });
4088
+ let c, m, f = [], y = [], d;
4089
+ const _ = r.state.value[e];
4090
+ !s && !_ && (process.env.NODE_ENV === "production" || !o) && (r.state.value[e] = {});
4091
+ const A = I({});
4092
+ let h;
4093
+ function g(v) {
4094
+ let p;
4095
+ c = m = !1, process.env.NODE_ENV !== "production" && (d = []), typeof v == "function" ? (v(r.state.value[e]), p = {
4096
+ type: q.patchFunction,
4097
+ storeId: e,
4098
+ events: d
4099
+ }) : (st(r.state.value[e], v), p = {
4100
+ type: q.patchObject,
4101
+ payload: v,
4102
+ storeId: e,
4103
+ events: d
4104
+ });
4105
+ const D = h = Symbol();
4106
+ St().then(() => {
4107
+ h === D && (c = !0);
4108
+ }), m = !0, le(f, p, r.state.value[e]);
4109
+ }
4110
+ const b = s ? function() {
4111
+ const { state: p } = n, D = p ? p() : {};
4112
+ this.$patch((P) => {
4113
+ j(P, D);
4114
+ });
4115
+ } : (
4116
+ /* istanbul ignore next */
4117
+ process.env.NODE_ENV !== "production" ? () => {
4118
+ throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
4119
+ } : kr
4120
+ );
4121
+ function T() {
4122
+ u.stop(), f = [], y = [], r._s.delete(e);
4123
+ }
4124
+ const V = (v, p = "") => {
4125
+ if (Rn in v)
4126
+ return v[We] = p, v;
4127
+ const D = function() {
4128
+ De(r);
4129
+ const P = Array.from(arguments), M = [], X = [];
4130
+ function $(w) {
4131
+ M.push(w);
4132
+ }
4133
+ function C(w) {
4134
+ X.push(w);
4135
+ }
4136
+ le(y, {
4137
+ args: P,
4138
+ name: D[We],
4139
+ store: S,
4140
+ after: $,
4141
+ onError: C
4142
+ });
4143
+ let z;
4144
+ try {
4145
+ z = v.apply(this && this.$id === e ? this : S, P);
4146
+ } catch (w) {
4147
+ throw le(X, w), w;
4148
+ }
4149
+ return z instanceof Promise ? z.then((w) => (le(M, w), w)).catch((w) => (le(X, w), Promise.reject(w))) : (le(M, z), z);
4150
+ };
4151
+ return D[Rn] = !0, D[We] = p, D;
4152
+ }, B = /* @__PURE__ */ se({
4153
+ actions: {},
4154
+ getters: {},
4155
+ state: [],
4156
+ hotState: A
4157
+ }), L = {
4158
+ _p: r,
4159
+ // _s: scope,
4160
+ $id: e,
4161
+ $onAction: Pn.bind(null, y),
4162
+ $patch: g,
4163
+ $reset: b,
4164
+ $subscribe(v, p = {}) {
4165
+ const D = Pn(f, v, p.detached, () => P()), P = u.run(() => at(() => r.state.value[e], (M) => {
4166
+ (p.flush === "sync" ? m : c) && v({
4167
+ storeId: e,
4168
+ type: q.direct,
4169
+ events: d
4170
+ }, M);
4171
+ }, j({}, l, p)));
4172
+ return D;
4173
+ },
4174
+ $dispose: T
4175
+ }, S = jr(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Q ? j(
4176
+ {
4177
+ _hmrPayload: B,
4178
+ _customProperties: se(/* @__PURE__ */ new Set())
4179
+ // devtools custom properties
4180
+ },
4181
+ L
4182
+ // must be added later
4183
+ // setupStore
4184
+ ) : L);
4185
+ r._s.set(e, S);
4186
+ const x = (r._a && r._a.runWithContext || yu)(() => r._e.run(() => (u = Ln()).run(() => t({ action: V }))));
4187
+ for (const v in x) {
4188
+ const p = x[v];
4189
+ if (_e(p) && !Nn(p) || Me(p))
4190
+ process.env.NODE_ENV !== "production" && o ? A.value[v] = Pe(x, v) : s || (_ && Au(p) && (_e(p) ? p.value = _[v] : st(p, _[v])), r.state.value[e][v] = p), process.env.NODE_ENV !== "production" && B.state.push(v);
4191
+ else if (typeof p == "function") {
4192
+ const D = process.env.NODE_ENV !== "production" && o ? p : V(p, v);
4193
+ x[v] = D, process.env.NODE_ENV !== "production" && (B.actions[v] = p), i.actions[v] = p;
4194
+ } else process.env.NODE_ENV !== "production" && Nn(p) && (B.getters[v] = s ? (
4195
+ // @ts-expect-error
4196
+ n.getters[v]
4197
+ ) : p, Q && (x._getters || // @ts-expect-error: same
4198
+ (x._getters = se([]))).push(v));
4199
+ }
4200
+ if (j(S, x), j(de(S), x), Object.defineProperty(S, "$state", {
4201
+ get: () => process.env.NODE_ENV !== "production" && o ? A.value : r.state.value[e],
4202
+ set: (v) => {
4203
+ if (process.env.NODE_ENV !== "production" && o)
4204
+ throw new Error("cannot set hotState");
4205
+ g((p) => {
4206
+ j(p, v);
4207
+ });
4208
+ }
4209
+ }), process.env.NODE_ENV !== "production" && (S._hotUpdate = se((v) => {
4210
+ S._hotUpdating = !0, v._hmrPayload.state.forEach((p) => {
4211
+ if (p in S.$state) {
4212
+ const D = v.$state[p], P = S.$state[p];
4213
+ typeof D == "object" && ae(D) && ae(P) ? Ir(D, P) : v.$state[p] = P;
4214
+ }
4215
+ S[p] = Pe(v.$state, p);
4216
+ }), Object.keys(S.$state).forEach((p) => {
4217
+ p in v.$state || delete S[p];
4218
+ }), c = !1, m = !1, r.state.value[e] = Pe(v._hmrPayload, "hotState"), m = !0, St().then(() => {
4219
+ c = !0;
4220
+ });
4221
+ for (const p in v._hmrPayload.actions) {
4222
+ const D = v[p];
4223
+ S[p] = //
4224
+ V(D, p);
4225
+ }
4226
+ for (const p in v._hmrPayload.getters) {
4227
+ const D = v._hmrPayload.getters[p], P = s ? (
4228
+ // special handling of options api
4229
+ it(() => (De(r), D.call(S, S)))
4230
+ ) : D;
4231
+ S[p] = //
4232
+ P;
4233
+ }
4234
+ Object.keys(S._hmrPayload.getters).forEach((p) => {
4235
+ p in v._hmrPayload.getters || delete S[p];
4236
+ }), Object.keys(S._hmrPayload.actions).forEach((p) => {
4237
+ p in v._hmrPayload.actions || delete S[p];
4238
+ }), S._hmrPayload = v._hmrPayload, S._getters = v._getters, S._hotUpdating = !1;
4239
+ })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Q) {
4240
+ const v = {
4241
+ writable: !0,
4242
+ configurable: !0,
4243
+ // avoid warning on devtools trying to display this property
4244
+ enumerable: !1
4245
+ };
4246
+ ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((p) => {
4247
+ Object.defineProperty(S, p, j({ value: S[p] }, v));
4248
+ });
4249
+ }
4250
+ return r._p.forEach((v) => {
4251
+ if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Q) {
4252
+ const p = u.run(() => v({
4253
+ store: S,
4254
+ app: r._a,
4255
+ pinia: r,
4256
+ options: i
4257
+ }));
4258
+ Object.keys(p || {}).forEach((D) => S._customProperties.add(D)), j(S, p);
4259
+ } else
4260
+ j(S, u.run(() => v({
4261
+ store: S,
4262
+ app: r._a,
4263
+ pinia: r,
4264
+ options: i
4265
+ })));
4266
+ }), process.env.NODE_ENV !== "production" && S.$state && typeof S.$state == "object" && typeof S.$state.constructor == "function" && !S.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
4267
+ state: () => new MyClass()
4268
+ Found in store "${S.$id}".`), _ && s && n.hydrate && n.hydrate(S.$state, _), c = !0, m = !0, S;
4269
+ }
4270
+ /*! #__NO_SIDE_EFFECTS__ */
4271
+ // @__NO_SIDE_EFFECTS__
4272
+ function Su(e, t, n) {
4273
+ let r;
4274
+ const o = typeof t == "function";
4275
+ r = o ? n : t;
4276
+ function s(u, i) {
4277
+ const l = Hr();
4278
+ if (u = // in test mode, ignore the argument provided as we can always retrieve a
4279
+ // pinia instance with getActivePinia()
4280
+ (process.env.NODE_ENV === "test" && Oe && Oe._testing ? null : u) || (l ? Kr(vr, null) : null), u && De(u), process.env.NODE_ENV !== "production" && !Oe)
4281
+ throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
4282
+ See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
4283
+ This will fail in production.`);
4284
+ u = Oe, u._s.has(e) || (o ? ut(e, t, r, u) : Vn(e, r, u), process.env.NODE_ENV !== "production" && (s._pinia = u));
4285
+ const c = u._s.get(e);
4286
+ if (process.env.NODE_ENV !== "production" && i) {
4287
+ const m = "__hot:" + e, f = o ? ut(m, t, r, u, !0) : Vn(m, j({}, r), u, !0);
4288
+ i._hotUpdate(f), delete u.state.value[m], u._s.delete(m);
4289
+ }
4290
+ if (process.env.NODE_ENV !== "production" && Q) {
4291
+ const m = zr();
4292
+ if (m && m.proxy && // avoid adding stores that are just built for hot module replacement
4293
+ !i) {
4294
+ const f = m.proxy, y = "_pStores" in f ? f._pStores : f._pStores = {};
4295
+ y[e] = c;
4296
+ }
4297
+ }
4298
+ return c;
4299
+ }
4300
+ return s.$id = e, s;
4301
+ }
4302
+ function Cu(e) {
4303
+ const t = de(e), n = {};
4304
+ for (const r in t) {
4305
+ const o = t[r];
4306
+ o.effect ? n[r] = // ...
4307
+ it({
4308
+ get: () => e[r],
4309
+ set(s) {
4310
+ e[r] = s;
4311
+ }
4312
+ }) : (_e(o) || Me(o)) && (n[r] = // ---
4313
+ Pe(e, r));
4314
+ }
4315
+ return n;
4316
+ }
4317
+ function Tu(e, t) {
4318
+ if (e == null) return;
4319
+ let n = e;
4320
+ for (let r = 0; r < t.length; r++) {
4321
+ if (n === void 0 || n[t[r]] === void 0) return;
4322
+ if (n === null || n[t[r]] === null) return null;
4323
+ n = n[t[r]];
4324
+ }
4325
+ return n;
4326
+ }
4327
+ function At(e, t, n) {
4328
+ if (n.length === 0) return t;
4329
+ const r = n[0];
4330
+ return n.length > 1 && (t = At(typeof e != "object" || e === null || !Object.prototype.hasOwnProperty.call(e, r) ? Number.isInteger(Number(n[1])) ? [] : {} : e[r], t, Array.prototype.slice.call(n, 1))), Number.isInteger(Number(r)) && Array.isArray(e) ? e.slice()[r] : Object.assign({}, e, { [r]: t });
4331
+ }
4332
+ function wr(e, t) {
4333
+ if (e == null || t.length === 0) return e;
4334
+ if (t.length === 1) {
4335
+ if (e == null) return e;
4336
+ if (Number.isInteger(t[0]) && Array.isArray(e)) return Array.prototype.slice.call(e, 0).splice(t[0], 1);
4337
+ const n = {};
4338
+ for (const r in e) n[r] = e[r];
4339
+ return delete n[t[0]], n;
4340
+ }
4341
+ if (e[t[0]] == null) {
4342
+ if (Number.isInteger(t[0]) && Array.isArray(e)) return Array.prototype.concat.call([], e);
4343
+ const n = {};
4344
+ for (const r in e) n[r] = e[r];
4345
+ return n;
4346
+ }
4347
+ return At(e, wr(e[t[0]], Array.prototype.slice.call(t, 1)), [t[0]]);
4348
+ }
4349
+ function Pr(e, t) {
4350
+ return t.map((n) => n.split(".")).map((n) => [n, Tu(e, n)]).filter((n) => n[1] !== void 0).reduce((n, r) => At(n, r[1], r[0]), {});
4351
+ }
4352
+ function Rr(e, t) {
4353
+ return t.map((n) => n.split(".")).reduce((n, r) => wr(n, r), e);
4354
+ }
4355
+ function xn(e, { storage: t, serializer: n, key: r, debug: o, pick: s, omit: u, beforeHydrate: i, afterHydrate: l }, c, m = !0) {
4356
+ try {
4357
+ m && (i == null || i(c));
4358
+ const f = t.getItem(r);
4359
+ if (f) {
4360
+ const y = n.deserialize(f), d = s ? Pr(y, s) : y, _ = u ? Rr(d, u) : d;
4361
+ e.$patch(_);
4362
+ }
4363
+ m && (l == null || l(c));
4364
+ } catch (f) {
4365
+ o && console.error("[pinia-plugin-persistedstate]", f);
4366
+ }
4367
+ }
4368
+ function Fn(e, { storage: t, serializer: n, key: r, debug: o, pick: s, omit: u }) {
4369
+ try {
4370
+ const i = s ? Pr(e, s) : e, l = u ? Rr(i, u) : i, c = n.serialize(l);
4371
+ t.setItem(r, c);
4372
+ } catch (i) {
4373
+ o && console.error("[pinia-plugin-persistedstate]", i);
4374
+ }
4375
+ }
4376
+ function bu(e, t) {
4377
+ return typeof e == "function" ? e(t) : typeof e == "string" ? e : t;
4378
+ }
4379
+ function Du(e, t, n) {
4380
+ const { pinia: r, store: o, options: { persist: s = n } } = e;
4381
+ if (!s) return;
4382
+ // v8 ignore if -- @preserve
4383
+ if (!(o.$id in r.state.value)) {
4384
+ const i = r._s.get(o.$id.replace("__hot:", ""));
4385
+ i && Promise.resolve().then(() => i.$persist());
4386
+ return;
4387
+ }
4388
+ const u = (Array.isArray(s) ? s : s === !0 ? [{}] : [s]).map(t);
4389
+ o.$hydrate = ({ runHooks: i = !0 } = {}) => {
4390
+ u.forEach((l) => {
4391
+ xn(o, l, e, i);
4392
+ });
4393
+ }, o.$persist = () => {
4394
+ u.forEach((i) => {
4395
+ Fn(o.$state, i);
4396
+ });
4397
+ }, u.forEach((i) => {
4398
+ xn(o, i, e), o.$subscribe((l, c) => Fn(c, i), { detached: !0 });
4399
+ });
4400
+ }
4401
+ function Iu(e = {}) {
4402
+ return function(t) {
4403
+ Du(t, (n) => {
4404
+ const r = bu(n.key, t.store.$id);
4405
+ return {
4406
+ key: (e.key ? e.key : (o) => o)(r),
4407
+ debug: n.debug ?? e.debug ?? !1,
4408
+ serializer: n.serializer ?? e.serializer ?? {
4409
+ serialize: (o) => JSON.stringify(o),
4410
+ deserialize: (o) => JSON.parse(o)
4411
+ },
4412
+ storage: n.storage ?? e.storage ?? window.localStorage,
4413
+ beforeHydrate: n.beforeHydrate ?? e.beforeHydrate,
4414
+ afterHydrate: n.afterHydrate ?? e.afterHydrate,
4415
+ pick: n.pick,
4416
+ omit: n.omit
4417
+ };
4418
+ }, e.auto ?? !1);
4419
+ };
4420
+ }
4421
+ var ku = Iu();
4422
+ const Nr = vu();
4423
+ Nr.use(ku);
4424
+ const wu = /* @__PURE__ */ Su("modelComp", () => {
4425
+ const e = I(""), t = I([]), n = I([]), r = I({}), o = I([]), s = I([]), u = I(""), i = I("view"), l = I(!1), c = I(!1), m = I([]), f = I(""), y = I(!1), d = I(""), _ = I(null), A = I([]), h = I(-1), g = I(!1), b = I({}), T = I("data,structure,structureMethod,gridLayout,extend,related"), V = I(!1), B = I(!1), L = I(!1), S = I(), ne = (O) => {
4426
+ e.value = O;
4427
+ }, x = (O) => {
4428
+ S.value = O;
4429
+ }, v = (O) => {
4430
+ L.value = O;
4431
+ }, p = (O) => {
4432
+ V.value = O;
4433
+ }, D = (O) => {
4434
+ B.value = O;
4435
+ }, P = (O) => {
4436
+ b.value = O;
4437
+ }, M = (O) => {
4438
+ n.value = O;
4439
+ }, X = (O) => {
4440
+ r.value = O;
4441
+ }, $ = (O) => {
4442
+ t.value = O;
4443
+ }, C = (O) => {
4444
+ g.value = O;
4445
+ }, z = (O) => {
4446
+ A.value = O;
4447
+ }, w = (O) => {
4448
+ _.value = O;
4449
+ }, J = (O) => {
4450
+ y.value = O;
4451
+ }, W = (O) => {
4452
+ d.value = O;
4453
+ }, H = (O) => {
4454
+ c.value = O;
4455
+ }, re = (O) => {
4456
+ m.value = O;
4457
+ }, ke = (O) => {
4458
+ l.value = O;
4459
+ }, ve = (O) => {
4460
+ o.value = O;
4461
+ }, Vr = (O) => {
4462
+ s.value = O;
4463
+ }, xr = (O) => {
4464
+ u.value = O;
4465
+ }, Fr = (O) => {
4466
+ i.value = O;
4467
+ }, Lr = (O) => {
4468
+ f.value = O;
4469
+ }, Ur = (O) => {
4470
+ h.value = O;
4471
+ }, Br = () => {
4472
+ try {
4473
+ const O = localStorage.getItem("model-store");
4474
+ O && JSON.parse(O).refreshTable !== void 0 && (B.value = !1);
4475
+ } catch (O) {
4476
+ console.error("Failed to restore from storage:", O);
4477
+ }
4478
+ }, Mr = () => ({
4479
+ refreshTable: B.value
4480
+ // isLoading 和 tempFormData 故意不包含
4481
+ }), $r = () => {
4482
+ try {
4483
+ localStorage.setItem("model-store", JSON.stringify(Mr()));
4484
+ } catch (O) {
4485
+ console.error("Failed to save to storage:", O);
4486
+ }
4487
+ };
4488
+ return at(
4489
+ () => [B.value],
4490
+ () => {
4491
+ $r();
4492
+ },
4493
+ { deep: !0, immediate: !0 }
4494
+ ), Br(), {
4495
+ lockingPage: e,
4496
+ itemData: t,
4497
+ itemGridData: n,
4498
+ itemExtendData: r,
4499
+ originalData: o,
4500
+ extraContents: s,
4501
+ nodeDev: u,
4502
+ isEdit: i,
4503
+ isRefreshCurStructure: l,
4504
+ isSubmitCurStructure: c,
4505
+ curStructureCompIds: m,
4506
+ systemPath: f,
4507
+ freshContent: y,
4508
+ routeToChildPath: d,
4509
+ cacheUpdatingData: _,
4510
+ tableViewContents: A,
4511
+ activeItemIndex: h,
4512
+ tableLoading: g,
4513
+ pageMapState: b,
4514
+ payloadTypes: T,
4515
+ fixMenuStatus: V,
4516
+ refreshTable: B,
4517
+ refreshLogin: L,
4518
+ loginInform: S,
4519
+ setLoginInform: x,
4520
+ setRefreshLogin: v,
4521
+ setLockingPage: ne,
4522
+ setRefreshTable: D,
4523
+ setPageMapState: P,
4524
+ setItemGridData: M,
4525
+ setItemExtendData: X,
4526
+ setItemData: $,
4527
+ setTableLoading: C,
4528
+ setRouteToChildPath: W,
4529
+ setTableViewContents: z,
4530
+ setCacheUpdatingData: w,
4531
+ setFreshContent: J,
4532
+ setCurStructureCompIds: re,
4533
+ setSubmitCurStructure: H,
4534
+ setRefreshCurStructure: ke,
4535
+ setFixMenuStatus: p,
4536
+ setActiveItemIndex: Ur,
4537
+ setSystemPath: Lr,
4538
+ setIsEdit: Fr,
4539
+ setNodeDev: xr,
4540
+ setExtraContents: Vr,
4541
+ setOriginalData: ve
4542
+ };
4543
+ }), Pu = wu(Nr), { loginInform: Ye } = Cu(Pu), qe = I(!0), Ru = [
4544
+ {
4545
+ path: "/tenant",
4546
+ name: "Tenant",
4547
+ component: async () => import("./index-CX-XClXK.js")
4548
+ },
4549
+ {
4550
+ path: "/login",
4551
+ name: "Login",
4552
+ component: async () => import("./index-CHAqLCtD.js")
4553
+ },
4554
+ {
4555
+ path: "/",
4556
+ name: "Model",
4557
+ component: async () => import("./index-C9baGOvW.js"),
4558
+ // component: async ()=>import('@/components/views/model/component/main.vue'),
4559
+ // component: async ()=>import('@/components/views/canvas/index.vue'),
4560
+ // component: async ()=>import('@/components/views/test/index.vue'),
4561
+ children: [
4562
+ {
4563
+ path: "系统配置/站内信",
4564
+ name: "Message",
4565
+ component: async () => import("./index-CV_jQDcg.js")
4566
+ },
4567
+ {
4568
+ path: "系统配置/自动生成",
4569
+ name: "Automatic",
4570
+ component: async () => import("./index-uF-ibwG0.js")
4571
+ },
4572
+ {
4573
+ path: "平台管理/菜单管理",
4574
+ name: "Menu",
4575
+ component: async () => import("./index-0VkKesv_.js")
4576
+ },
4577
+ {
4578
+ path: "平台管理/主菜单管理",
4579
+ name: "MainMenu",
4580
+ component: async () => import("./index-DWP-FYxV.js")
4581
+ },
4582
+ {
4583
+ path: "系统管理/个人中心",
4584
+ name: "PersonalCenter",
4585
+ component: async () => import("./index-D6Zkrpou.js")
4586
+ },
4587
+ // {
4588
+ // path: '系统管理/职位管理',
4589
+ // name: 'Post',
4590
+ // component: async () => import('@/pages/post/index.vue')
4591
+ // },
4592
+ // {
4593
+ // path: '系统管理/用户管理',
4594
+ // name: 'User',
4595
+ // component: async () => import('@/pages/user/index.vue')
4596
+ // },
4597
+ // {
4598
+ // path: '系统管理/角色管理',
4599
+ // name: 'Role',
4600
+ // component: async () => import('@/pages/role/index.vue')
4601
+ // },
4602
+ // {
4603
+ // path: '系统管理/部门管理',
4604
+ // name: 'Dept',
4605
+ // component: async () => import('@/pages/dept/index.vue')
4606
+ // },
4607
+ {
4608
+ path: "系统维护/登录日志",
4609
+ name: "LoginLog",
4610
+ component: async () => import("./index-Dcp8sI4C.js")
4611
+ },
4612
+ {
4613
+ path: "系统维护/操作日志",
4614
+ name: "OperateLog",
4615
+ component: async () => import("./index-CbBP02RV.js")
4616
+ },
4617
+ {
4618
+ path: "角色管理",
4619
+ name: "Role",
4620
+ component: async () => import("./index-D0gKkud0.js")
4621
+ },
4622
+ {
4623
+ path: "部门管理",
4624
+ name: "Department",
4625
+ component: async () => import("./index-voXPz7Hq.js")
4626
+ },
4627
+ {
4628
+ path: "职位管理",
4629
+ name: "Position",
4630
+ component: async () => import("./index-CHnN0kSC.js")
4631
+ },
4632
+ {
4633
+ path: "个人中心",
4634
+ name: "PersonalCenter",
4635
+ component: async () => import("./index-Ijbw1FIL.js")
4636
+ },
4637
+ {
4638
+ path: "log",
4639
+ name: "log",
4640
+ component: async () => import("./index-CYgpY06q.js")
4641
+ }
4642
+ // {
4643
+ // path: 'priority',
4644
+ // name: 'Priority',
4645
+ // component: async () => import('@/pages/priority/index.vue'),
4646
+ // },
4647
+ ]
4648
+ }
4649
+ ], Nu = qr({
4650
+ history: Zr(),
4651
+ routes: Ru
4652
+ });
4653
+ Nu.beforeEach(async (e, t, n) => {
4654
+ var o, s;
4655
+ const r = sessionStorage.getItem("loginToken");
4656
+ if (console.log(2321, r, e.path, Ye.value), qe.value && !r && e.path === "/") {
4657
+ qe.value = !1, n();
4658
+ return;
4659
+ }
4660
+ qe.value = !1, !r && e.path !== "/login" && (!((o = Ye.value) != null && o.account) || !((s = Ye.value) != null && s.password)) ? n("/login") : n();
4661
+ });
4662
+ export {
4663
+ Su as d,
4664
+ qe as i,
4665
+ Nr as p,
4666
+ Nu as r,
4667
+ Cu as s,
4668
+ wu as u
4669
+ };