@vtj/pro 0.10.15 → 0.11.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.
Files changed (51) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  8. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  12. package/dist/@vtj/materials/deps/uni-ui/index.umd.js +1 -1
  13. package/dist/@vtj/materials/deps/uni-ui/style.css +1 -1
  14. package/dist/@vtj/materials/deps/vant/index.css +1 -1
  15. package/dist/@vtj/materials/deps/vant/vant.min.js +1 -1
  16. package/dist/assets/{@element-plus-icons-vue-CKT2Xck5.js → @element-plus-icons-vue-CiUy_FB_.js} +1 -1
  17. package/dist/assets/@vueuse-CceCMEgA.js +1 -0
  18. package/dist/assets/{Editor-7SLplEph-XiU5RCA1.js → Editor-7SLplEph-BOZTEciy.js} +1 -1
  19. package/dist/assets/auth-DwmTaW5W.js +1 -0
  20. package/dist/assets/auth-M4f5Ga8E.css +1 -0
  21. package/dist/assets/{element-plus-DD5kVcxH.js → element-plus-CQpgC9_i.js} +3 -3
  22. package/dist/assets/{extension-DYYKpooH.css → index-4yxq1NoG.css} +1 -1
  23. package/dist/assets/{index-B5dNOhMJ.js → index-CDRuydJ0.js} +24 -24
  24. package/dist/assets/index-DoBcZEst.js +169 -0
  25. package/dist/assets/index-MhdaEFQT.css +1 -0
  26. package/dist/assets/index-oHnBQSgu.js +1 -0
  27. package/dist/assets/page-CNYvgDTR.js +2 -0
  28. package/dist/assets/preview-BiwDU63U.js +2 -0
  29. package/dist/assets/uni-page-CcvzWKEz.css +1 -0
  30. package/dist/assets/uni-page-DKhm1ga2.js +1 -0
  31. package/dist/assets/utils-DAxEuZxL.js +1 -0
  32. package/dist/assets/{vue-DnfbZNhx.js → vue-CK7CG2oW.js} +1 -1
  33. package/dist/assets/{vue-router-D8EXeL0F.js → vue-router-5AKQpGpA.js} +1 -1
  34. package/dist/assets/{vxe-CFTIhv1S.js → vxe-N9ALOqba.js} +1 -1
  35. package/dist/index.html +8 -8
  36. package/dist/uni/assets/{index-DkfhQd6q.js → index-Co3NbAvW.js} +23 -23
  37. package/dist/uni/index.html +1 -1
  38. package/package.json +15 -17
  39. package/src/Auth.vue +19 -14
  40. package/src/extension.ts +22 -32
  41. package/dist/assets/@vueuse-DVn-X0V4.js +0 -1
  42. package/dist/assets/auth-C8lTUs_h.css +0 -1
  43. package/dist/assets/auth-DA1mfYXi.js +0 -1
  44. package/dist/assets/extension-YQJ_fg-F.js +0 -169
  45. package/dist/assets/index-6aoo888I.css +0 -1
  46. package/dist/assets/index-fMh9I_lk.js +0 -1
  47. package/dist/assets/page-DBocEj87.js +0 -2
  48. package/dist/assets/preview-Ck1S6FvZ.js +0 -2
  49. package/dist/assets/uni-page-Bjgk97mC.js +0 -1
  50. package/dist/assets/uni-page-Diqmj53r.css +0 -1
  51. package/dist/assets/utils-DTAkbY9y.js +0 -1
@@ -13,7 +13,7 @@
13
13
  <title></title>
14
14
  <!--preload-links-->
15
15
  <!--app-context-->
16
- <script type="module" crossorigin src="./assets/index-DkfhQd6q.js"></script>
16
+ <script type="module" crossorigin src="./assets/index-Co3NbAvW.js"></script>
17
17
  <link rel="modulepreload" crossorigin href="./assets/vue-BK7aLblh.js">
18
18
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-VStmjWbh.js">
19
19
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-DzUn8GQh.js">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/pro",
3
3
  "private": false,
4
- "version": "0.10.15",
4
+ "version": "0.11.0",
5
5
  "keywords": [
6
6
  "低代码引擎",
7
7
  "LowCode Engine",
@@ -21,21 +21,21 @@
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "dependencies": {
24
- "@vtj/designer": "~0.10.15",
25
- "@vtj/renderer": "~0.10.15",
26
- "@vtj/core": "~0.10.15",
27
- "@vtj/local": "~0.10.15",
28
- "@vtj/materials": "~0.10.15",
29
- "@vtj/uni": "~0.10.15"
24
+ "@vtj/core": "~0.11.0",
25
+ "@vtj/local": "~0.11.0",
26
+ "@vtj/materials": "~0.11.0",
27
+ "@vtj/designer": "~0.11.0",
28
+ "@vtj/renderer": "~0.11.0",
29
+ "@vtj/uni": "~0.11.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "vue": "~3.5.5",
33
33
  "vue-router": "~4.5.0",
34
- "@vtj/icons": "~0.10.15",
35
- "@vtj/ui": "~0.10.15",
36
34
  "@vtj/cli": "~0.10.4",
37
- "@vtj/charts": "~0.10.15",
38
- "@vtj/utils": "~0.10.15"
35
+ "@vtj/charts": "~0.11.0",
36
+ "@vtj/ui": "~0.11.0",
37
+ "@vtj/icons": "~0.11.0",
38
+ "@vtj/utils": "~0.11.0"
39
39
  },
40
40
  "exports": {
41
41
  "./vite": {
@@ -63,12 +63,10 @@
63
63
  "vtj": {
64
64
  "name": "VTJ.PRO",
65
65
  "platform": "web",
66
- "adapters": {
67
- "remote": "https://lcdp.vtj.pro",
68
- "access": {
69
- "auth": "https://lcdp.vtj.pro/auth.html",
70
- "privateKey": "MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd"
71
- }
66
+ "remote": "https://lcdp.vtj.pro",
67
+ "access": {
68
+ "auth": "https://lcdp.vtj.pro/auth.html",
69
+ "privateKey": "MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd"
72
70
  }
73
71
  },
74
72
  "scripts": {
package/src/Auth.vue CHANGED
@@ -3,27 +3,26 @@
3
3
  </template>
4
4
  <script lang="ts" setup>
5
5
  import { useRoute } from 'vue-router';
6
- import { createAdapter, type CreateAdapterOptions } from '@vtj/pro';
6
+ import { createAccess } from '@vtj/pro';
7
7
  import { ElMessageBox } from 'element-plus';
8
+ import { jsonp } from '@vtj/utils';
8
9
 
9
10
  export interface Props {
10
- options?: CreateAdapterOptions;
11
+ remote?: string;
11
12
  }
12
13
 
13
- const props = defineProps<Props>();
14
+ const props = withDefaults(defineProps<Props>(), {
15
+ remote: 'https://lcdp.vtj.top'
16
+ });
17
+
18
+ const access = createAccess({
19
+ alert: ElMessageBox.alert
20
+ });
14
21
 
15
- const _options = {
16
- ...props.options,
17
- access: {
18
- alert: ElMessageBox.alert,
19
- ...props.options?.access
20
- }
21
- };
22
22
  const route = useRoute();
23
- const adapter = createAdapter(_options);
24
23
  const getLoginInfo = async (token: string) => {
25
- const api = `${adapter.remote}/api/open/user/${token}`;
26
- const res = await adapter.jsonp(api).catch(() => null);
24
+ const api = `${props.remote}/api/open/user/${token}`;
25
+ const res = await jsonp(api).catch(() => null);
27
26
  if (!res || !res.success) {
28
27
  await ElMessageBox.alert('登录失败');
29
28
  return null;
@@ -36,7 +35,7 @@
36
35
  const info = token ? await getLoginInfo(token) : null;
37
36
  if (info) {
38
37
  try {
39
- adapter.access?.login(info);
38
+ access.login(info);
40
39
  const redirect = route.query.redirect as string;
41
40
  location.href = decodeURIComponent(redirect || '/');
42
41
  } catch (e) {
@@ -44,3 +43,9 @@
44
43
  }
45
44
  }
46
45
  </script>
46
+
47
+ <style lang="scss" scoped>
48
+ .loading {
49
+ padding: 40px;
50
+ }
51
+ </style>
package/src/extension.ts CHANGED
@@ -6,50 +6,43 @@ import * as designer from '@vtj/designer';
6
6
  import * as renderer from '@vtj/renderer';
7
7
  import * as VtjIcons from '@vtj/icons';
8
8
  import * as ElementPlus from 'element-plus';
9
- import type { ExtensionConfig } from '@vtj/core';
9
+ import type { VTJConfig } from '@vtj/core';
10
10
  import type { EngineOptions } from '@vtj/designer';
11
11
 
12
- export type ExtensionOptions = ExtensionConfig;
13
- export type ExtensionFactory = (
14
- config: ExtensionConfig
15
- ) => Partial<EngineOptions> | void;
12
+ export type ExtensionFactory =
13
+ | Partial<EngineOptions>
14
+ | ((config: VTJConfig, ...args: any) => Partial<EngineOptions>);
16
15
 
17
- export interface ExtensionOutput {
18
- options: Partial<EngineOptions>;
19
- adapters: Record<string, any>;
20
- }
16
+ export type ExtensionOutput = Partial<EngineOptions>;
21
17
 
22
18
  export class Extension {
23
19
  private urls: string[] = [];
24
20
  private library: string = '';
25
21
  private params: any[] = [];
26
22
  private __BASE_PATH__: string = '/';
27
- private __adapters__: Record<string, any> = {};
28
- constructor(private options: ExtensionOptions) {
23
+ constructor(private config: VTJConfig) {
29
24
  const __VTJ_PRO__ = {
30
25
  ...core,
31
26
  ...designer,
32
27
  ...renderer
33
28
  };
34
-
35
- (window as any).Vue = Vue;
36
- (window as any).__VTJ_PRO__ = __VTJ_PRO__;
37
- (window as any).VtjUtils = VtjUtils;
38
- (window as any).VtjIcons = VtjIcons;
39
- (window as any).VtjUI = VtjUI;
40
- (window as any).ElementPlus = ElementPlus;
41
- const {
42
- urls = [],
43
- library,
44
- params = [],
45
- __BASE_PATH__ = '/',
46
- __adapters__ = {}
47
- } = options || {};
29
+ const globals: Record<string, any> = {
30
+ Vue,
31
+ __VTJ_PRO__,
32
+ VtjUtils,
33
+ VtjIcons,
34
+ VtjUI,
35
+ ElementPlus
36
+ };
37
+ for (const [name, value] of Object.entries(globals)) {
38
+ (window as any)[name] = value;
39
+ }
40
+ const { extension, __BASE_PATH__ = '/' } = config || {};
41
+ const { urls = [], library, params = [] } = extension || {};
48
42
  this.urls = urls;
49
43
  this.library = library;
50
44
  this.params = params;
51
45
  this.__BASE_PATH__ = __BASE_PATH__;
52
- this.__adapters__ = __adapters__;
53
46
  }
54
47
  async load(): Promise<ExtensionOutput> {
55
48
  let options: Partial<EngineOptions> = {};
@@ -63,19 +56,16 @@ export class Extension {
63
56
  .map((n) => `${base}${n}`);
64
57
  renderer.loadCssUrl(css);
65
58
  if (scripts.length) {
66
- const output = await renderer
59
+ const output: ExtensionFactory = await renderer
67
60
  .loadScriptUrl(scripts, this.library)
68
61
  .catch(() => null);
69
62
  if (output && typeof output === 'function') {
70
- options = output.call(output, this.options, this.params);
63
+ options = output.call(output, this.config, ...this.params);
71
64
  } else {
72
65
  options = output || {};
73
66
  }
74
67
  }
75
68
  }
76
- return {
77
- options,
78
- adapters: this.__adapters__
79
- };
69
+ return options;
80
70
  }
81
71
  }
@@ -1 +0,0 @@
1
- var Be=Object.defineProperty,Xe=Object.defineProperties;var Ye=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var ae=(e,t,n)=>t in e?Be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))ue.call(t,n)&&ae(e,n,t[n]);if(Y)for(var n of Y(t))le.call(t,n)&&ae(e,n,t[n]);return e},H=(e,t)=>Xe(e,Ye(t));var Q=(e,t)=>{var n={};for(var r in e)ue.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Y)for(var r of Y(e))t.indexOf(r)<0&&le.call(e,r)&&(n[r]=e[r]);return n};import{g as Se,b as Ee,s as x,w as Pe,r as K,e as b,f as $,h as X,i as ne,n as re,u as xe,j as oe,k as W,l as Qe,t as Je,m as _,p as Ge,q as Te,v as Ue}from"./vue-DnfbZNhx.js";var Ke=Object.defineProperty,qe=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,fe=(e,t,n)=>t in e?Ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nt=(e,t)=>{for(var n in t||(t={}))et.call(t,n)&&fe(e,n,t[n]);if(ce)for(var n of ce(t))tt.call(t,n)&&fe(e,n,t[n]);return e},rt=(e,t)=>qe(e,Ze(t));function on(e,t){var n;const r=x();return Pe(()=>{r.value=e()},rt(nt({},t),{flush:(n=void 0)!=null?n:"sync"})),K(r)}var de;const q=typeof window!="undefined",ot=e=>typeof e!="undefined",te=e=>typeof e=="function",st=e=>typeof e=="string",B=()=>{},it=q&&((de=window==null?void 0:window.navigator)==null?void 0:de.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function z(e){return typeof e=="function"?e():xe(e)}function Ce(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function at(e,t={}){let n,r,o=B;const i=s=>{clearTimeout(s),o(),o=B};return s=>{const u=z(e),c=z(t.maxWait);return n&&i(n),u<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((p,f)=>{o=t.rejectOnCancel?f:p,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,p(s())},c)),n=setTimeout(()=>{r&&i(r),r=null,p(s())},u)})}}function ut(e,t=!0,n=!0,r=!1){let o=0,i,a=!0,s=B,u;const c=()=>{i&&(clearTimeout(i),i=void 0,s(),s=B)};return f=>{const l=z(e),d=Date.now()-o,v=()=>u=f();return c(),l<=0?(o=Date.now(),v()):(d>l&&(n||!a)?(o=Date.now(),v()):t&&(u=new Promise((h,y)=>{s=r?y:h,i=setTimeout(()=>{o=Date.now(),a=!0,h(v()),c()},Math.max(0,l-d))})),!n&&!i&&(i=setTimeout(()=>a=!0,l)),a=!1,u)}}function lt(e){return e}function ct(e,t){let n,r,o;const i=b(!0),a=()=>{i.value=!0,o()};$(e,a,{flush:"sync"});const s=te(t)?t:t.get,u=te(t)?void 0:t.set,c=oe((p,f)=>(r=p,o=f,{get(){return i.value&&(n=s(),i.value=!1),r(),n},set(l){u==null||u(l)}}));return Object.isExtensible(c)&&(c.trigger=a),c}function Z(e){return Se()?(Ee(e),!0):!1}function ft(e,t=200,n={}){return Ce(at(t,n),e)}function sn(e,t=200,n={}){const r=b(e.value),o=ft(()=>{r.value=e.value},t,n);return $(e,()=>o()),r}function an(e,t=200,n=!1,r=!0,o=!1){return Ce(ut(t,n,r,o),e)}function se(e,t=!0){X()?ne(e):t?e():re(e)}function un(e,t,n={}){const{immediate:r=!0}=n,o=b(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function s(){o.value=!1,a()}function u(...c){a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...c)},z(t))}return r&&(o.value=!0,q&&u()),Z(s),{isPending:K(o),start:u,stop:s}}function k(e){var t;const n=z(e);return(t=n==null?void 0:n.$el)!=null?t:n}const j=q?window:void 0,dt=q?window.document:void 0;function D(...e){let t,n,r,o;if(st(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=j):[t,n,r,o]=e,!t)return B;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],a=()=>{i.forEach(p=>p()),i.length=0},s=(p,f,l,d)=>(p.addEventListener(f,l,d),()=>p.removeEventListener(f,l,d)),u=$(()=>[k(t),z(o)],([p,f])=>{a(),p&&i.push(...n.flatMap(l=>r.map(d=>s(p,l,d,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),a()};return Z(c),c}let ve=!1;function ln(e,t,n={}){const{window:r=j,ignore:o=[],capture:i=!0,detectIframe:a=!1}=n;if(!r)return;it&&!ve&&(ve=!0,Array.from(r.document.body.children).forEach(l=>l.addEventListener("click",B)));let s=!0;const u=l=>o.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(v=>v===l.target||l.composedPath().includes(v));{const v=k(d);return v&&(l.target===v||l.composedPath().includes(v))}}),p=[D(r,"click",l=>{const d=k(e);if(!(!d||d===l.target||l.composedPath().includes(d))){if(l.detail===0&&(s=!u(l)),!s){s=!0;return}t(l)}},{passive:!0,capture:i}),D(r,"pointerdown",l=>{const d=k(e);d&&(s=!l.composedPath().includes(d)&&!u(l))},{passive:!0}),a&&D(r,"blur",l=>{var d;const v=k(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(v!=null&&v.contains(r.document.activeElement))&&t(l)})].filter(Boolean);return()=>p.forEach(l=>l())}function cn(e={}){var t;const{window:n=j}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,o=ct(()=>null,()=>r==null?void 0:r.activeElement);return n&&(D(n,"blur",i=>{i.relatedTarget===null&&o.trigger()},!0),D(n,"focus",o.trigger,!0)),o}function We(e,t=!1){const n=b(),r=()=>n.value=!!e();return r(),se(r,t),n}function vt(e){return JSON.parse(JSON.stringify(e))}const pe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},me="__vueuse_ssr_handlers__";pe[me]=pe[me]||{};function fn(e,t,{window:n=j,initialValue:r=""}={}){const o=b(r),i=W(()=>{var a;return k(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return $([i,()=>z(e)],([a,s])=>{var u;if(a&&n){const c=(u=n.getComputedStyle(a).getPropertyValue(s))==null?void 0:u.trim();o.value=c||r}},{immediate:!0}),$(o,a=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(z(e),a)}),o}function dn({document:e=dt}={}){if(!e)return b("visible");const t=b(e.visibilityState);return D(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var he=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,ht=(e,t)=>{var n={};for(var r in e)pt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&he)for(var r of he(e))t.indexOf(r)<0&&mt.call(e,r)&&(n[r]=e[r]);return n};function gt(e,t,n={}){const r=n,{window:o=j}=r,i=ht(r,["window"]);let a;const s=We(()=>o&&"ResizeObserver"in o),u=()=>{a&&(a.disconnect(),a=void 0)},c=$(()=>k(e),f=>{u(),s.value&&o&&f&&(a=new ResizeObserver(t),a.observe(f,i))},{immediate:!0,flush:"post"}),p=()=>{u(),c()};return Z(p),{isSupported:s,stop:p}}function vn(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0}=t,a=b(0),s=b(0),u=b(0),c=b(0),p=b(0),f=b(0),l=b(0),d=b(0);function v(){const h=k(e);if(!h){n&&(a.value=0,s.value=0,u.value=0,c.value=0,p.value=0,f.value=0,l.value=0,d.value=0);return}const y=h.getBoundingClientRect();a.value=y.height,s.value=y.bottom,u.value=y.left,c.value=y.right,p.value=y.top,f.value=y.width,l.value=y.x,d.value=y.y}return gt(e,v),$(()=>k(e),h=>!h&&v()),o&&D("scroll",v,{capture:!0,passive:!0}),r&&D("resize",v,{passive:!0}),se(()=>{i&&v()}),{height:a,bottom:s,left:u,right:c,top:p,width:f,x:l,y:d,update:v}}var ge=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,bt=(e,t)=>{var n={};for(var r in e)yt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ge)for(var r of ge(e))t.indexOf(r)<0&&wt.call(e,r)&&(n[r]=e[r]);return n};function pn(e,t,n={}){const r=n,{window:o=j}=r,i=bt(r,["window"]);let a;const s=We(()=>o&&"MutationObserver"in o),u=()=>{a&&(a.disconnect(),a=void 0)},c=$(()=>k(e),f=>{u(),s.value&&o&&f&&(a=new MutationObserver(t),a.observe(f,i))},{immediate:!0}),p=()=>{u(),c()};return Z(p),{isSupported:s,stop:p}}var ye;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ye||(ye={}));var Ot=Object.defineProperty,we=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,be=(e,t,n)=>t in e?Ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Et=(e,t)=>{for(var n in t||(t={}))_t.call(t,n)&&be(e,n,t[n]);if(we)for(var n of we(t))St.call(t,n)&&be(e,n,t[n]);return e};const Pt={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]};Et({linear:lt},Pt);function mn(e,t,n,r={}){var o,i,a;const{clone:s=!1,passive:u=!1,eventName:c,deep:p=!1,defaultValue:f}=r,l=X(),d=n||(l==null?void 0:l.emit)||((o=l==null?void 0:l.$emit)==null?void 0:o.bind(l))||((a=(i=l==null?void 0:l.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(l==null?void 0:l.proxy));let v=c;t||(t="modelValue"),v=c||v||`update:${t.toString()}`;const h=w=>s?te(s)?s(w):vt(w):w,y=()=>ot(e[t])?h(e[t]):f;if(u){const w=y(),S=b(w);return $(()=>e[t],T=>S.value=h(T)),$(S,T=>{(T!==e[t]||p)&&d(v,T)},{deep:p}),S}else return W({get(){return y()},set(w){d(v,w)}})}function hn({window:e=j}={}){if(!e)return b(!1);const t=b(e.document.hasFocus());return D(e,"blur",()=>{t.value=!1}),D(e,"focus",()=>{t.value=!0}),t}function gn(e={}){const{window:t=j,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:i=!0}=e,a=b(n),s=b(r),u=()=>{t&&(i?(a.value=t.innerWidth,s.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return u(),se(u),D("resize",u,{passive:!0}),o&&D("orientationchange",u,{passive:!0}),{width:a,height:s}}function $e(e){return Se()?(Ee(e),!0):!1}const ee=new WeakMap,xt=(...e)=>{var t;const n=e[0],r=(t=X())==null?void 0:t.proxy;if(r==null&&!Te())throw new Error("injectLocal must be called in setup");return r&&ee.has(r)&&n in ee.get(r)?ee.get(r)[n]:Ue(...e)},Ae=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Tt=Object.prototype.toString,Ct=e=>Tt.call(e)==="[object Object]",Wt=()=>{};function Me(...e){if(e.length!==1)return Ge(...e);const t=e[0];return typeof t=="function"?K(oe(()=>({get:t,set:Wt}))):b(t)}function $t(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const Re=e=>e();function At(e=Re,t={}){const{initialState:n="active"}=t,r=Me(n==="active");function o(){r.value=!1}function i(){r.value=!0}const a=(...s)=>{r.value&&e(...s)};return{isActive:K(r),pause:o,resume:i,eventFilter:a}}function Oe(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function U(e){return Array.isArray(e)?e:[e]}function Mt(e){return X()}function Rt(e,t,n={}){const i=n,{eventFilter:r=Re}=i,o=Q(i,["eventFilter"]);return $(e,$t(r,t),o)}function It(e,t,n={}){const f=n,{eventFilter:r,initialState:o="active"}=f,i=Q(f,["eventFilter","initialState"]),{eventFilter:a,pause:s,resume:u,isActive:c}=At(r,{initialState:o});return{stop:Rt(e,t,H(F({},i),{eventFilter:a})),pause:s,resume:u,isActive:c}}function Dt(e,t={}){if(!Qe(e))return Je(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=oe(()=>({get(){return e.value[r]},set(o){var i;if((i=_(t.replaceRef))!=null?i:!0)if(Array.isArray(e.value)){const s=[...e.value];s[r]=o,e.value=s}else{const s=H(F({},e.value),{[r]:o});Object.setPrototypeOf(s,Object.getPrototypeOf(e.value)),e.value=s}else e.value[r]=o}}));return n}function ie(e,t=!0,n){Mt()?ne(e,n):t?e():re(e)}function Lt(e,t,n){return $(e,t,H(F({},n),{immediate:!0}))}const V=Ae?window:void 0;function N(e){var t;const n=_(e);return(t=n==null?void 0:n.$el)!=null?t:n}function L(...e){const t=[],n=()=>{t.forEach(s=>s()),t.length=0},r=(s,u,c,p)=>(s.addEventListener(u,c,p),()=>s.removeEventListener(u,c,p)),o=W(()=>{const s=U(_(e[0])).filter(u=>u!=null);return s.every(u=>typeof u!="string")?s:void 0}),i=Lt(()=>{var s,u;return[(u=(s=o.value)==null?void 0:s.map(c=>N(c)))!=null?u:[V].filter(c=>c!=null),U(_(o.value?e[1]:e[0])),U(xe(o.value?e[2]:e[1])),_(o.value?e[3]:e[2])]},([s,u,c,p])=>{if(n(),!(s!=null&&s.length)||!(u!=null&&u.length)||!(c!=null&&c.length))return;const f=Ct(p)?F({},p):p;t.push(...s.flatMap(l=>u.flatMap(d=>c.map(v=>r(l,d,v,f)))))},{flush:"post"}),a=()=>{i(),n()};return $e(n),a}function Ft(){const e=x(!1),t=X();return t&&ne(()=>{e.value=!0},t),e}function Ie(e){const t=Ft();return W(()=>(t.value,!!e()))}const kt=Symbol("vueuse-ssr-width");function Vt(){const e=Te()?xt(kt,null):null;return typeof e=="number"?e:void 0}function Nt(e,t={}){const{window:n=V,ssrWidth:r=Vt()}=t,o=Ie(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=x(typeof r=="number"),a=x(),s=x(!1),u=c=>{s.value=c.matches};return Pe(()=>{if(i.value){i.value=!o.value;const c=_(e).split(",");s.value=c.some(p=>{const f=p.includes("not all"),l=p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let v=!!(l||d);return l&&v&&(v=r>=Oe(l[1])),d&&v&&(v=r<=Oe(d[1])),f?!v:v});return}o.value&&(a.value=n.matchMedia(_(e)),s.value=a.value.matches)}),L(a,"change",u,{passive:!0}),W(()=>s.value)}const J=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},G="__vueuse_ssr_handlers__",zt=jt();function jt(){return G in J||(J[G]=J[G]||{}),J[G]}function De(e,t){return zt[e]||t}function Ht(e){return Nt("(prefers-color-scheme: dark)",e)}function Bt(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 Xt={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()}},_e="vueuse-storage";function Yt(e,t,n,r={}){var o;const{flush:i="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:p,window:f=V,eventFilter:l,onError:d=g=>{console.error(g)},initOnMounted:v}=r,h=(p?x:b)(typeof t=="function"?t():t),y=W(()=>_(e));if(!n)try{n=De("getDefaultStorage",()=>{var g;return(g=V)==null?void 0:g.localStorage})()}catch(g){d(g)}if(!n)return h;const w=_(t),S=Bt(w),T=(o=r.serializer)!=null?o:Xt[S],{pause:P,resume:M}=It(h,()=>m(h.value),{flush:i,deep:a,eventFilter:l});$(y,()=>C(),{flush:i}),f&&s&&ie(()=>{n instanceof Storage?L(f,"storage",C,{passive:!0}):L(f,_e,R),v&&C()}),v||C();function I(g,O){if(f){const A={key:y.value,oldValue:g,newValue:O,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",A):new CustomEvent(_e,{detail:A}))}}function m(g){try{const O=n.getItem(y.value);if(g==null)I(O,null),n.removeItem(y.value);else{const A=T.write(g);O!==A&&(n.setItem(y.value,A),I(O,A))}}catch(O){d(O)}}function E(g){const O=g?g.newValue:n.getItem(y.value);if(O==null)return u&&w!=null&&n.setItem(y.value,T.write(w)),w;if(!g&&c){const A=T.read(O);return typeof c=="function"?c(A,w):S==="object"&&!Array.isArray(A)?F(F({},w),A):A}else return typeof O!="string"?O:T.read(O)}function C(g){if(!(g&&g.storageArea!==n)){if(g&&g.key==null){h.value=w;return}if(!(g&&g.key!==y.value)){P();try{(g==null?void 0:g.newValue)!==T.write(h.value)&&(h.value=E(g))}catch(O){d(O)}finally{g?re(M):M()}}}}function R(g){C(g.detail)}return h}const Qt="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Jt(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=V,storage:i,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:u,emitAuto:c,disableTransition:p=!0}=e,f=F({auto:"",light:"light",dark:"dark"},e.modes||{}),l=Ht({window:o}),d=W(()=>l.value?"dark":"light"),v=u||(a==null?Me(r):Yt(a,r,i,{window:o,listenToStorageChanges:s})),h=W(()=>v.value==="auto"?d.value:v.value),y=De("updateHTMLAttrs",(P,M,I)=>{const m=typeof P=="string"?o==null?void 0:o.document.querySelector(P):N(P);if(!m)return;const E=new Set,C=new Set;let R=null;if(M==="class"){const O=I.split(/\s/g);Object.values(f).flatMap(A=>(A||"").split(/\s/g)).filter(Boolean).forEach(A=>{O.includes(A)?E.add(A):C.add(A)})}else R={key:M,value:I};if(E.size===0&&C.size===0&&R===null)return;let g;p&&(g=o.document.createElement("style"),g.appendChild(document.createTextNode(Qt)),o.document.head.appendChild(g));for(const O of E)m.classList.add(O);for(const O of C)m.classList.remove(O);R&&m.setAttribute(R.key,R.value),p&&(o.getComputedStyle(g).opacity,document.head.removeChild(g))});function w(P){var M;y(t,n,(M=f[P])!=null?M:P)}function S(P){e.onChanged?e.onChanged(P,w):w(P)}$(h,S,{flush:"post",immediate:!0}),ie(()=>S(h.value));const T=W({get(){return c?v.value:h.value},set(P){v.value=P}});return Object.assign(T,{store:v,system:d,state:h})}function yn(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=Jt(H(F({},e),{onChanged:(a,s)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,a==="dark",s,a):s(a)},modes:{dark:t,light:n}})),o=W(()=>r.system.value);return W({get(){return r.value==="dark"},set(a){const s=a?"dark":"light";o.value===s?r.value="auto":r.value=s}})}function wn(e,t={}){var n;const{pointerTypes:r,preventDefault:o,stopPropagation:i,exact:a,onMove:s,onEnd:u,onStart:c,initialValue:p,axis:f="both",draggingElement:l=V,containerElement:d,handle:v=e,buttons:h=[0]}=t,y=b((n=_(p))!=null?n:{x:0,y:0}),w=b(),S=m=>r?r.includes(m.pointerType):!0,T=m=>{_(o)&&m.preventDefault(),_(i)&&m.stopPropagation()},P=m=>{var E;if(!_(h).includes(m.button)||_(t.disabled)||!S(m)||_(a)&&m.target!==_(e))return;const C=_(d),R=(E=C==null?void 0:C.getBoundingClientRect)==null?void 0:E.call(C),g=_(e).getBoundingClientRect(),O={x:m.clientX-(C?g.left-R.left+C.scrollLeft:g.left),y:m.clientY-(C?g.top-R.top+C.scrollTop:g.top)};(c==null?void 0:c(O,m))!==!1&&(w.value=O,T(m))},M=m=>{if(_(t.disabled)||!S(m)||!w.value)return;const E=_(d),C=_(e).getBoundingClientRect();let{x:R,y:g}=y.value;(f==="x"||f==="both")&&(R=m.clientX-w.value.x,E&&(R=Math.min(Math.max(0,R),E.scrollWidth-C.width))),(f==="y"||f==="both")&&(g=m.clientY-w.value.y,E&&(g=Math.min(Math.max(0,g),E.scrollHeight-C.height))),y.value={x:R,y:g},s==null||s(y.value,m),T(m)},I=m=>{_(t.disabled)||!S(m)||w.value&&(w.value=void 0,u==null||u(y.value,m),T(m))};if(Ae){const m=()=>{var E;return{capture:(E=t.capture)!=null?E:!0,passive:!_(o)}};L(v,"pointerdown",P,m),L(l,"pointermove",M,m),L(l,"pointerup",I,m)}return H(F({},Dt(y)),{position:y,isDragging:W(()=>!!w.value),style:W(()=>`left:${y.value.x}px;top:${y.value.y}px;`)})}function Gt(e,t,n={}){const f=n,{window:r=V}=f,o=Q(f,["window"]);let i;const a=Ie(()=>r&&"ResizeObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},u=W(()=>{const l=_(e);return Array.isArray(l)?l.map(d=>N(d)):[N(l)]}),c=$(u,l=>{if(s(),a.value&&r){i=new ResizeObserver(t);for(const d of l)d&&i.observe(d,o)}},{immediate:!0,flush:"post"}),p=()=>{s(),c()};return $e(p),{isSupported:a,stop:p}}function Ut(e,t={width:0,height:0},n={}){const{window:r=V,box:o="content-box"}=n,i=W(()=>{var f,l;return(l=(f=N(e))==null?void 0:f.namespaceURI)==null?void 0:l.includes("svg")}),a=x(t.width),s=x(t.height),{stop:u}=Gt(e,([f])=>{const l=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&i.value){const d=N(e);if(d){const v=d.getBoundingClientRect();a.value=v.width,s.value=v.height}}else if(l){const d=U(l);a.value=d.reduce((v,{inlineSize:h})=>v+h,0),s.value=d.reduce((v,{blockSize:h})=>v+h,0)}else a.value=f.contentRect.width,s.value=f.contentRect.height},n);ie(()=>{const f=N(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=$(()=>N(e),f=>{a.value=f?t.width:0,s.value=f?t.height:0});function p(){u(),c()}return{width:a,height:s,stop:p}}const Kt={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 qt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:i=V,target:a=i,scroll:s=!0,eventFilter:u}=e;let c=null,p=0,f=0;const l=x(o.x),d=x(o.y),v=x(null),h=typeof t=="function"?t:Kt[t],y=m=>{const E=h(m);c=m,E&&([l.value,d.value]=E,v.value="mouse"),i&&(p=i.scrollX,f=i.scrollY)},w=m=>{if(m.touches.length>0){const E=h(m.touches[0]);E&&([l.value,d.value]=E,v.value="touch")}},S=()=>{if(!c||!i)return;const m=h(c);c instanceof MouseEvent&&m&&(l.value=m[0]+i.scrollX-p,d.value=m[1]+i.scrollY-f)},T=()=>{l.value=o.x,d.value=o.y},P=u?m=>u(()=>y(m),{}):m=>y(m),M=u?m=>u(()=>w(m),{}):m=>w(m),I=u?()=>u(()=>S(),{}):()=>S();if(a){const m={passive:!0};L(a,["mousemove","dragover"],P,m),n&&t!=="movement"&&(L(a,["touchstart","touchmove"],M,m),r&&L(a,"touchend",T,m)),s&&t==="page"&&L(i,"scroll",I,m)}return{x:l,y:d,sourceType:v}}function bn(e,t={}){const{handleOutside:n=!0,window:r=V}=t,o=t.type||"page",{x:i,y:a,sourceType:s}=qt(t),u=x(e!=null?e:r==null?void 0:r.document.body),c=x(0),p=x(0),f=x(0),l=x(0),d=x(0),v=x(0),h=x(!0);let y=()=>{};return r&&(y=$([u,i,a],()=>{const w=N(u);if(!w||!(w instanceof Element))return;const{left:S,top:T,width:P,height:M}=w.getBoundingClientRect();f.value=S+(o==="page"?r.pageXOffset:0),l.value=T+(o==="page"?r.pageYOffset:0),d.value=M,v.value=P;const I=i.value-f.value,m=a.value-l.value;h.value=P===0||M===0||I<0||m<0||I>P||m>M,(n||!h.value)&&(c.value=I,p.value=m)},{immediate:!0}),L(document,"mouseleave",()=>h.value=!0,{passive:!0})),{x:i,y:a,sourceType:s,elementX:c,elementY:p,elementPositionX:f,elementPositionY:l,elementHeight:d,elementWidth:v,isOutside:h,stop:y}}function On(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:i,currentList:a,containerRef:s}="itemHeight"in t?tn(t,e):en(t,e);return{list:a,scrollTo:o,containerProps:{ref:s,onScroll:()=>{i()},style:n},wrapperProps:r}}function Le(e){const t=x(null),n=Ut(t),r=b([]),o=x(e);return{state:b({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function Fe(e,t,n){return r=>{if(typeof n=="number")return Math.ceil(r/n);const{start:o=0}=e.value;let i=0,a=0;for(let s=o;s<t.value.length;s++){const u=n(s);if(i+=u,a=s,i>r)break}return a-o}}function ke(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let r=0,o=0;for(let i=0;i<e.value.length;i++){const a=t(i);if(r+=a,r>=n){o=i;break}}return o+1}}function Ve(e,t,n,r,{containerRef:o,state:i,currentList:a,source:s}){return()=>{const u=o.value;if(u){const c=n(e==="vertical"?u.scrollTop:u.scrollLeft),p=r(e==="vertical"?u.clientHeight:u.clientWidth),f=c-t,l=c+p+t;i.value={start:f<0?0:f,end:l>s.value.length?s.value.length:l},a.value=s.value.slice(i.value.start,i.value.end).map((d,v)=>({data:d,index:v+i.value.start}))}}}function Ne(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((o,i,a)=>o+e(a),0)}function ze(e,t,n,r){$([e.width,e.height,t,n],()=>{r()})}function je(e,t){return W(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,r,o)=>n+e(o),0))}const Zt={horizontal:"scrollLeft",vertical:"scrollTop"};function He(e,t,n,r){return o=>{r.value&&(r.value[Zt[e]]=n(o),t())}}function en(e,t){const n=Le(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,u={overflowX:"auto"},{itemWidth:c,overscan:p=5}=e,f=Fe(r,o,c),l=ke(o,c),d=Ve("horizontal",p,l,f,n),v=Ne(c,o),h=W(()=>v(r.value.start)),y=je(c,o);ze(a,t,s,d);const w=He("horizontal",d,v,s),S=W(()=>({style:{height:"100%",width:`${y.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}}));return{scrollTo:w,calculateRange:d,wrapperProps:S,containerStyle:u,currentList:i,containerRef:s}}function tn(e,t){const n=Le(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,u={overflowY:"auto"},{itemHeight:c,overscan:p=5}=e,f=Fe(r,o,c),l=ke(o,c),d=Ve("vertical",p,l,f,n),v=Ne(c,o),h=W(()=>v(r.value.start)),y=je(c,o);ze(a,t,s,d);const w=He("vertical",d,v,s),S=W(()=>({style:{width:"100%",height:`${y.value-h.value}px`,marginTop:`${h.value}px`}}));return{calculateRange:d,scrollTo:w,containerStyle:u,wrapperProps:S,currentList:i,containerRef:s}}export{vn as a,D as b,on as c,gt as d,k as e,an as f,fn as g,un as h,q as i,it as j,pn as k,dn as l,hn as m,mn as n,ln as o,cn as p,wn as q,sn as r,bn as s,Z as t,gn as u,L as v,On as w,Ut as x,yn as y};
@@ -1 +0,0 @@
1
- .loading[data-v-ec717468]{padding:40px}
@@ -1 +0,0 @@
1
- var l=(_,t,o)=>new Promise((c,i)=>{var m=e=>{try{r(o.next(e))}catch(s){i(s)}},n=e=>{try{r(o.throw(e))}catch(s){i(s)}},r=e=>e.done?c(e.value):Promise.resolve(e.value).then(m,n);r((o=o.apply(_,t)).next())});import{useRoute as x}from"./vue-router-D8EXeL0F.js";import{a as w,n as g,x as y}from"./index-B5dNOhMJ.js";import{a as E}from"./element-plus-DD5kVcxH.js";import"./vxe-CFTIhv1S.js";import{E as k}from"./extension-YQJ_fg-F.js";import{d as B,aB as u,c as v,o as C}from"./vue-DnfbZNhx.js";import{_ as I}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-B8dwQNlP.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-DVn-X0V4.js";import"./@element-plus-icons-vue-CKT2Xck5.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BSD1DCM1.js";const q={class:"loading"},R=B({__name:"auth",setup(_){return l(this,null,function*(){let t,o;const c=x(),i=new g,m=([t,o]=u(()=>i.getExtension().catch(()=>null)),t=yield t,o(),t),{adapters:n}=m?([t,o]=u(()=>new k(m).load()),t=yield t,o(),t):{},r=n==null?void 0:n.remote,e=w({}),s=a=>l(this,null,function*(){const h=`${r}/api/open/user/${a}`,p=yield y(h).catch(()=>null);return!p||!p.success?(yield E.alert("登录失败"),null):p.data}),f=c.query.token,d=f?([t,o]=u(()=>s(f)),t=yield t,o(),t):null;if(d)try{e==null||e.login(d);const a=c.query.redirect;location.href=decodeURIComponent(a||"/")}catch(a){location.reload()}return(a,h)=>(C(),v("div",q,"正在登录中..."))})}}),P=I(R,[["__scopeId","data-v-ec717468"]]);export{P as default};