@vtj/pro 0.13.16 → 0.13.17
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/.vtj/vtj.png +0 -0
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +3 -3
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +4 -4
- package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +28 -33
- package/dist/@vtj/materials/deps/@vueuse/core/index.iife.min.js +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +14 -14
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
- package/dist/@vtj/materials/deps/uni-app/index.umd.js +1 -1
- package/dist/@vtj/materials/deps/uni-h5/index.umd.js +8 -8
- package/dist/@vtj/materials/deps/uni-h5/style.css +1 -1
- package/dist/@vtj/materials/deps/uni-h5-vue/index.umd.js +1 -1
- package/dist/@vtj/materials/deps/uni-ui/index.umd.js +6 -1
- package/dist/@vtj/materials/deps/uni-ui/style.css +1 -1
- package/dist/@vtj/materials/deps/vue/vue.global.js +88 -53
- package/dist/@vtj/materials/deps/vue/vue.global.prod.js +9 -9
- package/dist/assets/{@element-plus-icons-vue-CM8mFRtE.js → @element-plus-icons-vue-CtYczY4K.js} +1 -1
- package/dist/assets/@vueuse-DmJSJ3Sc.js +1 -0
- package/dist/assets/{Editor-BYRlEJ7f-DrA-LA5d.js → Editor-BuEQalqM-DucWgUTD.js} +100 -104
- package/dist/assets/Editor-BuEQalqM-oS7Cs8w2.css +1 -0
- package/dist/assets/auth-BbAFxxwL.js +1 -0
- package/dist/assets/element-plus-D-MSrZ0u.css +1 -0
- package/dist/assets/element-plus-MdtkBKvq.js +13 -0
- package/dist/assets/index-B2Vq-Ty0.js +1 -0
- package/dist/assets/{index-Dfyhed0K.js → index-Biod853_.js} +2 -2
- package/dist/assets/{mockjs-DhpLkc3z.js → mockjs-B1eBEK5l.js} +1 -1
- package/dist/assets/page-BlFOKOi4.js +2 -0
- package/dist/assets/preview-6zwsYFyC.js +2 -0
- package/dist/assets/uni-page-B4FdXmeb.js +1 -0
- package/dist/assets/utils-CEJpjMok.js +1 -0
- package/dist/assets/vue-CEtC17Vu.js +34 -0
- package/dist/assets/{vue-router-BUqJHGtN.js → vue-router-BfFk43nw.js} +2 -2
- package/dist/assets/{vxe-BRrz13Uv.js → vxe-mp8c2cud.js} +1 -1
- package/dist/index.html +9 -9
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-Dkyr-yjK.js → @dcloudio-uni-h5-vue-BtM9Eyib.js} +2 -2
- package/dist/uni/assets/index-NK4OvO4f.js +74 -0
- package/dist/uni/assets/{vue-router-BPElbjFz.js → vue-router-CbZ0Q__O.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +12 -12
- package/src/.vtj/files/19sisjqn.json +134 -0
- package/src/.vtj/files/59sitlse.json +75 -0
- package/src/.vtj/histories/19sisjqn/29sisspz.json +125 -0
- package/src/.vtj/histories/19sisjqn/49sisvom.json +138 -0
- package/src/.vtj/histories/19sisjqn.json +13 -0
- package/src/.vtj/histories/59sitlse/29siy19o.json +68 -0
- package/src/.vtj/histories/59sitlse/49siy569.json +79 -0
- package/src/.vtj/histories/59sitlse/b9situxg.json +89 -0
- package/src/.vtj/histories/59sitlse/d9siu04b.json +102 -0
- package/src/.vtj/histories/59sitlse/f9siu2fm.json +120 -0
- package/src/.vtj/histories/59sitlse/g9siu5xn.json +42 -0
- package/src/.vtj/histories/59sitlse/i9siulxs.json +55 -0
- package/src/.vtj/histories/59sitlse.json +33 -0
- package/src/.vtj/materials/@vtj/pro.json +7832 -0
- package/src/.vtj/projects/@vtj/pro.json +264 -0
- package/dist/.vtj/gpt.gif +0 -0
- package/dist/assets/@vueuse-DQGZ4KR4.js +0 -1
- package/dist/assets/Editor-BYRlEJ7f-C5Cx8zyv.css +0 -1
- package/dist/assets/auth-BI3jjRhC.js +0 -1
- package/dist/assets/element-plus-ByPIA5X9.js +0 -13
- package/dist/assets/element-plus-DeBM2g7b.css +0 -1
- package/dist/assets/index-DcoapbuN.js +0 -1
- package/dist/assets/page-BVW4_EMo.js +0 -2
- package/dist/assets/preview-BsDp3_vl.js +0 -2
- package/dist/assets/uni-page-CHxZwhGN.js +0 -1
- package/dist/assets/utils-DY6MzNJy.js +0 -1
- package/dist/assets/vue-CWi9lEhc.js +0 -34
- package/dist/uni/assets/index-BJvCL257.js +0 -79
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
{
|
|
2
|
+
"__VTJ_PROJECT__": true,
|
|
3
|
+
"id": "@vtj/pro",
|
|
4
|
+
"locked": "",
|
|
5
|
+
"platform": "uniapp",
|
|
6
|
+
"name": "VTJ.PRO",
|
|
7
|
+
"homepage": "19sisjqn",
|
|
8
|
+
"description": "VTJ 是一款基于 Vue3 + Typescript 的低代码页面可视化设计器。内置低代码引擎、渲染器和代码生成器,面向前端开发者,开箱即用。 无缝嵌入本地开发工程,不改变前端开发流程和编码习惯。",
|
|
9
|
+
"dependencies": [
|
|
10
|
+
{
|
|
11
|
+
"package": "vue",
|
|
12
|
+
"version": "latest",
|
|
13
|
+
"library": "Vue",
|
|
14
|
+
"urls": [
|
|
15
|
+
"@vtj/materials/deps/uni-h5-vue/index.umd.js"
|
|
16
|
+
],
|
|
17
|
+
"assetsLibrary": "VueMaterial",
|
|
18
|
+
"required": true,
|
|
19
|
+
"official": true,
|
|
20
|
+
"enabled": true,
|
|
21
|
+
"platform": "uniapp"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"package": "vue-router",
|
|
25
|
+
"version": "latest",
|
|
26
|
+
"library": "VueRouter",
|
|
27
|
+
"urls": [
|
|
28
|
+
"@vtj/materials/deps/vue-router/vue-router.global.prod.js"
|
|
29
|
+
],
|
|
30
|
+
"assetsLibrary": "VueRouterMaterial",
|
|
31
|
+
"required": true,
|
|
32
|
+
"official": true,
|
|
33
|
+
"enabled": true
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"package": "vue-i18n",
|
|
37
|
+
"version": "latest",
|
|
38
|
+
"library": "VueI18n",
|
|
39
|
+
"urls": [
|
|
40
|
+
"@vtj/materials/deps/vue-i18n/vue-i18n.global.prod.js"
|
|
41
|
+
],
|
|
42
|
+
"required": true,
|
|
43
|
+
"official": true,
|
|
44
|
+
"enabled": true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"package": "uni-app",
|
|
48
|
+
"version": "latest",
|
|
49
|
+
"library": "UniApp",
|
|
50
|
+
"urls": [
|
|
51
|
+
"@vtj/materials/deps/uni-app/index.umd.js"
|
|
52
|
+
],
|
|
53
|
+
"required": true,
|
|
54
|
+
"official": true,
|
|
55
|
+
"enabled": true,
|
|
56
|
+
"platform": "uniapp"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"package": "uni-h5",
|
|
60
|
+
"version": "latest",
|
|
61
|
+
"library": "UniH5",
|
|
62
|
+
"urls": [
|
|
63
|
+
"@vtj/materials/deps/uni-h5/style.css",
|
|
64
|
+
"@vtj/materials/deps/uni-h5/index.umd.js"
|
|
65
|
+
],
|
|
66
|
+
"required": true,
|
|
67
|
+
"official": true,
|
|
68
|
+
"enabled": true,
|
|
69
|
+
"assetsUrl": "@vtj/materials/assets/uni-h5/index.umd.js",
|
|
70
|
+
"assetsLibrary": "UniH5Material",
|
|
71
|
+
"platform": "uniapp"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"package": "uni-ui",
|
|
75
|
+
"version": "latest",
|
|
76
|
+
"library": "UniUI",
|
|
77
|
+
"urls": [
|
|
78
|
+
"@vtj/materials/deps/uni-ui/style.css",
|
|
79
|
+
"@vtj/materials/deps/uni-ui/index.umd.js"
|
|
80
|
+
],
|
|
81
|
+
"required": true,
|
|
82
|
+
"official": true,
|
|
83
|
+
"enabled": true,
|
|
84
|
+
"assetsUrl": "@vtj/materials/assets/uni-ui/index.umd.js",
|
|
85
|
+
"assetsLibrary": "UniUIMaterial",
|
|
86
|
+
"platform": "uniapp"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"package": "@vtj/utils",
|
|
90
|
+
"version": "latest",
|
|
91
|
+
"library": "VtjUtils",
|
|
92
|
+
"urls": [
|
|
93
|
+
"@vtj/materials/deps/@vtj/utils/index.umd.js"
|
|
94
|
+
],
|
|
95
|
+
"required": false,
|
|
96
|
+
"official": true,
|
|
97
|
+
"enabled": true
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"package": "mockjs",
|
|
101
|
+
"version": "latest",
|
|
102
|
+
"library": "Mock",
|
|
103
|
+
"urls": [
|
|
104
|
+
"@vtj/materials/deps/mockjs/mock-min.js"
|
|
105
|
+
],
|
|
106
|
+
"required": false,
|
|
107
|
+
"official": true,
|
|
108
|
+
"enabled": true
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"pages": [
|
|
112
|
+
{
|
|
113
|
+
"id": "19sisjqn",
|
|
114
|
+
"dir": false,
|
|
115
|
+
"layout": false,
|
|
116
|
+
"name": "LaunchPage",
|
|
117
|
+
"title": "启动页",
|
|
118
|
+
"icon": "",
|
|
119
|
+
"mask": false,
|
|
120
|
+
"hidden": false,
|
|
121
|
+
"raw": false,
|
|
122
|
+
"pure": true,
|
|
123
|
+
"cache": false,
|
|
124
|
+
"needLogin": false,
|
|
125
|
+
"style": {
|
|
126
|
+
"navigationStyle": "custom"
|
|
127
|
+
},
|
|
128
|
+
"type": "page"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"dir": false,
|
|
132
|
+
"layout": false,
|
|
133
|
+
"name": "Abc",
|
|
134
|
+
"title": "abc",
|
|
135
|
+
"icon": "",
|
|
136
|
+
"mask": false,
|
|
137
|
+
"hidden": false,
|
|
138
|
+
"raw": false,
|
|
139
|
+
"pure": true,
|
|
140
|
+
"meta": null,
|
|
141
|
+
"cache": false,
|
|
142
|
+
"needLogin": false,
|
|
143
|
+
"style": "",
|
|
144
|
+
"id": "59sitlse",
|
|
145
|
+
"type": "page"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"blocks": [],
|
|
149
|
+
"apis": [],
|
|
150
|
+
"meta": [],
|
|
151
|
+
"config": {},
|
|
152
|
+
"uniConfig": {
|
|
153
|
+
"css": "\n body {\n background-color: #fff;\n }\n",
|
|
154
|
+
"onLaunch": {
|
|
155
|
+
"type": "JSFunction",
|
|
156
|
+
"value": "() => {\n console.log('onLaunch');\n}"
|
|
157
|
+
},
|
|
158
|
+
"manifestJson": {
|
|
159
|
+
"name": "VTJ.PRO",
|
|
160
|
+
"appid": "__UNI__VTJPRO",
|
|
161
|
+
"description": "VTJ 是一款基于 Vue3 + Typescript 的低代码页面可视化设计器。内置低代码引擎、渲染器和代码生成器,面向前端开发者,开箱即用。 无缝嵌入本地开发工程,不改变前端开发流程和编码习惯。",
|
|
162
|
+
"versionName": "1.0.0",
|
|
163
|
+
"versionCode": "100",
|
|
164
|
+
"transformPx": false,
|
|
165
|
+
"app-plus": {
|
|
166
|
+
"usingComponents": true,
|
|
167
|
+
"nvueStyleCompiler": "uni-app",
|
|
168
|
+
"compilerVersion": 3,
|
|
169
|
+
"splashscreen": {
|
|
170
|
+
"alwaysShowBeforeRender": true,
|
|
171
|
+
"waiting": true,
|
|
172
|
+
"autoclose": true,
|
|
173
|
+
"delay": 0
|
|
174
|
+
},
|
|
175
|
+
"modules": {},
|
|
176
|
+
"distribute": {
|
|
177
|
+
"android": {
|
|
178
|
+
"permissions": [
|
|
179
|
+
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
|
180
|
+
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
|
181
|
+
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
|
182
|
+
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
|
183
|
+
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
|
184
|
+
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
|
185
|
+
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
|
186
|
+
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
|
187
|
+
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
|
188
|
+
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
|
189
|
+
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
|
190
|
+
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
|
191
|
+
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
|
192
|
+
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
|
193
|
+
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"ios": {},
|
|
197
|
+
"sdkConfigs": {},
|
|
198
|
+
"icons": {
|
|
199
|
+
"android": {
|
|
200
|
+
"hdpi": "src/static/logo.png",
|
|
201
|
+
"xhdpi": "src/static/logo.png",
|
|
202
|
+
"xxhdpi": "src/static/logo.png",
|
|
203
|
+
"xxxhdpi": "src/static/logo.png"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"quickapp": {},
|
|
209
|
+
"mp-weixin": {
|
|
210
|
+
"appid": "",
|
|
211
|
+
"setting": {
|
|
212
|
+
"urlCheck": false
|
|
213
|
+
},
|
|
214
|
+
"usingComponents": true
|
|
215
|
+
},
|
|
216
|
+
"mp-alipay": {
|
|
217
|
+
"usingComponents": true
|
|
218
|
+
},
|
|
219
|
+
"mp-baidu": {
|
|
220
|
+
"usingComponents": true
|
|
221
|
+
},
|
|
222
|
+
"mp-toutiao": {
|
|
223
|
+
"usingComponents": true
|
|
224
|
+
},
|
|
225
|
+
"uniStatistics": {
|
|
226
|
+
"enable": false
|
|
227
|
+
},
|
|
228
|
+
"vueVersion": "3"
|
|
229
|
+
},
|
|
230
|
+
"pagesJson": {
|
|
231
|
+
"pages": [],
|
|
232
|
+
"globalStyle": {
|
|
233
|
+
"navigationBarTextStyle": "black",
|
|
234
|
+
"navigationBarTitleText": "uni-app",
|
|
235
|
+
"navigationBarBackgroundColor": "#F8F8F8",
|
|
236
|
+
"backgroundColor": "#F8F8F8"
|
|
237
|
+
},
|
|
238
|
+
"tabBar": {
|
|
239
|
+
"color": "#7A7E83",
|
|
240
|
+
"selectedColor": "#3cc51f",
|
|
241
|
+
"borderStyle": "black",
|
|
242
|
+
"backgroundColor": "#ffffff",
|
|
243
|
+
"list": [
|
|
244
|
+
{
|
|
245
|
+
"pagePath": "pages/45tm4w8w2",
|
|
246
|
+
"text": "组件"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"pagePath": "pages/7pfjupgg3",
|
|
250
|
+
"text": "接口"
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"globals": {},
|
|
257
|
+
"i18n": {
|
|
258
|
+
"locale": "zh-CN",
|
|
259
|
+
"fallbackLocale": "zh-CN",
|
|
260
|
+
"messages": []
|
|
261
|
+
},
|
|
262
|
+
"__BASE_PATH__": "/",
|
|
263
|
+
"__UID__": "bc1d34dc-9c06-4bd5-b0bd-bd1e0dd43614"
|
|
264
|
+
}
|
package/dist/.vtj/gpt.gif
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var Ue=Object.defineProperty,Ke=Object.defineProperties;var qe=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var he=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable;var me=(e,t,n)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||(t={}))he.call(t,n)&&me(e,n,t[n]);if(q)for(var n of q(t))ge.call(t,n)&&me(e,n,t[n]);return e},Q=(e,t)=>Ke(e,qe(t));var G=(e,t)=>{var n={};for(var o in e)he.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&q)for(var o of q(e))t.indexOf(o)<0&&ge.call(e,o)&&(n[o]=e[o]);return n};import{g as We,b as $e,s as M,w as Ae,r as te,e as b,f as P,u as Ie,h as U,i as ue,n as ae,j as le,k as x,t as Ze,l as et,m as tt,p as S,q as De,v as nt}from"./vue-CWi9lEhc.js";var ot=Object.defineProperty,rt=Object.defineProperties,st=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,we=(e,t,n)=>t in e?ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,at=(e,t)=>{for(var n in t||(t={}))it.call(t,n)&&we(e,n,t[n]);if(ye)for(var n of ye(t))ut.call(t,n)&&we(e,n,t[n]);return e},lt=(e,t)=>rt(e,st(t));function fn(e,t){var n;const o=M();return Ae(()=>{o.value=e()},lt(at({},t),{flush:(n=void 0)!=null?n:"sync"})),te(o)}var be;const ne=typeof window!="undefined",ct=e=>typeof e!="undefined",ie=e=>typeof e=="function",ft=e=>typeof e=="string",H=()=>{},dt=ne&&((be=window==null?void 0:window.navigator)==null?void 0:be.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function X(e){return typeof e=="function"?e():Ie(e)}function Le(e,t){function n(...o){return new Promise((s,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(r)})}return n}function vt(e,t={}){let n,o,s=H;const r=i=>{clearTimeout(i),s(),s=H};return i=>{const a=X(e),f=X(t.maxWait);return n&&r(n),a<=0||f!==void 0&&f<=0?(o&&(r(o),o=null),Promise.resolve(i())):new Promise((v,l)=>{s=t.rejectOnCancel?l:v,f&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,v(i())},f)),n=setTimeout(()=>{o&&r(o),o=null,v(i())},a)})}}function pt(e,t=!0,n=!0,o=!1){let s=0,r,u=!0,i=H,a;const f=()=>{r&&(clearTimeout(r),r=void 0,i(),i=H)};return l=>{const c=X(e),d=Date.now()-s,p=()=>a=l();return f(),c<=0?(s=Date.now(),p()):(d>c&&(n||!u)?(s=Date.now(),p()):t&&(a=new Promise((g,h)=>{i=o?h:g,r=setTimeout(()=>{s=Date.now(),u=!0,g(p()),f()},Math.max(0,c-d))})),!n&&!r&&(r=setTimeout(()=>u=!0,c)),u=!1,a)}}function mt(e){return e}function ht(e,t){let n,o,s;const r=b(!0),u=()=>{r.value=!0,s()};P(e,u,{flush:"sync"});const i=ie(t)?t:t.get,a=ie(t)?void 0:t.set,f=le((v,l)=>(o=v,s=l,{get(){return r.value&&(n=i(),r.value=!1),o(),n},set(c){a==null||a(c)}}));return Object.isExtensible(f)&&(f.trigger=u),f}function K(e){return We()?($e(e),!0):!1}function gt(e,t=200,n={}){return Le(vt(t,n),e)}function dn(e,t=200,n={}){const o=b(e.value),s=gt(()=>{o.value=e.value},t,n);return P(e,()=>s()),o}function vn(e,t=200,n=!1,o=!0,s=!1){return Le(pt(t,n,o,s),e)}function ce(e,t=!0){U()?ue(e):t?e():ae(e)}function pn(e,t,n={}){const{immediate:o=!0}=n,s=b(!1);let r=null;function u(){r&&(clearTimeout(r),r=null)}function i(){s.value=!1,u()}function a(...f){u(),s.value=!0,r=setTimeout(()=>{s.value=!1,r=null,e(...f)},X(t))}return o&&(s.value=!0,ne&&a()),K(i),{isPending:te(s),start:a,stop:i}}function I(e){var t;const n=X(e);return(t=n==null?void 0:n.$el)!=null?t:n}const j=ne?window:void 0,yt=ne?window.document:void 0;function F(...e){let t,n,o,s;if(ft(e[0])||Array.isArray(e[0])?([n,o,s]=e,t=j):[t,n,o,s]=e,!t)return H;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],u=()=>{r.forEach(v=>v()),r.length=0},i=(v,l,c,d)=>(v.addEventListener(l,c,d),()=>v.removeEventListener(l,c,d)),a=P(()=>[I(t),X(s)],([v,l])=>{u(),v&&r.push(...n.flatMap(c=>o.map(d=>i(v,c,d,l))))},{immediate:!0,flush:"post"}),f=()=>{a(),u()};return K(f),f}let Oe=!1;function mn(e,t,n={}){const{window:o=j,ignore:s=[],capture:r=!0,detectIframe:u=!1}=n;if(!o)return;dt&&!Oe&&(Oe=!0,Array.from(o.document.body.children).forEach(c=>c.addEventListener("click",H)));let i=!0;const a=c=>s.some(d=>{if(typeof d=="string")return Array.from(o.document.querySelectorAll(d)).some(p=>p===c.target||c.composedPath().includes(p));{const p=I(d);return p&&(c.target===p||c.composedPath().includes(p))}}),v=[F(o,"click",c=>{const d=I(e);if(!(!d||d===c.target||c.composedPath().includes(d))){if(c.detail===0&&(i=!a(c)),!i){i=!0;return}t(c)}},{passive:!0,capture:r}),F(o,"pointerdown",c=>{const d=I(e);d&&(i=!c.composedPath().includes(d)&&!a(c))},{passive:!0}),u&&F(o,"blur",c=>{var d;const p=I(e);((d=o.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&t(c)})].filter(Boolean);return()=>v.forEach(c=>c())}function hn(e={}){var t;const{window:n=j}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,s=ht(()=>null,()=>o==null?void 0:o.activeElement);return n&&(F(n,"blur",r=>{r.relatedTarget===null&&s.trigger()},!0),F(n,"focus",s.trigger,!0)),s}function fe(e,t=!1){const n=b(),o=()=>n.value=!!e();return o(),ce(o,t),n}function wt(e){return JSON.parse(JSON.stringify(e))}const _e=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Se="__vueuse_ssr_handlers__";_e[Se]=_e[Se]||{};function gn(e,t,{window:n=j,initialValue:o=""}={}){const s=b(o),r=x(()=>{var u;return I(t)||((u=n==null?void 0:n.document)==null?void 0:u.documentElement)});return P([r,()=>X(e)],([u,i])=>{var a;if(u&&n){const f=(a=n.getComputedStyle(u).getPropertyValue(i))==null?void 0:a.trim();s.value=f||o}},{immediate:!0}),P(s,u=>{var i;(i=r.value)!=null&&i.style&&r.value.style.setProperty(X(e),u)}),s}function yn({document:e=yt}={}){if(!e)return b("visible");const t=b(e.visibilityState);return F(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ee=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,_t=(e,t)=>{var n={};for(var o in e)bt.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ee)for(var o of Ee(e))t.indexOf(o)<0&&Ot.call(e,o)&&(n[o]=e[o]);return n};function ze(e,t,n={}){const o=n,{window:s=j}=o,r=_t(o,["window"]);let u;const i=fe(()=>s&&"ResizeObserver"in s),a=()=>{u&&(u.disconnect(),u=void 0)},f=P(()=>I(e),l=>{a(),i.value&&s&&l&&(u=new ResizeObserver(t),u.observe(l,r))},{immediate:!0,flush:"post"}),v=()=>{a(),f()};return K(v),{isSupported:i,stop:v}}function wn(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:s=!0,immediate:r=!0}=t,u=b(0),i=b(0),a=b(0),f=b(0),v=b(0),l=b(0),c=b(0),d=b(0);function p(){const g=I(e);if(!g){n&&(u.value=0,i.value=0,a.value=0,f.value=0,v.value=0,l.value=0,c.value=0,d.value=0);return}const h=g.getBoundingClientRect();u.value=h.height,i.value=h.bottom,a.value=h.left,f.value=h.right,v.value=h.top,l.value=h.width,c.value=h.x,d.value=h.y}return ze(e,p),P(()=>I(e),g=>!g&&p()),s&&F("scroll",p,{capture:!0,passive:!0}),o&&F("resize",p,{passive:!0}),ce(()=>{r&&p()}),{height:u,bottom:i,left:a,right:f,top:v,width:l,x:c,y:d,update:p}}function bn(e,t={width:0,height:0},n={}){const{window:o=j,box:s="content-box"}=n,r=x(()=>{var a,f;return(f=(a=I(e))==null?void 0:a.namespaceURI)==null?void 0:f.includes("svg")}),u=b(t.width),i=b(t.height);return ze(e,([a])=>{const f=s==="border-box"?a.borderBoxSize:s==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&r.value){const v=I(e);if(v){const l=o.getComputedStyle(v);u.value=parseFloat(l.width),i.value=parseFloat(l.height)}}else if(f){const v=Array.isArray(f)?f:[f];u.value=v.reduce((l,{inlineSize:c})=>l+c,0),i.value=v.reduce((l,{blockSize:c})=>l+c,0)}else u.value=a.contentRect.width,i.value=a.contentRect.height},n),P(()=>I(e),a=>{u.value=a?t.width:0,i.value=a?t.height:0}),{width:u,height:i}}function On(e,t,n={}){const{root:o,rootMargin:s="0px",threshold:r=.1,window:u=j}=n,i=fe(()=>u&&"IntersectionObserver"in u);let a=H;const f=i.value?P(()=>({el:I(e),root:I(o)}),({el:l,root:c})=>{if(a(),!l)return;const d=new IntersectionObserver(t,{root:c,rootMargin:s,threshold:r});d.observe(l),a=()=>{d.disconnect(),a=H}},{immediate:!0,flush:"post"}):H,v=()=>{a(),f()};return K(v),{isSupported:i,stop:v}}var xe=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,xt=(e,t)=>{var n={};for(var o in e)St.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&xe)for(var o of xe(e))t.indexOf(o)<0&&Et.call(e,o)&&(n[o]=e[o]);return n};function _n(e,t,n={}){const o=n,{window:s=j}=o,r=xt(o,["window"]);let u;const i=fe(()=>s&&"MutationObserver"in s),a=()=>{u&&(u.disconnect(),u=void 0)},f=P(()=>I(e),l=>{a(),i.value&&s&&l&&(u=new MutationObserver(t),u.observe(l,r))},{immediate:!0}),v=()=>{a(),f()};return K(v),{isSupported:i,stop:v}}var Pe;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Pe||(Pe={}));var Pt=Object.defineProperty,Te=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Ce=(e,t,n)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mt=(e,t)=>{for(var n in t||(t={}))Tt.call(t,n)&&Ce(e,n,t[n]);if(Te)for(var n of Te(t))Ct.call(t,n)&&Ce(e,n,t[n]);return e};const Rt={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Mt({linear:mt},Rt);function Sn(e,t,n,o={}){var s,r,u;const{clone:i=!1,passive:a=!1,eventName:f,deep:v=!1,defaultValue:l}=o,c=U(),d=n||(c==null?void 0:c.emit)||((s=c==null?void 0:c.$emit)==null?void 0:s.bind(c))||((u=(r=c==null?void 0:c.proxy)==null?void 0:r.$emit)==null?void 0:u.bind(c==null?void 0:c.proxy));let p=f;t||(t="modelValue"),p=f||p||`update:${t.toString()}`;const g=y=>i?ie(i)?i(y):wt(y):y,h=()=>ct(e[t])?g(e[t]):l;if(a){const y=h(),O=b(y);return P(()=>e[t],E=>O.value=g(E)),P(O,E=>{(E!==e[t]||v)&&d(p,E)},{deep:v}),O}else return x({get(){return h()},set(y){d(p,y)}})}function En({window:e=j}={}){if(!e)return b(!1);const t=b(e.document.hasFocus());return F(e,"blur",()=>{t.value=!1}),F(e,"focus",()=>{t.value=!0}),t}function xn(e={}){const{window:t=j,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:s=!0,includeScrollbar:r=!0}=e,u=b(n),i=b(o),a=()=>{t&&(r?(u.value=t.innerWidth,i.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return a(),ce(a),F("resize",a,{passive:!0}),s&&F("orientationchange",a,{passive:!0}),{width:u,height:i}}function oe(e){return We()?($e(e),!0):!1}const se=new WeakMap,Wt=(...e)=>{var t;const n=e[0],o=(t=U())==null?void 0:t.proxy;if(o==null&&!De())throw new Error("injectLocal must be called in setup");return o&&se.has(o)&&n in se.get(o)?se.get(o)[n]:nt(...e)},de=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const $t=e=>e!=null,At=Object.prototype.toString,It=e=>At.call(e)==="[object Object]",Dt=()=>{};function ve(...e){if(e.length!==1)return Ze(...e);const t=e[0];return typeof t=="function"?te(le(()=>({get:t,set:Dt}))):b(t)}function Lt(e,t){function n(...o){return new Promise((s,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(r)})}return n}const Fe=e=>e();function zt(e=Fe,t={}){const{initialState:n="active"}=t,o=ve(n==="active");function s(){o.value=!1}function r(){o.value=!0}const u=(...i)=>{o.value&&e(...i)};return{isActive:te(o),pause:s,resume:r,eventFilter:u}}function Me(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function J(e){return Array.isArray(e)?e:[e]}function Ft(e){return U()}function kt(e,t,n={}){const r=n,{eventFilter:o=Fe}=r,s=G(r,["eventFilter"]);return P(e,Lt(o,t),s)}function Nt(e,t,n={}){const l=n,{eventFilter:o,initialState:s="active"}=l,r=G(l,["eventFilter","initialState"]),{eventFilter:u,pause:i,resume:a,isActive:f}=zt(o,{initialState:s});return{stop:kt(e,t,Q(V({},r),{eventFilter:u})),pause:i,resume:a,isActive:f}}function Vt(e,t={}){if(!et(e))return tt(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=le(()=>({get(){return e.value[o]},set(s){var r;if((r=S(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const i=[...e.value];i[o]=s,e.value=i}else{const i=Q(V({},e.value),{[o]:s});Object.setPrototypeOf(i,Object.getPrototypeOf(e.value)),e.value=i}else e.value[o]=s}}));return n}function re(e,t=!0,n){Ft()?ue(e,n):t?e():ae(e)}function Bt(e,t,n){return P(e,t,Q(V({},n),{immediate:!0}))}const N=de?window:void 0,jt=de?window.document:void 0;function B(e){var t;const n=S(e);return(t=n==null?void 0:n.$el)!=null?t:n}function z(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},o=(i,a,f,v)=>(i.addEventListener(a,f,v),()=>i.removeEventListener(a,f,v)),s=x(()=>{const i=J(S(e[0])).filter(a=>a!=null);return i.every(a=>typeof a!="string")?i:void 0}),r=Bt(()=>{var i,a;return[(a=(i=s.value)==null?void 0:i.map(f=>B(f)))!=null?a:[N].filter(f=>f!=null),J(S(s.value?e[1]:e[0])),J(Ie(s.value?e[2]:e[1])),S(s.value?e[3]:e[2])]},([i,a,f,v])=>{if(n(),!(i!=null&&i.length)||!(a!=null&&a.length)||!(f!=null&&f.length))return;const l=It(v)?V({},v):v;t.push(...i.flatMap(c=>a.flatMap(d=>f.map(p=>o(c,d,p,l)))))},{flush:"post"}),u=()=>{r(),n()};return oe(n),u}function Ht(){const e=M(!1),t=U();return t&&ue(()=>{e.value=!0},t),e}function pe(e){const t=Ht();return x(()=>(t.value,!!e()))}function ke(e,t,n={}){const c=n,{window:o=N}=c,s=G(c,["window"]);let r;const u=pe(()=>o&&"MutationObserver"in o),i=()=>{r&&(r.disconnect(),r=void 0)},a=x(()=>{const d=S(e),p=J(d).map(B).filter($t);return new Set(p)}),f=P(()=>a.value,d=>{i(),u.value&&d.size&&(r=new MutationObserver(t),d.forEach(p=>r.observe(p,s)))},{immediate:!0,flush:"post"}),v=()=>r==null?void 0:r.takeRecords(),l=()=>{f(),i()};return oe(l),{isSupported:u,stop:l,takeRecords:v}}const Xt=Symbol("vueuse-ssr-width");function Yt(){const e=De()?Wt(Xt,null):null;return typeof e=="number"?e:void 0}function Qt(e,t={}){const{window:n=N,ssrWidth:o=Yt()}=t,s=pe(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),r=M(typeof o=="number"),u=M(),i=M(!1),a=f=>{i.value=f.matches};return Ae(()=>{if(r.value){r.value=!s.value;const f=S(e).split(",");i.value=f.some(v=>{const l=v.includes("not all"),c=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let p=!!(c||d);return c&&p&&(p=o>=Me(c[1])),d&&p&&(p=o<=Me(d[1])),l?!p:p});return}s.value&&(u.value=n.matchMedia(S(e)),i.value=u.value.matches)}),z(u,"change",a,{passive:!0}),x(()=>i.value)}const Z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ee="__vueuse_ssr_handlers__",Gt=Jt();function Jt(){return ee in Z||(Z[ee]=Z[ee]||{}),Z[ee]}function Ne(e,t){return Gt[e]||t}function Ut(e){return Qt("(prefers-color-scheme: dark)",e)}function Kt(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const qt={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Re="vueuse-storage";function Zt(e,t,n,o={}){var s;const{flush:r="pre",deep:u=!0,listenToStorageChanges:i=!0,writeDefaults:a=!0,mergeDefaults:f=!1,shallow:v,window:l=N,eventFilter:c,onError:d=w=>{console.error(w)},initOnMounted:p}=o,g=(v?M:b)(typeof t=="function"?t():t),h=x(()=>S(e));if(!n)try{n=Ne("getDefaultStorage",()=>{var w;return(w=N)==null?void 0:w.localStorage})()}catch(w){d(w)}if(!n)return g;const y=S(t),O=Kt(y),E=(s=o.serializer)!=null?s:qt[O],{pause:W,resume:R}=Nt(g,()=>$(g.value),{flush:r,deep:u,eventFilter:c});P(h,()=>L(),{flush:r});let D=!1;const m=w=>{p&&!D||L(w)},_=w=>{p&&!D||Y(w)};l&&i&&(n instanceof Storage?z(l,"storage",m,{passive:!0}):z(l,Re,_)),p?re(()=>{D=!0,L()}):L();function T(w,A){if(l){const k={key:h.value,oldValue:w,newValue:A,storageArea:n};l.dispatchEvent(n instanceof Storage?new StorageEvent("storage",k):new CustomEvent(Re,{detail:k}))}}function $(w){try{const A=n.getItem(h.value);if(w==null)T(A,null),n.removeItem(h.value);else{const k=E.write(w);A!==k&&(n.setItem(h.value,k),T(A,k))}}catch(A){d(A)}}function C(w){const A=w?w.newValue:n.getItem(h.value);if(A==null)return a&&y!=null&&n.setItem(h.value,E.write(y)),y;if(!w&&f){const k=E.read(A);return typeof f=="function"?f(k,y):O==="object"&&!Array.isArray(k)?V(V({},y),k):k}else return typeof A!="string"?A:E.read(A)}function L(w){if(!(w&&w.storageArea!==n)){if(w&&w.key==null){g.value=y;return}if(!(w&&w.key!==h.value)){W();try{(w==null?void 0:w.newValue)!==E.write(g.value)&&(g.value=C(w))}catch(A){d(A)}finally{w?ae(R):R()}}}}function Y(w){L(w.detail)}return g}const en="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function tn(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:s=N,storage:r,storageKey:u="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:a,emitAuto:f,disableTransition:v=!0}=e,l=V({auto:"",light:"light",dark:"dark"},e.modes||{}),c=Ut({window:s}),d=x(()=>c.value?"dark":"light"),p=a||(u==null?ve(o):Zt(u,o,r,{window:s,listenToStorageChanges:i})),g=x(()=>p.value==="auto"?d.value:p.value),h=Ne("updateHTMLAttrs",(W,R,D)=>{const m=typeof W=="string"?s==null?void 0:s.document.querySelector(W):B(W);if(!m)return;const _=new Set,T=new Set;let $=null;if(R==="class"){const L=D.split(/\s/g);Object.values(l).flatMap(Y=>(Y||"").split(/\s/g)).filter(Boolean).forEach(Y=>{L.includes(Y)?_.add(Y):T.add(Y)})}else $={key:R,value:D};if(_.size===0&&T.size===0&&$===null)return;let C;v&&(C=s.document.createElement("style"),C.appendChild(document.createTextNode(en)),s.document.head.appendChild(C));for(const L of _)m.classList.add(L);for(const L of T)m.classList.remove(L);$&&m.setAttribute($.key,$.value),v&&(s.getComputedStyle(C).opacity,document.head.removeChild(C))});function y(W){var R;h(t,n,(R=l[W])!=null?R:W)}function O(W){e.onChanged?e.onChanged(W,y):y(W)}P(g,O,{flush:"post",immediate:!0}),re(()=>O(g.value));const E=x({get(){return f?p.value:g.value},set(W){p.value=W}});return Object.assign(E,{store:p,system:d,state:g})}function Pn(e={}){const{valueDark:t="dark",valueLight:n=""}=e,o=tn(Q(V({},e),{onChanged:(u,i)=>{var a;e.onChanged?(a=e.onChanged)==null||a.call(e,u==="dark",i,u):i(u)},modes:{dark:t,light:n}})),s=x(()=>o.system.value);return x({get(){return o.value==="dark"},set(u){const i=u?"dark":"light";s.value===i?o.value="auto":o.value=i}})}function Tn(e,t={}){var n;const{pointerTypes:o,preventDefault:s,stopPropagation:r,exact:u,onMove:i,onEnd:a,onStart:f,initialValue:v,axis:l="both",draggingElement:c=N,containerElement:d,handle:p=e,buttons:g=[0]}=t,h=b((n=S(v))!=null?n:{x:0,y:0}),y=b(),O=m=>o?o.includes(m.pointerType):!0,E=m=>{S(s)&&m.preventDefault(),S(r)&&m.stopPropagation()},W=m=>{var _;if(!S(g).includes(m.button)||S(t.disabled)||!O(m)||S(u)&&m.target!==S(e))return;const T=S(d),$=(_=T==null?void 0:T.getBoundingClientRect)==null?void 0:_.call(T),C=S(e).getBoundingClientRect(),L={x:m.clientX-(T?C.left-$.left+T.scrollLeft:C.left),y:m.clientY-(T?C.top-$.top+T.scrollTop:C.top)};(f==null?void 0:f(L,m))!==!1&&(y.value=L,E(m))},R=m=>{if(S(t.disabled)||!O(m)||!y.value)return;const _=S(d),T=S(e).getBoundingClientRect();let{x:$,y:C}=h.value;(l==="x"||l==="both")&&($=m.clientX-y.value.x,_&&($=Math.min(Math.max(0,$),_.scrollWidth-T.width))),(l==="y"||l==="both")&&(C=m.clientY-y.value.y,_&&(C=Math.min(Math.max(0,C),_.scrollHeight-T.height))),h.value={x:$,y:C},i==null||i(h.value,m),E(m)},D=m=>{S(t.disabled)||!O(m)||y.value&&(y.value=void 0,a==null||a(h.value,m),E(m))};if(de){const m=()=>{var _;return{capture:(_=t.capture)!=null?_:!0,passive:!S(s)}};z(p,"pointerdown",W,m),z(c,"pointermove",R,m),z(c,"pointerup",D,m)}return Q(V({},Vt(h)),{position:h,isDragging:x(()=>!!y.value),style:x(()=>`left:${h.value.x}px;top:${h.value.y}px;`)})}function Ve(e,t,n={}){const l=n,{window:o=N}=l,s=G(l,["window"]);let r;const u=pe(()=>o&&"ResizeObserver"in o),i=()=>{r&&(r.disconnect(),r=void 0)},a=x(()=>{const c=S(e);return Array.isArray(c)?c.map(d=>B(d)):[B(c)]}),f=P(a,c=>{if(i(),u.value&&o){r=new ResizeObserver(t);for(const d of c)d&&r.observe(d,s)}},{immediate:!0,flush:"post"}),v=()=>{i(),f()};return oe(v),{isSupported:u,stop:v}}function nn(e,t={width:0,height:0},n={}){const{window:o=N,box:s="content-box"}=n,r=x(()=>{var l,c;return(c=(l=B(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),u=M(t.width),i=M(t.height),{stop:a}=Ve(e,([l])=>{const c=s==="border-box"?l.borderBoxSize:s==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&r.value){const d=B(e);if(d){const p=d.getBoundingClientRect();u.value=p.width,i.value=p.height}}else if(c){const d=J(c);u.value=d.reduce((p,{inlineSize:g})=>p+g,0),i.value=d.reduce((p,{blockSize:g})=>p+g,0)}else u.value=l.contentRect.width,i.value=l.contentRect.height},n);re(()=>{const l=B(e);l&&(u.value="offsetWidth"in l?l.offsetWidth:t.width,i.value="offsetHeight"in l?l.offsetHeight:t.height)});const f=P(()=>B(e),l=>{u.value=l?t.width:0,i.value=l?t.height:0});function v(){a(),f()}return{width:u,height:i,stop:v}}const on={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function rn(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:s={x:0,y:0},window:r=N,target:u=r,scroll:i=!0,eventFilter:a}=e;let f=null,v=0,l=0;const c=M(s.x),d=M(s.y),p=M(null),g=typeof t=="function"?t:on[t],h=m=>{const _=g(m);f=m,_&&([c.value,d.value]=_,p.value="mouse"),r&&(v=r.scrollX,l=r.scrollY)},y=m=>{if(m.touches.length>0){const _=g(m.touches[0]);_&&([c.value,d.value]=_,p.value="touch")}},O=()=>{if(!f||!r)return;const m=g(f);f instanceof MouseEvent&&m&&(c.value=m[0]+r.scrollX-v,d.value=m[1]+r.scrollY-l)},E=()=>{c.value=s.x,d.value=s.y},W=a?m=>a(()=>h(m),{}):m=>h(m),R=a?m=>a(()=>y(m),{}):m=>y(m),D=a?()=>a(()=>O(),{}):()=>O();if(u){const m={passive:!0};z(u,["mousemove","dragover"],W,m),n&&t!=="movement"&&(z(u,["touchstart","touchmove"],R,m),o&&z(u,"touchend",E,m)),i&&t==="page"&&z(r,"scroll",D,m)}return{x:c,y:d,sourceType:p}}function Cn(e,t={}){const{windowResize:n=!0,windowScroll:o=!0,handleOutside:s=!0,window:r=N}=t,u=t.type||"page",{x:i,y:a,sourceType:f}=rn(t),v=M(e!=null?e:r==null?void 0:r.document.body),l=M(0),c=M(0),d=M(0),p=M(0),g=M(0),h=M(0),y=M(!0);function O(){if(!r)return;const R=B(v);if(!R||!(R instanceof Element))return;const{left:D,top:m,width:_,height:T}=R.getBoundingClientRect();d.value=D+(u==="page"?r.pageXOffset:0),p.value=m+(u==="page"?r.pageYOffset:0),g.value=T,h.value=_;const $=i.value-d.value,C=a.value-p.value;y.value=_===0||T===0||$<0||C<0||$>_||C>T,s&&(l.value=$,c.value=C)}const E=[];function W(){E.forEach(R=>R()),E.length=0}if(re(()=>{O()}),r){const{stop:R}=Ve(v,O),{stop:D}=ke(v,O,{attributeFilter:["style","class"]}),m=P([v,i,a],O);E.push(R,D,m),z(document,"mouseleave",()=>y.value=!0,{passive:!0}),o&&E.push(z("scroll",O,{capture:!0,passive:!0})),n&&E.push(z("resize",O,{passive:!0}))}return{x:i,y:a,sourceType:f,elementX:l,elementY:c,elementPositionX:d,elementPositionY:p,elementHeight:g,elementWidth:h,isOutside:y,stop:W}}function Mn(e=null,t={}){var n,o,s;const{document:r=jt,restoreOnUnmount:u=l=>l}=t,i=(n=r==null?void 0:r.title)!=null?n:"",a=ve((o=e!=null?e:r==null?void 0:r.title)!=null?o:null),f=!!(e&&typeof e=="function");function v(l){if(!("titleTemplate"in t))return l;const c=t.titleTemplate||"%s";return typeof c=="function"?c(l):S(c).replace(/%s/g,l)}return P(a,(l,c)=>{l!==c&&r&&(r.title=v(l!=null?l:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&r&&!f&&ke((s=r.head)==null?void 0:s.querySelector("title"),()=>{r&&r.title!==a.value&&(a.value=v(r.title))},{childList:!0}),oe(()=>{if(u){const l=u(i,a.value||"");l!=null&&r&&(r.title=l)}}),a}function Rn(e,t){const{containerStyle:n,wrapperProps:o,scrollTo:s,calculateRange:r,currentList:u,containerRef:i}="itemHeight"in t?an(t,e):un(t,e);return{list:u,scrollTo:s,containerProps:{ref:i,onScroll:()=>{r()},style:n},wrapperProps:o}}function Be(e){const t=M(null),n=nn(t),o=b([]),s=M(e);return{state:b({start:0,end:10}),source:s,currentList:o,size:n,containerRef:t}}function je(e,t,n){return o=>{if(typeof n=="number")return Math.ceil(o/n);const{start:s=0}=e.value;let r=0,u=0;for(let i=s;i<t.value.length;i++){const a=n(i);if(r+=a,u=i,r>o)break}return u-s}}function He(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let o=0,s=0;for(let r=0;r<e.value.length;r++){const u=t(r);if(o+=u,o>=n){s=r;break}}return s+1}}function Xe(e,t,n,o,{containerRef:s,state:r,currentList:u,source:i}){return()=>{const a=s.value;if(a){const f=n(e==="vertical"?a.scrollTop:a.scrollLeft),v=o(e==="vertical"?a.clientHeight:a.clientWidth),l=f-t,c=f+v+t;r.value={start:l<0?0:l,end:c>i.value.length?i.value.length:c},u.value=i.value.slice(r.value.start,r.value.end).map((d,p)=>({data:d,index:p+r.value.start}))}}}function Ye(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((s,r,u)=>s+e(u),0)}function Qe(e,t,n,o){P([e.width,e.height,t,n],()=>{o()})}function Ge(e,t){return x(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,o,s)=>n+e(s),0))}const sn={horizontal:"scrollLeft",vertical:"scrollTop"};function Je(e,t,n,o){return s=>{o.value&&(o.value[sn[e]]=n(s),t())}}function un(e,t){const n=Be(t),{state:o,source:s,currentList:r,size:u,containerRef:i}=n,a={overflowX:"auto"},{itemWidth:f,overscan:v=5}=e,l=je(o,s,f),c=He(s,f),d=Xe("horizontal",v,c,l,n),p=Ye(f,s),g=x(()=>p(o.value.start)),h=Ge(f,s);Qe(u,t,i,d);const y=Je("horizontal",d,p,i),O=x(()=>({style:{height:"100%",width:`${h.value-g.value}px`,marginLeft:`${g.value}px`,display:"flex"}}));return{scrollTo:y,calculateRange:d,wrapperProps:O,containerStyle:a,currentList:r,containerRef:i}}function an(e,t){const n=Be(t),{state:o,source:s,currentList:r,size:u,containerRef:i}=n,a={overflowY:"auto"},{itemHeight:f,overscan:v=5}=e,l=je(o,s,f),c=He(s,f),d=Xe("vertical",v,c,l,n),p=Ye(f,s),g=x(()=>p(o.value.start)),h=Ge(f,s);Qe(u,t,i,d);const y=Je("vertical",d,p,i),O=x(()=>({style:{width:"100%",height:`${h.value-g.value}px`,marginTop:`${g.value}px`}}));return{calculateRange:d,scrollTo:y,containerStyle:a,wrapperProps:O,currentList:r,containerRef:i}}export{nn as A,Pn as B,wn as a,F as b,fn as c,ze as d,I as e,vn as f,gn as g,pn as h,ne as i,On as j,dt as k,_n as l,yn as m,En as n,mn as o,Sn as p,hn as q,dn as r,bn as s,K as t,xn as u,Mn as v,Tn as w,Cn as x,z as y,Rn as z};
|