@valaxyjs/devtools 0.23.5 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{about-rjfU4__7.js → about-owKsYr3E.js} +1 -1
- package/dist/client/assets/{categories-BBfumNEa.js → categories-BGG1NAYq.js} +1 -1
- package/dist/client/assets/{index-C08qRPwv.js → index-BQ28fLxA.js} +379 -1689
- package/dist/client/assets/{index-Ch6xFAPn.js → index-CuVxz6bX.js} +131 -1252
- package/dist/client/assets/{migration-Bm3qOgQn.js → migration-BBvf-kdp.js} +2 -2
- package/dist/client/assets/{splitpanes.es-Cne9xE0z.js → splitpanes.es-BeYGdDVf.js} +72 -840
- package/dist/client/assets/{tags-CCpP7bH0.js → tags-BZ1s-2OD.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +8 -8
|
@@ -1,1290 +1,54 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CuVxz6bX.js","./splitpanes.es-BeYGdDVf.js","./index-DKnSvpEK.css","./migration-BBvf-kdp.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
true &&(function polyfill() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if (link.ep)
|
|
33
|
-
return;
|
|
34
|
-
link.ep = true;
|
|
35
|
-
const fetchOpts = getFetchOpts(link);
|
|
36
|
-
fetch(link.href, fetchOpts);
|
|
37
|
-
}
|
|
38
|
-
}());
|
|
39
|
-
/* Injected with object hook! */
|
|
40
|
-
|
|
41
|
-
var __defProp$1 = Object.defineProperty;
|
|
42
|
-
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
43
|
-
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
44
|
-
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
45
|
-
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
46
|
-
var __spreadValues$1 = (a, b) => {
|
|
47
|
-
for (var prop in b || (b = {}))
|
|
48
|
-
if (__hasOwnProp$1.call(b, prop))
|
|
49
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
50
|
-
if (__getOwnPropSymbols$1)
|
|
51
|
-
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
52
|
-
if (__propIsEnum$1.call(b, prop))
|
|
53
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
54
|
-
}
|
|
55
|
-
return a;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
// src/object/methods/isEmpty.ts
|
|
59
|
-
function isEmpty(value) {
|
|
60
|
-
return value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && typeof value === "object" && Object.keys(value).length === 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// src/object/methods/deepEquals.ts
|
|
64
|
-
function _deepEquals(obj1, obj2, visited = /* @__PURE__ */ new WeakSet()) {
|
|
65
|
-
if (obj1 === obj2) return true;
|
|
66
|
-
if (!obj1 || !obj2 || typeof obj1 !== "object" || typeof obj2 !== "object") return false;
|
|
67
|
-
if (visited.has(obj1) || visited.has(obj2)) return false;
|
|
68
|
-
visited.add(obj1).add(obj2);
|
|
69
|
-
const arrObj1 = Array.isArray(obj1);
|
|
70
|
-
const arrObj2 = Array.isArray(obj2);
|
|
71
|
-
let i, length, key;
|
|
72
|
-
if (arrObj1 && arrObj2) {
|
|
73
|
-
length = obj1.length;
|
|
74
|
-
if (length != obj2.length) return false;
|
|
75
|
-
for (i = length; i-- !== 0; ) if (!_deepEquals(obj1[i], obj2[i], visited)) return false;
|
|
76
|
-
return true;
|
|
77
|
-
}
|
|
78
|
-
if (arrObj1 != arrObj2) return false;
|
|
79
|
-
const dateObj1 = obj1 instanceof Date, dateObj2 = obj2 instanceof Date;
|
|
80
|
-
if (dateObj1 != dateObj2) return false;
|
|
81
|
-
if (dateObj1 && dateObj2) return obj1.getTime() == obj2.getTime();
|
|
82
|
-
const regexpObj1 = obj1 instanceof RegExp, regexpObj2 = obj2 instanceof RegExp;
|
|
83
|
-
if (regexpObj1 != regexpObj2) return false;
|
|
84
|
-
if (regexpObj1 && regexpObj2) return obj1.toString() == obj2.toString();
|
|
85
|
-
const keys = Object.keys(obj1);
|
|
86
|
-
length = keys.length;
|
|
87
|
-
if (length !== Object.keys(obj2).length) return false;
|
|
88
|
-
for (i = length; i-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(obj2, keys[i])) return false;
|
|
89
|
-
for (i = length; i-- !== 0; ) {
|
|
90
|
-
key = keys[i];
|
|
91
|
-
if (!_deepEquals(obj1[key], obj2[key], visited)) return false;
|
|
92
|
-
}
|
|
93
|
-
return true;
|
|
94
|
-
}
|
|
95
|
-
function deepEquals(obj1, obj2) {
|
|
96
|
-
return _deepEquals(obj1, obj2);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// src/object/methods/isFunction.ts
|
|
100
|
-
function isFunction$2(value) {
|
|
101
|
-
return typeof value === "function" && "call" in value && "apply" in value;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// src/object/methods/isNotEmpty.ts
|
|
105
|
-
function isNotEmpty(value) {
|
|
106
|
-
return !isEmpty(value);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// src/object/methods/resolveFieldData.ts
|
|
110
|
-
function resolveFieldData(data, field) {
|
|
111
|
-
if (!data || !field) {
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
114
|
-
try {
|
|
115
|
-
const value = data[field];
|
|
116
|
-
if (isNotEmpty(value)) return value;
|
|
117
|
-
} catch (e) {
|
|
118
|
-
}
|
|
119
|
-
if (Object.keys(data).length) {
|
|
120
|
-
if (isFunction$2(field)) {
|
|
121
|
-
return field(data);
|
|
122
|
-
} else if (field.indexOf(".") === -1) {
|
|
123
|
-
return data[field];
|
|
124
|
-
} else {
|
|
125
|
-
const fields = field.split(".");
|
|
126
|
-
let value = data;
|
|
127
|
-
for (let i = 0, len = fields.length; i < len; ++i) {
|
|
128
|
-
if (value == null) {
|
|
129
|
-
return null;
|
|
130
|
-
}
|
|
131
|
-
value = value[fields[i]];
|
|
132
|
-
}
|
|
133
|
-
return value;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return null;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// src/object/methods/equals.ts
|
|
140
|
-
function equals(obj1, obj2, field) {
|
|
141
|
-
if (field) return resolveFieldData(obj1, field) === resolveFieldData(obj2, field);
|
|
142
|
-
else return deepEquals(obj1, obj2);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// src/object/methods/contains.ts
|
|
146
|
-
function contains(value, list) {
|
|
147
|
-
if (value != null && list && list.length) {
|
|
148
|
-
for (const val of list) {
|
|
149
|
-
if (equals(value, val)) return true;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
return false;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
// src/object/methods/isObject.ts
|
|
156
|
-
function isObject$3(value, empty = true) {
|
|
157
|
-
return value instanceof Object && value.constructor === Object && (empty || Object.keys(value).length !== 0);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
// src/object/methods/deepMerge.ts
|
|
161
|
-
function _deepMerge(target = {}, source = {}) {
|
|
162
|
-
const mergedObj = __spreadValues$1({}, target);
|
|
163
|
-
Object.keys(source).forEach((key) => {
|
|
164
|
-
const typedKey = key;
|
|
165
|
-
if (isObject$3(source[typedKey]) && typedKey in target && isObject$3(target[typedKey])) {
|
|
166
|
-
mergedObj[typedKey] = _deepMerge(target[typedKey], source[typedKey]);
|
|
167
|
-
} else {
|
|
168
|
-
mergedObj[typedKey] = source[typedKey];
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
return mergedObj;
|
|
172
|
-
}
|
|
173
|
-
function deepMerge(...args) {
|
|
174
|
-
return args.reduce((acc, obj, i) => i === 0 ? obj : _deepMerge(acc, obj), {});
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// src/object/methods/resolve.ts
|
|
178
|
-
function resolve$1(obj, ...params) {
|
|
179
|
-
return isFunction$2(obj) ? obj(...params) : obj;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// src/object/methods/isString.ts
|
|
183
|
-
function isString$2(value, empty = true) {
|
|
184
|
-
return typeof value === "string" && (empty || value !== "");
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
// src/object/methods/toFlatCase.ts
|
|
188
|
-
function toFlatCase(str) {
|
|
189
|
-
return isString$2(str) ? str.replace(/(-|_)/g, "").toLowerCase() : str;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
// src/object/methods/getKeyValue.ts
|
|
193
|
-
function getKeyValue(obj, key = "", params = {}) {
|
|
194
|
-
const fKeys = toFlatCase(key).split(".");
|
|
195
|
-
const fKey = fKeys.shift();
|
|
196
|
-
if (fKey) {
|
|
197
|
-
if (isObject$3(obj)) {
|
|
198
|
-
const matchedKey = Object.keys(obj).find((k) => toFlatCase(k) === fKey) || "";
|
|
199
|
-
return getKeyValue(resolve$1(obj[matchedKey], params), fKeys.join("."), params);
|
|
200
|
-
}
|
|
201
|
-
return void 0;
|
|
202
|
-
}
|
|
203
|
-
return resolve$1(obj, params);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
// src/object/methods/isArray.ts
|
|
207
|
-
function isArray$3(value, empty = true) {
|
|
208
|
-
return Array.isArray(value) && (empty || value.length !== 0);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// src/object/methods/isNumber.ts
|
|
212
|
-
function isNumber$1(value) {
|
|
213
|
-
return isNotEmpty(value) && !isNaN(value);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
// src/object/methods/localeComparator.ts
|
|
217
|
-
function localeComparator() {
|
|
218
|
-
return new Intl.Collator(void 0, { numeric: true }).compare;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// src/object/methods/matchRegex.ts
|
|
222
|
-
function matchRegex(str, regex) {
|
|
223
|
-
if (regex) {
|
|
224
|
-
const match = regex.test(str);
|
|
225
|
-
regex.lastIndex = 0;
|
|
226
|
-
return match;
|
|
227
|
-
}
|
|
228
|
-
return false;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// src/object/methods/mergeKeys.ts
|
|
232
|
-
function mergeKeys(...args) {
|
|
233
|
-
return deepMerge(...args);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
// src/object/methods/minifyCSS.ts
|
|
237
|
-
function minifyCSS(css) {
|
|
238
|
-
return css ? css.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g, "").replace(/ {2,}/g, " ").replace(/ ([{:}]) /g, "$1").replace(/([;,]) /g, "$1").replace(/ !/g, "!").replace(/: /g, ":").trim() : css;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
// src/object/methods/toCapitalCase.ts
|
|
242
|
-
function toCapitalCase(str) {
|
|
243
|
-
return isString$2(str, false) ? str[0].toUpperCase() + str.slice(1) : str;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
// src/object/methods/toKebabCase.ts
|
|
247
|
-
function toKebabCase(str) {
|
|
248
|
-
return isString$2(str) ? str.replace(/(_)/g, "-").replace(/[A-Z]/g, (c, i) => i === 0 ? c : "-" + c.toLowerCase()).toLowerCase() : str;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/* Injected with object hook! */
|
|
252
|
-
|
|
253
|
-
// src/eventbus/index.ts
|
|
254
|
-
function EventBus() {
|
|
255
|
-
const allHandlers = /* @__PURE__ */ new Map();
|
|
256
|
-
return {
|
|
257
|
-
on(type, handler) {
|
|
258
|
-
let handlers = allHandlers.get(type);
|
|
259
|
-
if (!handlers) handlers = [handler];
|
|
260
|
-
else handlers.push(handler);
|
|
261
|
-
allHandlers.set(type, handlers);
|
|
262
|
-
return this;
|
|
263
|
-
},
|
|
264
|
-
off(type, handler) {
|
|
265
|
-
const handlers = allHandlers.get(type);
|
|
266
|
-
if (handlers) {
|
|
267
|
-
handlers.splice(handlers.indexOf(handler) >>> 0, 1);
|
|
268
|
-
}
|
|
269
|
-
return this;
|
|
270
|
-
},
|
|
271
|
-
emit(type, evt) {
|
|
272
|
-
const handlers = allHandlers.get(type);
|
|
273
|
-
if (handlers) {
|
|
274
|
-
handlers.forEach((handler) => {
|
|
275
|
-
handler(evt);
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
clear() {
|
|
280
|
-
allHandlers.clear();
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
/* Injected with object hook! */
|
|
286
|
-
|
|
287
|
-
// src/dom/methods/hasClass.ts
|
|
288
|
-
function hasClass(element, className) {
|
|
289
|
-
if (element) {
|
|
290
|
-
if (element.classList) return element.classList.contains(className);
|
|
291
|
-
else return new RegExp("(^| )" + className + "( |$)", "gi").test(element.className);
|
|
292
|
-
}
|
|
293
|
-
return false;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
// src/dom/methods/addClass.ts
|
|
297
|
-
function addClass(element, className) {
|
|
298
|
-
if (element && className) {
|
|
299
|
-
const fn = (_className) => {
|
|
300
|
-
if (!hasClass(element, _className)) {
|
|
301
|
-
if (element.classList) element.classList.add(_className);
|
|
302
|
-
else element.className += " " + _className;
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
[className].flat().filter(Boolean).forEach((_classNames) => _classNames.split(" ").forEach(fn));
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
// src/dom/methods/removeClass.ts
|
|
310
|
-
function removeClass(element, className) {
|
|
311
|
-
if (element && className) {
|
|
312
|
-
const fn = (_className) => {
|
|
313
|
-
if (element.classList) element.classList.remove(_className);
|
|
314
|
-
else element.className = element.className.replace(new RegExp("(^|\\b)" + _className.split(" ").join("|") + "(\\b|$)", "gi"), " ");
|
|
315
|
-
};
|
|
316
|
-
[className].flat().filter(Boolean).forEach((_classNames) => _classNames.split(" ").forEach(fn));
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
// src/dom/methods/getCSSVariableByRegex.ts
|
|
321
|
-
function getCSSVariableByRegex(variableRegex) {
|
|
322
|
-
for (const sheet of document == null ? void 0 : document.styleSheets) {
|
|
323
|
-
try {
|
|
324
|
-
for (const rule of sheet == null ? void 0 : sheet.cssRules) {
|
|
325
|
-
for (const property of rule == null ? void 0 : rule.style) {
|
|
326
|
-
if (variableRegex.test(property)) {
|
|
327
|
-
return { name: property, value: rule.style.getPropertyValue(property).trim() };
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
} catch (e) {
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
return null;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
// src/dom/methods/getHiddenElementDimensions.ts
|
|
338
|
-
function getHiddenElementDimensions(element) {
|
|
339
|
-
const dimensions = { width: 0, height: 0 };
|
|
340
|
-
if (element) {
|
|
341
|
-
element.style.visibility = "hidden";
|
|
342
|
-
element.style.display = "block";
|
|
343
|
-
dimensions.width = element.offsetWidth;
|
|
344
|
-
dimensions.height = element.offsetHeight;
|
|
345
|
-
element.style.display = "none";
|
|
346
|
-
element.style.visibility = "visible";
|
|
347
|
-
}
|
|
348
|
-
return dimensions;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
// src/dom/methods/getViewport.ts
|
|
352
|
-
function getViewport() {
|
|
353
|
-
const win = window, d = document, e = d.documentElement, g = d.getElementsByTagName("body")[0], w = win.innerWidth || e.clientWidth || g.clientWidth, h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
354
|
-
return { width: w, height: h };
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
// src/dom/methods/getScrollLeft.ts
|
|
358
|
-
function getScrollLeft(element) {
|
|
359
|
-
return element ? Math.abs(element.scrollLeft) : 0;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
// src/dom/methods/getWindowScrollLeft.ts
|
|
363
|
-
function getWindowScrollLeft() {
|
|
364
|
-
const doc = document.documentElement;
|
|
365
|
-
return (window.pageXOffset || getScrollLeft(doc)) - (doc.clientLeft || 0);
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
// src/dom/methods/getWindowScrollTop.ts
|
|
369
|
-
function getWindowScrollTop() {
|
|
370
|
-
const doc = document.documentElement;
|
|
371
|
-
return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
// src/dom/methods/isRTL.ts
|
|
375
|
-
function isRTL(element) {
|
|
376
|
-
return element ? getComputedStyle(element).direction === "rtl" : false;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
// src/dom/methods/absolutePosition.ts
|
|
380
|
-
function absolutePosition(element, target, gutter = true) {
|
|
381
|
-
var _a, _b, _c, _d;
|
|
382
|
-
if (element) {
|
|
383
|
-
const elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : getHiddenElementDimensions(element);
|
|
384
|
-
const elementOuterHeight = elementDimensions.height;
|
|
385
|
-
const elementOuterWidth = elementDimensions.width;
|
|
386
|
-
const targetOuterHeight = target.offsetHeight;
|
|
387
|
-
const targetOuterWidth = target.offsetWidth;
|
|
388
|
-
const targetOffset = target.getBoundingClientRect();
|
|
389
|
-
const windowScrollTop = getWindowScrollTop();
|
|
390
|
-
const windowScrollLeft = getWindowScrollLeft();
|
|
391
|
-
const viewport = getViewport();
|
|
392
|
-
let top, left, origin = "top";
|
|
393
|
-
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
394
|
-
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
395
|
-
origin = "bottom";
|
|
396
|
-
if (top < 0) {
|
|
397
|
-
top = windowScrollTop;
|
|
398
|
-
}
|
|
399
|
-
} else {
|
|
400
|
-
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
401
|
-
}
|
|
402
|
-
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);
|
|
403
|
-
else left = targetOffset.left + windowScrollLeft;
|
|
404
|
-
if (isRTL(element)) {
|
|
405
|
-
element.style.insetInlineEnd = left + "px";
|
|
406
|
-
} else {
|
|
407
|
-
element.style.insetInlineStart = left + "px";
|
|
408
|
-
}
|
|
409
|
-
element.style.top = top + "px";
|
|
410
|
-
element.style.transformOrigin = origin;
|
|
411
|
-
if (gutter) element.style.marginTop = origin === "bottom" ? `calc(${(_b = (_a = getCSSVariableByRegex(/-anchor-gutter$/)) == null ? void 0 : _a.value) != null ? _b : "2px"} * -1)` : (_d = (_c = getCSSVariableByRegex(/-anchor-gutter$/)) == null ? void 0 : _c.value) != null ? _d : "";
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
// src/dom/methods/addStyle.ts
|
|
416
|
-
function addStyle(element, style) {
|
|
417
|
-
if (element) {
|
|
418
|
-
if (typeof style === "string") {
|
|
419
|
-
element.style.cssText = style;
|
|
420
|
-
} else {
|
|
421
|
-
Object.entries(style || {}).forEach(([key, value]) => element.style[key] = value);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
// src/dom/methods/getOuterWidth.ts
|
|
427
|
-
function getOuterWidth(element, margin) {
|
|
428
|
-
if (element instanceof HTMLElement) {
|
|
429
|
-
let width = element.offsetWidth;
|
|
430
|
-
return width;
|
|
431
|
-
}
|
|
432
|
-
return 0;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
// src/dom/methods/relativePosition.ts
|
|
436
|
-
function relativePosition(element, target, gutter = true) {
|
|
437
|
-
var _a, _b, _c, _d;
|
|
438
|
-
if (element) {
|
|
439
|
-
const elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : getHiddenElementDimensions(element);
|
|
440
|
-
const targetHeight = target.offsetHeight;
|
|
441
|
-
const targetOffset = target.getBoundingClientRect();
|
|
442
|
-
const viewport = getViewport();
|
|
443
|
-
let top, left, origin = "top";
|
|
444
|
-
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
445
|
-
top = -1 * elementDimensions.height;
|
|
446
|
-
origin = "bottom";
|
|
447
|
-
if (targetOffset.top + top < 0) {
|
|
448
|
-
top = -1 * targetOffset.top;
|
|
449
|
-
}
|
|
450
|
-
} else {
|
|
451
|
-
top = targetHeight;
|
|
452
|
-
}
|
|
453
|
-
if (elementDimensions.width > viewport.width) {
|
|
454
|
-
left = targetOffset.left * -1;
|
|
455
|
-
} else if (targetOffset.left + elementDimensions.width > viewport.width) {
|
|
456
|
-
left = (targetOffset.left + elementDimensions.width - viewport.width) * -1;
|
|
457
|
-
} else {
|
|
458
|
-
left = 0;
|
|
459
|
-
}
|
|
460
|
-
element.style.top = top + "px";
|
|
461
|
-
element.style.insetInlineStart = left + "px";
|
|
462
|
-
element.style.transformOrigin = origin;
|
|
463
|
-
gutter && (element.style.marginTop = origin === "bottom" ? `calc(${(_b = (_a = getCSSVariableByRegex(/-anchor-gutter$/)) == null ? void 0 : _a.value) != null ? _b : "2px"} * -1)` : (_d = (_c = getCSSVariableByRegex(/-anchor-gutter$/)) == null ? void 0 : _c.value) != null ? _d : "");
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
// src/dom/methods/getParentNode.ts
|
|
468
|
-
function getParentNode(element) {
|
|
469
|
-
if (element) {
|
|
470
|
-
let parent = element.parentNode;
|
|
471
|
-
if (parent && parent instanceof ShadowRoot && parent.host) {
|
|
472
|
-
parent = parent.host;
|
|
473
|
-
}
|
|
474
|
-
return parent;
|
|
475
|
-
}
|
|
476
|
-
return null;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
// src/dom/methods/isExist.ts
|
|
480
|
-
function isExist(element) {
|
|
481
|
-
return !!(element !== null && typeof element !== "undefined" && element.nodeName && getParentNode(element));
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
// src/dom/methods/isElement.ts
|
|
485
|
-
function isElement(element) {
|
|
486
|
-
return typeof Element !== "undefined" ? element instanceof Element : element !== null && typeof element === "object" && element.nodeType === 1 && typeof element.nodeName === "string";
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
// src/dom/methods/clearSelection.ts
|
|
490
|
-
function clearSelection() {
|
|
491
|
-
if (window.getSelection) {
|
|
492
|
-
const selection = window.getSelection() || {};
|
|
493
|
-
if (selection.empty) {
|
|
494
|
-
selection.empty();
|
|
495
|
-
} else if (selection.removeAllRanges && selection.rangeCount > 0 && selection.getRangeAt(0).getClientRects().length > 0) {
|
|
496
|
-
selection.removeAllRanges();
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
// src/dom/methods/setAttributes.ts
|
|
502
|
-
function setAttributes(element, attributes = {}) {
|
|
503
|
-
if (isElement(element)) {
|
|
504
|
-
const computedStyles = (rule, value) => {
|
|
505
|
-
var _a, _b;
|
|
506
|
-
const styles = ((_a = element == null ? void 0 : element.$attrs) == null ? void 0 : _a[rule]) ? [(_b = element == null ? void 0 : element.$attrs) == null ? void 0 : _b[rule]] : [];
|
|
507
|
-
return [value].flat().reduce((cv, v) => {
|
|
508
|
-
if (v !== null && v !== void 0) {
|
|
509
|
-
const type = typeof v;
|
|
510
|
-
if (type === "string" || type === "number") {
|
|
511
|
-
cv.push(v);
|
|
512
|
-
} else if (type === "object") {
|
|
513
|
-
const _cv = Array.isArray(v) ? computedStyles(rule, v) : Object.entries(v).map(([_k, _v]) => rule === "style" && (!!_v || _v === 0) ? `${_k.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()}:${_v}` : _v ? _k : void 0);
|
|
514
|
-
cv = _cv.length ? cv.concat(_cv.filter((c) => !!c)) : cv;
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
return cv;
|
|
518
|
-
}, styles);
|
|
519
|
-
};
|
|
520
|
-
Object.entries(attributes).forEach(([key, value]) => {
|
|
521
|
-
if (value !== void 0 && value !== null) {
|
|
522
|
-
const matchedEvent = key.match(/^on(.+)/);
|
|
523
|
-
if (matchedEvent) {
|
|
524
|
-
element.addEventListener(matchedEvent[1].toLowerCase(), value);
|
|
525
|
-
} else if (key === "p-bind" || key === "pBind") {
|
|
526
|
-
setAttributes(element, value);
|
|
527
|
-
} else {
|
|
528
|
-
value = key === "class" ? [...new Set(computedStyles("class", value))].join(" ").trim() : key === "style" ? computedStyles("style", value).join(";").trim() : value;
|
|
529
|
-
(element.$attrs = element.$attrs || {}) && (element.$attrs[key] = value);
|
|
530
|
-
element.setAttribute(key, value);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
});
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
// src/dom/methods/createElement.ts
|
|
538
|
-
function createElement(type, attributes = {}, ...children) {
|
|
539
|
-
{
|
|
540
|
-
const element = document.createElement(type);
|
|
541
|
-
setAttributes(element, attributes);
|
|
542
|
-
element.append(...children);
|
|
543
|
-
return element;
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
// src/dom/methods/find.ts
|
|
548
|
-
function find(element, selector) {
|
|
549
|
-
return isElement(element) ? Array.from(element.querySelectorAll(selector)) : [];
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
// src/dom/methods/findSingle.ts
|
|
553
|
-
function findSingle(element, selector) {
|
|
554
|
-
return isElement(element) ? element.matches(selector) ? element : element.querySelector(selector) : null;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
// src/dom/methods/getAttribute.ts
|
|
558
|
-
function getAttribute(element, name) {
|
|
559
|
-
if (isElement(element)) {
|
|
560
|
-
const value = element.getAttribute(name);
|
|
561
|
-
if (!isNaN(value)) {
|
|
562
|
-
return +value;
|
|
563
|
-
}
|
|
564
|
-
if (value === "true" || value === "false") {
|
|
565
|
-
return value === "true";
|
|
566
|
-
}
|
|
567
|
-
return value;
|
|
568
|
-
}
|
|
569
|
-
return void 0;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
// src/dom/methods/getFocusableElements.ts
|
|
573
|
-
function getFocusableElements(element, selector = "") {
|
|
574
|
-
const focusableElements = find(
|
|
575
|
-
element,
|
|
576
|
-
`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
577
|
-
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
578
|
-
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
579
|
-
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
580
|
-
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
581
|
-
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
582
|
-
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector}`
|
|
583
|
-
);
|
|
584
|
-
const visibleFocusableElements = [];
|
|
585
|
-
for (const focusableElement of focusableElements) {
|
|
586
|
-
if (getComputedStyle(focusableElement).display != "none" && getComputedStyle(focusableElement).visibility != "hidden") visibleFocusableElements.push(focusableElement);
|
|
587
|
-
}
|
|
588
|
-
return visibleFocusableElements;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
// src/dom/methods/getHeight.ts
|
|
592
|
-
function getHeight(element) {
|
|
593
|
-
if (element) {
|
|
594
|
-
let height = element.offsetHeight;
|
|
595
|
-
const style = getComputedStyle(element);
|
|
596
|
-
height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
|
|
597
|
-
return height;
|
|
598
|
-
}
|
|
599
|
-
return 0;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
// src/dom/methods/getIndex.ts
|
|
603
|
-
function getIndex(element) {
|
|
604
|
-
var _a;
|
|
605
|
-
if (element) {
|
|
606
|
-
const children = (_a = getParentNode(element)) == null ? void 0 : _a.childNodes;
|
|
607
|
-
let num = 0;
|
|
608
|
-
if (children) {
|
|
609
|
-
for (let i = 0; i < children.length; i++) {
|
|
610
|
-
if (children[i] === element) return num;
|
|
611
|
-
if (children[i].nodeType === 1) num++;
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
return -1;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
// src/dom/methods/getOffset.ts
|
|
619
|
-
function getOffset(element) {
|
|
620
|
-
if (element) {
|
|
621
|
-
const rect = element.getBoundingClientRect();
|
|
622
|
-
return {
|
|
623
|
-
top: rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
|
|
624
|
-
left: rect.left + (window.pageXOffset || getScrollLeft(document.documentElement) || getScrollLeft(document.body) || 0)
|
|
625
|
-
};
|
|
626
|
-
}
|
|
627
|
-
return {
|
|
628
|
-
top: "auto",
|
|
629
|
-
left: "auto"
|
|
630
|
-
};
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
// src/dom/methods/getOuterHeight.ts
|
|
634
|
-
function getOuterHeight(element, margin) {
|
|
635
|
-
if (element) {
|
|
636
|
-
let height = element.offsetHeight;
|
|
637
|
-
return height;
|
|
638
|
-
}
|
|
639
|
-
return 0;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
// src/dom/methods/getParents.ts
|
|
643
|
-
function getParents(element, parents = []) {
|
|
644
|
-
const parent = getParentNode(element);
|
|
645
|
-
return parent === null ? parents : getParents(parent, parents.concat([parent]));
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
// src/dom/methods/getScrollableParents.ts
|
|
649
|
-
function getScrollableParents(element) {
|
|
650
|
-
const scrollableParents = [];
|
|
651
|
-
if (element) {
|
|
652
|
-
const parents = getParents(element);
|
|
653
|
-
const overflowRegex = /(auto|scroll)/;
|
|
654
|
-
const overflowCheck = (node) => {
|
|
655
|
-
try {
|
|
656
|
-
const styleDeclaration = window["getComputedStyle"](node, null);
|
|
657
|
-
return overflowRegex.test(styleDeclaration.getPropertyValue("overflow")) || overflowRegex.test(styleDeclaration.getPropertyValue("overflowX")) || overflowRegex.test(styleDeclaration.getPropertyValue("overflowY"));
|
|
658
|
-
} catch (e) {
|
|
659
|
-
return false;
|
|
660
|
-
}
|
|
661
|
-
};
|
|
662
|
-
for (const parent of parents) {
|
|
663
|
-
const scrollSelectors = parent.nodeType === 1 && parent.dataset["scrollselectors"];
|
|
664
|
-
if (scrollSelectors) {
|
|
665
|
-
const selectors = scrollSelectors.split(",");
|
|
666
|
-
for (const selector of selectors) {
|
|
667
|
-
const el = findSingle(parent, selector);
|
|
668
|
-
if (el && overflowCheck(el)) {
|
|
669
|
-
scrollableParents.push(el);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
if (parent.nodeType !== 9 && overflowCheck(parent)) {
|
|
674
|
-
scrollableParents.push(parent);
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
return scrollableParents;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
// src/dom/methods/getSelection.ts
|
|
682
|
-
function getSelection() {
|
|
683
|
-
if (window.getSelection) return window.getSelection().toString();
|
|
684
|
-
else if (document.getSelection) return document.getSelection().toString();
|
|
685
|
-
return void 0;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
// src/dom/methods/getWidth.ts
|
|
689
|
-
function getWidth(element) {
|
|
690
|
-
if (element) {
|
|
691
|
-
let width = element.offsetWidth;
|
|
692
|
-
const style = getComputedStyle(element);
|
|
693
|
-
width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
|
|
694
|
-
return width;
|
|
695
|
-
}
|
|
696
|
-
return 0;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
// src/dom/methods/isClient.ts
|
|
700
|
-
function isClient$1() {
|
|
701
|
-
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
// src/dom/methods/isTouchDevice.ts
|
|
705
|
-
function isTouchDevice() {
|
|
706
|
-
return "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
// src/dom/methods/setAttribute.ts
|
|
710
|
-
function setAttribute(element, attribute = "", value) {
|
|
711
|
-
if (isElement(element) && value !== null && value !== void 0) {
|
|
712
|
-
element.setAttribute(attribute, value);
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
/* Injected with object hook! */
|
|
717
|
-
|
|
718
|
-
var __defProp = Object.defineProperty;
|
|
719
|
-
var __defProps = Object.defineProperties;
|
|
720
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
721
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
722
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
723
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
724
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
725
|
-
var __spreadValues = (a, b) => {
|
|
726
|
-
for (var prop in b || (b = {}))
|
|
727
|
-
if (__hasOwnProp.call(b, prop))
|
|
728
|
-
__defNormalProp(a, prop, b[prop]);
|
|
729
|
-
if (__getOwnPropSymbols)
|
|
730
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
731
|
-
if (__propIsEnum.call(b, prop))
|
|
732
|
-
__defNormalProp(a, prop, b[prop]);
|
|
733
|
-
}
|
|
734
|
-
return a;
|
|
735
|
-
};
|
|
736
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
737
|
-
var __objRest = (source, exclude) => {
|
|
738
|
-
var target = {};
|
|
739
|
-
for (var prop in source)
|
|
740
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
741
|
-
target[prop] = source[prop];
|
|
742
|
-
if (source != null && __getOwnPropSymbols)
|
|
743
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
744
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
745
|
-
target[prop] = source[prop];
|
|
746
|
-
}
|
|
747
|
-
return target;
|
|
748
|
-
};
|
|
749
|
-
function definePreset(...presets) {
|
|
750
|
-
return deepMerge(...presets);
|
|
751
|
-
}
|
|
752
|
-
var ThemeService = EventBus();
|
|
753
|
-
var service_default = ThemeService;
|
|
754
|
-
var EXPR_REGEX = /{([^}]*)}/g;
|
|
755
|
-
var CALC_REGEX = /(\d+\s+[\+\-\*\/]\s+\d+)/g;
|
|
756
|
-
var VAR_REGEX = /var\([^)]+\)/g;
|
|
757
|
-
function toValue$1(value) {
|
|
758
|
-
return isObject$3(value) && value.hasOwnProperty("$value") && value.hasOwnProperty("$type") ? value.$value : value;
|
|
759
|
-
}
|
|
760
|
-
function toNormalizePrefix(prefix) {
|
|
761
|
-
return prefix.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
762
|
-
}
|
|
763
|
-
function toNormalizeVariable(prefix = "", variable = "") {
|
|
764
|
-
return toNormalizePrefix(`${isString$2(prefix, false) && isString$2(variable, false) ? `${prefix}-` : prefix}${variable}`);
|
|
765
|
-
}
|
|
766
|
-
function getVariableName(prefix = "", variable = "") {
|
|
767
|
-
return `--${toNormalizeVariable(prefix, variable)}`;
|
|
768
|
-
}
|
|
769
|
-
function hasOddBraces(str = "") {
|
|
770
|
-
const openBraces = (str.match(/{/g) || []).length;
|
|
771
|
-
const closeBraces = (str.match(/}/g) || []).length;
|
|
772
|
-
return (openBraces + closeBraces) % 2 !== 0;
|
|
773
|
-
}
|
|
774
|
-
function getVariableValue(value, variable = "", prefix = "", excludedKeyRegexes = [], fallback) {
|
|
775
|
-
if (isString$2(value)) {
|
|
776
|
-
const val = value.trim();
|
|
777
|
-
if (hasOddBraces(val)) {
|
|
778
|
-
return void 0;
|
|
779
|
-
} else if (matchRegex(val, EXPR_REGEX)) {
|
|
780
|
-
const _val = val.replaceAll(EXPR_REGEX, (v) => {
|
|
781
|
-
const path = v.replace(/{|}/g, "");
|
|
782
|
-
const keys = path.split(".").filter((_v) => !excludedKeyRegexes.some((_r) => matchRegex(_v, _r)));
|
|
783
|
-
return `var(${getVariableName(prefix, toKebabCase(keys.join("-")))}${isNotEmpty(fallback) ? `, ${fallback}` : ""})`;
|
|
784
|
-
});
|
|
785
|
-
return matchRegex(_val.replace(VAR_REGEX, "0"), CALC_REGEX) ? `calc(${_val})` : _val;
|
|
786
|
-
}
|
|
787
|
-
return val;
|
|
788
|
-
} else if (isNumber$1(value)) {
|
|
789
|
-
return value;
|
|
790
|
-
}
|
|
791
|
-
return void 0;
|
|
792
|
-
}
|
|
793
|
-
function setProperty(properties, key, value) {
|
|
794
|
-
if (isString$2(key, false)) {
|
|
795
|
-
properties.push(`${key}:${value};`);
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
function getRule(selector, properties) {
|
|
799
|
-
if (selector) {
|
|
800
|
-
return `${selector}{${properties}}`;
|
|
801
|
-
}
|
|
802
|
-
return "";
|
|
803
|
-
}
|
|
804
|
-
function evaluateDtExpressions(input, fn) {
|
|
805
|
-
if (input.indexOf("dt(") === -1) return input;
|
|
806
|
-
function fastParseArgs(str, fn2) {
|
|
807
|
-
const args = [];
|
|
808
|
-
let i = 0;
|
|
809
|
-
let current = "";
|
|
810
|
-
let quote = null;
|
|
811
|
-
let depth = 0;
|
|
812
|
-
while (i <= str.length) {
|
|
813
|
-
const c = str[i];
|
|
814
|
-
if ((c === '"' || c === "'" || c === "`") && str[i - 1] !== "\\") {
|
|
815
|
-
quote = quote === c ? null : c;
|
|
816
|
-
}
|
|
817
|
-
if (!quote) {
|
|
818
|
-
if (c === "(") depth++;
|
|
819
|
-
if (c === ")") depth--;
|
|
820
|
-
if ((c === "," || i === str.length) && depth === 0) {
|
|
821
|
-
const arg = current.trim();
|
|
822
|
-
if (arg.startsWith("dt(")) {
|
|
823
|
-
args.push(evaluateDtExpressions(arg, fn2));
|
|
824
|
-
} else {
|
|
825
|
-
args.push(parseArg(arg));
|
|
826
|
-
}
|
|
827
|
-
current = "";
|
|
828
|
-
i++;
|
|
829
|
-
continue;
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
if (c !== void 0) current += c;
|
|
833
|
-
i++;
|
|
834
|
-
}
|
|
835
|
-
return args;
|
|
836
|
-
}
|
|
837
|
-
function parseArg(arg) {
|
|
838
|
-
const q = arg[0];
|
|
839
|
-
if ((q === '"' || q === "'" || q === "`") && arg[arg.length - 1] === q) {
|
|
840
|
-
return arg.slice(1, -1);
|
|
841
|
-
}
|
|
842
|
-
const num = Number(arg);
|
|
843
|
-
return isNaN(num) ? arg : num;
|
|
844
|
-
}
|
|
845
|
-
const indices = [];
|
|
846
|
-
const stack = [];
|
|
847
|
-
for (let i = 0; i < input.length; i++) {
|
|
848
|
-
if (input[i] === "d" && input.slice(i, i + 3) === "dt(") {
|
|
849
|
-
stack.push(i);
|
|
850
|
-
i += 2;
|
|
851
|
-
} else if (input[i] === ")" && stack.length > 0) {
|
|
852
|
-
const start = stack.pop();
|
|
853
|
-
if (stack.length === 0) {
|
|
854
|
-
indices.push([start, i]);
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
if (!indices.length) return input;
|
|
859
|
-
for (let i = indices.length - 1; i >= 0; i--) {
|
|
860
|
-
const [start, end] = indices[i];
|
|
861
|
-
const inner = input.slice(start + 3, end);
|
|
862
|
-
const args = fastParseArgs(inner, fn);
|
|
863
|
-
const resolved = fn(...args);
|
|
864
|
-
input = input.slice(0, start) + resolved + input.slice(end + 1);
|
|
865
|
-
}
|
|
866
|
-
return input;
|
|
867
|
-
}
|
|
868
|
-
var dt = (...args) => {
|
|
869
|
-
return dtwt(config_default.getTheme(), ...args);
|
|
870
|
-
};
|
|
871
|
-
var dtwt = (theme = {}, tokenPath, fallback, type) => {
|
|
872
|
-
if (tokenPath) {
|
|
873
|
-
const { variable: VARIABLE, options: OPTIONS } = config_default.defaults || {};
|
|
874
|
-
const { prefix, transform } = (theme == null ? void 0 : theme.options) || OPTIONS || {};
|
|
875
|
-
const token = matchRegex(tokenPath, EXPR_REGEX) ? tokenPath : `{${tokenPath}}`;
|
|
876
|
-
const isStrictTransform = type === "value" || isEmpty(type) && transform === "strict";
|
|
877
|
-
return isStrictTransform ? config_default.getTokenValue(tokenPath) : getVariableValue(token, void 0, prefix, [VARIABLE.excludedKeyRegex], fallback);
|
|
878
|
-
}
|
|
879
|
-
return "";
|
|
880
|
-
};
|
|
3
|
+
const relList = document.createElement("link").relList;
|
|
4
|
+
if (relList && relList.supports && relList.supports("modulepreload")) return;
|
|
5
|
+
for (const link of document.querySelectorAll("link[rel=\"modulepreload\"]")) processPreload(link);
|
|
6
|
+
new MutationObserver((mutations) => {
|
|
7
|
+
for (const mutation of mutations) {
|
|
8
|
+
if (mutation.type !== "childList") continue;
|
|
9
|
+
for (const node of mutation.addedNodes) if (node.tagName === "LINK" && node.rel === "modulepreload") processPreload(node);
|
|
10
|
+
}
|
|
11
|
+
}).observe(document, {
|
|
12
|
+
childList: true,
|
|
13
|
+
subtree: true
|
|
14
|
+
});
|
|
15
|
+
function getFetchOpts(link) {
|
|
16
|
+
const fetchOpts = {};
|
|
17
|
+
if (link.integrity) fetchOpts.integrity = link.integrity;
|
|
18
|
+
if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy;
|
|
19
|
+
if (link.crossOrigin === "use-credentials") fetchOpts.credentials = "include";
|
|
20
|
+
else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit";
|
|
21
|
+
else fetchOpts.credentials = "same-origin";
|
|
22
|
+
return fetchOpts;
|
|
23
|
+
}
|
|
24
|
+
function processPreload(link) {
|
|
25
|
+
if (link.ep) return;
|
|
26
|
+
link.ep = true;
|
|
27
|
+
const fetchOpts = getFetchOpts(link);
|
|
28
|
+
fetch(link.href, fetchOpts);
|
|
29
|
+
}
|
|
30
|
+
}());
|
|
31
|
+
/* Injected with object hook! */
|
|
881
32
|
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
if (strings instanceof Array) {
|
|
885
|
-
const raw = strings.reduce((acc, str, i) => {
|
|
886
|
-
var _a;
|
|
887
|
-
return acc + str + ((_a = resolve$1(exprs[i], { dt })) != null ? _a : "");
|
|
888
|
-
}, "");
|
|
889
|
-
return evaluateDtExpressions(raw, dt);
|
|
890
|
-
}
|
|
891
|
-
return resolve$1(strings, { dt });
|
|
892
|
-
}
|
|
893
|
-
function toVariables_default(theme, options = {}) {
|
|
894
|
-
const VARIABLE = config_default.defaults.variable;
|
|
895
|
-
const { prefix = VARIABLE.prefix, selector = VARIABLE.selector, excludedKeyRegex = VARIABLE.excludedKeyRegex } = options;
|
|
896
|
-
const tokens = [];
|
|
897
|
-
const variables = [];
|
|
898
|
-
const stack = [{ node: theme, path: prefix }];
|
|
899
|
-
while (stack.length) {
|
|
900
|
-
const { node, path } = stack.pop();
|
|
901
|
-
for (const key in node) {
|
|
902
|
-
const raw = node[key];
|
|
903
|
-
const val = toValue$1(raw);
|
|
904
|
-
const skipNormalize = matchRegex(key, excludedKeyRegex);
|
|
905
|
-
const variablePath = skipNormalize ? toNormalizeVariable(path) : toNormalizeVariable(path, toKebabCase(key));
|
|
906
|
-
if (isObject$3(val)) {
|
|
907
|
-
stack.push({ node: val, path: variablePath });
|
|
908
|
-
} else {
|
|
909
|
-
const varName = getVariableName(variablePath);
|
|
910
|
-
const varValue = getVariableValue(val, variablePath, prefix, [excludedKeyRegex]);
|
|
911
|
-
setProperty(variables, varName, varValue);
|
|
912
|
-
let token = variablePath;
|
|
913
|
-
if (prefix && token.startsWith(prefix + "-")) {
|
|
914
|
-
token = token.slice(prefix.length + 1);
|
|
915
|
-
}
|
|
916
|
-
tokens.push(token.replace(/-/g, "."));
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
const declarations = variables.join("");
|
|
921
|
-
return {
|
|
922
|
-
value: variables,
|
|
923
|
-
tokens,
|
|
924
|
-
declarations,
|
|
925
|
-
css: getRule(selector, declarations)
|
|
926
|
-
};
|
|
927
|
-
}
|
|
33
|
+
var oe$1=Object.defineProperty;var K$1=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,fe$1=Object.prototype.propertyIsEnumerable;var N=(e,t,n)=>t in e?oe$1(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,d$y=(e,t)=>{for(var n in t||(t={}))ue.call(t,n)&&N(e,n,t[n]);if(K$1)for(var n of K$1(t))fe$1.call(t,n)&&N(e,n,t[n]);return e};function a$F(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0}function R$2(e,t,n=new WeakSet){if(e===t)return true;if(!e||!t||typeof e!="object"||typeof t!="object"||n.has(e)||n.has(t))return false;n.add(e).add(t);let r=Array.isArray(e),o=Array.isArray(t),u,f,h;if(r&&o){if(f=e.length,f!=t.length)return false;for(u=f;u--!==0;)if(!R$2(e[u],t[u],n))return false;return true}if(r!=o)return false;let A=e instanceof Date,S=t instanceof Date;if(A!=S)return false;if(A&&S)return e.getTime()==t.getTime();let I=e instanceof RegExp,L=t instanceof RegExp;if(I!=L)return false;if(I&&L)return e.toString()==t.toString();let O=Object.keys(e);if(f=O.length,f!==Object.keys(t).length)return false;for(u=f;u--!==0;)if(!Object.prototype.hasOwnProperty.call(t,O[u]))return false;for(u=f;u--!==0;)if(h=O[u],!R$2(e[h],t[h],n))return false;return true}function y$1(e,t){return R$2(e,t)}function l$h(e){return typeof e=="function"&&"call"in e&&"apply"in e}function s$b(e){return !a$F(e)}function c$r(e,t){if(!e||!t)return null;try{let n=e[t];if(s$b(n))return n}catch(n){}if(Object.keys(e).length){if(l$h(t))return t(e);if(t.indexOf(".")===-1)return e[t];{let n=t.split("."),r=e;for(let o=0,u=n.length;o<u;++o){if(r==null)return null;r=r[n[o]];}return r}}return null}function k$4(e,t,n){return n?c$r(e,n)===c$r(t,n):y$1(e,t)}function B(e,t){if(e!=null&&t&&t.length){for(let n of t)if(k$4(e,n))return true}return false}function i$r(e,t=true){return e instanceof Object&&e.constructor===Object&&(t||Object.keys(e).length!==0)}function $$1(e={},t={}){let n=d$y({},e);return Object.keys(t).forEach(r=>{let o=r;i$r(t[o])&&o in e&&i$r(e[o])?n[o]=$$1(e[o],t[o]):n[o]=t[o];}),n}function w$1(...e){return e.reduce((t,n,r)=>r===0?n:$$1(t,n),{})}function m$3(e,...t){return l$h(e)?e(...t):e}function p$4(e,t=true){return typeof e=="string"&&(t||e!=="")}function g$6(e){return p$4(e)?e.replace(/(-|_)/g,"").toLowerCase():e}function F$1(e,t="",n={}){let r=g$6(t).split("."),o=r.shift();if(o){if(i$r(e)){let u=Object.keys(e).find(f=>g$6(f)===o)||"";return F$1(m$3(e[u],n),r.join("."),n)}return}return m$3(e,n)}function b$6(e,t=true){return Array.isArray(e)&&(t||e.length!==0)}function _$1(e){return s$b(e)&&!isNaN(e)}function W$1(){return new Intl.Collator(void 0,{numeric:true}).compare}function z$1(e,t){if(t){let n=t.test(e);return t.lastIndex=0,n}return false}function U$1(...e){return w$1(...e)}function G(e){return e&&e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function v$4(e){return p$4(e,false)?e[0].toUpperCase()+e.slice(1):e}function ee(e){return p$4(e)?e.replace(/(_)/g,"-").replace(/[A-Z]/g,(t,n)=>n===0?t:"-"+t.toLowerCase()).toLowerCase():e}
|
|
34
|
+
/* Injected with object hook! */
|
|
928
35
|
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
regex: {
|
|
932
|
-
rules: {
|
|
933
|
-
class: {
|
|
934
|
-
pattern: /^\.([a-zA-Z][\w-]*)$/,
|
|
935
|
-
resolve(value) {
|
|
936
|
-
return { type: "class", selector: value, matched: this.pattern.test(value.trim()) };
|
|
937
|
-
}
|
|
938
|
-
},
|
|
939
|
-
attr: {
|
|
940
|
-
pattern: /^\[(.*)\]$/,
|
|
941
|
-
resolve(value) {
|
|
942
|
-
return { type: "attr", selector: `:root${value}`, matched: this.pattern.test(value.trim()) };
|
|
943
|
-
}
|
|
944
|
-
},
|
|
945
|
-
media: {
|
|
946
|
-
pattern: /^@media (.*)$/,
|
|
947
|
-
resolve(value) {
|
|
948
|
-
return { type: "media", selector: `${value}{:root{[CSS]}}`, matched: this.pattern.test(value.trim()) };
|
|
949
|
-
}
|
|
950
|
-
},
|
|
951
|
-
system: {
|
|
952
|
-
pattern: /^system$/,
|
|
953
|
-
resolve(value) {
|
|
954
|
-
return { type: "system", selector: "@media (prefers-color-scheme: dark){:root{[CSS]}}", matched: this.pattern.test(value.trim()) };
|
|
955
|
-
}
|
|
956
|
-
},
|
|
957
|
-
custom: {
|
|
958
|
-
resolve(value) {
|
|
959
|
-
return { type: "custom", selector: value, matched: true };
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
},
|
|
963
|
-
resolve(value) {
|
|
964
|
-
const rules = Object.keys(this.rules).filter((k) => k !== "custom").map((r) => this.rules[r]);
|
|
965
|
-
return [value].flat().map((v) => {
|
|
966
|
-
var _a;
|
|
967
|
-
return (_a = rules.map((r) => r.resolve(v)).find((rr) => rr.matched)) != null ? _a : this.rules.custom.resolve(v);
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
},
|
|
971
|
-
_toVariables(theme, options) {
|
|
972
|
-
return toVariables_default(theme, { prefix: options == null ? void 0 : options.prefix });
|
|
973
|
-
},
|
|
974
|
-
getCommon({ name = "", theme = {}, params, set, defaults }) {
|
|
975
|
-
var _e, _f, _g, _h, _i, _j, _k;
|
|
976
|
-
const { preset, options } = theme;
|
|
977
|
-
let primitive_css, primitive_tokens, semantic_css, semantic_tokens, global_css, global_tokens, style;
|
|
978
|
-
if (isNotEmpty(preset) && options.transform !== "strict") {
|
|
979
|
-
const { primitive, semantic, extend } = preset;
|
|
980
|
-
const _a = semantic || {}, { colorScheme } = _a, sRest = __objRest(_a, ["colorScheme"]);
|
|
981
|
-
const _b = extend || {}, { colorScheme: eColorScheme } = _b, eRest = __objRest(_b, ["colorScheme"]);
|
|
982
|
-
const _c = colorScheme || {}, { dark } = _c, csRest = __objRest(_c, ["dark"]);
|
|
983
|
-
const _d = eColorScheme || {}, { dark: eDark } = _d, ecsRest = __objRest(_d, ["dark"]);
|
|
984
|
-
const prim_var = isNotEmpty(primitive) ? this._toVariables({ primitive }, options) : {};
|
|
985
|
-
const sRest_var = isNotEmpty(sRest) ? this._toVariables({ semantic: sRest }, options) : {};
|
|
986
|
-
const csRest_var = isNotEmpty(csRest) ? this._toVariables({ light: csRest }, options) : {};
|
|
987
|
-
const csDark_var = isNotEmpty(dark) ? this._toVariables({ dark }, options) : {};
|
|
988
|
-
const eRest_var = isNotEmpty(eRest) ? this._toVariables({ semantic: eRest }, options) : {};
|
|
989
|
-
const ecsRest_var = isNotEmpty(ecsRest) ? this._toVariables({ light: ecsRest }, options) : {};
|
|
990
|
-
const ecsDark_var = isNotEmpty(eDark) ? this._toVariables({ dark: eDark }, options) : {};
|
|
991
|
-
const [prim_css, prim_tokens] = [(_e = prim_var.declarations) != null ? _e : "", prim_var.tokens];
|
|
992
|
-
const [sRest_css, sRest_tokens] = [(_f = sRest_var.declarations) != null ? _f : "", sRest_var.tokens || []];
|
|
993
|
-
const [csRest_css, csRest_tokens] = [(_g = csRest_var.declarations) != null ? _g : "", csRest_var.tokens || []];
|
|
994
|
-
const [csDark_css, csDark_tokens] = [(_h = csDark_var.declarations) != null ? _h : "", csDark_var.tokens || []];
|
|
995
|
-
const [eRest_css, eRest_tokens] = [(_i = eRest_var.declarations) != null ? _i : "", eRest_var.tokens || []];
|
|
996
|
-
const [ecsRest_css, ecsRest_tokens] = [(_j = ecsRest_var.declarations) != null ? _j : "", ecsRest_var.tokens || []];
|
|
997
|
-
const [ecsDark_css, ecsDark_tokens] = [(_k = ecsDark_var.declarations) != null ? _k : "", ecsDark_var.tokens || []];
|
|
998
|
-
primitive_css = this.transformCSS(name, prim_css, "light", "variable", options, set, defaults);
|
|
999
|
-
primitive_tokens = prim_tokens;
|
|
1000
|
-
const semantic_light_css = this.transformCSS(name, `${sRest_css}${csRest_css}`, "light", "variable", options, set, defaults);
|
|
1001
|
-
const semantic_dark_css = this.transformCSS(name, `${csDark_css}`, "dark", "variable", options, set, defaults);
|
|
1002
|
-
semantic_css = `${semantic_light_css}${semantic_dark_css}`;
|
|
1003
|
-
semantic_tokens = [.../* @__PURE__ */ new Set([...sRest_tokens, ...csRest_tokens, ...csDark_tokens])];
|
|
1004
|
-
const global_light_css = this.transformCSS(name, `${eRest_css}${ecsRest_css}color-scheme:light`, "light", "variable", options, set, defaults);
|
|
1005
|
-
const global_dark_css = this.transformCSS(name, `${ecsDark_css}color-scheme:dark`, "dark", "variable", options, set, defaults);
|
|
1006
|
-
global_css = `${global_light_css}${global_dark_css}`;
|
|
1007
|
-
global_tokens = [.../* @__PURE__ */ new Set([...eRest_tokens, ...ecsRest_tokens, ...ecsDark_tokens])];
|
|
1008
|
-
style = resolve$1(preset.css, { dt });
|
|
1009
|
-
}
|
|
1010
|
-
return {
|
|
1011
|
-
primitive: {
|
|
1012
|
-
css: primitive_css,
|
|
1013
|
-
tokens: primitive_tokens
|
|
1014
|
-
},
|
|
1015
|
-
semantic: {
|
|
1016
|
-
css: semantic_css,
|
|
1017
|
-
tokens: semantic_tokens
|
|
1018
|
-
},
|
|
1019
|
-
global: {
|
|
1020
|
-
css: global_css,
|
|
1021
|
-
tokens: global_tokens
|
|
1022
|
-
},
|
|
1023
|
-
style
|
|
1024
|
-
};
|
|
1025
|
-
},
|
|
1026
|
-
getPreset({ name = "", preset = {}, options, params, set, defaults, selector }) {
|
|
1027
|
-
var _e, _f, _g;
|
|
1028
|
-
let p_css, p_tokens, p_style;
|
|
1029
|
-
if (isNotEmpty(preset) && options.transform !== "strict") {
|
|
1030
|
-
const _name = name.replace("-directive", "");
|
|
1031
|
-
const _a = preset, { colorScheme, extend, css: css2 } = _a, vRest = __objRest(_a, ["colorScheme", "extend", "css"]);
|
|
1032
|
-
const _b = extend || {}, { colorScheme: eColorScheme } = _b, evRest = __objRest(_b, ["colorScheme"]);
|
|
1033
|
-
const _c = colorScheme || {}, { dark } = _c, csRest = __objRest(_c, ["dark"]);
|
|
1034
|
-
const _d = eColorScheme || {}, { dark: ecsDark } = _d, ecsRest = __objRest(_d, ["dark"]);
|
|
1035
|
-
const vRest_var = isNotEmpty(vRest) ? this._toVariables({ [_name]: __spreadValues(__spreadValues({}, vRest), evRest) }, options) : {};
|
|
1036
|
-
const csRest_var = isNotEmpty(csRest) ? this._toVariables({ [_name]: __spreadValues(__spreadValues({}, csRest), ecsRest) }, options) : {};
|
|
1037
|
-
const csDark_var = isNotEmpty(dark) ? this._toVariables({ [_name]: __spreadValues(__spreadValues({}, dark), ecsDark) }, options) : {};
|
|
1038
|
-
const [vRest_css, vRest_tokens] = [(_e = vRest_var.declarations) != null ? _e : "", vRest_var.tokens || []];
|
|
1039
|
-
const [csRest_css, csRest_tokens] = [(_f = csRest_var.declarations) != null ? _f : "", csRest_var.tokens || []];
|
|
1040
|
-
const [csDark_css, csDark_tokens] = [(_g = csDark_var.declarations) != null ? _g : "", csDark_var.tokens || []];
|
|
1041
|
-
const light_variable_css = this.transformCSS(_name, `${vRest_css}${csRest_css}`, "light", "variable", options, set, defaults, selector);
|
|
1042
|
-
const dark_variable_css = this.transformCSS(_name, csDark_css, "dark", "variable", options, set, defaults, selector);
|
|
1043
|
-
p_css = `${light_variable_css}${dark_variable_css}`;
|
|
1044
|
-
p_tokens = [.../* @__PURE__ */ new Set([...vRest_tokens, ...csRest_tokens, ...csDark_tokens])];
|
|
1045
|
-
p_style = resolve$1(css2, { dt });
|
|
1046
|
-
}
|
|
1047
|
-
return {
|
|
1048
|
-
css: p_css,
|
|
1049
|
-
tokens: p_tokens,
|
|
1050
|
-
style: p_style
|
|
1051
|
-
};
|
|
1052
|
-
},
|
|
1053
|
-
getPresetC({ name = "", theme = {}, params, set, defaults }) {
|
|
1054
|
-
var _a;
|
|
1055
|
-
const { preset, options } = theme;
|
|
1056
|
-
const cPreset = (_a = preset == null ? void 0 : preset.components) == null ? void 0 : _a[name];
|
|
1057
|
-
return this.getPreset({ name, preset: cPreset, options, params, set, defaults });
|
|
1058
|
-
},
|
|
1059
|
-
// @deprecated - use getPresetC instead
|
|
1060
|
-
getPresetD({ name = "", theme = {}, params, set, defaults }) {
|
|
1061
|
-
var _a, _b;
|
|
1062
|
-
const dName = name.replace("-directive", "");
|
|
1063
|
-
const { preset, options } = theme;
|
|
1064
|
-
const dPreset = ((_a = preset == null ? void 0 : preset.components) == null ? void 0 : _a[dName]) || ((_b = preset == null ? void 0 : preset.directives) == null ? void 0 : _b[dName]);
|
|
1065
|
-
return this.getPreset({ name: dName, preset: dPreset, options, params, set, defaults });
|
|
1066
|
-
},
|
|
1067
|
-
applyDarkColorScheme(options) {
|
|
1068
|
-
return !(options.darkModeSelector === "none" || options.darkModeSelector === false);
|
|
1069
|
-
},
|
|
1070
|
-
getColorSchemeOption(options, defaults) {
|
|
1071
|
-
var _a;
|
|
1072
|
-
return this.applyDarkColorScheme(options) ? this.regex.resolve(options.darkModeSelector === true ? defaults.options.darkModeSelector : (_a = options.darkModeSelector) != null ? _a : defaults.options.darkModeSelector) : [];
|
|
1073
|
-
},
|
|
1074
|
-
getLayerOrder(name, options = {}, params, defaults) {
|
|
1075
|
-
const { cssLayer } = options;
|
|
1076
|
-
if (cssLayer) {
|
|
1077
|
-
const order = resolve$1(cssLayer.order || "primeui", params);
|
|
1078
|
-
return `@layer ${order}`;
|
|
1079
|
-
}
|
|
1080
|
-
return "";
|
|
1081
|
-
},
|
|
1082
|
-
getCommonStyleSheet({ name = "", theme = {}, params, props = {}, set, defaults }) {
|
|
1083
|
-
const common = this.getCommon({ name, theme, params, set, defaults });
|
|
1084
|
-
const _props = Object.entries(props).reduce((acc, [k, v]) => acc.push(`${k}="${v}"`) && acc, []).join(" ");
|
|
1085
|
-
return Object.entries(common || {}).reduce((acc, [key, value]) => {
|
|
1086
|
-
if (isObject$3(value) && Object.hasOwn(value, "css")) {
|
|
1087
|
-
const _css = minifyCSS(value.css);
|
|
1088
|
-
const id = `${key}-variables`;
|
|
1089
|
-
acc.push(`<style type="text/css" data-primevue-style-id="${id}" ${_props}>${_css}</style>`);
|
|
1090
|
-
}
|
|
1091
|
-
return acc;
|
|
1092
|
-
}, []).join("");
|
|
1093
|
-
},
|
|
1094
|
-
getStyleSheet({ name = "", theme = {}, params, props = {}, set, defaults }) {
|
|
1095
|
-
var _a;
|
|
1096
|
-
const options = { name, theme, params, set, defaults };
|
|
1097
|
-
const preset_css = (_a = name.includes("-directive") ? this.getPresetD(options) : this.getPresetC(options)) == null ? void 0 : _a.css;
|
|
1098
|
-
const _props = Object.entries(props).reduce((acc, [k, v]) => acc.push(`${k}="${v}"`) && acc, []).join(" ");
|
|
1099
|
-
return preset_css ? `<style type="text/css" data-primevue-style-id="${name}-variables" ${_props}>${minifyCSS(preset_css)}</style>` : "";
|
|
1100
|
-
},
|
|
1101
|
-
createTokens(obj = {}, defaults, parentKey = "", parentPath = "", tokens = {}) {
|
|
1102
|
-
return {};
|
|
1103
|
-
},
|
|
1104
|
-
getTokenValue(tokens, path, defaults) {
|
|
1105
|
-
var _a;
|
|
1106
|
-
const normalizePath = (str) => {
|
|
1107
|
-
const strArr = str.split(".");
|
|
1108
|
-
return strArr.filter((s) => !matchRegex(s.toLowerCase(), defaults.variable.excludedKeyRegex)).join(".");
|
|
1109
|
-
};
|
|
1110
|
-
const token = normalizePath(path);
|
|
1111
|
-
const colorScheme = path.includes("colorScheme.light") ? "light" : path.includes("colorScheme.dark") ? "dark" : void 0;
|
|
1112
|
-
const computedValues = [(_a = tokens[token]) == null ? void 0 : _a.computed(colorScheme)].flat().filter((computed) => computed);
|
|
1113
|
-
return computedValues.length === 1 ? computedValues[0].value : computedValues.reduce((acc = {}, computed) => {
|
|
1114
|
-
const _a2 = computed, { colorScheme: cs } = _a2, rest = __objRest(_a2, ["colorScheme"]);
|
|
1115
|
-
acc[cs] = rest;
|
|
1116
|
-
return acc;
|
|
1117
|
-
}, void 0);
|
|
1118
|
-
},
|
|
1119
|
-
getSelectorRule(selector1, selector2, type, css2) {
|
|
1120
|
-
return type === "class" || type === "attr" ? getRule(isNotEmpty(selector2) ? `${selector1}${selector2},${selector1} ${selector2}` : selector1, css2) : getRule(selector1, isNotEmpty(selector2) ? getRule(selector2, css2) : css2);
|
|
1121
|
-
},
|
|
1122
|
-
transformCSS(name, css2, mode, type, options = {}, set, defaults, selector) {
|
|
1123
|
-
if (isNotEmpty(css2)) {
|
|
1124
|
-
const { cssLayer } = options;
|
|
1125
|
-
if (type !== "style") {
|
|
1126
|
-
const colorSchemeOption = this.getColorSchemeOption(options, defaults);
|
|
1127
|
-
css2 = mode === "dark" ? colorSchemeOption.reduce((acc, { type: type2, selector: _selector }) => {
|
|
1128
|
-
if (isNotEmpty(_selector)) {
|
|
1129
|
-
acc += _selector.includes("[CSS]") ? _selector.replace("[CSS]", css2) : this.getSelectorRule(_selector, selector, type2, css2);
|
|
1130
|
-
}
|
|
1131
|
-
return acc;
|
|
1132
|
-
}, "") : getRule(selector != null ? selector : ":root", css2);
|
|
1133
|
-
}
|
|
1134
|
-
if (cssLayer) {
|
|
1135
|
-
const layerOptions = {
|
|
1136
|
-
name: "primeui"};
|
|
1137
|
-
isObject$3(cssLayer) && (layerOptions.name = resolve$1(cssLayer.name, { name, type }));
|
|
1138
|
-
if (isNotEmpty(layerOptions.name)) {
|
|
1139
|
-
css2 = getRule(`@layer ${layerOptions.name}`, css2);
|
|
1140
|
-
set == null ? void 0 : set.layerNames(layerOptions.name);
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
return css2;
|
|
1144
|
-
}
|
|
1145
|
-
return "";
|
|
1146
|
-
}
|
|
1147
|
-
};
|
|
36
|
+
function s$a(){let r=new Map;return {on(e,t){let n=r.get(e);return n?n.push(t):n=[t],r.set(e,n),this},off(e,t){let n=r.get(e);return n&&n.splice(n.indexOf(t)>>>0,1),this},emit(e,t){let n=r.get(e);n&&n.forEach(i=>{i(t);});},clear(){r.clear();}}}
|
|
37
|
+
/* Injected with object hook! */
|
|
1148
38
|
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
options: {
|
|
1158
|
-
prefix: "p",
|
|
1159
|
-
darkModeSelector: "system",
|
|
1160
|
-
cssLayer: false
|
|
1161
|
-
}
|
|
1162
|
-
},
|
|
1163
|
-
_theme: void 0,
|
|
1164
|
-
_layerNames: /* @__PURE__ */ new Set(),
|
|
1165
|
-
_loadedStyleNames: /* @__PURE__ */ new Set(),
|
|
1166
|
-
_loadingStyles: /* @__PURE__ */ new Set(),
|
|
1167
|
-
_tokens: {},
|
|
1168
|
-
update(newValues = {}) {
|
|
1169
|
-
const { theme } = newValues;
|
|
1170
|
-
if (theme) {
|
|
1171
|
-
this._theme = __spreadProps(__spreadValues({}, theme), {
|
|
1172
|
-
options: __spreadValues(__spreadValues({}, this.defaults.options), theme.options)
|
|
1173
|
-
});
|
|
1174
|
-
this._tokens = themeUtils_default.createTokens(this.preset, this.defaults);
|
|
1175
|
-
this.clearLoadedStyleNames();
|
|
1176
|
-
}
|
|
1177
|
-
},
|
|
1178
|
-
get theme() {
|
|
1179
|
-
return this._theme;
|
|
1180
|
-
},
|
|
1181
|
-
get preset() {
|
|
1182
|
-
var _a;
|
|
1183
|
-
return ((_a = this.theme) == null ? void 0 : _a.preset) || {};
|
|
1184
|
-
},
|
|
1185
|
-
get options() {
|
|
1186
|
-
var _a;
|
|
1187
|
-
return ((_a = this.theme) == null ? void 0 : _a.options) || {};
|
|
1188
|
-
},
|
|
1189
|
-
get tokens() {
|
|
1190
|
-
return this._tokens;
|
|
1191
|
-
},
|
|
1192
|
-
getTheme() {
|
|
1193
|
-
return this.theme;
|
|
1194
|
-
},
|
|
1195
|
-
setTheme(newValue) {
|
|
1196
|
-
this.update({ theme: newValue });
|
|
1197
|
-
service_default.emit("theme:change", newValue);
|
|
1198
|
-
},
|
|
1199
|
-
getPreset() {
|
|
1200
|
-
return this.preset;
|
|
1201
|
-
},
|
|
1202
|
-
setPreset(newValue) {
|
|
1203
|
-
this._theme = __spreadProps(__spreadValues({}, this.theme), { preset: newValue });
|
|
1204
|
-
this._tokens = themeUtils_default.createTokens(newValue, this.defaults);
|
|
1205
|
-
this.clearLoadedStyleNames();
|
|
1206
|
-
service_default.emit("preset:change", newValue);
|
|
1207
|
-
service_default.emit("theme:change", this.theme);
|
|
1208
|
-
},
|
|
1209
|
-
getOptions() {
|
|
1210
|
-
return this.options;
|
|
1211
|
-
},
|
|
1212
|
-
setOptions(newValue) {
|
|
1213
|
-
this._theme = __spreadProps(__spreadValues({}, this.theme), { options: newValue });
|
|
1214
|
-
this.clearLoadedStyleNames();
|
|
1215
|
-
service_default.emit("options:change", newValue);
|
|
1216
|
-
service_default.emit("theme:change", this.theme);
|
|
1217
|
-
},
|
|
1218
|
-
getLayerNames() {
|
|
1219
|
-
return [...this._layerNames];
|
|
1220
|
-
},
|
|
1221
|
-
setLayerNames(layerName) {
|
|
1222
|
-
this._layerNames.add(layerName);
|
|
1223
|
-
},
|
|
1224
|
-
getLoadedStyleNames() {
|
|
1225
|
-
return this._loadedStyleNames;
|
|
1226
|
-
},
|
|
1227
|
-
isStyleNameLoaded(name) {
|
|
1228
|
-
return this._loadedStyleNames.has(name);
|
|
1229
|
-
},
|
|
1230
|
-
setLoadedStyleName(name) {
|
|
1231
|
-
this._loadedStyleNames.add(name);
|
|
1232
|
-
},
|
|
1233
|
-
deleteLoadedStyleName(name) {
|
|
1234
|
-
this._loadedStyleNames.delete(name);
|
|
1235
|
-
},
|
|
1236
|
-
clearLoadedStyleNames() {
|
|
1237
|
-
this._loadedStyleNames.clear();
|
|
1238
|
-
},
|
|
1239
|
-
getTokenValue(tokenPath) {
|
|
1240
|
-
return themeUtils_default.getTokenValue(this.tokens, tokenPath, this.defaults);
|
|
1241
|
-
},
|
|
1242
|
-
getCommon(name = "", params) {
|
|
1243
|
-
return themeUtils_default.getCommon({ name, theme: this.theme, params, defaults: this.defaults, set: { layerNames: this.setLayerNames.bind(this) } });
|
|
1244
|
-
},
|
|
1245
|
-
getComponent(name = "", params) {
|
|
1246
|
-
const options = { name, theme: this.theme, params, defaults: this.defaults, set: { layerNames: this.setLayerNames.bind(this) } };
|
|
1247
|
-
return themeUtils_default.getPresetC(options);
|
|
1248
|
-
},
|
|
1249
|
-
// @deprecated - use getComponent instead
|
|
1250
|
-
getDirective(name = "", params) {
|
|
1251
|
-
const options = { name, theme: this.theme, params, defaults: this.defaults, set: { layerNames: this.setLayerNames.bind(this) } };
|
|
1252
|
-
return themeUtils_default.getPresetD(options);
|
|
1253
|
-
},
|
|
1254
|
-
getCustomPreset(name = "", preset, selector, params) {
|
|
1255
|
-
const options = { name, preset, options: this.options, selector, params, defaults: this.defaults, set: { layerNames: this.setLayerNames.bind(this) } };
|
|
1256
|
-
return themeUtils_default.getPreset(options);
|
|
1257
|
-
},
|
|
1258
|
-
getLayerOrderCSS(name = "") {
|
|
1259
|
-
return themeUtils_default.getLayerOrder(name, this.options, { names: this.getLayerNames() }, this.defaults);
|
|
1260
|
-
},
|
|
1261
|
-
transformCSS(name = "", css2, type = "style", mode) {
|
|
1262
|
-
return themeUtils_default.transformCSS(name, css2, mode, type, this.options, { layerNames: this.setLayerNames.bind(this) }, this.defaults);
|
|
1263
|
-
},
|
|
1264
|
-
getCommonStyleSheet(name = "", params, props = {}) {
|
|
1265
|
-
return themeUtils_default.getCommonStyleSheet({ name, theme: this.theme, params, props, defaults: this.defaults, set: { layerNames: this.setLayerNames.bind(this) } });
|
|
1266
|
-
},
|
|
1267
|
-
getStyleSheet(name, params, props = {}) {
|
|
1268
|
-
return themeUtils_default.getStyleSheet({ name, theme: this.theme, params, props, defaults: this.defaults, set: { layerNames: this.setLayerNames.bind(this) } });
|
|
1269
|
-
},
|
|
1270
|
-
onStyleMounted(name) {
|
|
1271
|
-
this._loadingStyles.add(name);
|
|
1272
|
-
},
|
|
1273
|
-
onStyleUpdated(name) {
|
|
1274
|
-
this._loadingStyles.add(name);
|
|
1275
|
-
},
|
|
1276
|
-
onStyleLoaded(event, { name }) {
|
|
1277
|
-
if (this._loadingStyles.size) {
|
|
1278
|
-
this._loadingStyles.delete(name);
|
|
1279
|
-
service_default.emit(`theme:${name}:load`, event);
|
|
1280
|
-
!this._loadingStyles.size && service_default.emit("theme:load");
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
};
|
|
39
|
+
function R$1(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):false}function W(t,e){if(t&&e){let o=n=>{R$1(t,n)||(t.classList?t.classList.add(n):t.className+=" "+n);};[e].flat().filter(Boolean).forEach(n=>n.split(" ").forEach(o));}}function O(t,e){if(t&&e){let o=n=>{t.classList?t.classList.remove(n):t.className=t.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," ");};[e].flat().filter(Boolean).forEach(n=>n.split(" ").forEach(o));}}function x(t){for(let e of document==null?void 0:document.styleSheets)try{for(let o of e==null?void 0:e.cssRules)for(let n of o==null?void 0:o.style)if(t.test(n))return {name:n,value:o.style.getPropertyValue(n).trim()}}catch(o){}return null}function w(t){let e={width:0,height:0};if(t){let[o,n]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block",e.width=t.offsetWidth,e.height=t.offsetHeight,t.style.display=n,t.style.visibility=o;}return e}function h$5(){let t=window,e=document,o=e.documentElement,n=e.getElementsByTagName("body")[0],r=t.innerWidth||o.clientWidth||n.clientWidth,i=t.innerHeight||o.clientHeight||n.clientHeight;return {width:r,height:i}}function E(t){return t?Math.abs(t.scrollLeft):0}function k$3(){let t=document.documentElement;return (window.pageXOffset||E(t))-(t.clientLeft||0)}function $(){let t=document.documentElement;return (window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function V(t){return t?getComputedStyle(t).direction==="rtl":false}function D(t,e,o=true){var n,r,i,l;if(t){let d=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:w(t),s=d.height,a=d.width,u=e.offsetHeight,p=e.offsetWidth,f=e.getBoundingClientRect(),g=$(),it=k$3(),lt=h$5(),L,N,ot="top";f.top+u+s>lt.height?(L=f.top+g-s,ot="bottom",L<0&&(L=g)):L=u+f.top+g,f.left+a>lt.width?N=Math.max(0,f.left+it+p-a):N=f.left+it,V(t)?t.style.insetInlineEnd=N+"px":t.style.insetInlineStart=N+"px",t.style.top=L+"px",t.style.transformOrigin=ot,o&&(t.style.marginTop=ot==="bottom"?`calc(${(r=(n=x(/-anchor-gutter$/))==null?void 0:n.value)!=null?r:"2px"} * -1)`:(l=(i=x(/-anchor-gutter$/))==null?void 0:i.value)!=null?l:"");}}function S$1(t,e){t&&(typeof e=="string"?t.style.cssText=e:Object.entries(e||{}).forEach(([o,n])=>t.style[o]=n));}function v$3(t,e){if(t instanceof HTMLElement){let o=t.offsetWidth;return o}return 0}function I(t,e,o=true,n=void 0){var r;if(t){let i=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:w(t),l=e.offsetHeight,d=e.getBoundingClientRect(),s=h$5(),a,u,p=n!=null?n:"top";if(!n&&d.top+l+i.height>s.height?(a=-1*i.height,p="bottom",d.top+a<0&&(a=-1*d.top)):a=l,i.width>s.width?u=d.left*-1:d.left+i.width>s.width?u=(d.left+i.width-s.width)*-1:u=0,t.style.top=a+"px",t.style.insetInlineStart=u+"px",t.style.transformOrigin=p,o){let f=(r=x(/-anchor-gutter$/))==null?void 0:r.value;t.style.marginTop=p==="bottom"?`calc(${f!=null?f:"2px"} * -1)`:f!=null?f:"";}}}function y(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function T$1(t){return !!(t!==null&&typeof t!="undefined"&&t.nodeName&&y(t))}function c$q(t){return typeof Element!="undefined"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function pt(){if(window.getSelection){let t=window.getSelection()||{};t.empty?t.empty():t.removeAllRanges&&t.rangeCount>0&&t.getRangeAt(0).getClientRects().length>0&&t.removeAllRanges();}}function A(t,e={}){if(c$q(t)){let o=(n,r)=>{var l,d;let i=(l=t==null?void 0:t.$attrs)!=null&&l[n]?[(d=t==null?void 0:t.$attrs)==null?void 0:d[n]]:[];return [r].flat().reduce((s,a)=>{if(a!=null){let u=typeof a;if(u==="string"||u==="number")s.push(a);else if(u==="object"){let p=Array.isArray(a)?o(n,a):Object.entries(a).map(([f,g])=>n==="style"&&(g||g===0)?`${f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${g}`:g?f:void 0);s=p.length?s.concat(p.filter(f=>!!f)):s;}}return s},i)};Object.entries(e).forEach(([n,r])=>{if(r!=null){let i=n.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),r):n==="p-bind"||n==="pBind"?A(t,r):(r=n==="class"?[...new Set(o("class",r))].join(" ").trim():n==="style"?o("style",r).join(";").trim():r,(t.$attrs=t.$attrs||{})&&(t.$attrs[n]=r),t.setAttribute(n,r));}});}}function U(t,e={},...o){{let n=document.createElement(t);return A(n,e),n.append(...o),n}}function Y$1(t,e){return c$q(t)?Array.from(t.querySelectorAll(e)):[]}function z(t,e){return c$q(t)?t.matches(e)?t:t.querySelector(e):null}function Q$1(t,e){if(c$q(t)){let o=t.getAttribute(e);return isNaN(o)?o==="true"||o==="false"?o==="true":o:+o}}function b$5(t,e=""){let o=Y$1(t,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
40
|
+
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
41
|
+
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
42
|
+
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
43
|
+
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
44
|
+
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
45
|
+
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`),n=[];for(let r of o)getComputedStyle(r).display!="none"&&getComputedStyle(r).visibility!="hidden"&&n.push(r);return n}function Tt(t){if(t){let e=t.offsetHeight,o=getComputedStyle(t);return e-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),e}return 0}function Ht(t){var e;if(t){let o=(e=y(t))==null?void 0:e.childNodes,n=0;if(o)for(let r=0;r<o.length;r++){if(o[r]===t)return n;o[r].nodeType===1&&n++;}}return -1}function K(t){if(t){let e=t.getBoundingClientRect();return {top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||E(document.documentElement)||E(document.body)||0)}}return {top:"auto",left:"auto"}}function C(t,e){if(t){let o=t.offsetHeight;return o}return 0}function M(t,e=[]){let o=y(t);return o===null?e:M(o,e.concat([o]))}function At(t){let e=[];if(t){let o=M(t),n=/(auto|scroll)/,r=i=>{try{let l=window.getComputedStyle(i,null);return n.test(l.getPropertyValue("overflow"))||n.test(l.getPropertyValue("overflowX"))||n.test(l.getPropertyValue("overflowY"))}catch(l){return false}};for(let i of o){let l=i.nodeType===1&&i.dataset.scrollselectors;if(l){let d=l.split(",");for(let s of d){let a=z(i,s);a&&r(a)&&e.push(a);}}i.nodeType!==9&&r(i)&&e.push(i);}}return e}function Mt(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function Rt(t){if(t){let e=t.offsetWidth,o=getComputedStyle(t);return e-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),e}return 0}function tt$1(){return !!(typeof window!="undefined"&&window.document&&window.document.createElement)}function Yt(){return "ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function Kt(t,e="",o){c$q(t)&&o!==null&&o!==void 0&&t.setAttribute(e,o);}
|
|
46
|
+
/* Injected with object hook! */
|
|
1284
47
|
|
|
48
|
+
var Qe=Object.defineProperty,Ye=Object.defineProperties;var et=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;var he=(e,t,r)=>t in e?Qe(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r,d$x=(e,t)=>{for(var r in t||(t={}))fe.call(t,r)&&he(e,r,t[r]);if(F)for(var r of F(t))ye.call(t,r)&&he(e,r,t[r]);return e},_=(e,t)=>Ye(e,et(t));var b$4=(e,t)=>{var r={};for(var s in e)fe.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&F)for(var s of F(e))t.indexOf(s)<0&&ye.call(e,s)&&(r[s]=e[s]);return r};function Se(...e){return w$1(...e)}var st=s$a(),R=st;var v$2=/{([^}]*)}/g,lt=/(\d+\s+[\+\-\*\/]\s+\d+)/g,ct=/var\([^)]+\)/g;function ke(e){return i$r(e)&&e.hasOwnProperty("$value")&&e.hasOwnProperty("$type")?e.$value:e}function mt(e){return e.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Q(e="",t=""){return mt(`${p$4(e,false)&&p$4(t,false)?`${e}-`:e}${t}`)}function ne(e="",t=""){return `--${Q(e,t)}`}function dt(e=""){let t=(e.match(/{/g)||[]).length,r=(e.match(/}/g)||[]).length;return (t+r)%2!==0}function Y(e,t="",r="",s=[],o){if(p$4(e)){let a=e.trim();if(dt(a))return;if(z$1(a,v$2)){let n=a.replaceAll(v$2,l=>{let c=l.replace(/{|}/g,"").split(".").filter(m=>!s.some(u=>z$1(m,u)));return `var(${ne(r,ee(c.join("-")))}${s$b(o)?`, ${o}`:""})`});return z$1(n.replace(ct,"0"),lt)?`calc(${n})`:n}return a}else if(_$1(e))return e}function _e(e,t,r){p$4(t,false)&&e.push(`${t}:${r};`);}function T(e,t){return e?`${e}{${t}}`:""}function oe(e,t){if(e.indexOf("dt(")===-1)return e;function r(n,l){let i=[],c=0,m="",u=null,p=0;for(;c<=n.length;){let h=n[c];if((h==='"'||h==="'"||h==="`")&&n[c-1]!=="\\"&&(u=u===h?null:h),!u&&(h==="("&&p++,h===")"&&p--,(h===","||c===n.length)&&p===0)){let y=m.trim();y.startsWith("dt(")?i.push(oe(y,l)):i.push(s(y)),m="",c++;continue}h!==void 0&&(m+=h),c++;}return i}function s(n){let l=n[0];if((l==='"'||l==="'"||l==="`")&&n[n.length-1]===l)return n.slice(1,-1);let i=Number(n);return isNaN(i)?n:i}let o=[],a=[];for(let n=0;n<e.length;n++)if(e[n]==="d"&&e.slice(n,n+3)==="dt(")a.push(n),n+=2;else if(e[n]===")"&&a.length>0){let l=a.pop();a.length===0&&o.push([l,n]);}if(!o.length)return e;for(let n=o.length-1;n>=0;n--){let[l,i]=o[n],c=e.slice(l+3,i),m=r(c,t),u=t(...m);e=e.slice(0,l)+u+e.slice(i+1);}return e}var P=(...e)=>le(g$5.getTheme(),...e),le=(e={},t,r,s)=>{if(t){let{variable:o,options:a}=g$5.defaults||{},{prefix:n,transform:l}=(e==null?void 0:e.options)||a||{},i=z$1(t,v$2)?t:`{${t}}`;return s==="value"||a$F(s)&&l==="strict"?g$5.getTokenValue(t):Y(i,void 0,n,[o.excludedKeyRegex],r)}return ""};function ar(e,...t){if(e instanceof Array){let r=e.reduce((s,o,a)=>{var n;return s+o+((n=m$3(t[a],{dt:P}))!=null?n:"")},"");return oe(r,P)}return m$3(e,{dt:P})}function ce(e,t={}){let r=g$5.defaults.variable,{prefix:s=r.prefix,selector:o=r.selector,excludedKeyRegex:a=r.excludedKeyRegex}=t,n=[],l=[],i=[{node:e,path:s}];for(;i.length;){let{node:m,path:u}=i.pop();for(let p in m){let h=m[p],y=ke(h),x=z$1(p,a)?Q(u):Q(u,ee(p));if(i$r(y))i.push({node:y,path:x});else {let k=ne(x),w=Y(y,x,s,[a]);_e(l,k,w);let $=x;s&&$.startsWith(s+"-")&&($=$.slice(s.length+1)),n.push($.replace(/-/g,"."));}}}let c=l.join("");return {value:l,tokens:n,declarations:c,css:T(o,c)}}var S={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(e){return {type:"class",selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(e){return {type:"attr",selector:`:root${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return {type:"media",selector:e,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return {type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(e.trim())}}},custom:{resolve(e){return {type:"custom",selector:e,matched:true}}}},resolve(e){let t=Object.keys(this.rules).filter(r=>r!=="custom").map(r=>this.rules[r]);return [e].flat().map(r=>{var s;return (s=t.map(o=>o.resolve(r)).find(o=>o.matched))!=null?s:this.rules.custom.resolve(r)})}},_toVariables(e,t){return ce(e,{prefix:t==null?void 0:t.prefix})},getCommon({name:e="",theme:t={},params:r,set:s,defaults:o}){var w,$,j,V,D,z,E;let{preset:a,options:n}=t,l,i,c,m,u,p,h;if(s$b(a)&&n.transform!=="strict"){let{primitive:L,semantic:te,extend:re}=a,y=te||{},{colorScheme:K}=y,M=b$4(y,["colorScheme"]),N=re||{},{colorScheme:X}=N,B=b$4(N,["colorScheme"]),x=K||{},{dark:G}=x,I=b$4(x,["dark"]),k=X||{},{dark:U}=k,H=b$4(k,["dark"]),W=s$b(L)?this._toVariables({primitive:L},n):{},q=s$b(M)?this._toVariables({semantic:M},n):{},Z=s$b(I)?this._toVariables({light:I},n):{},de=s$b(G)?this._toVariables({dark:G},n):{},ue=s$b(B)?this._toVariables({semantic:B},n):{},pe=s$b(H)?this._toVariables({light:H},n):{},ge=s$b(U)?this._toVariables({dark:U},n):{},[Le,Me]=[(w=W.declarations)!=null?w:"",W.tokens],[Ae,je]=[($=q.declarations)!=null?$:"",q.tokens||[]],[De,ze]=[(j=Z.declarations)!=null?j:"",Z.tokens||[]],[Ke,Xe]=[(V=de.declarations)!=null?V:"",de.tokens||[]],[Be,Ge]=[(D=ue.declarations)!=null?D:"",ue.tokens||[]],[Ie,Ue]=[(z=pe.declarations)!=null?z:"",pe.tokens||[]],[He,We]=[(E=ge.declarations)!=null?E:"",ge.tokens||[]];l=this.transformCSS(e,Le,"light","variable",n,s,o),i=Me;let qe=this.transformCSS(e,`${Ae}${De}`,"light","variable",n,s,o),Ze=this.transformCSS(e,`${Ke}`,"dark","variable",n,s,o);c=`${qe}${Ze}`,m=[...new Set([...je,...ze,...Xe])];let Fe=this.transformCSS(e,`${Be}${Ie}color-scheme:light`,"light","variable",n,s,o),Je=this.transformCSS(e,`${He}color-scheme:dark`,"dark","variable",n,s,o);u=`${Fe}${Je}`,p=[...new Set([...Ge,...Ue,...We])],h=m$3(a.css,{dt:P});}return {primitive:{css:l,tokens:i},semantic:{css:c,tokens:m},global:{css:u,tokens:p},style:h}},getPreset({name:e="",preset:t={},options:r,params:s,set:o,defaults:a,selector:n}){var y,N,x;let l,i,c;if(s$b(t)&&r.transform!=="strict"){let k=e.replace("-directive",""),m=t,{colorScheme:w,extend:$,css:j}=m,V=b$4(m,["colorScheme","extend","css"]),u=$||{},{colorScheme:D}=u,z=b$4(u,["colorScheme"]),p=w||{},{dark:E}=p,L=b$4(p,["dark"]),h=D||{},{dark:te}=h,re=b$4(h,["dark"]),K=s$b(V)?this._toVariables({[k]:d$x(d$x({},V),z)},r):{},M=s$b(L)?this._toVariables({[k]:d$x(d$x({},L),re)},r):{},X=s$b(E)?this._toVariables({[k]:d$x(d$x({},E),te)},r):{},[B,G]=[(y=K.declarations)!=null?y:"",K.tokens||[]],[I,U]=[(N=M.declarations)!=null?N:"",M.tokens||[]],[H,W]=[(x=X.declarations)!=null?x:"",X.tokens||[]],q=this.transformCSS(k,`${B}${I}`,"light","variable",r,o,a,n),Z=this.transformCSS(k,H,"dark","variable",r,o,a,n);l=`${q}${Z}`,i=[...new Set([...G,...U,...W])],c=m$3(j,{dt:P});}return {css:l,tokens:i,style:c}},getPresetC({name:e="",theme:t={},params:r,set:s,defaults:o}){var i;let{preset:a,options:n}=t,l=(i=a==null?void 0:a.components)==null?void 0:i[e];return this.getPreset({name:e,preset:l,options:n,params:r,set:s,defaults:o})},getPresetD({name:e="",theme:t={},params:r,set:s,defaults:o}){var c,m;let a=e.replace("-directive",""),{preset:n,options:l}=t,i=((c=n==null?void 0:n.components)==null?void 0:c[a])||((m=n==null?void 0:n.directives)==null?void 0:m[a]);return this.getPreset({name:a,preset:i,options:l,params:r,set:s,defaults:o})},applyDarkColorScheme(e){return !(e.darkModeSelector==="none"||e.darkModeSelector===false)},getColorSchemeOption(e,t){var r;return this.applyDarkColorScheme(e)?this.regex.resolve(e.darkModeSelector===true?t.options.darkModeSelector:(r=e.darkModeSelector)!=null?r:t.options.darkModeSelector):[]},getLayerOrder(e,t={},r,s){let{cssLayer:o}=t;return o?`@layer ${m$3(o.order||o.name||"primeui",r)}`:""},getCommonStyleSheet({name:e="",theme:t={},params:r,props:s={},set:o,defaults:a}){let n=this.getCommon({name:e,theme:t,params:r,set:o,defaults:a}),l=Object.entries(s).reduce((i,[c,m])=>i.push(`${c}="${m}"`)&&i,[]).join(" ");return Object.entries(n||{}).reduce((i,[c,m])=>{if(i$r(m)&&Object.hasOwn(m,"css")){let u=G(m.css),p=`${c}-variables`;i.push(`<style type="text/css" data-primevue-style-id="${p}" ${l}>${u}</style>`);}return i},[]).join("")},getStyleSheet({name:e="",theme:t={},params:r,props:s={},set:o,defaults:a}){var c;let n={name:e,theme:t,params:r,set:o,defaults:a},l=(c=e.includes("-directive")?this.getPresetD(n):this.getPresetC(n))==null?void 0:c.css,i=Object.entries(s).reduce((m,[u,p])=>m.push(`${u}="${p}"`)&&m,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${e}-variables" ${i}>${G(l)}</style>`:""},createTokens(e={},t,r="",s="",o={}){return {}},getTokenValue(e,t,r){var l;let o=(i=>i.split(".").filter(m=>!z$1(m.toLowerCase(),r.variable.excludedKeyRegex)).join("."))(t),a=t.includes("colorScheme.light")?"light":t.includes("colorScheme.dark")?"dark":void 0,n=[(l=e[o])==null?void 0:l.computed(a)].flat().filter(i=>i);return n.length===1?n[0].value:n.reduce((i={},c)=>{let p=c,{colorScheme:m}=p,u=b$4(p,["colorScheme"]);return i[m]=u,i},void 0)},getSelectorRule(e,t,r,s){return r==="class"||r==="attr"?T(s$b(t)?`${e}${t},${e} ${t}`:e,s):T(e,T(t!=null?t:":root",s))},transformCSS(e,t,r,s,o={},a,n,l){if(s$b(t)){let{cssLayer:i}=o;if(s!=="style"){let c=this.getColorSchemeOption(o,n);t=r==="dark"?c.reduce((m,{type:u,selector:p})=>(s$b(p)&&(m+=p.includes("[CSS]")?p.replace("[CSS]",t):this.getSelectorRule(p,l,u,t)),m),""):T(l!=null?l:":root",t);}if(i){let c={name:"primeui"};i$r(i)&&(c.name=m$3(i.name,{name:e,type:s})),s$b(c.name)&&(t=T(`@layer ${c.name}`,t),a==null||a.layerNames(c.name));}return t}return ""}};var g$5={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:false}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(e={}){let{theme:t}=e;t&&(this._theme=_(d$x({},t),{options:d$x(d$x({},this.defaults.options),t.options)}),this._tokens=S.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames());},get theme(){return this._theme},get preset(){var e;return ((e=this.theme)==null?void 0:e.preset)||{}},get options(){var e;return ((e=this.theme)==null?void 0:e.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),R.emit("theme:change",e);},getPreset(){return this.preset},setPreset(e){this._theme=_(d$x({},this.theme),{preset:e}),this._tokens=S.createTokens(e,this.defaults),this.clearLoadedStyleNames(),R.emit("preset:change",e),R.emit("theme:change",this.theme);},getOptions(){return this.options},setOptions(e){this._theme=_(d$x({},this.theme),{options:e}),this.clearLoadedStyleNames(),R.emit("options:change",e),R.emit("theme:change",this.theme);},getLayerNames(){return [...this._layerNames]},setLayerNames(e){this._layerNames.add(e);},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e);},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e);},clearLoadedStyleNames(){this._loadedStyleNames.clear();},getTokenValue(e){return S.getTokenValue(this.tokens,e,this.defaults)},getCommon(e="",t){return S.getCommon({name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e="",t){let r={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return S.getPresetC(r)},getDirective(e="",t){let r={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return S.getPresetD(r)},getCustomPreset(e="",t,r,s){let o={name:e,preset:t,options:this.options,selector:r,params:s,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return S.getPreset(o)},getLayerOrderCSS(e=""){return S.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e="",t,r="style",s){return S.transformCSS(e,t,s,r,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e="",t,r={}){return S.getCommonStyleSheet({name:e,theme:this.theme,params:t,props:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,t,r={}){return S.getStyleSheet({name:e,theme:this.theme,params:t,props:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e);},onStyleUpdated(e){this._loadingStyles.add(e);},onStyleLoaded(e,{name:t}){this._loadingStyles.size&&(this._loadingStyles.delete(t),R.emit(`theme:${t}:load`,e),!this._loadingStyles.size&&R.emit("theme:load"));}};
|
|
1285
49
|
/* Injected with object hook! */
|
|
1286
50
|
|
|
1287
|
-
var o$1l={transitionDuration:"{transition.duration}"},r$1i={borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},t$D={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},e$U={borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"},c$p={root:o$1l,panel:r$1i,header:t$D,content:e$U};/* Injected with object hook! */
|
|
51
|
+
var o$1l={transitionDuration:"{transition.duration}"},r$1i={borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},t$D={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},e$U={borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"},c$p={root:o$1l,panel:r$1i,header:t$D,content:e$U};/* Injected with object hook! */
|
|
1288
52
|
|
|
1289
53
|
var o$1k={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},r$1h={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},d$w={padding:"{list.padding}",gap:"{list.gap}"},e$T={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},l$g={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},i$q={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},c$o={borderRadius:"{border.radius.sm}"},f$9={padding:"{list.option.padding}"},s$9={light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}},a$E={root:o$1k,overlay:r$1h,list:d$w,option:e$T,optionGroup:l$g,dropdown:i$q,chip:c$o,emptyMessage:f$9,colorScheme:s$9};/* Injected with object hook! */
|
|
1290
54
|
|
|
@@ -1565,7 +329,7 @@ var index = _objectSpread$3(_objectSpread$3({}, e$Q), {}, {
|
|
|
1565
329
|
/* Injected with object hook! */
|
|
1566
330
|
|
|
1567
331
|
/**
|
|
1568
|
-
* @vue/shared v3.5.
|
|
332
|
+
* @vue/shared v3.5.17
|
|
1569
333
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1570
334
|
* @license MIT
|
|
1571
335
|
**/
|
|
@@ -1813,7 +577,7 @@ const stringifySymbol = (v, i = "") => {
|
|
|
1813
577
|
/* Injected with object hook! */
|
|
1814
578
|
|
|
1815
579
|
/**
|
|
1816
|
-
* @vue/reactivity v3.5.
|
|
580
|
+
* @vue/reactivity v3.5.17
|
|
1817
581
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1818
582
|
* @license MIT
|
|
1819
583
|
**/
|
|
@@ -2222,6 +986,7 @@ class Link {
|
|
|
2222
986
|
}
|
|
2223
987
|
}
|
|
2224
988
|
class Dep {
|
|
989
|
+
// TODO isolatedDeclarations "__v_skip"
|
|
2225
990
|
constructor(computed2) {
|
|
2226
991
|
this.computed = computed2;
|
|
2227
992
|
this.version = 0;
|
|
@@ -2230,6 +995,7 @@ class Dep {
|
|
|
2230
995
|
this.map = void 0;
|
|
2231
996
|
this.key = void 0;
|
|
2232
997
|
this.sc = 0;
|
|
998
|
+
this.__v_skip = true;
|
|
2233
999
|
}
|
|
2234
1000
|
track(debugInfo) {
|
|
2235
1001
|
if (!activeSub || !shouldTrack || activeSub === this.computed) {
|
|
@@ -3392,7 +2158,7 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
3392
2158
|
/* Injected with object hook! */
|
|
3393
2159
|
|
|
3394
2160
|
/**
|
|
3395
|
-
* @vue/runtime-core v3.5.
|
|
2161
|
+
* @vue/runtime-core v3.5.17
|
|
3396
2162
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
3397
2163
|
* @license MIT
|
|
3398
2164
|
**/
|
|
@@ -5757,6 +4523,8 @@ const assignSlots = (slots, children, optimized) => {
|
|
|
5757
4523
|
const initSlots = (instance, children, optimized) => {
|
|
5758
4524
|
const slots = instance.slots = createInternalObject();
|
|
5759
4525
|
if (instance.vnode.shapeFlag & 32) {
|
|
4526
|
+
const cacheIndexes = children.__;
|
|
4527
|
+
if (cacheIndexes) def(slots, "__", cacheIndexes, true);
|
|
5760
4528
|
const type = children._;
|
|
5761
4529
|
if (type) {
|
|
5762
4530
|
assignSlots(slots, children, optimized);
|
|
@@ -5914,6 +4682,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5914
4682
|
}
|
|
5915
4683
|
if (ref3 != null && parentComponent) {
|
|
5916
4684
|
setRef(ref3, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
|
|
4685
|
+
} else if (ref3 == null && n1 && n1.ref != null) {
|
|
4686
|
+
setRef(n1.ref, null, parentSuspense, n1, true);
|
|
5917
4687
|
}
|
|
5918
4688
|
};
|
|
5919
4689
|
const processText = (n1, n2, container, anchor) => {
|
|
@@ -6387,7 +5157,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6387
5157
|
}
|
|
6388
5158
|
toggleRecurse(instance, true);
|
|
6389
5159
|
{
|
|
6390
|
-
if (root.ce
|
|
5160
|
+
if (root.ce && // @ts-expect-error _def is private
|
|
5161
|
+
root.ce._def.shadowRoot !== false) {
|
|
6391
5162
|
root.ce._injectChildStyle(type);
|
|
6392
5163
|
}
|
|
6393
5164
|
const subTree = instance.subTree = renderComponentRoot(instance);
|
|
@@ -8240,12 +7011,12 @@ function h(type, propsOrChildren, children) {
|
|
|
8240
7011
|
return createVNode(type, propsOrChildren, children);
|
|
8241
7012
|
}
|
|
8242
7013
|
}
|
|
8243
|
-
const version = "3.5.
|
|
7014
|
+
const version = "3.5.17";
|
|
8244
7015
|
|
|
8245
7016
|
/* Injected with object hook! */
|
|
8246
7017
|
|
|
8247
7018
|
/**
|
|
8248
|
-
* @vue/runtime-dom v3.5.
|
|
7019
|
+
* @vue/runtime-dom v3.5.17
|
|
8249
7020
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8250
7021
|
* @license MIT
|
|
8251
7022
|
**/
|
|
@@ -9141,7 +7912,165 @@ function normalizeContainer(container) {
|
|
|
9141
7912
|
const res = document.querySelector(container);
|
|
9142
7913
|
return res;
|
|
9143
7914
|
}
|
|
9144
|
-
return container;
|
|
7915
|
+
return container;
|
|
7916
|
+
}
|
|
7917
|
+
|
|
7918
|
+
/* Injected with object hook! */
|
|
7919
|
+
|
|
7920
|
+
const TYPE_REQUEST = "q";
|
|
7921
|
+
const TYPE_RESPONSE = "s";
|
|
7922
|
+
const DEFAULT_TIMEOUT = 6e4;
|
|
7923
|
+
function defaultSerialize(i) {
|
|
7924
|
+
return i;
|
|
7925
|
+
}
|
|
7926
|
+
const defaultDeserialize = defaultSerialize;
|
|
7927
|
+
const { clearTimeout: clearTimeout$1, setTimeout: setTimeout$1 } = globalThis;
|
|
7928
|
+
const random = Math.random.bind(Math);
|
|
7929
|
+
function createBirpc(functions, options) {
|
|
7930
|
+
const {
|
|
7931
|
+
post,
|
|
7932
|
+
on,
|
|
7933
|
+
off = () => {
|
|
7934
|
+
},
|
|
7935
|
+
eventNames = [],
|
|
7936
|
+
serialize = defaultSerialize,
|
|
7937
|
+
deserialize = defaultDeserialize,
|
|
7938
|
+
resolver,
|
|
7939
|
+
bind = "rpc",
|
|
7940
|
+
timeout = DEFAULT_TIMEOUT
|
|
7941
|
+
} = options;
|
|
7942
|
+
const rpcPromiseMap = /* @__PURE__ */ new Map();
|
|
7943
|
+
let _promise;
|
|
7944
|
+
let closed = false;
|
|
7945
|
+
const rpc = new Proxy({}, {
|
|
7946
|
+
get(_, method) {
|
|
7947
|
+
if (method === "$functions")
|
|
7948
|
+
return functions;
|
|
7949
|
+
if (method === "$close")
|
|
7950
|
+
return close;
|
|
7951
|
+
if (method === "$closed")
|
|
7952
|
+
return closed;
|
|
7953
|
+
if (method === "then" && !eventNames.includes("then") && !("then" in functions))
|
|
7954
|
+
return undefined;
|
|
7955
|
+
const sendEvent = (...args) => {
|
|
7956
|
+
post(serialize({ m: method, a: args, t: TYPE_REQUEST }));
|
|
7957
|
+
};
|
|
7958
|
+
if (eventNames.includes(method)) {
|
|
7959
|
+
sendEvent.asEvent = sendEvent;
|
|
7960
|
+
return sendEvent;
|
|
7961
|
+
}
|
|
7962
|
+
const sendCall = async (...args) => {
|
|
7963
|
+
if (closed)
|
|
7964
|
+
throw new Error(`[birpc] rpc is closed, cannot call "${method}"`);
|
|
7965
|
+
if (_promise) {
|
|
7966
|
+
try {
|
|
7967
|
+
await _promise;
|
|
7968
|
+
} finally {
|
|
7969
|
+
_promise = undefined;
|
|
7970
|
+
}
|
|
7971
|
+
}
|
|
7972
|
+
return new Promise((resolve, reject) => {
|
|
7973
|
+
const id = nanoid();
|
|
7974
|
+
let timeoutId;
|
|
7975
|
+
if (timeout >= 0) {
|
|
7976
|
+
timeoutId = setTimeout$1(() => {
|
|
7977
|
+
try {
|
|
7978
|
+
const handleResult = options.onTimeoutError?.(method, args);
|
|
7979
|
+
if (handleResult !== true)
|
|
7980
|
+
throw new Error(`[birpc] timeout on calling "${method}"`);
|
|
7981
|
+
} catch (e) {
|
|
7982
|
+
reject(e);
|
|
7983
|
+
}
|
|
7984
|
+
rpcPromiseMap.delete(id);
|
|
7985
|
+
}, timeout);
|
|
7986
|
+
if (typeof timeoutId === "object")
|
|
7987
|
+
timeoutId = timeoutId.unref?.();
|
|
7988
|
+
}
|
|
7989
|
+
rpcPromiseMap.set(id, { resolve, reject, timeoutId, method });
|
|
7990
|
+
post(serialize({ m: method, a: args, i: id, t: "q" }));
|
|
7991
|
+
});
|
|
7992
|
+
};
|
|
7993
|
+
sendCall.asEvent = sendEvent;
|
|
7994
|
+
return sendCall;
|
|
7995
|
+
}
|
|
7996
|
+
});
|
|
7997
|
+
function close(error) {
|
|
7998
|
+
closed = true;
|
|
7999
|
+
rpcPromiseMap.forEach(({ reject, method }) => {
|
|
8000
|
+
reject(error || new Error(`[birpc] rpc is closed, cannot call "${method}"`));
|
|
8001
|
+
});
|
|
8002
|
+
rpcPromiseMap.clear();
|
|
8003
|
+
off(onMessage);
|
|
8004
|
+
}
|
|
8005
|
+
async function onMessage(data, ...extra) {
|
|
8006
|
+
let msg;
|
|
8007
|
+
try {
|
|
8008
|
+
msg = deserialize(data);
|
|
8009
|
+
} catch (e) {
|
|
8010
|
+
if (options.onGeneralError?.(e) !== true)
|
|
8011
|
+
throw e;
|
|
8012
|
+
return;
|
|
8013
|
+
}
|
|
8014
|
+
if (msg.t === TYPE_REQUEST) {
|
|
8015
|
+
const { m: method, a: args } = msg;
|
|
8016
|
+
let result, error;
|
|
8017
|
+
const fn = resolver ? resolver(method, functions[method]) : functions[method];
|
|
8018
|
+
if (!fn) {
|
|
8019
|
+
error = new Error(`[birpc] function "${method}" not found`);
|
|
8020
|
+
} else {
|
|
8021
|
+
try {
|
|
8022
|
+
result = await fn.apply(bind === "rpc" ? rpc : functions, args);
|
|
8023
|
+
} catch (e) {
|
|
8024
|
+
error = e;
|
|
8025
|
+
}
|
|
8026
|
+
}
|
|
8027
|
+
if (msg.i) {
|
|
8028
|
+
if (error && options.onError)
|
|
8029
|
+
options.onError(error, method, args);
|
|
8030
|
+
if (error && options.onFunctionError) {
|
|
8031
|
+
if (options.onFunctionError(error, method, args) === true)
|
|
8032
|
+
return;
|
|
8033
|
+
}
|
|
8034
|
+
if (!error) {
|
|
8035
|
+
try {
|
|
8036
|
+
post(serialize({ t: TYPE_RESPONSE, i: msg.i, r: result }), ...extra);
|
|
8037
|
+
return;
|
|
8038
|
+
} catch (e) {
|
|
8039
|
+
error = e;
|
|
8040
|
+
if (options.onGeneralError?.(e, method, args) !== true)
|
|
8041
|
+
throw e;
|
|
8042
|
+
}
|
|
8043
|
+
}
|
|
8044
|
+
try {
|
|
8045
|
+
post(serialize({ t: TYPE_RESPONSE, i: msg.i, e: error }), ...extra);
|
|
8046
|
+
} catch (e) {
|
|
8047
|
+
if (options.onGeneralError?.(e, method, args) !== true)
|
|
8048
|
+
throw e;
|
|
8049
|
+
}
|
|
8050
|
+
}
|
|
8051
|
+
} else {
|
|
8052
|
+
const { i: ack, r: result, e: error } = msg;
|
|
8053
|
+
const promise = rpcPromiseMap.get(ack);
|
|
8054
|
+
if (promise) {
|
|
8055
|
+
clearTimeout$1(promise.timeoutId);
|
|
8056
|
+
if (error)
|
|
8057
|
+
promise.reject(error);
|
|
8058
|
+
else
|
|
8059
|
+
promise.resolve(result);
|
|
8060
|
+
}
|
|
8061
|
+
rpcPromiseMap.delete(ack);
|
|
8062
|
+
}
|
|
8063
|
+
}
|
|
8064
|
+
_promise = on(onMessage);
|
|
8065
|
+
return rpc;
|
|
8066
|
+
}
|
|
8067
|
+
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
8068
|
+
function nanoid(size = 21) {
|
|
8069
|
+
let id = "";
|
|
8070
|
+
let i = size;
|
|
8071
|
+
while (i--)
|
|
8072
|
+
id += urlAlphabet[random() * 64 | 0];
|
|
8073
|
+
return id;
|
|
9145
8074
|
}
|
|
9146
8075
|
|
|
9147
8076
|
/* Injected with object hook! */
|
|
@@ -9215,130 +8144,7 @@ var FilterMatchMode = {
|
|
|
9215
8144
|
|
|
9216
8145
|
/* Injected with object hook! */
|
|
9217
8146
|
|
|
9218
|
-
var style=
|
|
9219
|
-
*,
|
|
9220
|
-
::before,
|
|
9221
|
-
::after {
|
|
9222
|
-
box-sizing: border-box;
|
|
9223
|
-
}
|
|
9224
|
-
|
|
9225
|
-
/* Non vue overlay animations */
|
|
9226
|
-
.p-connected-overlay {
|
|
9227
|
-
opacity: 0;
|
|
9228
|
-
transform: scaleY(0.8);
|
|
9229
|
-
transition:
|
|
9230
|
-
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
|
|
9231
|
-
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
|
|
9232
|
-
}
|
|
9233
|
-
|
|
9234
|
-
.p-connected-overlay-visible {
|
|
9235
|
-
opacity: 1;
|
|
9236
|
-
transform: scaleY(1);
|
|
9237
|
-
}
|
|
9238
|
-
|
|
9239
|
-
.p-connected-overlay-hidden {
|
|
9240
|
-
opacity: 0;
|
|
9241
|
-
transform: scaleY(1);
|
|
9242
|
-
transition: opacity 0.1s linear;
|
|
9243
|
-
}
|
|
9244
|
-
|
|
9245
|
-
/* Vue based overlay animations */
|
|
9246
|
-
.p-connected-overlay-enter-from {
|
|
9247
|
-
opacity: 0;
|
|
9248
|
-
transform: scaleY(0.8);
|
|
9249
|
-
}
|
|
9250
|
-
|
|
9251
|
-
.p-connected-overlay-leave-to {
|
|
9252
|
-
opacity: 0;
|
|
9253
|
-
}
|
|
9254
|
-
|
|
9255
|
-
.p-connected-overlay-enter-active {
|
|
9256
|
-
transition:
|
|
9257
|
-
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
|
|
9258
|
-
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
|
|
9259
|
-
}
|
|
9260
|
-
|
|
9261
|
-
.p-connected-overlay-leave-active {
|
|
9262
|
-
transition: opacity 0.1s linear;
|
|
9263
|
-
}
|
|
9264
|
-
|
|
9265
|
-
/* Toggleable Content */
|
|
9266
|
-
.p-toggleable-content-enter-from,
|
|
9267
|
-
.p-toggleable-content-leave-to {
|
|
9268
|
-
max-height: 0;
|
|
9269
|
-
}
|
|
9270
|
-
|
|
9271
|
-
.p-toggleable-content-enter-to,
|
|
9272
|
-
.p-toggleable-content-leave-from {
|
|
9273
|
-
max-height: 1000px;
|
|
9274
|
-
}
|
|
9275
|
-
|
|
9276
|
-
.p-toggleable-content-leave-active {
|
|
9277
|
-
overflow: hidden;
|
|
9278
|
-
transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
|
|
9279
|
-
}
|
|
9280
|
-
|
|
9281
|
-
.p-toggleable-content-enter-active {
|
|
9282
|
-
overflow: hidden;
|
|
9283
|
-
transition: max-height 1s ease-in-out;
|
|
9284
|
-
}
|
|
9285
|
-
|
|
9286
|
-
.p-disabled,
|
|
9287
|
-
.p-disabled * {
|
|
9288
|
-
cursor: default;
|
|
9289
|
-
pointer-events: none;
|
|
9290
|
-
user-select: none;
|
|
9291
|
-
}
|
|
9292
|
-
|
|
9293
|
-
.p-disabled,
|
|
9294
|
-
.p-component:disabled {
|
|
9295
|
-
opacity: dt('disabled.opacity');
|
|
9296
|
-
}
|
|
9297
|
-
|
|
9298
|
-
.pi {
|
|
9299
|
-
font-size: dt('icon.size');
|
|
9300
|
-
}
|
|
9301
|
-
|
|
9302
|
-
.p-icon {
|
|
9303
|
-
width: dt('icon.size');
|
|
9304
|
-
height: dt('icon.size');
|
|
9305
|
-
}
|
|
9306
|
-
|
|
9307
|
-
.p-overlay-mask {
|
|
9308
|
-
background: dt('mask.background');
|
|
9309
|
-
color: dt('mask.color');
|
|
9310
|
-
position: fixed;
|
|
9311
|
-
top: 0;
|
|
9312
|
-
left: 0;
|
|
9313
|
-
width: 100%;
|
|
9314
|
-
height: 100%;
|
|
9315
|
-
}
|
|
9316
|
-
|
|
9317
|
-
.p-overlay-mask-enter {
|
|
9318
|
-
animation: p-overlay-mask-enter-animation dt('mask.transition.duration') forwards;
|
|
9319
|
-
}
|
|
9320
|
-
|
|
9321
|
-
.p-overlay-mask-leave {
|
|
9322
|
-
animation: p-overlay-mask-leave-animation dt('mask.transition.duration') forwards;
|
|
9323
|
-
}
|
|
9324
|
-
|
|
9325
|
-
@keyframes p-overlay-mask-enter-animation {
|
|
9326
|
-
from {
|
|
9327
|
-
background: transparent;
|
|
9328
|
-
}
|
|
9329
|
-
to {
|
|
9330
|
-
background: dt('mask.background');
|
|
9331
|
-
}
|
|
9332
|
-
}
|
|
9333
|
-
@keyframes p-overlay-mask-leave-animation {
|
|
9334
|
-
from {
|
|
9335
|
-
background: dt('mask.background');
|
|
9336
|
-
}
|
|
9337
|
-
to {
|
|
9338
|
-
background: transparent;
|
|
9339
|
-
}
|
|
9340
|
-
}
|
|
9341
|
-
`;/* Injected with object hook! */
|
|
8147
|
+
var style="\n *,\n ::before,\n ::after {\n box-sizing: border-box;\n }\n\n /* Non vue overlay animations */\n .p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition:\n transform 0.12s cubic-bezier(0, 0, 0.2, 1),\n opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n }\n\n .p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity 0.1s linear;\n }\n\n /* Vue based overlay animations */\n .p-connected-overlay-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-connected-overlay-leave-to {\n opacity: 0;\n }\n\n .p-connected-overlay-enter-active {\n transition:\n transform 0.12s cubic-bezier(0, 0, 0.2, 1),\n opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-leave-active {\n transition: opacity 0.1s linear;\n }\n\n /* Toggleable Content */\n .p-toggleable-content-enter-from,\n .p-toggleable-content-leave-to {\n max-height: 0;\n }\n\n .p-toggleable-content-enter-to,\n .p-toggleable-content-leave-from {\n max-height: 1000px;\n }\n\n .p-toggleable-content-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n }\n\n .p-toggleable-content-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n }\n\n .p-disabled,\n .p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n }\n\n .p-disabled,\n .p-component:disabled {\n opacity: dt('disabled.opacity');\n }\n\n .pi {\n font-size: dt('icon.size');\n }\n\n .p-icon {\n width: dt('icon.size');\n height: dt('icon.size');\n }\n\n .p-overlay-mask {\n background: dt('mask.background');\n color: dt('mask.color');\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-overlay-mask-enter {\n animation: p-overlay-mask-enter-animation dt('mask.transition.duration') forwards;\n }\n\n .p-overlay-mask-leave {\n animation: p-overlay-mask-leave-animation dt('mask.transition.duration') forwards;\n }\n\n @keyframes p-overlay-mask-enter-animation {\n from {\n background: transparent;\n }\n to {\n background: dt('mask.background');\n }\n }\n @keyframes p-overlay-mask-leave-animation {\n from {\n background: dt('mask.background');\n }\n to {\n background: transparent;\n }\n }\n";/* Injected with object hook! */
|
|
9342
8148
|
|
|
9343
8149
|
function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
|
|
9344
8150
|
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -9356,7 +8162,7 @@ function useStyle(css) {
|
|
|
9356
8162
|
var isLoaded = ref(false);
|
|
9357
8163
|
var cssRef = ref(css);
|
|
9358
8164
|
var styleRef = ref(null);
|
|
9359
|
-
var defaultDocument =
|
|
8165
|
+
var defaultDocument = tt$1() ? window.document : undefined;
|
|
9360
8166
|
var _options$document = options.document,
|
|
9361
8167
|
document = _options$document === void 0 ? defaultDocument : _options$document,
|
|
9362
8168
|
_options$immediate = options.immediate,
|
|
@@ -9394,15 +8200,15 @@ function useStyle(css) {
|
|
|
9394
8200
|
styleRef.value = document.querySelector("style[data-primevue-style-id=\"".concat(_name, "\"]")) || document.getElementById(_id) || document.createElement('style');
|
|
9395
8201
|
if (!styleRef.value.isConnected) {
|
|
9396
8202
|
cssRef.value = _css || css;
|
|
9397
|
-
|
|
8203
|
+
A(styleRef.value, {
|
|
9398
8204
|
type: 'text/css',
|
|
9399
8205
|
id: _id,
|
|
9400
8206
|
media: media,
|
|
9401
8207
|
nonce: _nonce
|
|
9402
8208
|
});
|
|
9403
8209
|
first ? document.head.prepend(styleRef.value) : document.head.appendChild(styleRef.value);
|
|
9404
|
-
|
|
9405
|
-
|
|
8210
|
+
Kt(styleRef.value, 'data-primevue-style-id', _name);
|
|
8211
|
+
A(styleRef.value, _styleProps);
|
|
9406
8212
|
styleRef.value.onload = function (event) {
|
|
9407
8213
|
return onStyleLoaded === null || onStyleLoaded === void 0 ? void 0 : onStyleLoaded(event, {
|
|
9408
8214
|
name: _name
|
|
@@ -9422,7 +8228,7 @@ function useStyle(css) {
|
|
|
9422
8228
|
var unload = function unload() {
|
|
9423
8229
|
if (!document || !isLoaded.value) return;
|
|
9424
8230
|
stop();
|
|
9425
|
-
|
|
8231
|
+
T$1(styleRef.value) && document.head.removeChild(styleRef.value);
|
|
9426
8232
|
isLoaded.value = false;
|
|
9427
8233
|
styleRef.value = null;
|
|
9428
8234
|
};
|
|
@@ -9476,8 +8282,8 @@ var BaseStyle = {
|
|
|
9476
8282
|
var transform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (cs) {
|
|
9477
8283
|
return cs;
|
|
9478
8284
|
};
|
|
9479
|
-
var computedStyle = transform(
|
|
9480
|
-
return
|
|
8285
|
+
var computedStyle = transform(ar(_templateObject || (_templateObject = _taggedTemplateLiteral(["", ""])), style));
|
|
8286
|
+
return s$b(computedStyle) ? useStyle(G(computedStyle), _objectSpread$1({
|
|
9481
8287
|
name: this.name
|
|
9482
8288
|
}, options)) : {};
|
|
9483
8289
|
},
|
|
@@ -9491,62 +8297,62 @@ var BaseStyle = {
|
|
|
9491
8297
|
var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
9492
8298
|
return this.load(this.style, options, function () {
|
|
9493
8299
|
var computedStyle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
9494
|
-
return
|
|
8300
|
+
return g$5.transformCSS(options.name || _this.name, "".concat(computedStyle).concat(ar(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["", ""])), style)));
|
|
9495
8301
|
});
|
|
9496
8302
|
},
|
|
9497
8303
|
getCommonTheme: function getCommonTheme(params) {
|
|
9498
|
-
return
|
|
8304
|
+
return g$5.getCommon(this.name, params);
|
|
9499
8305
|
},
|
|
9500
8306
|
getComponentTheme: function getComponentTheme(params) {
|
|
9501
|
-
return
|
|
8307
|
+
return g$5.getComponent(this.name, params);
|
|
9502
8308
|
},
|
|
9503
8309
|
getDirectiveTheme: function getDirectiveTheme(params) {
|
|
9504
|
-
return
|
|
8310
|
+
return g$5.getDirective(this.name, params);
|
|
9505
8311
|
},
|
|
9506
8312
|
getPresetTheme: function getPresetTheme(preset, selector, params) {
|
|
9507
|
-
return
|
|
8313
|
+
return g$5.getCustomPreset(this.name, preset, selector, params);
|
|
9508
8314
|
},
|
|
9509
8315
|
getLayerOrderThemeCSS: function getLayerOrderThemeCSS() {
|
|
9510
|
-
return
|
|
8316
|
+
return g$5.getLayerOrderCSS(this.name);
|
|
9511
8317
|
},
|
|
9512
8318
|
getStyleSheet: function getStyleSheet() {
|
|
9513
8319
|
var extendedCSS = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
9514
8320
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9515
8321
|
if (this.css) {
|
|
9516
|
-
var _css =
|
|
9517
|
-
dt:
|
|
8322
|
+
var _css = m$3(this.css, {
|
|
8323
|
+
dt: P
|
|
9518
8324
|
}) || '';
|
|
9519
|
-
var _style =
|
|
8325
|
+
var _style = G(ar(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["", "", ""])), _css, extendedCSS));
|
|
9520
8326
|
var _props = Object.entries(props).reduce(function (acc, _ref2) {
|
|
9521
8327
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
9522
8328
|
k = _ref3[0],
|
|
9523
8329
|
v = _ref3[1];
|
|
9524
8330
|
return acc.push("".concat(k, "=\"").concat(v, "\"")) && acc;
|
|
9525
8331
|
}, []).join(' ');
|
|
9526
|
-
return
|
|
8332
|
+
return s$b(_style) ? "<style type=\"text/css\" data-primevue-style-id=\"".concat(this.name, "\" ").concat(_props, ">").concat(_style, "</style>") : '';
|
|
9527
8333
|
}
|
|
9528
8334
|
return '';
|
|
9529
8335
|
},
|
|
9530
8336
|
getCommonThemeStyleSheet: function getCommonThemeStyleSheet(params) {
|
|
9531
8337
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9532
|
-
return
|
|
8338
|
+
return g$5.getCommonStyleSheet(this.name, params, props);
|
|
9533
8339
|
},
|
|
9534
8340
|
getThemeStyleSheet: function getThemeStyleSheet(params) {
|
|
9535
8341
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9536
|
-
var css = [
|
|
8342
|
+
var css = [g$5.getStyleSheet(this.name, params, props)];
|
|
9537
8343
|
if (this.style) {
|
|
9538
8344
|
var name = this.name === 'base' ? 'global-style' : "".concat(this.name, "-style");
|
|
9539
|
-
var _css =
|
|
9540
|
-
dt:
|
|
8345
|
+
var _css = ar(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["", ""])), m$3(this.style, {
|
|
8346
|
+
dt: P
|
|
9541
8347
|
}));
|
|
9542
|
-
var _style =
|
|
8348
|
+
var _style = G(g$5.transformCSS(name, _css));
|
|
9543
8349
|
var _props = Object.entries(props).reduce(function (acc, _ref4) {
|
|
9544
8350
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
9545
8351
|
k = _ref5[0],
|
|
9546
8352
|
v = _ref5[1];
|
|
9547
8353
|
return acc.push("".concat(k, "=\"").concat(v, "\"")) && acc;
|
|
9548
8354
|
}, []).join(' ');
|
|
9549
|
-
|
|
8355
|
+
s$b(_style) && css.push("<style type=\"text/css\" data-primevue-style-id=\"".concat(name, "\" ").concat(_props, ">").concat(_style, "</style>"));
|
|
9550
8356
|
}
|
|
9551
8357
|
return css.join('');
|
|
9552
8358
|
},
|
|
@@ -9561,7 +8367,7 @@ var BaseStyle = {
|
|
|
9561
8367
|
|
|
9562
8368
|
/* Injected with object hook! */
|
|
9563
8369
|
|
|
9564
|
-
var PrimeVueService =
|
|
8370
|
+
var PrimeVueService = s$a();
|
|
9565
8371
|
|
|
9566
8372
|
|
|
9567
8373
|
/* Injected with object hook! */
|
|
@@ -9732,7 +8538,7 @@ function setup(app, options) {
|
|
|
9732
8538
|
}
|
|
9733
8539
|
var stopWatchers = [];
|
|
9734
8540
|
function clearConfig() {
|
|
9735
|
-
|
|
8541
|
+
R.clear();
|
|
9736
8542
|
stopWatchers.forEach(function (fn) {
|
|
9737
8543
|
return fn === null || fn === void 0 ? void 0 : fn();
|
|
9738
8544
|
});
|
|
@@ -9747,7 +8553,7 @@ function setupConfig(app, PrimeVue) {
|
|
|
9747
8553
|
if (((_PrimeVue$config = PrimeVue.config) === null || _PrimeVue$config === void 0 ? void 0 : _PrimeVue$config.theme) === 'none') return;
|
|
9748
8554
|
|
|
9749
8555
|
// common
|
|
9750
|
-
if (!
|
|
8556
|
+
if (!g$5.isStyleNameLoaded('common')) {
|
|
9751
8557
|
var _BaseStyle$getCommonT, _PrimeVue$config2;
|
|
9752
8558
|
var _ref = ((_BaseStyle$getCommonT = BaseStyle.getCommonTheme) === null || _BaseStyle$getCommonT === void 0 ? void 0 : _BaseStyle$getCommonT.call(BaseStyle)) || {},
|
|
9753
8559
|
primitive = _ref.primitive,
|
|
@@ -9769,10 +8575,10 @@ function setupConfig(app, PrimeVue) {
|
|
|
9769
8575
|
BaseStyle.loadStyle(_objectSpread({
|
|
9770
8576
|
name: 'global-style'
|
|
9771
8577
|
}, styleOptions), style);
|
|
9772
|
-
|
|
8578
|
+
g$5.setLoadedStyleName('common');
|
|
9773
8579
|
}
|
|
9774
8580
|
};
|
|
9775
|
-
|
|
8581
|
+
R.on('theme:change', function (newTheme) {
|
|
9776
8582
|
if (!isThemeChanged.value) {
|
|
9777
8583
|
app.config.globalProperties.$primevue.config.theme = newTheme;
|
|
9778
8584
|
isThemeChanged.value = true;
|
|
@@ -9804,7 +8610,7 @@ function setupConfig(app, PrimeVue) {
|
|
|
9804
8610
|
return PrimeVue.config.theme;
|
|
9805
8611
|
}, function (newValue, oldValue) {
|
|
9806
8612
|
if (!isThemeChanged.value) {
|
|
9807
|
-
|
|
8613
|
+
g$5.setTheme(newValue);
|
|
9808
8614
|
}
|
|
9809
8615
|
if (!PrimeVue.config.unstyled) {
|
|
9810
8616
|
loadCommonTheme();
|
|
@@ -9839,7 +8645,7 @@ function setupConfig(app, PrimeVue) {
|
|
|
9839
8645
|
}
|
|
9840
8646
|
var PrimeVue = {
|
|
9841
8647
|
install: function install(app, options) {
|
|
9842
|
-
var configOptions =
|
|
8648
|
+
var configOptions = U$1(defaultOptions, options);
|
|
9843
8649
|
setup(app, configOptions);
|
|
9844
8650
|
}
|
|
9845
8651
|
};
|
|
@@ -11716,81 +10522,58 @@ function useRoute(_name) {
|
|
|
11716
10522
|
/* Injected with object hook! */
|
|
11717
10523
|
|
|
11718
10524
|
const scriptRel = 'modulepreload';const assetsURL = function(dep, importerUrl) { return new URL(dep, importerUrl).href };const seen = {};const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
);
|
|
11772
|
-
});
|
|
11773
|
-
}
|
|
11774
|
-
})
|
|
11775
|
-
);
|
|
11776
|
-
}
|
|
11777
|
-
function handlePreloadError(err) {
|
|
11778
|
-
const e = new Event("vite:preloadError", {
|
|
11779
|
-
cancelable: true
|
|
11780
|
-
});
|
|
11781
|
-
e.payload = err;
|
|
11782
|
-
window.dispatchEvent(e);
|
|
11783
|
-
if (!e.defaultPrevented) {
|
|
11784
|
-
throw err;
|
|
11785
|
-
}
|
|
11786
|
-
}
|
|
11787
|
-
return promise.then((res) => {
|
|
11788
|
-
for (const item of res || []) {
|
|
11789
|
-
if (item.status !== "rejected") continue;
|
|
11790
|
-
handlePreloadError(item.reason);
|
|
11791
|
-
}
|
|
11792
|
-
return baseModule().catch(handlePreloadError);
|
|
11793
|
-
});
|
|
10525
|
+
let promise = Promise.resolve();
|
|
10526
|
+
if (true && deps && deps.length > 0) {
|
|
10527
|
+
const links = document.getElementsByTagName("link");
|
|
10528
|
+
const cspNonceMeta = document.querySelector("meta[property=csp-nonce]");
|
|
10529
|
+
const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
|
|
10530
|
+
function allSettled(promises$2) {
|
|
10531
|
+
return Promise.all(promises$2.map((p$1) => Promise.resolve(p$1).then((value$1) => ({
|
|
10532
|
+
status: "fulfilled",
|
|
10533
|
+
value: value$1
|
|
10534
|
+
}), (reason) => ({
|
|
10535
|
+
status: "rejected",
|
|
10536
|
+
reason
|
|
10537
|
+
}))));
|
|
10538
|
+
}
|
|
10539
|
+
promise = allSettled(deps.map((dep) => {
|
|
10540
|
+
dep = assetsURL(dep, importerUrl);
|
|
10541
|
+
if (dep in seen) return;
|
|
10542
|
+
seen[dep] = true;
|
|
10543
|
+
const isCss = dep.endsWith(".css");
|
|
10544
|
+
const cssSelector = isCss ? "[rel=\"stylesheet\"]" : "";
|
|
10545
|
+
const isBaseRelative = !!importerUrl;
|
|
10546
|
+
if (isBaseRelative) for (let i$1 = links.length - 1; i$1 >= 0; i$1--) {
|
|
10547
|
+
const link$1 = links[i$1];
|
|
10548
|
+
if (link$1.href === dep && (!isCss || link$1.rel === "stylesheet")) return;
|
|
10549
|
+
}
|
|
10550
|
+
else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;
|
|
10551
|
+
const link = document.createElement("link");
|
|
10552
|
+
link.rel = isCss ? "stylesheet" : scriptRel;
|
|
10553
|
+
if (!isCss) link.as = "script";
|
|
10554
|
+
link.crossOrigin = "";
|
|
10555
|
+
link.href = dep;
|
|
10556
|
+
if (cspNonce) link.setAttribute("nonce", cspNonce);
|
|
10557
|
+
document.head.appendChild(link);
|
|
10558
|
+
if (isCss) return new Promise((res, rej) => {
|
|
10559
|
+
link.addEventListener("load", res);
|
|
10560
|
+
link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
|
|
10561
|
+
});
|
|
10562
|
+
}));
|
|
10563
|
+
}
|
|
10564
|
+
function handlePreloadError(err$2) {
|
|
10565
|
+
const e$1 = new Event("vite:preloadError", { cancelable: true });
|
|
10566
|
+
e$1.payload = err$2;
|
|
10567
|
+
window.dispatchEvent(e$1);
|
|
10568
|
+
if (!e$1.defaultPrevented) throw err$2;
|
|
10569
|
+
}
|
|
10570
|
+
return promise.then((res) => {
|
|
10571
|
+
for (const item of res || []) {
|
|
10572
|
+
if (item.status !== "rejected") continue;
|
|
10573
|
+
handlePreloadError(item.reason);
|
|
10574
|
+
}
|
|
10575
|
+
return baseModule().catch(handlePreloadError);
|
|
10576
|
+
});
|
|
11794
10577
|
};
|
|
11795
10578
|
/* Injected with object hook! */
|
|
11796
10579
|
|
|
@@ -11798,31 +10581,31 @@ const routes = [
|
|
|
11798
10581
|
{
|
|
11799
10582
|
path: "/",
|
|
11800
10583
|
name: "/",
|
|
11801
|
-
component: () => __vitePreload(() => import('./index-
|
|
10584
|
+
component: () => __vitePreload(() => import('./index-CuVxz6bX.js'),true ?__vite__mapDeps([0,1,2]):void 0,import.meta.url)
|
|
11802
10585
|
/* no children */
|
|
11803
10586
|
},
|
|
11804
10587
|
{
|
|
11805
10588
|
path: "/about",
|
|
11806
10589
|
name: "/about",
|
|
11807
|
-
component: () => __vitePreload(() => import('./about-
|
|
10590
|
+
component: () => __vitePreload(() => import('./about-owKsYr3E.js'),true ?[]:void 0,import.meta.url)
|
|
11808
10591
|
/* no children */
|
|
11809
10592
|
},
|
|
11810
10593
|
{
|
|
11811
10594
|
path: "/categories",
|
|
11812
10595
|
name: "/categories",
|
|
11813
|
-
component: () => __vitePreload(() => import('./categories-
|
|
10596
|
+
component: () => __vitePreload(() => import('./categories-BGG1NAYq.js'),true ?[]:void 0,import.meta.url)
|
|
11814
10597
|
/* no children */
|
|
11815
10598
|
},
|
|
11816
10599
|
{
|
|
11817
10600
|
path: "/migration",
|
|
11818
10601
|
name: "/migration",
|
|
11819
|
-
component: () => __vitePreload(() => import('./migration-
|
|
10602
|
+
component: () => __vitePreload(() => import('./migration-BBvf-kdp.js'),true ?__vite__mapDeps([3,1]):void 0,import.meta.url)
|
|
11820
10603
|
/* no children */
|
|
11821
10604
|
},
|
|
11822
10605
|
{
|
|
11823
10606
|
path: "/tags",
|
|
11824
10607
|
name: "/tags",
|
|
11825
|
-
component: () => __vitePreload(() => import('./tags-
|
|
10608
|
+
component: () => __vitePreload(() => import('./tags-BZ1s-2OD.js'),true ?[]:void 0,import.meta.url)
|
|
11826
10609
|
/* no children */
|
|
11827
10610
|
}
|
|
11828
10611
|
];
|
|
@@ -11849,7 +10632,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11849
10632
|
/* Injected with object hook! */
|
|
11850
10633
|
|
|
11851
10634
|
/*!
|
|
11852
|
-
* shared v11.1.
|
|
10635
|
+
* shared v11.1.9
|
|
11853
10636
|
* (c) 2025 kazuya kawaguchi
|
|
11854
10637
|
* Released under the MIT License.
|
|
11855
10638
|
*/
|
|
@@ -11927,7 +10710,7 @@ function deepCopy(src, des) {
|
|
|
11927
10710
|
/* Injected with object hook! */
|
|
11928
10711
|
|
|
11929
10712
|
/*!
|
|
11930
|
-
* message-compiler v11.1.
|
|
10713
|
+
* message-compiler v11.1.9
|
|
11931
10714
|
* (c) 2025 kazuya kawaguchi
|
|
11932
10715
|
* Released under the MIT License.
|
|
11933
10716
|
*/
|
|
@@ -13350,7 +12133,7 @@ function baseCompile$1(source, options = {}) {
|
|
|
13350
12133
|
/* Injected with object hook! */
|
|
13351
12134
|
|
|
13352
12135
|
/*!
|
|
13353
|
-
* core-base v11.1.
|
|
12136
|
+
* core-base v11.1.9
|
|
13354
12137
|
* (c) 2025 kazuya kawaguchi
|
|
13355
12138
|
* Released under the MIT License.
|
|
13356
12139
|
*/
|
|
@@ -14117,7 +12900,7 @@ function resolveValue(obj, path) {
|
|
|
14117
12900
|
}
|
|
14118
12901
|
return last;
|
|
14119
12902
|
}
|
|
14120
|
-
const VERSION$1 = "11.1.
|
|
12903
|
+
const VERSION$1 = "11.1.9";
|
|
14121
12904
|
const NOT_REOSLVED = -1;
|
|
14122
12905
|
const DEFAULT_LOCALE = "en-US";
|
|
14123
12906
|
const MISSING_RESOLVE_VALUE = "";
|
|
@@ -14808,11 +13591,11 @@ function getMessageContextOptions(context, locale, message, options) {
|
|
|
14808
13591
|
/* Injected with object hook! */
|
|
14809
13592
|
|
|
14810
13593
|
/*!
|
|
14811
|
-
* vue-i18n v11.1.
|
|
13594
|
+
* vue-i18n v11.1.9
|
|
14812
13595
|
* (c) 2025 kazuya kawaguchi
|
|
14813
13596
|
* Released under the MIT License.
|
|
14814
13597
|
*/
|
|
14815
|
-
const VERSION = "11.1.
|
|
13598
|
+
const VERSION = "11.1.9";
|
|
14816
13599
|
function initFeatureFlags() {
|
|
14817
13600
|
if (typeof __INTLIFY_PROD_DEVTOOLS__ !== "boolean") {
|
|
14818
13601
|
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false;
|
|
@@ -15876,6 +14659,7 @@ const injectLocal = (...args) => {
|
|
|
15876
14659
|
|
|
15877
14660
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
15878
14661
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
14662
|
+
const notNullish = (val) => val != null;
|
|
15879
14663
|
const toString = Object.prototype.toString;
|
|
15880
14664
|
const isObject = (val) => toString.call(val) === "[object Object]";
|
|
15881
14665
|
const noop = () => {
|
|
@@ -15917,7 +14701,7 @@ function debounceFilter(ms, options = {}) {
|
|
|
15917
14701
|
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
15918
14702
|
if (maxTimer) {
|
|
15919
14703
|
_clearTimeout(maxTimer);
|
|
15920
|
-
maxTimer =
|
|
14704
|
+
maxTimer = void 0;
|
|
15921
14705
|
}
|
|
15922
14706
|
return Promise.resolve(invoke());
|
|
15923
14707
|
}
|
|
@@ -15928,14 +14712,14 @@ function debounceFilter(ms, options = {}) {
|
|
|
15928
14712
|
maxTimer = setTimeout(() => {
|
|
15929
14713
|
if (timer)
|
|
15930
14714
|
_clearTimeout(timer);
|
|
15931
|
-
maxTimer =
|
|
14715
|
+
maxTimer = void 0;
|
|
15932
14716
|
resolve(lastInvoker());
|
|
15933
14717
|
}, maxDuration);
|
|
15934
14718
|
}
|
|
15935
14719
|
timer = setTimeout(() => {
|
|
15936
14720
|
if (maxTimer)
|
|
15937
14721
|
_clearTimeout(maxTimer);
|
|
15938
|
-
maxTimer =
|
|
14722
|
+
maxTimer = void 0;
|
|
15939
14723
|
resolve(invoke());
|
|
15940
14724
|
}, duration);
|
|
15941
14725
|
});
|
|
@@ -16187,6 +14971,46 @@ function useSupported(callback) {
|
|
|
16187
14971
|
return Boolean(callback());
|
|
16188
14972
|
});
|
|
16189
14973
|
}
|
|
14974
|
+
function useMutationObserver(target, callback, options = {}) {
|
|
14975
|
+
const { window: window2 = defaultWindow, ...mutationOptions } = options;
|
|
14976
|
+
let observer;
|
|
14977
|
+
const isSupported = useSupported(() => window2 && "MutationObserver" in window2);
|
|
14978
|
+
const cleanup = () => {
|
|
14979
|
+
if (observer) {
|
|
14980
|
+
observer.disconnect();
|
|
14981
|
+
observer = void 0;
|
|
14982
|
+
}
|
|
14983
|
+
};
|
|
14984
|
+
const targets = computed(() => {
|
|
14985
|
+
const value = toValue(target);
|
|
14986
|
+
const items = toArray(value).map(unrefElement).filter(notNullish);
|
|
14987
|
+
return new Set(items);
|
|
14988
|
+
});
|
|
14989
|
+
const stopWatch = watch(
|
|
14990
|
+
() => targets.value,
|
|
14991
|
+
(targets2) => {
|
|
14992
|
+
cleanup();
|
|
14993
|
+
if (isSupported.value && targets2.size) {
|
|
14994
|
+
observer = new MutationObserver(callback);
|
|
14995
|
+
targets2.forEach((el) => observer.observe(el, mutationOptions));
|
|
14996
|
+
}
|
|
14997
|
+
},
|
|
14998
|
+
{ immediate: true, flush: "post" }
|
|
14999
|
+
);
|
|
15000
|
+
const takeRecords = () => {
|
|
15001
|
+
return observer == null ? void 0 : observer.takeRecords();
|
|
15002
|
+
};
|
|
15003
|
+
const stop = () => {
|
|
15004
|
+
stopWatch();
|
|
15005
|
+
cleanup();
|
|
15006
|
+
};
|
|
15007
|
+
tryOnScopeDispose(stop);
|
|
15008
|
+
return {
|
|
15009
|
+
isSupported,
|
|
15010
|
+
stop,
|
|
15011
|
+
takeRecords
|
|
15012
|
+
};
|
|
15013
|
+
}
|
|
16190
15014
|
const ssrWidthSymbol = Symbol("vueuse-ssr-width");
|
|
16191
15015
|
function useSSRWidth() {
|
|
16192
15016
|
const ssrWidth = hasInjectionContext() ? injectLocal(ssrWidthSymbol, null) : null;
|
|
@@ -16558,6 +15382,9 @@ function useScroll(element, options = {}) {
|
|
|
16558
15382
|
top: 0,
|
|
16559
15383
|
bottom: 0
|
|
16560
15384
|
},
|
|
15385
|
+
observe: _observe = {
|
|
15386
|
+
mutation: false
|
|
15387
|
+
},
|
|
16561
15388
|
eventListenerOptions = {
|
|
16562
15389
|
capture: false,
|
|
16563
15390
|
passive: true
|
|
@@ -16568,6 +15395,9 @@ function useScroll(element, options = {}) {
|
|
|
16568
15395
|
console.error(e);
|
|
16569
15396
|
}
|
|
16570
15397
|
} = options;
|
|
15398
|
+
const observe = typeof _observe === "boolean" ? {
|
|
15399
|
+
mutation: _observe
|
|
15400
|
+
} : _observe;
|
|
16571
15401
|
const internalX = shallowRef(0);
|
|
16572
15402
|
const internalY = shallowRef(0);
|
|
16573
15403
|
const x = computed({
|
|
@@ -16690,6 +15520,22 @@ function useScroll(element, options = {}) {
|
|
|
16690
15520
|
onError(e);
|
|
16691
15521
|
}
|
|
16692
15522
|
});
|
|
15523
|
+
if ((observe == null ? void 0 : observe.mutation) && element != null && element !== window2 && element !== document) {
|
|
15524
|
+
useMutationObserver(
|
|
15525
|
+
element,
|
|
15526
|
+
() => {
|
|
15527
|
+
const _element = toValue(element);
|
|
15528
|
+
if (!_element)
|
|
15529
|
+
return;
|
|
15530
|
+
setArrivedState(_element);
|
|
15531
|
+
},
|
|
15532
|
+
{
|
|
15533
|
+
attributes: true,
|
|
15534
|
+
childList: true,
|
|
15535
|
+
subtree: true
|
|
15536
|
+
}
|
|
15537
|
+
);
|
|
15538
|
+
}
|
|
16693
15539
|
useEventListener(
|
|
16694
15540
|
element,
|
|
16695
15541
|
"scrollend",
|
|
@@ -16933,162 +15779,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
16933
15779
|
|
|
16934
15780
|
/* Injected with object hook! */
|
|
16935
15781
|
|
|
16936
|
-
const TYPE_REQUEST = "q";
|
|
16937
|
-
const TYPE_RESPONSE = "s";
|
|
16938
|
-
const DEFAULT_TIMEOUT = 6e4;
|
|
16939
|
-
function defaultSerialize(i) {
|
|
16940
|
-
return i;
|
|
16941
|
-
}
|
|
16942
|
-
const defaultDeserialize = defaultSerialize;
|
|
16943
|
-
const { clearTimeout: clearTimeout$1, setTimeout: setTimeout$1 } = globalThis;
|
|
16944
|
-
const random = Math.random.bind(Math);
|
|
16945
|
-
function createBirpc(functions, options) {
|
|
16946
|
-
const {
|
|
16947
|
-
post,
|
|
16948
|
-
on,
|
|
16949
|
-
off = () => {
|
|
16950
|
-
},
|
|
16951
|
-
eventNames = [],
|
|
16952
|
-
serialize = defaultSerialize,
|
|
16953
|
-
deserialize = defaultDeserialize,
|
|
16954
|
-
resolver,
|
|
16955
|
-
bind = "rpc",
|
|
16956
|
-
timeout = DEFAULT_TIMEOUT
|
|
16957
|
-
} = options;
|
|
16958
|
-
const rpcPromiseMap = /* @__PURE__ */ new Map();
|
|
16959
|
-
let _promise;
|
|
16960
|
-
let closed = false;
|
|
16961
|
-
const rpc = new Proxy({}, {
|
|
16962
|
-
get(_, method) {
|
|
16963
|
-
if (method === "$functions")
|
|
16964
|
-
return functions;
|
|
16965
|
-
if (method === "$close")
|
|
16966
|
-
return close;
|
|
16967
|
-
if (method === "then" && !eventNames.includes("then") && !("then" in functions))
|
|
16968
|
-
return void 0;
|
|
16969
|
-
const sendEvent = (...args) => {
|
|
16970
|
-
post(serialize({ m: method, a: args, t: TYPE_REQUEST }));
|
|
16971
|
-
};
|
|
16972
|
-
if (eventNames.includes(method)) {
|
|
16973
|
-
sendEvent.asEvent = sendEvent;
|
|
16974
|
-
return sendEvent;
|
|
16975
|
-
}
|
|
16976
|
-
const sendCall = async (...args) => {
|
|
16977
|
-
if (closed)
|
|
16978
|
-
throw new Error(`[birpc] rpc is closed, cannot call "${method}"`);
|
|
16979
|
-
if (_promise) {
|
|
16980
|
-
try {
|
|
16981
|
-
await _promise;
|
|
16982
|
-
} finally {
|
|
16983
|
-
_promise = void 0;
|
|
16984
|
-
}
|
|
16985
|
-
}
|
|
16986
|
-
return new Promise((resolve, reject) => {
|
|
16987
|
-
const id = nanoid();
|
|
16988
|
-
let timeoutId;
|
|
16989
|
-
if (timeout >= 0) {
|
|
16990
|
-
timeoutId = setTimeout$1(() => {
|
|
16991
|
-
try {
|
|
16992
|
-
const handleResult = options.onTimeoutError?.(method, args);
|
|
16993
|
-
if (handleResult !== true)
|
|
16994
|
-
throw new Error(`[birpc] timeout on calling "${method}"`);
|
|
16995
|
-
} catch (e) {
|
|
16996
|
-
reject(e);
|
|
16997
|
-
}
|
|
16998
|
-
rpcPromiseMap.delete(id);
|
|
16999
|
-
}, timeout);
|
|
17000
|
-
if (typeof timeoutId === "object")
|
|
17001
|
-
timeoutId = timeoutId.unref?.();
|
|
17002
|
-
}
|
|
17003
|
-
rpcPromiseMap.set(id, { resolve, reject, timeoutId, method });
|
|
17004
|
-
post(serialize({ m: method, a: args, i: id, t: "q" }));
|
|
17005
|
-
});
|
|
17006
|
-
};
|
|
17007
|
-
sendCall.asEvent = sendEvent;
|
|
17008
|
-
return sendCall;
|
|
17009
|
-
}
|
|
17010
|
-
});
|
|
17011
|
-
function close(error) {
|
|
17012
|
-
closed = true;
|
|
17013
|
-
rpcPromiseMap.forEach(({ reject, method }) => {
|
|
17014
|
-
reject(error || new Error(`[birpc] rpc is closed, cannot call "${method}"`));
|
|
17015
|
-
});
|
|
17016
|
-
rpcPromiseMap.clear();
|
|
17017
|
-
off(onMessage);
|
|
17018
|
-
}
|
|
17019
|
-
async function onMessage(data, ...extra) {
|
|
17020
|
-
let msg;
|
|
17021
|
-
try {
|
|
17022
|
-
msg = deserialize(data);
|
|
17023
|
-
} catch (e) {
|
|
17024
|
-
if (options.onGeneralError?.(e) !== true)
|
|
17025
|
-
throw e;
|
|
17026
|
-
return;
|
|
17027
|
-
}
|
|
17028
|
-
if (msg.t === TYPE_REQUEST) {
|
|
17029
|
-
const { m: method, a: args } = msg;
|
|
17030
|
-
let result, error;
|
|
17031
|
-
const fn = resolver ? resolver(method, functions[method]) : functions[method];
|
|
17032
|
-
if (!fn) {
|
|
17033
|
-
error = new Error(`[birpc] function "${method}" not found`);
|
|
17034
|
-
} else {
|
|
17035
|
-
try {
|
|
17036
|
-
result = await fn.apply(bind === "rpc" ? rpc : functions, args);
|
|
17037
|
-
} catch (e) {
|
|
17038
|
-
error = e;
|
|
17039
|
-
}
|
|
17040
|
-
}
|
|
17041
|
-
if (msg.i) {
|
|
17042
|
-
if (error && options.onError)
|
|
17043
|
-
options.onError(error, method, args);
|
|
17044
|
-
if (error && options.onFunctionError) {
|
|
17045
|
-
if (options.onFunctionError(error, method, args) === true)
|
|
17046
|
-
return;
|
|
17047
|
-
}
|
|
17048
|
-
if (!error) {
|
|
17049
|
-
try {
|
|
17050
|
-
post(serialize({ t: TYPE_RESPONSE, i: msg.i, r: result }), ...extra);
|
|
17051
|
-
return;
|
|
17052
|
-
} catch (e) {
|
|
17053
|
-
error = e;
|
|
17054
|
-
if (options.onGeneralError?.(e, method, args) !== true)
|
|
17055
|
-
throw e;
|
|
17056
|
-
}
|
|
17057
|
-
}
|
|
17058
|
-
try {
|
|
17059
|
-
post(serialize({ t: TYPE_RESPONSE, i: msg.i, e: error }), ...extra);
|
|
17060
|
-
} catch (e) {
|
|
17061
|
-
if (options.onGeneralError?.(e, method, args) !== true)
|
|
17062
|
-
throw e;
|
|
17063
|
-
}
|
|
17064
|
-
}
|
|
17065
|
-
} else {
|
|
17066
|
-
const { i: ack, r: result, e: error } = msg;
|
|
17067
|
-
const promise = rpcPromiseMap.get(ack);
|
|
17068
|
-
if (promise) {
|
|
17069
|
-
clearTimeout$1(promise.timeoutId);
|
|
17070
|
-
if (error)
|
|
17071
|
-
promise.reject(error);
|
|
17072
|
-
else
|
|
17073
|
-
promise.resolve(result);
|
|
17074
|
-
}
|
|
17075
|
-
rpcPromiseMap.delete(ack);
|
|
17076
|
-
}
|
|
17077
|
-
}
|
|
17078
|
-
_promise = on(onMessage);
|
|
17079
|
-
return rpc;
|
|
17080
|
-
}
|
|
17081
|
-
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
17082
|
-
function nanoid(size = 21) {
|
|
17083
|
-
let id = "";
|
|
17084
|
-
let i = size;
|
|
17085
|
-
while (i--)
|
|
17086
|
-
id += urlAlphabet[random() * 64 | 0];
|
|
17087
|
-
return id;
|
|
17088
|
-
}
|
|
17089
|
-
|
|
17090
|
-
/* Injected with object hook! */
|
|
17091
|
-
|
|
17092
15782
|
function createRPCClient(name, hot, functions = {}, options = {}) {
|
|
17093
15783
|
const event = `${name}:rpc`;
|
|
17094
15784
|
const promise = Promise.resolve(hot).then((r) => {
|
|
@@ -17127,7 +15817,7 @@ async function getViteClient(base = "/", warning = true) {
|
|
|
17127
15817
|
if (warning)
|
|
17128
15818
|
console.error(`[vite-hot-client] Failed to import "${base}@vite/client"`);
|
|
17129
15819
|
}
|
|
17130
|
-
return
|
|
15820
|
+
return void 0;
|
|
17131
15821
|
}
|
|
17132
15822
|
async function createHotContext(path = "/____", base = "/") {
|
|
17133
15823
|
const viteClient = await getViteClient(base);
|
|
@@ -17295,7 +15985,7 @@ const router = createRouter({
|
|
|
17295
15985
|
const pinia = createPinia();
|
|
17296
15986
|
app.use(pinia);
|
|
17297
15987
|
app.use(router);
|
|
17298
|
-
const customPreset =
|
|
15988
|
+
const customPreset = Se(index, {
|
|
17299
15989
|
semantic: {
|
|
17300
15990
|
primary: {
|
|
17301
15991
|
50: "{indigo.50}",
|
|
@@ -17327,4 +16017,4 @@ app.mount("#app");
|
|
|
17327
16017
|
|
|
17328
16018
|
/* Injected with object hook! */
|
|
17329
16019
|
|
|
17330
|
-
export {
|
|
16020
|
+
export { toHandlers as $, B as A, BaseStyle as B, At as C, s$a as D, tt$1 as E, Fragment as F, b$5 as G, z as H, Ht as I, I as J, Kt as K, v$3 as L, D as M, Yt as N, normalizeStyle as O, resolveDynamicComponent as P, Q$1 as Q, Transition as R, S$1 as S, Teleport as T, vShow as U, withKeys as V, W$1 as W, pt as X, Y$1 as Y, Mt as Z, _export_sfc as _, createBaseVNode as a, useI18n as a0, dayjs as a1, clientPageData as a2, toRaw as a3, pageData as a4, activePath as a5, onMounted as a6, rpc as a7, getDefaultExportFromCjs as a8, computed as a9, c$q as aA, useSlots as aB, onBeforeUnmount as aC, provide as aD, inject as aE, getCurrentInstance as aF, h as aG, nextTick as aH, devtoolsRouter as aa, useScroll as ab, postList as ac, isStaticMode as ad, vModelCheckbox as ae, vModelText as af, F$1 as ag, l$h as ah, v$4 as ai, R as aj, g$5 as ak, p$4 as al, g$6 as am, m$3 as an, i$r as ao, a$F as ap, PrimeVueService as aq, b$6 as ar, O as as, Tt as at, Rt as au, C as av, K as aw, W as ax, U as ay, useId as az, renderSlot as b, createElementBlock as c, createCommentVNode as d, c$r as e, resolveComponent as f, getAppWindow as g, renderList as h, createBlock as i, createSlots as j, k$4 as k, withCtx as l, mergeProps as m, normalizeClass as n, openBlock as o, defineComponent as p, ref as q, resolveDirective as r, s$b as s, toDisplayString$1 as t, useModel as u, watch as v, withDirectives as w, createVNode as x, unref as y, createTextVNode as z };
|