x-essential-lib 0.9.35 → 0.9.36
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/i18n-en.f0pmulir.js +1 -0
- package/dist/i18n-zhHans.ex0oq1u6.js +1 -0
- package/dist/index.d.ts +434 -357
- package/dist/index.js +2 -966
- package/dist/rolldown-runtime.mam1o4z7.js +1 -0
- package/dist/style.css +1 -0
- package/package.json +38 -43
- package/dist/i18n-en.lqadbyvh.js +0 -102
- package/dist/i18n-zhHans.jagnyxbk.js +0 -102
- package/dist/rolldown-runtime.msh1uh5g.js +0 -11
- package/dist/vendor.muy2hy8m.js +0 -224
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};export{t};
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.fade-leave-active[data-v-x-essential-lib-c3545c8d]{transition:opacity .5s}.fade-leave-to[data-v-x-essential-lib-c3545c8d]{opacity:0}.x-cont[data-v-x-essential-lib-c3545c8d]{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.lds-spinner[data-v-x-essential-lib-c3545c8d]{color:official;width:40px;height:40px;display:inline-block;position:relative}.lds-spinner div[data-v-x-essential-lib-c3545c8d]{transform-origin:20px 20px;animation:1.2s linear infinite lds-spinner-x-essential-lib-c3545c8d}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:after{content:" ";background:#9e9e9e;border-radius:5%;width:2px;height:6px;display:block;position:absolute;top:3px;left:18px}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:first-child{animation-delay:-1.1s;transform:rotate(0)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(2){animation-delay:-1s;transform:rotate(30deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(3){animation-delay:-.9s;transform:rotate(60deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(4){animation-delay:-.8s;transform:rotate(90deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(5){animation-delay:-.7s;transform:rotate(120deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(6){animation-delay:-.6s;transform:rotate(150deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(7){animation-delay:-.5s;transform:rotate(180deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(8){animation-delay:-.4s;transform:rotate(210deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(9){animation-delay:-.3s;transform:rotate(240deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(10){animation-delay:-.2s;transform:rotate(270deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(11){animation-delay:-.1s;transform:rotate(300deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(12){animation-delay:0s;transform:rotate(330deg)}@keyframes lds-spinner-x-essential-lib-c3545c8d{0%{opacity:1}to{opacity:0}}.x-item[data-v-x-essential-lib-cfcda9d9]{width:600px}@media (width<=600px){.x-item[data-v-x-essential-lib-cfcda9d9]{width:calc(100vw - 16px)}}.x-cont[data-v-x-essential-lib-b973907d]{z-index:9999;position:fixed;bottom:20px;left:50%;transform:translate(-50%)}
|
package/package.json
CHANGED
|
@@ -1,62 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-essential-lib",
|
|
3
|
-
"
|
|
4
|
-
"version": "0.9.35",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"module": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
3
|
+
"version": "0.9.36",
|
|
8
4
|
"files": [
|
|
9
5
|
"dist"
|
|
10
6
|
],
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": "./dist/index.js",
|
|
13
|
+
"./package.json": "./package.json"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"registry": "https://registry.npmjs.org"
|
|
17
|
+
},
|
|
11
18
|
"scripts": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
19
|
+
"play": "vite",
|
|
20
|
+
"test": "vitest",
|
|
21
|
+
"lint": "oxlint",
|
|
22
|
+
"fmt": "oxfmt",
|
|
23
|
+
"build": "tsdown",
|
|
17
24
|
"lint-staged": "lint-staged",
|
|
18
25
|
"prepare": "husky"
|
|
19
26
|
},
|
|
20
|
-
"lint-staged": {
|
|
21
|
-
"*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}": "eslint --fix --ignore-pattern dist/ --ignore-pattern public/ .",
|
|
22
|
-
"*": "prettier --write ."
|
|
23
|
-
},
|
|
24
27
|
"dependencies": {
|
|
25
|
-
"@vueuse/core": "^14.
|
|
26
|
-
"axios": "^1.
|
|
27
|
-
"js-cookie": "^3.0.
|
|
28
|
+
"@vueuse/core": "^14.3.0",
|
|
29
|
+
"axios": "^1.18.0",
|
|
30
|
+
"js-cookie": "^3.0.8",
|
|
28
31
|
"lodash-es": "^4.18.1",
|
|
29
32
|
"mitt": "^3.0.1",
|
|
30
|
-
"vue": "^3.5.
|
|
31
|
-
"vue-i18n": "^11.
|
|
32
|
-
"vue-router": "^5.0
|
|
33
|
-
"vuetify": "^4.
|
|
33
|
+
"vue": "^3.5.38",
|
|
34
|
+
"vue-i18n": "^11.4.6",
|
|
35
|
+
"vue-router": "^5.1.0",
|
|
36
|
+
"vuetify": "^4.1.2"
|
|
34
37
|
},
|
|
35
38
|
"devDependencies": {
|
|
36
|
-
"@eslint/js": "^10.0.1",
|
|
37
|
-
"@tsconfig/node24": "^24.0.4",
|
|
38
39
|
"@types/js-cookie": "^3.0.6",
|
|
39
40
|
"@types/lodash-es": "^4.17.12",
|
|
40
|
-
"@types/node": "^25.
|
|
41
|
-
"@vitejs/plugin-vue": "^6.0.5",
|
|
42
|
-
"@vue/tsconfig": "^0.9.1",
|
|
43
|
-
"eslint": "^10.2.0",
|
|
44
|
-
"eslint-config-prettier": "^10.1.8",
|
|
45
|
-
"eslint-plugin-prettier": "^5.5.5",
|
|
46
|
-
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
47
|
-
"eslint-plugin-vue": "^10.8.0",
|
|
48
|
-
"globals": "^17.4.0",
|
|
41
|
+
"@types/node": "^25.9.3",
|
|
49
42
|
"husky": "^9.1.7",
|
|
50
|
-
"lint-staged": "^
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"vite
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
43
|
+
"lint-staged": "^17.0.7",
|
|
44
|
+
"oxfmt": "^0.55.0",
|
|
45
|
+
"oxlint": "^1.70.0",
|
|
46
|
+
"sass": "^1.101.0",
|
|
47
|
+
"tsdown": "^0.22.3",
|
|
48
|
+
"typescript": "^6.0.3",
|
|
49
|
+
"vite": "^8.0.16",
|
|
50
|
+
"x-config-oxfmt": "^0.1.3",
|
|
51
|
+
"x-config-oxlint": "^0.1.2",
|
|
52
|
+
"x-config-vite-lib": "^0.1.6"
|
|
53
|
+
},
|
|
54
|
+
"lint-staged": {
|
|
55
|
+
"*": "oxfmt --no-error-on-unmatched-pattern"
|
|
61
56
|
}
|
|
62
57
|
}
|
package/dist/i18n-en.lqadbyvh.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime.msh1uh5g.js";
|
|
2
|
-
//#region src/i18n/locales/en/$vuetify.ts
|
|
3
|
-
var t = {
|
|
4
|
-
badge: "Badge",
|
|
5
|
-
open: "Open",
|
|
6
|
-
close: "Close",
|
|
7
|
-
dismiss: "Dismiss",
|
|
8
|
-
confirmEdit: {
|
|
9
|
-
ok: "OK",
|
|
10
|
-
cancel: "Cancel"
|
|
11
|
-
},
|
|
12
|
-
dataIterator: {
|
|
13
|
-
noResultsText: "No matching records found",
|
|
14
|
-
loadingText: "Loading items..."
|
|
15
|
-
},
|
|
16
|
-
dataTable: {
|
|
17
|
-
itemsPerPageText: "Rows per page:",
|
|
18
|
-
ariaLabel: {
|
|
19
|
-
sortDescending: "Sorted descending.",
|
|
20
|
-
sortAscending: "Sorted ascending.",
|
|
21
|
-
sortNone: "Not sorted.",
|
|
22
|
-
activateNone: "Activate to remove sorting.",
|
|
23
|
-
activateDescending: "Activate to sort descending.",
|
|
24
|
-
activateAscending: "Activate to sort ascending."
|
|
25
|
-
},
|
|
26
|
-
sortBy: "Sort by"
|
|
27
|
-
},
|
|
28
|
-
dataFooter: {
|
|
29
|
-
itemsPerPageText: "Items per page:",
|
|
30
|
-
itemsPerPageAll: "All",
|
|
31
|
-
nextPage: "Next page",
|
|
32
|
-
prevPage: "Previous page",
|
|
33
|
-
firstPage: "First page",
|
|
34
|
-
lastPage: "Last page",
|
|
35
|
-
pageText: "{0}-{1} of {2}"
|
|
36
|
-
},
|
|
37
|
-
dateRangeInput: { divider: "to" },
|
|
38
|
-
datePicker: {
|
|
39
|
-
itemsSelected: "{0} selected",
|
|
40
|
-
range: {
|
|
41
|
-
title: "Select dates",
|
|
42
|
-
header: "Enter dates"
|
|
43
|
-
},
|
|
44
|
-
title: "Select date",
|
|
45
|
-
header: "Enter date",
|
|
46
|
-
input: { placeholder: "Enter date" }
|
|
47
|
-
},
|
|
48
|
-
noDataText: "No data available",
|
|
49
|
-
carousel: {
|
|
50
|
-
prev: "Previous visual",
|
|
51
|
-
next: "Next visual",
|
|
52
|
-
ariaLabel: { delimiter: "Carousel slide {0} of {1}" }
|
|
53
|
-
},
|
|
54
|
-
calendar: {
|
|
55
|
-
moreEvents: "{0} more",
|
|
56
|
-
today: "Today"
|
|
57
|
-
},
|
|
58
|
-
input: {
|
|
59
|
-
clear: "Clear {0}",
|
|
60
|
-
prependAction: "{0} prepended action",
|
|
61
|
-
appendAction: "{0} appended action",
|
|
62
|
-
otp: "Please enter OTP character {0}"
|
|
63
|
-
},
|
|
64
|
-
fileInput: {
|
|
65
|
-
counter: "{0} files",
|
|
66
|
-
counterSize: "{0} files ({1} in total)"
|
|
67
|
-
},
|
|
68
|
-
timePicker: {
|
|
69
|
-
am: "AM",
|
|
70
|
-
pm: "PM",
|
|
71
|
-
title: "Select Time"
|
|
72
|
-
},
|
|
73
|
-
pagination: { ariaLabel: {
|
|
74
|
-
root: "Pagination Navigation",
|
|
75
|
-
next: "Next page",
|
|
76
|
-
previous: "Previous page",
|
|
77
|
-
page: "Go to page {0}",
|
|
78
|
-
currentPage: "Page {0}, Current page",
|
|
79
|
-
first: "First page",
|
|
80
|
-
last: "Last page"
|
|
81
|
-
} },
|
|
82
|
-
stepper: {
|
|
83
|
-
next: "Next",
|
|
84
|
-
prev: "Previous"
|
|
85
|
-
},
|
|
86
|
-
rating: { ariaLabel: { item: "Rating {0} of {1}" } },
|
|
87
|
-
loading: "Loading...",
|
|
88
|
-
infiniteScroll: {
|
|
89
|
-
loadMore: "Load more",
|
|
90
|
-
empty: "No more"
|
|
91
|
-
}
|
|
92
|
-
}, n = { common: {
|
|
93
|
-
ask: "Do you want to {verb} {object} <{name}> ?",
|
|
94
|
-
cancel: "Cancel",
|
|
95
|
-
confirm: "Confirm",
|
|
96
|
-
responding: "Responding..."
|
|
97
|
-
} }, r = /* @__PURE__ */ e({ default: () => i }), i = {
|
|
98
|
-
$vuetify: t,
|
|
99
|
-
dlg: n
|
|
100
|
-
};
|
|
101
|
-
//#endregion
|
|
102
|
-
export { r as t };
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime.msh1uh5g.js";
|
|
2
|
-
//#region src/i18n/locales/zhHans/$vuetify.ts
|
|
3
|
-
var t = {
|
|
4
|
-
badge: "徽章",
|
|
5
|
-
open: "Open",
|
|
6
|
-
close: "关闭",
|
|
7
|
-
dismiss: "Dismiss",
|
|
8
|
-
confirmEdit: {
|
|
9
|
-
ok: "OK",
|
|
10
|
-
cancel: "Cancel"
|
|
11
|
-
},
|
|
12
|
-
dataIterator: {
|
|
13
|
-
noResultsText: "没有符合条件的结果",
|
|
14
|
-
loadingText: "加载中..."
|
|
15
|
-
},
|
|
16
|
-
dataTable: {
|
|
17
|
-
itemsPerPageText: "每页数目:",
|
|
18
|
-
ariaLabel: {
|
|
19
|
-
sortDescending: ":降序排列。",
|
|
20
|
-
sortAscending: ":升序排列。",
|
|
21
|
-
sortNone: ":未排序。",
|
|
22
|
-
activateNone: "点击以移除排序。",
|
|
23
|
-
activateDescending: "点击以降序排列。",
|
|
24
|
-
activateAscending: "点击以升序排列。"
|
|
25
|
-
},
|
|
26
|
-
sortBy: "排序方式"
|
|
27
|
-
},
|
|
28
|
-
dataFooter: {
|
|
29
|
-
itemsPerPageText: "每页数目:",
|
|
30
|
-
itemsPerPageAll: "全部",
|
|
31
|
-
nextPage: "下一页",
|
|
32
|
-
prevPage: "上一页",
|
|
33
|
-
firstPage: "首页",
|
|
34
|
-
lastPage: "尾页",
|
|
35
|
-
pageText: "{0}-{1} 共 {2}"
|
|
36
|
-
},
|
|
37
|
-
dateRangeInput: { divider: "to" },
|
|
38
|
-
datePicker: {
|
|
39
|
-
itemsSelected: "{0} selected",
|
|
40
|
-
range: {
|
|
41
|
-
title: "Select dates",
|
|
42
|
-
header: "Enter dates"
|
|
43
|
-
},
|
|
44
|
-
title: "Select date",
|
|
45
|
-
header: "Enter date",
|
|
46
|
-
input: { placeholder: "Enter date" }
|
|
47
|
-
},
|
|
48
|
-
noDataText: "没有数据",
|
|
49
|
-
carousel: {
|
|
50
|
-
prev: "上一张",
|
|
51
|
-
next: "下一张",
|
|
52
|
-
ariaLabel: { delimiter: "Carousel slide {0} of {1}" }
|
|
53
|
-
},
|
|
54
|
-
calendar: {
|
|
55
|
-
moreEvents: "还有 {0} 项",
|
|
56
|
-
today: "Today"
|
|
57
|
-
},
|
|
58
|
-
input: {
|
|
59
|
-
clear: "Clear {0}",
|
|
60
|
-
prependAction: "{0} prepended action",
|
|
61
|
-
appendAction: "{0} appended action",
|
|
62
|
-
otp: "Please enter OTP character {0}"
|
|
63
|
-
},
|
|
64
|
-
fileInput: {
|
|
65
|
-
counter: "{0} 个文件",
|
|
66
|
-
counterSize: "{0} 个文件(共 {1})"
|
|
67
|
-
},
|
|
68
|
-
timePicker: {
|
|
69
|
-
am: "AM",
|
|
70
|
-
pm: "PM",
|
|
71
|
-
title: "Select Time"
|
|
72
|
-
},
|
|
73
|
-
pagination: { ariaLabel: {
|
|
74
|
-
root: "分页导航",
|
|
75
|
-
next: "下一页",
|
|
76
|
-
previous: "上一页",
|
|
77
|
-
page: "转到页面 {0}",
|
|
78
|
-
currentPage: "当前页 {0}",
|
|
79
|
-
first: "First page",
|
|
80
|
-
last: "Last page"
|
|
81
|
-
} },
|
|
82
|
-
stepper: {
|
|
83
|
-
next: "Next",
|
|
84
|
-
prev: "Previous"
|
|
85
|
-
},
|
|
86
|
-
rating: { ariaLabel: { item: "Rating {0} of {1}" } },
|
|
87
|
-
loading: "Loading...",
|
|
88
|
-
infiniteScroll: {
|
|
89
|
-
loadMore: "Load more",
|
|
90
|
-
empty: "No more"
|
|
91
|
-
}
|
|
92
|
-
}, n = { common: {
|
|
93
|
-
ask: "你想要{verb}{object} <{name}> ?",
|
|
94
|
-
cancel: "取消",
|
|
95
|
-
confirm: "确定",
|
|
96
|
-
responding: "响应中..."
|
|
97
|
-
} }, r = /* @__PURE__ */ e({ default: () => i }), i = {
|
|
98
|
-
$vuetify: t,
|
|
99
|
-
dlg: n
|
|
100
|
-
};
|
|
101
|
-
//#endregion
|
|
102
|
-
export { r as t };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.defineProperty, t = (t, n) => {
|
|
3
|
-
let r = {};
|
|
4
|
-
for (var i in t) e(r, i, {
|
|
5
|
-
get: t[i],
|
|
6
|
-
enumerable: !0
|
|
7
|
-
});
|
|
8
|
-
return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { t };
|
package/dist/vendor.muy2hy8m.js
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { computed as e, getCurrentInstance as t, getCurrentScope as n, hasInjectionContext as r, inject as i, onMounted as a, shallowRef as o, toValue as s, unref as c, watch as l, watchEffect as u } from "vue";
|
|
2
|
-
//#region node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
|
-
var d = /* @__PURE__ */ new WeakMap(), f = (...e) => {
|
|
4
|
-
let a = e[0], o = t()?.proxy ?? n();
|
|
5
|
-
if (o == null && !r()) throw Error("injectLocal must be called in setup");
|
|
6
|
-
return o && d.has(o) && a in d.get(o) ? d.get(o)[a] : i(...e);
|
|
7
|
-
}, p = typeof window < "u" && typeof document < "u";
|
|
8
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
9
|
-
var m = Object.prototype.toString, h = (e) => m.call(e) === "[object Object]";
|
|
10
|
-
function g(e) {
|
|
11
|
-
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
12
|
-
}
|
|
13
|
-
function _(e) {
|
|
14
|
-
return Array.isArray(e) ? e : [e];
|
|
15
|
-
}
|
|
16
|
-
function v(e, t, n) {
|
|
17
|
-
return l(e, t, {
|
|
18
|
-
...n,
|
|
19
|
-
immediate: !0
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
|
|
24
|
-
var y = p ? window : void 0;
|
|
25
|
-
p && window.document, p && window.navigator, p && window.location;
|
|
26
|
-
function b(e) {
|
|
27
|
-
let t = s(e);
|
|
28
|
-
return t?.$el ?? t;
|
|
29
|
-
}
|
|
30
|
-
function x(...t) {
|
|
31
|
-
let n = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), r = e(() => {
|
|
32
|
-
let e = _(s(t[0])).filter((e) => e != null);
|
|
33
|
-
return e.every((e) => typeof e != "string") ? e : void 0;
|
|
34
|
-
});
|
|
35
|
-
return v(() => [
|
|
36
|
-
r.value?.map((e) => b(e)) ?? [y].filter((e) => e != null),
|
|
37
|
-
_(s(r.value ? t[1] : t[0])),
|
|
38
|
-
_(c(r.value ? t[2] : t[1])),
|
|
39
|
-
s(r.value ? t[3] : t[2])
|
|
40
|
-
], ([e, t, r, i], a, o) => {
|
|
41
|
-
if (!e?.length || !t?.length || !r?.length) return;
|
|
42
|
-
let s = h(i) ? { ...i } : i, c = e.flatMap((e) => t.flatMap((t) => r.map((r) => n(e, t, r, s))));
|
|
43
|
-
o(() => {
|
|
44
|
-
c.forEach((e) => e());
|
|
45
|
-
});
|
|
46
|
-
}, { flush: "post" });
|
|
47
|
-
}
|
|
48
|
-
function S() {
|
|
49
|
-
let e = o(!1), n = t();
|
|
50
|
-
return n && a(() => {
|
|
51
|
-
e.value = !0;
|
|
52
|
-
}, n), e;
|
|
53
|
-
}
|
|
54
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
55
|
-
function C(t) {
|
|
56
|
-
let n = S();
|
|
57
|
-
return e(() => (n.value, !!t()));
|
|
58
|
-
}
|
|
59
|
-
var ee = Symbol("vueuse-ssr-width");
|
|
60
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
61
|
-
function w() {
|
|
62
|
-
let e = r() ? f(ee, null) : null;
|
|
63
|
-
return typeof e == "number" ? e : void 0;
|
|
64
|
-
}
|
|
65
|
-
function T(t, n = {}) {
|
|
66
|
-
let { window: r = y, ssrWidth: i = /* @__PURE__ */ w() } = n, a = /* @__PURE__ */ C(() => r && "matchMedia" in r && typeof r.matchMedia == "function"), c = o(typeof i == "number"), l = o(), d = o(!1);
|
|
67
|
-
return u(() => {
|
|
68
|
-
if (c.value) {
|
|
69
|
-
c.value = !a.value, d.value = s(t).split(",").some((e) => {
|
|
70
|
-
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), r = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || r);
|
|
71
|
-
return n && a && (a = i >= g(n[1])), r && a && (a = i <= g(r[1])), t ? !a : a;
|
|
72
|
-
});
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
a.value && (l.value = r.matchMedia(s(t)), d.value = l.value.matches);
|
|
76
|
-
}), x(l, "change", (e) => {
|
|
77
|
-
d.value = e.matches;
|
|
78
|
-
}, { passive: !0 }), e(() => d.value);
|
|
79
|
-
}
|
|
80
|
-
function E(e) {
|
|
81
|
-
return T("(prefers-color-scheme: dark)", e);
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.mjs
|
|
85
|
-
function D(e) {
|
|
86
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
87
|
-
var n = arguments[t];
|
|
88
|
-
for (var r in n) e[r] = n[r];
|
|
89
|
-
}
|
|
90
|
-
return e;
|
|
91
|
-
}
|
|
92
|
-
var O = {
|
|
93
|
-
read: function(e) {
|
|
94
|
-
return e[0] === "\"" && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
95
|
-
},
|
|
96
|
-
write: function(e) {
|
|
97
|
-
return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
function k(e, t) {
|
|
101
|
-
function n(n, r, i) {
|
|
102
|
-
if (!(typeof document > "u")) {
|
|
103
|
-
i = D({}, t, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires &&= i.expires.toUTCString(), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
104
|
-
var a = "";
|
|
105
|
-
for (var o in i) i[o] && (a += "; " + o, i[o] !== !0 && (a += "=" + i[o].split(";")[0]));
|
|
106
|
-
return document.cookie = n + "=" + e.write(r, n) + a;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function r(t) {
|
|
110
|
-
if (!(typeof document > "u" || arguments.length && !t)) {
|
|
111
|
-
for (var n = document.cookie ? document.cookie.split("; ") : [], r = {}, i = 0; i < n.length; i++) {
|
|
112
|
-
var a = n[i].split("="), o = a.slice(1).join("=");
|
|
113
|
-
try {
|
|
114
|
-
var s = decodeURIComponent(a[0]);
|
|
115
|
-
if (r[s] = e.read(o, s), t === s) break;
|
|
116
|
-
} catch {}
|
|
117
|
-
}
|
|
118
|
-
return t ? r[t] : r;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
return Object.create({
|
|
122
|
-
set: n,
|
|
123
|
-
get: r,
|
|
124
|
-
remove: function(e, t) {
|
|
125
|
-
n(e, "", D({}, t, { expires: -1 }));
|
|
126
|
-
},
|
|
127
|
-
withAttributes: function(e) {
|
|
128
|
-
return k(this.converter, D({}, this.attributes, e));
|
|
129
|
-
},
|
|
130
|
-
withConverter: function(e) {
|
|
131
|
-
return k(D({}, this.converter, e), this.attributes);
|
|
132
|
-
}
|
|
133
|
-
}, {
|
|
134
|
-
attributes: { value: Object.freeze(t) },
|
|
135
|
-
converter: { value: Object.freeze(e) }
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
var A = k(O, { path: "/" });
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/dist/mitt.mjs
|
|
141
|
-
function j(e) {
|
|
142
|
-
return {
|
|
143
|
-
all: e ||= /* @__PURE__ */ new Map(),
|
|
144
|
-
on: function(t, n) {
|
|
145
|
-
var r = e.get(t);
|
|
146
|
-
r ? r.push(n) : e.set(t, [n]);
|
|
147
|
-
},
|
|
148
|
-
off: function(t, n) {
|
|
149
|
-
var r = e.get(t);
|
|
150
|
-
r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
|
|
151
|
-
},
|
|
152
|
-
emit: function(t, n) {
|
|
153
|
-
var r = e.get(t);
|
|
154
|
-
r && r.slice().map(function(e) {
|
|
155
|
-
e(n);
|
|
156
|
-
}), (r = e.get("*")) && r.slice().map(function(e) {
|
|
157
|
-
e(t, n);
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
//#endregion
|
|
163
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
164
|
-
var M = typeof global == "object" && global && global.Object === Object && global, N = typeof self == "object" && self && self.Object === Object && self, P = (M || N || Function("return this")()).Symbol, F = Object.prototype, I = F.hasOwnProperty, L = F.toString, R = P ? P.toStringTag : void 0;
|
|
165
|
-
function z(e) {
|
|
166
|
-
var t = I.call(e, R), n = e[R];
|
|
167
|
-
try {
|
|
168
|
-
e[R] = void 0;
|
|
169
|
-
var r = !0;
|
|
170
|
-
} catch {}
|
|
171
|
-
var i = L.call(e);
|
|
172
|
-
return r && (t ? e[R] = n : delete e[R]), i;
|
|
173
|
-
}
|
|
174
|
-
//#endregion
|
|
175
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
176
|
-
var te = Object.prototype.toString;
|
|
177
|
-
function B(e) {
|
|
178
|
-
return te.call(e);
|
|
179
|
-
}
|
|
180
|
-
//#endregion
|
|
181
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
182
|
-
var V = "[object Null]", H = "[object Undefined]", U = P ? P.toStringTag : void 0;
|
|
183
|
-
function W(e) {
|
|
184
|
-
return e == null ? e === void 0 ? H : V : U && U in Object(e) ? z(e) : B(e);
|
|
185
|
-
}
|
|
186
|
-
//#endregion
|
|
187
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
188
|
-
function G(e) {
|
|
189
|
-
return typeof e == "object" && !!e;
|
|
190
|
-
}
|
|
191
|
-
//#endregion
|
|
192
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
193
|
-
var K = "[object Symbol]";
|
|
194
|
-
function q(e) {
|
|
195
|
-
return typeof e == "symbol" || G(e) && W(e) == K;
|
|
196
|
-
}
|
|
197
|
-
//#endregion
|
|
198
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
199
|
-
function J(e, t) {
|
|
200
|
-
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
|
|
201
|
-
return i;
|
|
202
|
-
}
|
|
203
|
-
//#endregion
|
|
204
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
205
|
-
var Y = Array.isArray, X = Infinity, Z = P ? P.prototype : void 0, Q = Z ? Z.toString : void 0;
|
|
206
|
-
function $(e) {
|
|
207
|
-
if (typeof e == "string") return e;
|
|
208
|
-
if (Y(e)) return J(e, $) + "";
|
|
209
|
-
if (q(e)) return Q ? Q.call(e) : "";
|
|
210
|
-
var t = e + "";
|
|
211
|
-
return t == "0" && 1 / e == -X ? "-0" : t;
|
|
212
|
-
}
|
|
213
|
-
//#endregion
|
|
214
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
215
|
-
function ne(e) {
|
|
216
|
-
return e == null ? "" : $(e);
|
|
217
|
-
}
|
|
218
|
-
//#endregion
|
|
219
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toLower.js
|
|
220
|
-
function re(e) {
|
|
221
|
-
return ne(e).toLowerCase();
|
|
222
|
-
}
|
|
223
|
-
//#endregion
|
|
224
|
-
export { E as i, j as n, A as r, re as t };
|