@tresjs/core 5.0.0-next.5 → 5.0.0-next.6

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/tres.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @tresjs/core
3
- * version: v5.0.0-next.5
3
+ * version: v5.0.0-next.6
4
4
  * (c) 2025
5
5
  * description: Declarative ThreeJS using Vue Components
6
6
  * author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
@@ -8,11 +8,11 @@
8
8
  var Ao = Object.defineProperty;
9
9
  var wo = (e, t, n) => t in e ? Ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
10
10
  var C = (e, t, n) => wo(e, typeof t != "symbol" ? t + "" : t, n);
11
- import { reactive as bo, toValue as D, watch as Ot, onUnmounted as se, defineComponent as st, renderSlot as To, unref as Fe, ref as Oe, computed as ee, watchEffect as W, readonly as $t, shallowRef as ut, provide as Le, inject as Oo, isRef as Ee, useSlots as So, getCurrentInstance as zt, onMounted as Po, createElementBlock as Io, openBlock as Do, normalizeStyle as ko, normalizeClass as xo, createRenderer as Ro, h as Kt, Fragment as Fo } from "vue";
11
+ import { reactive as bo, toValue as D, watch as Ot, onUnmounted as se, defineComponent as st, renderSlot as To, unref as Fe, ref as Oe, computed as ee, watchEffect as W, readonly as $t, shallowRef as ut, isRef as Ee, useSlots as Oo, getCurrentInstance as zt, onMounted as So, createElementBlock as Po, openBlock as Io, normalizeStyle as Do, normalizeClass as ko, createRenderer as xo, h as Kt, provide as Xe, Fragment as Ro } from "vue";
12
12
  import * as Er from "three";
13
- import { Layers as Lo, Scene as vr, MathUtils as Mo, Vector3 as k, MeshBasicMaterial as yr, DoubleSide as No, Clock as Vo, WebGLRenderer as Cr, Mesh as Ke, Material as Bo, Vector2 as Z, Ray as at, SphereGeometry as Uo, Object3D as je, Matrix4 as Se, BufferAttribute as Ar, Triangle as wr, Line3 as Ho, Plane as We, Raycaster as $o, Quaternion as lt, Sphere as zo, Color as Me, PCFSoftShadowMap as Ko, ACESFilmicToneMapping as jo, PerspectiveCamera as Wo, ArrowHelper as Go, Line as Yo, BufferGeometry as jt, Float32BufferAttribute as Wt, LineBasicMaterial as qo, BackSide as Xo, HemisphereLightHelper as Zo, SpotLightHelper as Qo, PointLightHelper as Jo, DirectionalLightHelper as ei } from "three";
14
- import { useAsyncState as ti, whenever as Gt, tryOnScopeDispose as ni, createEventHook as ye, useRafFn as br, useDevicePixelRatio as ri, useTimeout as oi, unrefElement as ii, useWindowSize as si, useElementSize as ui, refDebounced as Yt, useFps as ai, useMemory as li } from "@vueuse/core";
15
- const ci = "@tresjs/core", fi = "module", di = "5.0.0-next.5", pi = "pnpm@10.6.3", hi = "Declarative ThreeJS using Vue Components", _i = "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)", mi = "MIT", gi = { type: "git", url: "git+https://github.com/Tresjs/tres.git" }, Ei = ["vue", "3d", "threejs", "three", "threejs-vue"], vi = !1, yi = { ".": { types: "./dist/index.d.ts", import: "./dist/tres.js" }, "./components": { types: "./dist/src/components/index.d.ts" }, "./composables": { types: "./dist/src/composables/index.d.ts" }, "./types": { types: "./dist/src/types/index.d.ts" }, "./utils": { types: "./dist/src/utils/index.d.ts" }, "./*": "./*" }, Ci = "./dist/tres.js", Ai = "./dist/tres.js", wi = "./dist/index.d.ts", bi = ["*.d.ts", "dist"], Ti = { access: "public" }, Oi = { dev: "pnpm --filter='./playground/vue' dev", "dev:nuxt": "pnpm --filter='./playground/nuxt' dev", build: "vite build", test: "vitest", "test:ci": "vitest run", "test:ui": "vitest --ui --coverage.enabled=true", release: "release-it", coverage: "vitest run --coverage", lint: "eslint .", "lint:fix": "eslint . --fix", typecheck: "vue-tsc --noEmit", "docs:dev": "vitepress dev docs", "docs:build": "vitepress build docs", "docs:serve": "vitepress serve docs", "docs:preview": "vitepress preview docs", "docs:contributors": "esno scripts/update-contributors.ts" }, Si = { three: ">=0.133", vue: ">=3.4" }, Pi = { "@alvarosabu/utils": "^3.2.0", "@pmndrs/pointer-events": "^6.6.17", "@vue/devtools-api": "^7.7.2", "@vueuse/core": "^12.5.0" }, Ii = { "@release-it/conventional-changelog": "^10.0.0", "@stackblitz/sdk": "^1.11.0", "@tresjs/cientos": "5.0.0-next.0", "@tresjs/eslint-config": "^1.4.0", "@types/three": "^0.177.0", "@typescript-eslint/eslint-plugin": "^8.23.0", "@typescript-eslint/parser": "^8.23.0", "@vitejs/plugin-vue": "^5.2.1", "@vitest/coverage-c8": "^0.33.0", "@vitest/coverage-v8": "^3.0.5", "@vitest/ui": "^3.0.5", "@vue/test-utils": "^2.4.6", eslint: "^9.19.0", "eslint-plugin-vue": "^9.32.0", esno: "^4.8.0", gsap: "^3.12.7", jsdom: "^26.0.0", kolorist: "^1.8.0", ohmyfetch: "^0.4.21", pathe: "^2.0.2", "release-it": "^18.1.2", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-copy": "^3.5.0", "rollup-plugin-visualizer": "^5.14.0", sponsorkit: "^16.3.0", three: "^0.177.0", unocss: "^65.4.3", unplugin: "^2.1.2", "unplugin-vue-components": "^28.0.0", vite: "^6.1.0", "vite-plugin-banner": "^0.8.0", "vite-plugin-dts": "4.5.4", "vite-plugin-inspect": "^10.1.0", "vite-plugin-require-transform": "^1.0.21", "vite-svg-loader": "^5.1.0", vitepress: "1.6.3", vitest: "3.0.5", vue: "3.5.17", "vue-demi": "^0.14.10", "vue-tsc": "^2.2.0" }, Di = {
13
+ import { Layers as Fo, Scene as vr, MathUtils as Mo, Vector3 as k, MeshBasicMaterial as yr, DoubleSide as Lo, Clock as No, WebGLRenderer as Cr, Mesh as ze, Material as Vo, Vector2 as Z, Ray as at, SphereGeometry as Bo, Object3D as Ke, Matrix4 as Se, BufferAttribute as Ar, Triangle as wr, Line3 as Uo, Plane as je, Raycaster as Ho, Quaternion as lt, Sphere as $o, Color as Me, PCFSoftShadowMap as zo, ACESFilmicToneMapping as Ko, PerspectiveCamera as jo, ArrowHelper as Wo, Line as Go, BufferGeometry as jt, Float32BufferAttribute as Wt, LineBasicMaterial as Yo, BackSide as qo, HemisphereLightHelper as Xo, SpotLightHelper as Zo, PointLightHelper as Qo, DirectionalLightHelper as Jo } from "three";
14
+ import { useAsyncState as ei, whenever as Gt, tryOnScopeDispose as ti, createEventHook as ye, useRafFn as br, useDevicePixelRatio as ni, useTimeout as ri, unrefElement as oi, useWindowSize as ii, useElementSize as si, refDebounced as Yt, createInjectionState as ui, useFps as ai, useMemory as li } from "@vueuse/core";
15
+ const ci = "@tresjs/core", fi = "module", di = "5.0.0-next.6", pi = "pnpm@10.6.3", hi = "Declarative ThreeJS using Vue Components", _i = "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)", mi = "MIT", gi = { type: "git", url: "git+https://github.com/Tresjs/tres.git" }, Ei = ["vue", "3d", "threejs", "three", "threejs-vue"], vi = !1, yi = { ".": { types: "./dist/index.d.ts", import: "./dist/tres.js" }, "./components": { types: "./dist/src/components/index.d.ts" }, "./composables": { types: "./dist/src/composables/index.d.ts" }, "./types": { types: "./dist/src/types/index.d.ts" }, "./utils": { types: "./dist/src/utils/index.d.ts" }, "./*": "./*" }, Ci = "./dist/tres.js", Ai = "./dist/tres.js", wi = "./dist/index.d.ts", bi = ["*.d.ts", "dist"], Ti = { access: "public" }, Oi = { dev: "pnpm --filter='./playground/vue' dev", "dev:nuxt": "pnpm --filter='./playground/nuxt' dev", build: "vite build", test: "vitest", "test:ci": "vitest run", "test:ui": "vitest --ui --coverage.enabled=true", release: "release-it", coverage: "vitest run --coverage", lint: "eslint .", "lint:fix": "eslint . --fix", typecheck: "vue-tsc --noEmit", "docs:dev": "vitepress dev docs", "docs:build": "vitepress build docs", "docs:serve": "vitepress serve docs", "docs:preview": "vitepress preview docs", "docs:contributors": "esno scripts/update-contributors.ts" }, Si = { three: ">=0.133", vue: ">=3.4" }, Pi = { "@alvarosabu/utils": "^3.2.0", "@pmndrs/pointer-events": "^6.6.17", "@vue/devtools-api": "^7.7.2", "@vueuse/core": "^12.5.0" }, Ii = { "@release-it/conventional-changelog": "^10.0.0", "@stackblitz/sdk": "^1.11.0", "@tresjs/cientos": "5.0.0-next.0", "@tresjs/eslint-config": "^1.4.0", "@types/three": "^0.177.0", "@typescript-eslint/eslint-plugin": "^8.23.0", "@typescript-eslint/parser": "^8.23.0", "@vitejs/plugin-vue": "^5.2.1", "@vitest/coverage-c8": "^0.33.0", "@vitest/coverage-v8": "^3.0.5", "@vitest/ui": "^3.0.5", "@vue/test-utils": "^2.4.6", eslint: "^9.19.0", "eslint-plugin-vue": "^9.32.0", esno: "^4.8.0", gsap: "^3.12.7", jsdom: "^26.0.0", kolorist: "^1.8.0", ohmyfetch: "^0.4.21", pathe: "^2.0.2", "release-it": "^18.1.2", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-copy": "^3.5.0", "rollup-plugin-visualizer": "^5.14.0", sponsorkit: "^16.3.0", three: "^0.177.0", unocss: "^65.4.3", unplugin: "^2.1.2", "unplugin-vue-components": "^28.0.0", vite: "^6.1.0", "vite-plugin-banner": "^0.8.0", "vite-plugin-dts": "4.5.4", "vite-plugin-inspect": "^10.1.0", "vite-plugin-require-transform": "^1.0.21", "vite-svg-loader": "^5.1.0", vitepress: "1.6.3", vitest: "3.0.5", vue: "3.5.17", "vue-demi": "^0.14.10", "vue-tsc": "^2.2.0" }, Di = {
16
16
  name: ci,
17
17
  type: fi,
18
18
  version: di,
@@ -82,13 +82,13 @@ function dt(e) {
82
82
  function Fi(e) {
83
83
  return dt(e) && "copy" in e && typeof e.copy == "function";
84
84
  }
85
- function Li(e) {
85
+ function Mi(e) {
86
86
  return !!(e != null && e.constructor);
87
87
  }
88
88
  function qt(e) {
89
- return e instanceof Lo;
89
+ return e instanceof Fo;
90
90
  }
91
- function Mi(e) {
91
+ function Li(e) {
92
92
  return U(e) && !!e.isPerspectiveCamera;
93
93
  }
94
94
  function Ni(e) {
@@ -115,14 +115,14 @@ function zi(e) {
115
115
  function Ki(e) {
116
116
  return $i(e) && "__tres" in e;
117
117
  }
118
- const ll = !0, Be = "[TresJS ▲ ■ ●] ";
118
+ const fl = !0, Ve = "[TresJS ▲ ■ ●] ";
119
119
  function Xt(...e) {
120
- typeof e[0] == "string" ? e[0] = Be + e[0] : e.unshift(Be), console.error(...e);
120
+ typeof e[0] == "string" ? e[0] = Ve + e[0] : e.unshift(Ve), console.error(...e);
121
121
  }
122
- function Ue(...e) {
123
- typeof e[0] == "string" ? e[0] = Be + e[0] : e.unshift(Be), console.warn(...e);
122
+ function Be(...e) {
123
+ typeof e[0] == "string" ? e[0] = Ve + e[0] : e.unshift(Ve), console.warn(...e);
124
124
  }
125
- function cl(e, t) {
125
+ function dl(e, t) {
126
126
  }
127
127
  const ji = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot", Wi = /* @__PURE__ */ Gi(ji);
128
128
  function Zt(e) {
@@ -195,7 +195,7 @@ function Xi(e) {
195
195
  opacity: 0.2,
196
196
  depthTest: !1,
197
197
  // So the highlight is always visible
198
- side: No
198
+ side: Lo
199
199
  // To e
200
200
  });
201
201
  return new ki(e.geometry.clone(), t);
@@ -211,9 +211,9 @@ function Qi(e) {
211
211
  function Qt(e) {
212
212
  Qi(e) && e.map && e.map.dispose(), e.dispose();
213
213
  }
214
- function He(e) {
214
+ function Ue(e) {
215
215
  var n, r;
216
- if (e.parent && ((n = e.removeFromParent) == null || n.call(e)), delete e.__tres, [...e.children].forEach((o) => He(o)), !(e instanceof vr)) {
216
+ if (e.parent && ((n = e.removeFromParent) == null || n.call(e)), delete e.__tres, [...e.children].forEach((o) => Ue(o)), !(e instanceof vr)) {
217
217
  const o = e;
218
218
  e && ((r = e.dispose) == null || r.call(e)), o.geometry && o.geometry.dispose(), Array.isArray(o.material) ? o.material.forEach((i) => Qt(i)) : o.material && Qt(o.material);
219
219
  }
@@ -334,7 +334,7 @@ function os(e, t, n) {
334
334
  percentage: 0
335
335
  });
336
336
  n != null && n.extensions && n.extensions(r);
337
- const i = D(t), s = ti(
337
+ const i = D(t), s = ei(
338
338
  (u) => new Promise((c, p) => {
339
339
  r.load(u || i || "", (f) => {
340
340
  c(f);
@@ -352,13 +352,13 @@ function os(e, t, n) {
352
352
  ), a = Ot(() => D(t), (u) => {
353
353
  if (u) {
354
354
  const c = s.state.value;
355
- c && typeof c == "object" && "scene" in c && c.scene && He(c.scene), s.execute(0, u);
355
+ c && typeof c == "object" && "scene" in c && c.scene && Ue(c.scene), s.execute(0, u);
356
356
  }
357
357
  });
358
358
  return se(() => {
359
359
  a();
360
360
  const u = s.state.value;
361
- u && typeof u == "object" && "scene" in u && u.scene && He(u.scene);
361
+ u && typeof u == "object" && "scene" in u && u.scene && Ue(u.scene);
362
362
  }), {
363
363
  ...s,
364
364
  load: (u) => {
@@ -367,7 +367,7 @@ function os(e, t, n) {
367
367
  progress: o
368
368
  };
369
369
  }
370
- const fl = /* @__PURE__ */ st({
370
+ const pl = /* @__PURE__ */ st({
371
371
  __name: "component",
372
372
  props: {
373
373
  loader: {},
@@ -401,7 +401,7 @@ const fl = /* @__PURE__ */ st({
401
401
  };
402
402
  return W(() => {
403
403
  e.aspectRatio.value && t.value.forEach((s) => {
404
- Mi(s) && (s.aspect = e.aspectRatio.value, s.updateProjectionMatrix());
404
+ Li(s) && (s.aspect = e.aspectRatio.value, s.updateProjectionMatrix());
405
405
  });
406
406
  }), {
407
407
  activeCamera: n,
@@ -417,7 +417,7 @@ function ss(e) {
417
417
  n.name && (t.nodes[n.name] = n), n.material && !t.materials[n.material.name] && (t.materials[n.material.name] = n.material), n.isMesh && !t.meshes[n.name] && (t.meshes[n.name] = n);
418
418
  }), t;
419
419
  }
420
- function dl(e) {
420
+ function hl(e) {
421
421
  return ee(() => ss(D(e)));
422
422
  }
423
423
  function tn() {
@@ -435,7 +435,7 @@ function tn() {
435
435
  return { on: (u, c = 0) => {
436
436
  e.set(u, { priority: c, addI: n++ });
437
437
  const p = () => i(u);
438
- return ni(p), r = !0, {
438
+ return ti(p), r = !0, {
439
439
  off: p
440
440
  };
441
441
  }, off: i, trigger: (...u) => (r && (o(), r = !1), Promise.all(
@@ -446,34 +446,29 @@ function tn() {
446
446
  return e.size;
447
447
  } };
448
448
  }
449
- const ht = Oe({}), _t = (e) => Object.assign(ht.value, e), us = (e, t) => {
450
- const n = new Vo();
451
- let r = e;
452
- const o = {
449
+ const ht = Oe({}), _t = (e) => Object.assign(ht.value, e), us = (e) => {
450
+ const t = new No(), n = {
453
451
  before: ye(),
454
452
  after: ye()
455
- }, { pause: i, resume: s, isActive: a } = br(() => {
456
- const p = () => ({
457
- delta: n.getDelta(),
458
- elapsed: n.getElapsedTime()
453
+ }, { pause: r, resume: o, isActive: i } = br(() => {
454
+ const l = () => ({
455
+ delta: t.getDelta(),
456
+ elapsed: t.elapsedTime
459
457
  });
460
- o.before.trigger(p()), r(t), o.after.trigger(p());
458
+ n.before.trigger(l()), e(), n.after.trigger(l());
461
459
  }, {
462
460
  immediate: !1
463
- }), l = () => {
464
- n.start(), s();
465
- }, u = () => {
466
- n.stop(), i();
467
- }, c = (p) => {
468
- r = p;
469
- };
461
+ });
470
462
  return {
471
- start: l,
472
- stop: u,
473
- isActive: a,
474
- onBeforeLoop: o.before.on,
475
- onLoop: o.after.on,
476
- replaceLoopFunction: c
463
+ start: () => {
464
+ t.start(), o();
465
+ },
466
+ stop: () => {
467
+ t.stop(), r();
468
+ },
469
+ isActive: i,
470
+ onBeforeLoop: n.before.on,
471
+ onLoop: n.after.on
477
472
  };
478
473
  };
479
474
  function as({
@@ -489,79 +484,86 @@ function as({
489
484
  canvas: t
490
485
  }) : new Cr({
491
486
  ...n,
492
- canvas: ii(t)
493
- }), a = Oe(D(n.renderMode) === "manual" ? 0 : 1), l = 60, u = ee(() => D(n.renderMode) === "on-demand" && a.value === 0), c = () => e.value.traverse((v) => {
494
- v instanceof Ke && v.material instanceof Bo && (v.material.needsUpdate = !0);
495
- }), p = (v = 1) => {
496
- u.value && (a.value = Math.min(l, a.value + v));
487
+ canvas: oi(t)
488
+ }), a = Oe(D(n.renderMode) === "manual" ? 0 : 1), l = 60, u = ee(() => D(n.renderMode) === "on-demand" && a.value === 0), c = () => e.value.traverse((E) => {
489
+ E instanceof ze && E.material instanceof Vo && (E.material.needsUpdate = !0);
490
+ }), p = (E = 1) => {
491
+ u.value && (a.value = Math.min(l, a.value + E));
497
492
  }, f = () => {
498
493
  if (D(n.renderMode) !== "manual")
499
494
  throw new Error("advance can only be called in manual render mode.");
500
495
  a.value = 1;
501
496
  }, _ = () => {
502
497
  D(n.renderMode) === "on-demand" && p();
503
- }, h = ee(() => D(n.renderMode) === "always"), E = (v) => U(v) && "isRenderer" in v && !!v.isRenderer, d = ye();
498
+ }, h = ee(() => D(n.renderMode) === "always"), v = (E) => U(E) && "isRenderer" in E && !!E.isRenderer, d = ye();
504
499
  let m = !1;
505
- E(s) && (s.init(), d.trigger(s));
506
- const w = ye(), b = us((v) => {
507
- o.activeCamera.value && a.value && (s.render(e.value, o.activeCamera.value), v());
508
- }, () => {
500
+ v(s) && (s.init(), d.trigger(s));
501
+ const w = ye(), A = () => {
509
502
  a.value = h.value ? 1 : Math.max(0, a.value - 1), w.trigger(s);
503
+ };
504
+ let b = (E) => {
505
+ o.activeCamera.value && (s.render(e.value, o.activeCamera.value), E());
506
+ };
507
+ const V = (E) => {
508
+ b = E;
509
+ }, P = us(() => {
510
+ a.value && b(A);
510
511
  });
511
- d.on(b.start), Ot([r.width, r.height], () => {
512
+ d.on(P.start), Ot([r.width, r.height], () => {
512
513
  s.setSize(r.width.value, r.height.value), !m && s.domElement.width && s.domElement.height && (d.trigger(s), m = !0), _();
513
514
  }, {
514
515
  immediate: !0
515
516
  });
516
- const { pixelRatio: V } = ri();
517
+ const { pixelRatio: T } = ni();
517
518
  W(() => {
518
- ns(s, V.value, D(n.dpr));
519
- }), D(n.renderMode) === "on-demand" && p(), D(n.renderMode) === "manual" && oi(100, {
519
+ ns(s, T.value, D(n.dpr));
520
+ }), D(n.renderMode) === "on-demand" && p(), D(n.renderMode) === "manual" && ri(100, {
520
521
  callback: f
521
522
  });
522
- const P = ee(() => {
523
- const v = D(n.clearColor), O = D(n.clearAlpha), T = typeof v == "string" && v.length === 9 && v.startsWith("#");
524
- return T && O !== void 0 && Ue(`clearColor with alpha (e.g. ${v}) and clearAlpha cannot both be set, using clearColor as source of truth`), T ? {
525
- alpha: Number.parseInt(v.slice(7, 9), 16) / 255,
526
- color: v.slice(0, 7)
523
+ const S = ee(() => {
524
+ const E = D(n.clearColor), x = D(n.clearAlpha), F = typeof E == "string" && E.length === 9 && E.startsWith("#");
525
+ return F && x !== void 0 && Be(`clearColor with alpha (e.g. ${E}) and clearAlpha cannot both be set, using clearColor as source of truth`), F ? {
526
+ alpha: Number.parseInt(E.slice(7, 9), 16) / 255,
527
+ color: E.slice(0, 7)
527
528
  } : {
528
- alpha: O,
529
- color: v
529
+ alpha: x,
530
+ color: E
530
531
  };
531
532
  });
532
533
  return W(() => {
533
- const v = P.value;
534
- v.color === void 0 || v.alpha === void 0 || s.setClearColor(v.color, v.alpha);
534
+ const E = S.value;
535
+ E.color === void 0 || E.alpha === void 0 || s.setClearColor(E.color, E.alpha);
535
536
  }), W(() => {
536
- const v = n.toneMapping;
537
- v && (s.toneMapping = v);
537
+ const E = n.toneMapping;
538
+ E && (s.toneMapping = E);
538
539
  }), W(() => {
539
- const v = n.toneMappingExposure;
540
- v && (s.toneMappingExposure = v);
540
+ const E = n.toneMappingExposure;
541
+ E && (s.toneMappingExposure = E);
541
542
  }), W(() => {
542
- const v = n.outputColorSpace;
543
- v && (s.outputColorSpace = v);
543
+ const E = n.outputColorSpace;
544
+ E && (s.outputColorSpace = E);
544
545
  }), W(() => {
545
- const v = n.shadows;
546
- v !== void 0 && (s.shadowMap.enabled = v, c());
546
+ const E = n.shadows;
547
+ E !== void 0 && (s.shadowMap.enabled = E, c());
547
548
  }), W(() => {
548
- const v = n.shadowMapType;
549
- v !== void 0 && (s.shadowMap.type = v, c());
549
+ const E = n.shadowMapType;
550
+ E !== void 0 && (s.shadowMap.type = E, c());
550
551
  }), se(() => {
551
552
  s.dispose(), "forceContextLoss" in s && s.forceContextLoss();
552
553
  }), {
553
- loop: b,
554
+ loop: P,
554
555
  instance: s,
555
556
  advance: f,
556
557
  onReady: d.on,
557
558
  onRender: w.on,
558
559
  invalidate: p,
559
560
  canBeInvalidated: u,
560
- mode: D(n.renderMode)
561
+ mode: D(n.renderMode),
562
+ replaceRenderFunction: V
561
563
  };
562
564
  }
563
565
  function ls(e, t, n = 10) {
564
- const r = D(e) ? si() : ui(ee(() => D(t).parentElement)), o = $t(Yt(r.width, n)), i = $t(Yt(r.height, n)), s = ee(() => o.value / i.value);
566
+ const r = D(e) ? ii() : si(ee(() => D(t).parentElement)), o = $t(Yt(r.width, n)), i = $t(Yt(r.height, n)), s = ee(() => o.value / i.value);
565
567
  return {
566
568
  height: i,
567
569
  width: o,
@@ -676,7 +678,7 @@ class cs {
676
678
  }
677
679
  }
678
680
  const Qe = new k();
679
- class L extends cs {
681
+ class M extends cs {
680
682
  constructor(n, r, o, i, s, a, l = s.object, u = l, c = {
681
683
  stopped: !r,
682
684
  stoppedImmediate: !1
@@ -818,10 +820,10 @@ class L extends cs {
818
820
  * for internal use
819
821
  */
820
822
  retarget(n) {
821
- return new L(this.type, this.bubbles, this.nativeEvent, this.internalPointer, this.intersection, this.camera, n, this.target, this.propagationState);
823
+ return new M(this.type, this.bubbles, this.nativeEvent, this.internalPointer, this.intersection, this.camera, n, this.target, this.propagationState);
822
824
  }
823
825
  }
824
- class $e extends L {
826
+ class He extends M {
825
827
  get deltaX() {
826
828
  return this.nativeEvent.deltaX;
827
829
  }
@@ -838,7 +840,7 @@ class $e extends L {
838
840
  * for internal use
839
841
  */
840
842
  retarget(t) {
841
- return new $e(this.nativeEvent, this.internalPointer, this.intersection, this.camera, t, this.target);
843
+ return new He(this.nativeEvent, this.internalPointer, this.intersection, this.camera, t, this.target);
842
844
  }
843
845
  }
844
846
  function N(e) {
@@ -877,10 +879,10 @@ function ds(e, t) {
877
879
  if (e.isVoidObject && t === "click" && ((r = e.parent) == null ? void 0 : r.__r3f) != null && (n = e.parent.__r3f.root.getState().onPointerMissed), e.__r3f != null && (n = e.__r3f.handlers[Rr[t]]), n != null)
878
880
  return [n];
879
881
  }
880
- const ps = 1e10, hs = new Uo(ps), nn = /* @__PURE__ */ new Map();
882
+ const ps = 1e10, hs = new Bo(ps), nn = /* @__PURE__ */ new Map();
881
883
  function Fr(e) {
882
884
  let t = nn.get(e);
883
- return t == null && (t = new Ke(hs), t.isVoidObject = !0, t.parent = e, t.pointerEventsOrder = -1 / 0, nn.set(e, t)), t;
885
+ return t == null && (t = new ze(hs), t.isVoidObject = !0, t.parent = e, t.pointerEventsOrder = -1 / 0, nn.set(e, t)), t;
884
886
  }
885
887
  function _s(e, t, n) {
886
888
  var o;
@@ -900,7 +902,7 @@ function ms(e, t, n) {
900
902
  function rn(e, t) {
901
903
  return t ? !e : e;
902
904
  }
903
- function Lr(e, t, n, r = !1, o, i, s) {
905
+ function Mr(e, t, n, r = !1, o, i, s) {
904
906
  const a = r || gs(e, t), l = t.pointerEvents ?? o, u = l ?? t.defaultPointerEvents ?? "listener", c = t.pointerEventsType ?? i ?? "all", p = t.pointerEventsOrder ?? s ?? 0, f = ms(a, u, c), _ = n.length;
905
907
  if (_ === 1)
906
908
  (f === !0 || typeof f == "function" && f(n[0])) && Je(n[0], t, u, c, p);
@@ -914,9 +916,9 @@ function Lr(e, t, n, r = !1, o, i, s) {
914
916
  }
915
917
  if (t.children.length === 0 || t.intersectChildren === !1)
916
918
  return;
917
- const h = t.interactableDescendants ?? t.children, E = h.length;
918
- for (let d = 0; d < E; d++)
919
- Lr(e, h[d], n, a, l, c, p);
919
+ const h = t.interactableDescendants ?? t.children, v = h.length;
920
+ for (let d = 0; d < v; d++)
921
+ Mr(e, h[d], n, a, l, c, p);
920
922
  }
921
923
  function gs(e, t) {
922
924
  var o;
@@ -973,15 +975,15 @@ function Cs(e, t, n) {
973
975
  }
974
976
  const _e = Symbol("buttonsDownTime"), et = Symbol("buttonsClickTime");
975
977
  globalThis.pointerEventspointerMap ?? (globalThis.pointerEventspointerMap = /* @__PURE__ */ new Map());
976
- je.prototype.setPointerCapture = function(e) {
978
+ Ke.prototype.setPointerCapture = function(e) {
977
979
  var t;
978
980
  (t = St(e)) == null || t.setCapture(this);
979
981
  };
980
- je.prototype.releasePointerCapture = function(e) {
982
+ Ke.prototype.releasePointerCapture = function(e) {
981
983
  const t = St(e);
982
984
  t == null || !t.hasCaptured(this) || t.setCapture(void 0);
983
985
  };
984
- je.prototype.hasPointerCapture = function(e) {
986
+ Ke.prototype.hasPointerCapture = function(e) {
985
987
  var t;
986
988
  return ((t = St(e)) == null ? void 0 : t.hasCaptured(this)) ?? !1;
987
989
  };
@@ -1049,7 +1051,7 @@ class As {
1049
1051
  this.enabled !== t && (!t && this.pointerCapture != null && ((o = this.parentReleasePointerCapture) == null || o.call(this), this.pointerCapture = void 0), this.enabled = t, r && this.commit(n, !1));
1050
1052
  }
1051
1053
  computeIntersection(t, n, r) {
1052
- return this.pointerCapture != null ? this.intersector.intersectPointerCapture(this.pointerCapture, r) : (this.intersector.startIntersection(r), Lr(t, n, [this]), this.intersector.finalizeIntersection(n));
1054
+ return this.pointerCapture != null ? this.intersector.intersectPointerCapture(this.pointerCapture, r) : (this.intersector.startIntersection(r), Mr(t, n, [this]), this.intersector.finalizeIntersection(n));
1053
1055
  }
1054
1056
  setIntersection(t) {
1055
1057
  this.intersection = t;
@@ -1057,20 +1059,20 @@ class As {
1057
1059
  commit(t, n) {
1058
1060
  var l;
1059
1061
  const r = this.getCamera(), o = this.prevEnabled ? this.prevIntersection : void 0, i = this.enabled ? this.intersection : void 0;
1060
- o != null && o.object != (i == null ? void 0 : i.object) && N(new L("pointerout", !0, t, this, o, r));
1062
+ o != null && o.object != (i == null ? void 0 : i.object) && N(new M("pointerout", !0, t, this, o, r));
1061
1063
  const s = this.pointerEntered;
1062
- this.pointerEntered = [], this.pointerEnteredHelper.length = 0, Mr(i == null ? void 0 : i.object, this.pointerEntered, s, this.pointerEnteredHelper);
1064
+ this.pointerEntered = [], this.pointerEnteredHelper.length = 0, Lr(i == null ? void 0 : i.object, this.pointerEntered, s, this.pointerEnteredHelper);
1063
1065
  const a = s.length;
1064
1066
  for (let u = 0; u < a; u++) {
1065
1067
  const c = s[u];
1066
- N(new L("pointerleave", !1, t, this, o, r, c));
1068
+ N(new M("pointerleave", !1, t, this, o, r, c));
1067
1069
  }
1068
- i != null && (o == null ? void 0 : o.object) != i.object && N(new L("pointerover", !0, t, this, i, r));
1070
+ i != null && (o == null ? void 0 : o.object) != i.object && N(new M("pointerover", !0, t, this, i, r));
1069
1071
  for (let u = this.pointerEnteredHelper.length - 1; u >= 0; u--) {
1070
1072
  const c = this.pointerEnteredHelper[u];
1071
- N(new L("pointerenter", !1, t, this, i, r, c));
1073
+ N(new M("pointerenter", !1, t, this, i, r, c));
1072
1074
  }
1073
- if (n && i != null && N(new L("pointermove", !0, t, this, i, r)), this.prevIntersection = this.intersection, this.prevEnabled = this.enabled, !this.wasMoved && this.intersector.isReady()) {
1075
+ if (n && i != null && N(new M("pointermove", !0, t, this, i, r)), this.prevIntersection = this.intersection, this.prevEnabled = this.enabled, !this.wasMoved && this.intersector.isReady()) {
1074
1076
  this.wasMoved = !0;
1075
1077
  const u = this.onFirstMove.length;
1076
1078
  for (let c = 0; c < u; c++)
@@ -1090,7 +1092,7 @@ class As {
1090
1092
  * just emitting a move event to the current intersection
1091
1093
  */
1092
1094
  emitMove(t) {
1093
- this.intersection != null && N(new L("pointermove", !0, t, this, this.intersection, this.getCamera()));
1095
+ this.intersection != null && N(new M("pointermove", !0, t, this, this.intersection, this.getCamera()));
1094
1096
  }
1095
1097
  down(t) {
1096
1098
  if (this.buttonsDown.add(t.button), !this.enabled)
@@ -1101,7 +1103,7 @@ class As {
1101
1103
  }
1102
1104
  if (this.intersection == null)
1103
1105
  return;
1104
- N(new L("pointerdown", !0, t, this, this.intersection, this.getCamera()));
1106
+ N(new M("pointerdown", !0, t, this, this.intersection, this.getCamera()));
1105
1107
  const { object: n } = this.intersection;
1106
1108
  n[_e] ?? (n[_e] = /* @__PURE__ */ new Map()), n[_e].set(t.button, t.timeStamp), this.buttonsDownTime.set(t.button, t.timeStamp);
1107
1109
  }
@@ -1117,15 +1119,15 @@ class As {
1117
1119
  const { clickThesholdMs: n, contextMenuButton: r = 2, dblClickThresholdMs: o = 500, clickThresholdMs: i = n ?? 300 } = this.options;
1118
1120
  this.pointerCapture = void 0;
1119
1121
  const s = ws(this.buttonsDownTime, this.intersection.object[_e], t.button, t.timeStamp, i), a = this.getCamera();
1120
- if (s && t.button === r && N(new L("contextmenu", !0, t, this, this.intersection, a)), N(new L("pointerup", !0, t, this, this.intersection, a)), !s || t.button === r)
1122
+ if (s && t.button === r && N(new M("contextmenu", !0, t, this, this.intersection, a)), N(new M("pointerup", !0, t, this, this.intersection, a)), !s || t.button === r)
1121
1123
  return;
1122
- N(new L("click", !0, t, this, this.intersection, a));
1124
+ N(new M("click", !0, t, this, this.intersection, a));
1123
1125
  const { object: l } = this.intersection, u = l[et] ?? (l[et] = /* @__PURE__ */ new Map()), c = u.get(t.button);
1124
1126
  if (c == null || t.timeStamp - c > o) {
1125
1127
  u.set(t.button, t.timeStamp);
1126
1128
  return;
1127
1129
  }
1128
- N(new L("dblclick", !0, t, this, this.intersection, a)), u.delete(t.button);
1130
+ N(new M("dblclick", !0, t, this, this.intersection, a)), u.delete(t.button);
1129
1131
  }
1130
1132
  cancel(t) {
1131
1133
  if (this.enabled) {
@@ -1133,7 +1135,7 @@ class As {
1133
1135
  this.onFirstMove.push(this.cancel.bind(this, t));
1134
1136
  return;
1135
1137
  }
1136
- this.intersection != null && N(new L("pointercancel", !0, t, this, this.intersection, this.getCamera()));
1138
+ this.intersection != null && N(new M("pointercancel", !0, t, this, this.intersection, this.getCamera()));
1137
1139
  }
1138
1140
  }
1139
1141
  wheel(t, n, r = !1) {
@@ -1145,7 +1147,7 @@ class As {
1145
1147
  }
1146
1148
  r || (this.wheelIntersection = this.computeIntersection("wheel", t, n));
1147
1149
  const o = r ? this.intersection : this.wheelIntersection;
1148
- o != null && N(new $e(n, this, o, this.getCamera()));
1150
+ o != null && N(new He(n, this, o, this.getCamera()));
1149
1151
  }
1150
1152
  emitWheel(t, n = !1) {
1151
1153
  if (!this.enabled)
@@ -1155,18 +1157,18 @@ class As {
1155
1157
  return;
1156
1158
  }
1157
1159
  const r = n ? this.intersection : this.wheelIntersection;
1158
- r != null && N(new $e(t, this, r, this.getCamera()));
1160
+ r != null && N(new He(t, this, r, this.getCamera()));
1159
1161
  }
1160
1162
  exit(t) {
1161
1163
  var n;
1162
1164
  this.wasMoved && (this.pointerCapture != null && ((n = this.parentReleasePointerCapture) == null || n.call(this), this.pointerCapture = void 0), this.intersection = void 0, this.commit(t, !1)), this.onFirstMove.length = 0, this.wasMoved = !1;
1163
1165
  }
1164
1166
  }
1165
- function Mr(e, t, n, r) {
1167
+ function Lr(e, t, n, r) {
1166
1168
  if (e == null)
1167
1169
  return;
1168
1170
  const o = n.indexOf(e);
1169
- o != -1 ? n.splice(o, 1) : r.push(e), t.push(e), Mr(e.parent, t, n, r);
1171
+ o != -1 ? n.splice(o, 1) : r.push(e), t.push(e), Lr(e.parent, t, n, r);
1170
1172
  }
1171
1173
  function ws(e, t, n, r, o) {
1172
1174
  if (t == null)
@@ -1203,26 +1205,26 @@ function Os(e, t) {
1203
1205
  t(s, s + 1, s + 2);
1204
1206
  }
1205
1207
  new Se();
1206
- new Ho();
1208
+ new Uo();
1207
1209
  new k();
1208
- new We();
1210
+ new je();
1209
1211
  new at();
1210
1212
  new Z();
1211
1213
  new k(0, 0, 0), new k(0, 0, 1);
1212
1214
  const ln = new Se(), Ss = new k();
1213
1215
  new k(0, 0, -1);
1214
- new We();
1216
+ new je();
1215
1217
  const cn = new Z(), Ps = new k();
1216
1218
  class Is {
1217
1219
  constructor(t, n) {
1218
1220
  C(this, "prepareTransformation");
1219
1221
  C(this, "options");
1220
- C(this, "raycaster", new $o());
1222
+ C(this, "raycaster", new Ho());
1221
1223
  C(this, "cameraQuaternion", new lt());
1222
1224
  C(this, "fromPosition", new k());
1223
1225
  C(this, "fromQuaternion", new lt());
1224
1226
  C(this, "coords", new Z());
1225
- C(this, "viewPlane", new We());
1227
+ C(this, "viewPlane", new je());
1226
1228
  C(this, "intersects", []);
1227
1229
  C(this, "pointerEventsOrders", []);
1228
1230
  this.prepareTransformation = t, this.options = n;
@@ -1242,7 +1244,7 @@ class Is {
1242
1244
  return t;
1243
1245
  t.object.updateWorldMatrix(!0, !1), _s(this.viewPlane, t, t.object.matrixWorld);
1244
1246
  let s = t.uv;
1245
- return t.object instanceof Ke && Ts(cn, i, t.object) && (s = cn.clone()), {
1247
+ return t.object instanceof ze && Ts(cn, i, t.object) && (s = cn.clone()), {
1246
1248
  ...t,
1247
1249
  details: {
1248
1250
  ...o,
@@ -1291,8 +1293,8 @@ new Z();
1291
1293
  new Se();
1292
1294
  new k();
1293
1295
  new lt();
1294
- new We();
1295
- new zo();
1296
+ new je();
1297
+ new $o();
1296
1298
  new k();
1297
1299
  new k();
1298
1300
  new k();
@@ -1326,59 +1328,59 @@ function Rs(e, t, n, r) {
1326
1328
  );
1327
1329
  }
1328
1330
  function Fs(e, t, n, r, o, i, s = {}) {
1329
- const a = (s == null ? void 0 : s.forwardPointerCapture) ?? !0, l = /* @__PURE__ */ new Map(), u = s.pointerTypePrefix ?? "forward-", c = (v, O) => {
1330
- let T = l.get(v.pointerId);
1331
- return T != null || (T = new As(ks(), `${u}${v.pointerType}`, v.pointerState, new Is((R, F) => (r(R, F), t()), s), t, void 0, a ? o.bind(null, v.pointerId) : void 0, a ? i.bind(null, v.pointerId) : void 0, s), O != "move" && O != "wheel" && (T.setIntersection(T.computeIntersection("pointer", n, v)), T.commit(v, !1)), l.set(v.pointerId, T)), T;
1332
- }, p = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), _ = [], h = [], E = (v, O, T) => {
1333
- switch (v) {
1331
+ const a = (s == null ? void 0 : s.forwardPointerCapture) ?? !0, l = /* @__PURE__ */ new Map(), u = s.pointerTypePrefix ?? "forward-", c = (T, S) => {
1332
+ let E = l.get(T.pointerId);
1333
+ return E != null || (E = new As(ks(), `${u}${T.pointerType}`, T.pointerState, new Is((x, F) => (r(x, F), t()), s), t, void 0, a ? o.bind(null, T.pointerId) : void 0, a ? i.bind(null, T.pointerId) : void 0, s), S != "move" && S != "wheel" && (E.setIntersection(E.computeIntersection("pointer", n, T)), E.commit(T, !1)), l.set(T.pointerId, E)), E;
1334
+ }, p = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), _ = [], h = [], v = (T, S, E) => {
1335
+ switch (T) {
1334
1336
  case "move":
1335
- T.move(n, O);
1337
+ E.move(n, S);
1336
1338
  return;
1337
1339
  case "wheel":
1338
- T.wheel(n, O);
1340
+ E.wheel(n, S);
1339
1341
  return;
1340
1342
  case "cancel":
1341
- T.cancel(O);
1343
+ E.cancel(S);
1342
1344
  return;
1343
1345
  case "down":
1344
- if (!fn(O))
1346
+ if (!fn(S))
1345
1347
  return;
1346
- T.down(O);
1348
+ E.down(S);
1347
1349
  return;
1348
1350
  case "up":
1349
- if (!fn(O))
1351
+ if (!fn(S))
1350
1352
  return;
1351
- T.up(O);
1353
+ E.up(S);
1352
1354
  return;
1353
1355
  case "exit":
1354
- f.delete(T), p.delete(T), T.exit(O);
1356
+ f.delete(E), p.delete(E), E.exit(S);
1355
1357
  return;
1356
1358
  }
1357
- }, d = (v, O) => {
1358
- const T = c(O, v);
1359
- v === "move" && f.set(T, O), v === "wheel" && p.set(T, O), s.batchEvents ?? !0 ? h.push({ type: v, event: O }) : E(v, O, T);
1359
+ }, d = (T, S) => {
1360
+ const E = c(S, T);
1361
+ T === "move" && f.set(E, S), T === "wheel" && p.set(E, S), s.batchEvents ?? !0 ? h.push({ type: T, event: S }) : v(T, S, E);
1360
1362
  }, m = d.bind(null, "move"), w = d.bind(null, "cancel"), A = d.bind(null, "down"), b = d.bind(null, "up"), V = d.bind(null, "wheel"), P = d.bind(null, "exit");
1361
1363
  return e.addEventListener("pointermove", m), e.addEventListener("pointercancel", w), e.addEventListener("pointerdown", A), e.addEventListener("pointerup", b), e.addEventListener("wheel", V), e.addEventListener("pointerleave", P), {
1362
1364
  destroy() {
1363
1365
  e.removeEventListener("pointermove", m), e.removeEventListener("pointercancel", w), e.removeEventListener("pointerdown", A), e.removeEventListener("pointerup", b), e.removeEventListener("wheel", V), e.removeEventListener("pointerleave", P), f.clear(), p.clear();
1364
1366
  },
1365
1367
  update() {
1366
- const v = h.length;
1367
- for (let O = 0; O < v; O++) {
1368
- const { type: T, event: R } = h[O], F = c(R, T);
1369
- if (T === "move" && (_.push(F), f.get(F) != R)) {
1370
- F.emitMove(R);
1368
+ const T = h.length;
1369
+ for (let S = 0; S < T; S++) {
1370
+ const { type: E, event: x } = h[S], F = c(x, E);
1371
+ if (E === "move" && (_.push(F), f.get(F) != x)) {
1372
+ F.emitMove(x);
1371
1373
  continue;
1372
1374
  }
1373
- if (T === "wheel" && p.get(F) != R) {
1374
- F.emitWheel(R);
1375
+ if (E === "wheel" && p.get(F) != x) {
1376
+ F.emitWheel(x);
1375
1377
  continue;
1376
1378
  }
1377
- E(T, R, F);
1379
+ v(E, x, F);
1378
1380
  }
1379
1381
  if (h.length = 0, s.intersectEveryFrame ?? !1)
1380
- for (const [O, T] of f.entries())
1381
- _.includes(O) || O.move(n, T);
1382
+ for (const [S, E] of f.entries())
1383
+ _.includes(S) || S.move(n, E);
1382
1384
  _.length = 0;
1383
1385
  }
1384
1386
  };
@@ -1386,7 +1388,7 @@ function Fs(e, t, n, r, o, i, s = {}) {
1386
1388
  function fn(e) {
1387
1389
  return e.button != null;
1388
1390
  }
1389
- function Ls({
1391
+ function Ms({
1390
1392
  canvas: e,
1391
1393
  contextParts: { scene: t, camera: n, renderer: r }
1392
1394
  }) {
@@ -1397,12 +1399,12 @@ function Ls({
1397
1399
  onPointerMissed: l.on
1398
1400
  };
1399
1401
  }
1400
- function Ms({
1402
+ const Ls = "useTres", [Ns, Vs] = ui(({
1401
1403
  scene: e,
1402
1404
  canvas: t,
1403
1405
  windowSize: n,
1404
1406
  rendererOptions: r
1405
- }) {
1407
+ }) => {
1406
1408
  const o = ut(e), i = ls(n, t), s = is({ sizes: i }), a = as(
1407
1409
  {
1408
1410
  scene: o,
@@ -1410,7 +1412,7 @@ function Ms({
1410
1412
  options: r,
1411
1413
  contextParts: { sizes: i, camera: s }
1412
1414
  }
1413
- ), l = Ls({
1415
+ ), l = Ms({
1414
1416
  canvas: t,
1415
1417
  contextParts: { scene: o, camera: s, renderer: a }
1416
1418
  }), u = {
@@ -1422,17 +1424,20 @@ function Ms({
1422
1424
  extend: _t,
1423
1425
  events: l
1424
1426
  };
1425
- return Le("useTres", u), u.scene.value.__tres = {
1427
+ return u.scene.value.__tres = {
1426
1428
  root: u
1427
1429
  }, u;
1428
- }
1429
- function Nr() {
1430
- const e = Oo("useTres");
1430
+ }, {
1431
+ injectionKey: "useTres"
1432
+ }), Nr = () => {
1433
+ const e = Vs();
1431
1434
  if (!e)
1432
- throw new Error("useTresContext must be used together with useTresContextProvider");
1435
+ throw new Error(`useTresContext must be used together with useTresContextProvider.
1436
+ You probably tried to use it above or on the same level as a TresCanvas component.
1437
+ It should be used in child components of a TresCanvas instance.`);
1433
1438
  return e;
1434
- }
1435
- function Ns() {
1439
+ };
1440
+ function Bs() {
1436
1441
  const { scene: e, renderer: t, camera: n, sizes: r, controls: o, extend: i, events: s } = Nr();
1437
1442
  return {
1438
1443
  scene: e,
@@ -1446,14 +1451,14 @@ function Ns() {
1446
1451
  advance: t.advance
1447
1452
  };
1448
1453
  }
1449
- const pl = () => {
1450
- const e = Ns(), { renderer: t } = Nr(), n = tn(), r = tn();
1454
+ const _l = () => {
1455
+ const e = Bs(), { renderer: t } = Nr(), n = tn(), r = tn();
1451
1456
  t.loop.onBeforeLoop((i) => {
1452
1457
  n.trigger({ ...e, ...i });
1453
1458
  }), t.loop.onLoop((i) => {
1454
1459
  r.trigger({ ...e, ...i });
1455
1460
  });
1456
- const o = t.loop.replaceLoopFunction;
1461
+ const o = t.replaceRenderFunction;
1457
1462
  return {
1458
1463
  stop: t.loop.stop,
1459
1464
  start: t.loop.start,
@@ -1463,7 +1468,7 @@ const pl = () => {
1463
1468
  render: o
1464
1469
  };
1465
1470
  };
1466
- function Vs(e, t = {}, n = {}) {
1471
+ function Us(e, t = {}, n = {}) {
1467
1472
  let r = e;
1468
1473
  const o = (a) => {
1469
1474
  r = a;
@@ -1482,7 +1487,7 @@ function Vs(e, t = {}, n = {}) {
1482
1487
  };
1483
1488
  return i = new Proxy({}, s), i;
1484
1489
  }
1485
- const Bs = [
1490
+ const Hs = [
1486
1491
  "onClick",
1487
1492
  "onContextmenu",
1488
1493
  "onPointermove",
@@ -1496,7 +1501,7 @@ const Bs = [
1496
1501
  "onPointercancel",
1497
1502
  "onLostpointercapture",
1498
1503
  "onWheel"
1499
- ], Us = {
1504
+ ], $s = {
1500
1505
  onClick: "click",
1501
1506
  onContextmenu: "contextmenu",
1502
1507
  onPointermove: "pointermove",
@@ -1510,7 +1515,7 @@ const Bs = [
1510
1515
  onPointercancel: "pointercancel",
1511
1516
  onLostpointercapture: "lostpointercapture",
1512
1517
  onWheel: "wheel"
1513
- }, dn = (e) => Bs.includes(e), Hs = (e) => {
1518
+ }, dn = (e) => Hs.includes(e), zs = (e) => {
1514
1519
  const t = e.scene.value;
1515
1520
  function n(u, c, p, f) {
1516
1521
  if (f || (f = {}), f.args || (f.args = []), u === "template" || Wi(u))
@@ -1520,28 +1525,28 @@ const Bs = [
1520
1525
  (!U(f.object) || Ee(f.object)) && Xt(
1521
1526
  "Tres primitives need an 'object' prop, whose value is an object or shallowRef<object>"
1522
1527
  ), _ = f.object.type;
1523
- const E = {};
1524
- h = Vs(
1528
+ const v = {};
1529
+ h = Us(
1525
1530
  f.object,
1526
1531
  {
1527
1532
  object: (m) => m,
1528
1533
  isPrimitive: () => !0,
1529
- __tres: () => E
1534
+ __tres: () => v
1530
1535
  },
1531
1536
  {
1532
1537
  object: (m, w, A, b) => {
1533
1538
  rs(m, A, b, { patchProp: i, remove: o, insert: r }, e);
1534
1539
  },
1535
1540
  __tres: (m) => {
1536
- Object.assign(E, m);
1541
+ Object.assign(v, m);
1537
1542
  }
1538
1543
  }
1539
1544
  );
1540
1545
  } else {
1541
- const E = ht.value[_];
1542
- E || Xt(
1546
+ const v = ht.value[_];
1547
+ v || Xt(
1543
1548
  `${_} is not defined on the THREE namespace. Use extend to add it to the catalog.`
1544
- ), h = new E(...f.args);
1549
+ ), h = new v(...f.args);
1545
1550
  }
1546
1551
  return h ? (ie(h) && (f != null && f.position || h.position.set(3, 3, 3), f != null && f.lookAt || h.lookAt(0, 0, 0)), h = Q(h, {
1547
1552
  ...Ki(h) ? h.__tres : {},
@@ -1560,13 +1565,13 @@ const Bs = [
1560
1565
  u = ue(p), c = ue(f), ie(u) && ((_ = e.camera) == null || _.registerCamera(u)), p.__tres.attach ? es(f, p, p.__tres.attach) : ft(u) && ft(f) && (f.add(u), u.dispatchEvent({ type: "added" })), p.__tres.parent = f, f.__tres.objects && !f.__tres.objects.includes(p) && f.__tres.objects.push(p);
1561
1566
  }
1562
1567
  function o(u, c) {
1563
- var h, E;
1568
+ var h, v;
1564
1569
  if (!u)
1565
1570
  return;
1566
1571
  c = ct(c) ? "default" : c;
1567
1572
  const p = (h = u.__tres) == null ? void 0 : h.dispose;
1568
1573
  ct(p) || (p === null ? c = !1 : c = p);
1569
- const f = (E = u.__tres) == null ? void 0 : E.primitive, _ = c === "default" ? !f : !!c;
1574
+ const f = (v = u.__tres) == null ? void 0 : v.primitive, _ = c === "default" ? !f : !!c;
1570
1575
  if (u.__tres && "objects" in u.__tres && [...u.__tres.objects].forEach((d) => o(d, c)), _ && u.children && [...u.children].forEach((d) => o(d, c)), Dr(u, e), kr(u, e), _ && !Hi(u)) {
1571
1576
  if (q(c))
1572
1577
  c(u);
@@ -1592,18 +1597,18 @@ const Bs = [
1592
1597
  u.__tres || (u = Q(u, {}, e)), u.__tres.dispose = f;
1593
1598
  return;
1594
1599
  }
1595
- dn(c) && q(f) && u.addEventListener(Us[c], f);
1596
- let E = Ze(h), d = _ == null ? void 0 : _[E];
1600
+ dn(c) && q(f) && u.addEventListener($s[c], f);
1601
+ let v = Ze(h), d = _ == null ? void 0 : _[v];
1597
1602
  if (h === "args") {
1598
- const b = u, V = p ?? [], P = f ?? [], v = ((A = u.__tres) == null ? void 0 : A.type) || u.type;
1599
- if (v && V.length && !Yi(V, P)) {
1600
- const O = new ht.value[v](...f), T = Object.getOwnPropertyDescriptors(O);
1601
- Object.entries(T).forEach(([R, F]) => {
1602
- if (!(!F.writable && !F.set) && R in b)
1603
+ const b = u, V = p ?? [], P = f ?? [], T = ((A = u.__tres) == null ? void 0 : A.type) || u.type;
1604
+ if (T && V.length && !Yi(V, P)) {
1605
+ const S = new ht.value[T](...f), E = Object.getOwnPropertyDescriptors(S);
1606
+ Object.entries(E).forEach(([x, F]) => {
1607
+ if (!(!F.writable && !F.set) && x in b)
1603
1608
  try {
1604
- b[R] = O[R];
1609
+ b[x] = S[x];
1605
1610
  } catch (Ie) {
1606
- console.warn(`Could not set property ${R} on ${v}:`, Ie);
1611
+ console.warn(`Could not set property ${x} on ${T}:`, Ie);
1607
1612
  }
1608
1613
  }), _ = b;
1609
1614
  }
@@ -1621,21 +1626,21 @@ const Bs = [
1621
1626
  if (h.includes("-") && d === void 0) {
1622
1627
  d = _;
1623
1628
  for (const b of h.split("-"))
1624
- E = h = Ze(b), _ = d, d = d == null ? void 0 : d[h];
1629
+ v = h = Ze(b), _ = d, d = d == null ? void 0 : d[h];
1625
1630
  }
1626
1631
  let m = f;
1627
1632
  if (m === "" && (m = !0), q(d)) {
1628
- dn(c) || (Tr(m) ? u[E](...m) : u[E](m)), E.startsWith("on") && q(m) && (_[E] = m);
1633
+ dn(c) || (Tr(m) ? u[v](...m) : u[v](m)), v.startsWith("on") && q(m) && (_[v] = m);
1629
1634
  return;
1630
1635
  }
1631
- qt(d) && qt(m) ? d.mask = m.mask : Sr(d) && Ri(m) ? d.set(m) : Fi(d) && Li(m) && d.constructor === m.constructor ? d.copy(m) : dt(d) && Array.isArray(m) ? "fromArray" in d && typeof d.fromArray == "function" ? d.fromArray(m) : d.set(...m) : dt(d) && typeof m == "number" ? "setScalar" in d && typeof d.setScalar == "function" ? d.setScalar(m) : d.set(m) : _[E] = m, ie(u) && u.updateProjectionMatrix(), Ir(u);
1636
+ qt(d) && qt(m) ? d.mask = m.mask : Sr(d) && Ri(m) ? d.set(m) : Fi(d) && Mi(m) && d.constructor === m.constructor ? d.copy(m) : dt(d) && Array.isArray(m) ? "fromArray" in d && typeof d.fromArray == "function" ? d.fromArray(m) : d.set(...m) : dt(d) && typeof m == "number" ? "setScalar" in d && typeof d.setScalar == "function" ? d.setScalar(m) : d.set(m) : _[v] = m, ie(u) && u.updateProjectionMatrix(), Ir(u);
1632
1637
  }
1633
1638
  function s(u) {
1634
1639
  var c;
1635
1640
  return ((c = u == null ? void 0 : u.__tres) == null ? void 0 : c.parent) || null;
1636
1641
  }
1637
1642
  function a(u) {
1638
- const c = Q(new je(), { type: "Comment" }, e);
1643
+ const c = Q(new Ke(), { type: "Comment" }, e);
1639
1644
  return c.name = u, c;
1640
1645
  }
1641
1646
  function l(u) {
@@ -1660,26 +1665,26 @@ const Bs = [
1660
1665
  insertStaticContent: () => void 0
1661
1666
  };
1662
1667
  };
1663
- var $s = Object.create, Vr = Object.defineProperty, zs = Object.getOwnPropertyDescriptor, Pt = Object.getOwnPropertyNames, Ks = Object.getPrototypeOf, js = Object.prototype.hasOwnProperty, Ws = (e, t) => function() {
1668
+ var Ks = Object.create, Vr = Object.defineProperty, js = Object.getOwnPropertyDescriptor, Pt = Object.getOwnPropertyNames, Ws = Object.getPrototypeOf, Gs = Object.prototype.hasOwnProperty, Ys = (e, t) => function() {
1664
1669
  return e && (t = (0, e[Pt(e)[0]])(e = 0)), t;
1665
- }, Gs = (e, t) => function() {
1670
+ }, qs = (e, t) => function() {
1666
1671
  return t || (0, e[Pt(e)[0]])((t = { exports: {} }).exports, t), t.exports;
1667
- }, Ys = (e, t, n, r) => {
1672
+ }, Xs = (e, t, n, r) => {
1668
1673
  if (t && typeof t == "object" || typeof t == "function")
1669
1674
  for (let o of Pt(t))
1670
- !js.call(e, o) && o !== n && Vr(e, o, { get: () => t[o], enumerable: !(r = zs(t, o)) || r.enumerable });
1675
+ !Gs.call(e, o) && o !== n && Vr(e, o, { get: () => t[o], enumerable: !(r = js(t, o)) || r.enumerable });
1671
1676
  return e;
1672
- }, qs = (e, t, n) => (n = e != null ? $s(Ks(e)) : {}, Ys(
1677
+ }, Zs = (e, t, n) => (n = e != null ? Ks(Ws(e)) : {}, Xs(
1673
1678
  // If the importer is in node compatibility mode or this is not an ESM
1674
1679
  // file that has been converted to a CommonJS file using a Babel-
1675
1680
  // compatible transform (i.e. "__esModule" has not been set), then set
1676
1681
  // "default" to the CommonJS "module.exports" for node compatibility.
1677
1682
  Vr(n, "default", { value: e, enumerable: !0 }),
1678
1683
  e
1679
- )), Pe = Ws({
1684
+ )), Pe = Ys({
1680
1685
  "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
1681
1686
  }
1682
- }), Xs = Gs({
1687
+ }), Qs = qs({
1683
1688
  "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e, t) {
1684
1689
  Pe(), t.exports = r;
1685
1690
  function n(i) {
@@ -1695,8 +1700,8 @@ var $s = Object.create, Vr = Object.defineProperty, zs = Object.getOwnPropertyDe
1695
1700
  return i.proto ? c : u;
1696
1701
  function l(p, f) {
1697
1702
  const _ = Object.keys(p), h = new Array(_.length);
1698
- for (let E = 0; E < _.length; E++) {
1699
- const d = _[E], m = p[d];
1703
+ for (let v = 0; v < _.length; v++) {
1704
+ const d = _[v], m = p[d];
1700
1705
  typeof m != "object" || m === null ? h[d] = m : m.constructor !== Object && (a = s.get(m.constructor)) ? h[d] = a(m, f) : ArrayBuffer.isView(m) ? h[d] = n(m) : h[d] = f(m);
1701
1706
  }
1702
1707
  return h;
@@ -1735,9 +1740,9 @@ var $s = Object.create, Vr = Object.defineProperty, zs = Object.getOwnPropertyDe
1735
1740
  let u = null;
1736
1741
  return i.proto ? f : p;
1737
1742
  function c(_, h) {
1738
- const E = Object.keys(_), d = new Array(E.length);
1739
- for (let m = 0; m < E.length; m++) {
1740
- const w = E[m], A = _[w];
1743
+ const v = Object.keys(_), d = new Array(v.length);
1744
+ for (let m = 0; m < v.length; m++) {
1745
+ const w = v[m], A = _[w];
1741
1746
  if (typeof A != "object" || A === null)
1742
1747
  d[w] = A;
1743
1748
  else if (A.constructor !== Object && (u = l.get(A.constructor)))
@@ -1758,18 +1763,18 @@ var $s = Object.create, Vr = Object.defineProperty, zs = Object.getOwnPropertyDe
1758
1763
  return u(_, p);
1759
1764
  const h = {};
1760
1765
  s.push(_), a.push(h);
1761
- for (const E in _) {
1762
- if (Object.hasOwnProperty.call(_, E) === !1) continue;
1763
- const d = _[E];
1766
+ for (const v in _) {
1767
+ if (Object.hasOwnProperty.call(_, v) === !1) continue;
1768
+ const d = _[v];
1764
1769
  if (typeof d != "object" || d === null)
1765
- h[E] = d;
1770
+ h[v] = d;
1766
1771
  else if (d.constructor !== Object && (u = l.get(d.constructor)))
1767
- h[E] = u(d, p);
1772
+ h[v] = u(d, p);
1768
1773
  else if (ArrayBuffer.isView(d))
1769
- h[E] = n(d);
1774
+ h[v] = n(d);
1770
1775
  else {
1771
1776
  const m = s.indexOf(d);
1772
- m !== -1 ? h[E] = a[m] : h[E] = p(d);
1777
+ m !== -1 ? h[v] = a[m] : h[v] = p(d);
1773
1778
  }
1774
1779
  }
1775
1780
  return s.pop(), a.pop(), h;
@@ -1781,17 +1786,17 @@ var $s = Object.create, Vr = Object.defineProperty, zs = Object.getOwnPropertyDe
1781
1786
  return u(_, f);
1782
1787
  const h = {};
1783
1788
  s.push(_), a.push(h);
1784
- for (const E in _) {
1785
- const d = _[E];
1789
+ for (const v in _) {
1790
+ const d = _[v];
1786
1791
  if (typeof d != "object" || d === null)
1787
- h[E] = d;
1792
+ h[v] = d;
1788
1793
  else if (d.constructor !== Object && (u = l.get(d.constructor)))
1789
- h[E] = u(d, f);
1794
+ h[v] = u(d, f);
1790
1795
  else if (ArrayBuffer.isView(d))
1791
- h[E] = n(d);
1796
+ h[v] = n(d);
1792
1797
  else {
1793
1798
  const m = s.indexOf(d);
1794
- m !== -1 ? h[E] = a[m] : h[E] = f(d);
1799
+ m !== -1 ? h[v] = a[m] : h[v] = f(d);
1795
1800
  }
1796
1801
  }
1797
1802
  return s.pop(), a.pop(), h;
@@ -1808,14 +1813,14 @@ Br && (y.self, y.top);
1808
1813
  var pn;
1809
1814
  typeof navigator < "u" && ((pn = navigator.userAgent) == null || pn.toLowerCase().includes("electron"));
1810
1815
  Pe();
1811
- var Zs = qs(Xs()), Qs = /(?:^|[-_/])(\w)/g;
1812
- function Js(e, t) {
1816
+ var Js = Zs(Qs()), eu = /(?:^|[-_/])(\w)/g;
1817
+ function tu(e, t) {
1813
1818
  return t ? t.toUpperCase() : "";
1814
1819
  }
1815
- function eu(e) {
1816
- return e && `${e}`.replace(Qs, Js);
1820
+ function nu(e) {
1821
+ return e && `${e}`.replace(eu, tu);
1817
1822
  }
1818
- function tu(e, t) {
1823
+ function ru(e, t) {
1819
1824
  let n = e.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
1820
1825
  n.endsWith(`index${t}`) && (n = n.replace(`/index${t}`, t));
1821
1826
  const r = n.lastIndexOf("/"), o = n.substring(r + 1);
@@ -1824,15 +1829,15 @@ function tu(e, t) {
1824
1829
  return o.substring(0, i);
1825
1830
  }
1826
1831
  }
1827
- var hn = (0, Zs.default)({ circles: !0 });
1828
- const nu = {
1832
+ var hn = (0, Js.default)({ circles: !0 });
1833
+ const ou = {
1829
1834
  trailing: !0
1830
1835
  };
1831
1836
  function ae(e, t = 25, n = {}) {
1832
- if (n = { ...nu, ...n }, !Number.isFinite(t))
1837
+ if (n = { ...ou, ...n }, !Number.isFinite(t))
1833
1838
  throw new TypeError("Expected `wait` to be a finite number");
1834
1839
  let r, o, i = [], s, a;
1835
- const l = (u, c) => (s = ru(e, u, c), s.finally(() => {
1840
+ const l = (u, c) => (s = iu(e, u, c), s.finally(() => {
1836
1841
  if (s = null, n.trailing && a && !o) {
1837
1842
  const p = l(u, a);
1838
1843
  return a = null, p;
@@ -1851,7 +1856,7 @@ function ae(e, t = 25, n = {}) {
1851
1856
  });
1852
1857
  };
1853
1858
  }
1854
- async function ru(e, t, n) {
1859
+ async function iu(e, t, n) {
1855
1860
  return await e.apply(t, n);
1856
1861
  }
1857
1862
  function mt(e, t = {}, n) {
@@ -1861,15 +1866,15 @@ function mt(e, t = {}, n) {
1861
1866
  }
1862
1867
  return t;
1863
1868
  }
1864
- const ou = { run: (e) => e() }, iu = () => ou, Ur = typeof console.createTask < "u" ? console.createTask : iu;
1865
- function su(e, t) {
1869
+ const su = { run: (e) => e() }, uu = () => su, Ur = typeof console.createTask < "u" ? console.createTask : uu;
1870
+ function au(e, t) {
1866
1871
  const n = t.shift(), r = Ur(n);
1867
1872
  return e.reduce(
1868
1873
  (o, i) => o.then(() => r.run(() => i(...t))),
1869
1874
  Promise.resolve()
1870
1875
  );
1871
1876
  }
1872
- function uu(e, t) {
1877
+ function lu(e, t) {
1873
1878
  const n = t.shift(), r = Ur(n);
1874
1879
  return Promise.all(e.map((o) => r.run(() => o(...t))));
1875
1880
  }
@@ -1877,7 +1882,7 @@ function rt(e, t) {
1877
1882
  for (const n of [...e])
1878
1883
  n(t);
1879
1884
  }
1880
- class au {
1885
+ class cu {
1881
1886
  constructor() {
1882
1887
  this._hooks = {}, this._before = void 0, this._after = void 0, this._deprecatedMessages = void 0, this._deprecatedHooks = {}, this.hook = this.hook.bind(this), this.callHook = this.callHook.bind(this), this.callHookWith = this.callHookWith.bind(this);
1883
1888
  }
@@ -1946,10 +1951,10 @@ class au {
1946
1951
  delete this._hooks[t];
1947
1952
  }
1948
1953
  callHook(t, ...n) {
1949
- return n.unshift(t), this.callHookWith(su, t, ...n);
1954
+ return n.unshift(t), this.callHookWith(au, t, ...n);
1950
1955
  }
1951
1956
  callHookParallel(t, ...n) {
1952
- return n.unshift(t), this.callHookWith(uu, t, ...n);
1957
+ return n.unshift(t), this.callHookWith(lu, t, ...n);
1953
1958
  }
1954
1959
  callHookWith(t, n, ...r) {
1955
1960
  const o = this._before || this._after ? { name: n, args: r, context: {} } : void 0;
@@ -1980,28 +1985,28 @@ class au {
1980
1985
  }
1981
1986
  }
1982
1987
  function Hr() {
1983
- return new au();
1988
+ return new cu();
1984
1989
  }
1985
- var lu = Object.create, $r = Object.defineProperty, cu = Object.getOwnPropertyDescriptor, It = Object.getOwnPropertyNames, fu = Object.getPrototypeOf, du = Object.prototype.hasOwnProperty, pu = (e, t) => function() {
1990
+ var fu = Object.create, $r = Object.defineProperty, du = Object.getOwnPropertyDescriptor, It = Object.getOwnPropertyNames, pu = Object.getPrototypeOf, hu = Object.prototype.hasOwnProperty, _u = (e, t) => function() {
1986
1991
  return e && (t = (0, e[It(e)[0]])(e = 0)), t;
1987
1992
  }, zr = (e, t) => function() {
1988
1993
  return t || (0, e[It(e)[0]])((t = { exports: {} }).exports, t), t.exports;
1989
- }, hu = (e, t, n, r) => {
1994
+ }, mu = (e, t, n, r) => {
1990
1995
  if (t && typeof t == "object" || typeof t == "function")
1991
1996
  for (let o of It(t))
1992
- !du.call(e, o) && o !== n && $r(e, o, { get: () => t[o], enumerable: !(r = cu(t, o)) || r.enumerable });
1997
+ !hu.call(e, o) && o !== n && $r(e, o, { get: () => t[o], enumerable: !(r = du(t, o)) || r.enumerable });
1993
1998
  return e;
1994
- }, _u = (e, t, n) => (n = e != null ? lu(fu(e)) : {}, hu(
1999
+ }, gu = (e, t, n) => (n = e != null ? fu(pu(e)) : {}, mu(
1995
2000
  // If the importer is in node compatibility mode or this is not an ESM
1996
2001
  // file that has been converted to a CommonJS file using a Babel-
1997
2002
  // compatible transform (i.e. "__esModule" has not been set), then set
1998
2003
  // "default" to the CommonJS "module.exports" for node compatibility.
1999
2004
  $r(n, "default", { value: e, enumerable: !0 }),
2000
2005
  e
2001
- )), g = pu({
2006
+ )), g = _u({
2002
2007
  "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
2003
2008
  }
2004
- }), mu = zr({
2009
+ }), Eu = zr({
2005
2010
  "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e, t) {
2006
2011
  g(), function(n) {
2007
2012
  var r = {
@@ -3338,36 +3343,36 @@ var lu = Object.create, $r = Object.defineProperty, cu = Object.getOwnPropertyDe
3338
3343
  "¤": "tien te"
3339
3344
  }
3340
3345
  }, l = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), u = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), c = [".", "!", "~", "*", "'", "(", ")"].join(""), p = function(d, m) {
3341
- var w = "-", A = "", b = "", V = !0, P = {}, v, O, T, R, F, Ie, pe, ne, Ut, K, S, De, $, re, G = "";
3346
+ var w = "-", A = "", b = "", V = !0, P = {}, T, S, E, x, F, Ie, pe, ne, Ut, K, O, De, $, re, G = "";
3342
3347
  if (typeof d != "string")
3343
3348
  return "";
3344
3349
  if (typeof m == "string" && (w = m), pe = a.en, ne = s.en, typeof m == "object") {
3345
- v = m.maintainCase || !1, P = m.custom && typeof m.custom == "object" ? m.custom : P, T = +m.truncate > 1 && m.truncate || !1, R = m.uric || !1, F = m.uricNoSlash || !1, Ie = m.mark || !1, V = !(m.symbols === !1 || m.lang === !1), w = m.separator || w, R && (G += l), F && (G += u), Ie && (G += c), pe = m.lang && a[m.lang] && V ? a[m.lang] : V ? a.en : {}, ne = m.lang && s[m.lang] ? s[m.lang] : m.lang === !1 || m.lang === !0 ? {} : s.en, m.titleCase && typeof m.titleCase.length == "number" && Array.prototype.toString.call(m.titleCase) ? (m.titleCase.forEach(function(H) {
3350
+ T = m.maintainCase || !1, P = m.custom && typeof m.custom == "object" ? m.custom : P, E = +m.truncate > 1 && m.truncate || !1, x = m.uric || !1, F = m.uricNoSlash || !1, Ie = m.mark || !1, V = !(m.symbols === !1 || m.lang === !1), w = m.separator || w, x && (G += l), F && (G += u), Ie && (G += c), pe = m.lang && a[m.lang] && V ? a[m.lang] : V ? a.en : {}, ne = m.lang && s[m.lang] ? s[m.lang] : m.lang === !1 || m.lang === !0 ? {} : s.en, m.titleCase && typeof m.titleCase.length == "number" && Array.prototype.toString.call(m.titleCase) ? (m.titleCase.forEach(function(H) {
3346
3351
  P[H + ""] = H + "";
3347
- }), O = !0) : O = !!m.titleCase, m.custom && typeof m.custom.length == "number" && Array.prototype.toString.call(m.custom) && m.custom.forEach(function(H) {
3352
+ }), S = !0) : S = !!m.titleCase, m.custom && typeof m.custom.length == "number" && Array.prototype.toString.call(m.custom) && m.custom.forEach(function(H) {
3348
3353
  P[H + ""] = H + "";
3349
3354
  }), Object.keys(P).forEach(function(H) {
3350
3355
  var he;
3351
3356
  H.length > 1 ? he = new RegExp("\\b" + _(H) + "\\b", "gi") : he = new RegExp(_(H), "gi"), d = d.replace(he, P[H]);
3352
3357
  });
3353
- for (S in P)
3354
- G += S;
3358
+ for (O in P)
3359
+ G += O;
3355
3360
  }
3356
3361
  for (G += w, G = _(G), d = d.replace(/(^\s+|\s+$)/g, ""), $ = !1, re = !1, K = 0, De = d.length; K < De; K++)
3357
- S = d[K], h(S, P) ? $ = !1 : ne[S] ? (S = $ && ne[S].match(/[A-Za-z0-9]/) ? " " + ne[S] : ne[S], $ = !1) : S in r ? (K + 1 < De && o.indexOf(d[K + 1]) >= 0 ? (b += S, S = "") : re === !0 ? (S = i[b] + r[S], b = "") : S = $ && r[S].match(/[A-Za-z0-9]/) ? " " + r[S] : r[S], $ = !1, re = !1) : S in i ? (b += S, S = "", K === De - 1 && (S = i[b]), re = !0) : /* process symbol chars */ pe[S] && !(R && l.indexOf(S) !== -1) && !(F && u.indexOf(S) !== -1) ? (S = $ || A.substr(-1).match(/[A-Za-z0-9]/) ? w + pe[S] : pe[S], S += d[K + 1] !== void 0 && d[K + 1].match(/[A-Za-z0-9]/) ? w : "", $ = !0) : (re === !0 ? (S = i[b] + S, b = "", re = !1) : $ && (/[A-Za-z0-9]/.test(S) || A.substr(-1).match(/A-Za-z0-9]/)) && (S = " " + S), $ = !1), A += S.replace(new RegExp("[^\\w\\s" + G + "_-]", "g"), w);
3358
- return O && (A = A.replace(/(\w)(\S*)/g, function(H, he, Ht) {
3359
- var Xe = he.toUpperCase() + (Ht !== null ? Ht : "");
3360
- return Object.keys(P).indexOf(Xe.toLowerCase()) < 0 ? Xe : Xe.toLowerCase();
3361
- })), A = A.replace(/\s+/g, w).replace(new RegExp("\\" + w + "+", "g"), w).replace(new RegExp("(^\\" + w + "+|\\" + w + "+$)", "g"), ""), T && A.length > T && (Ut = A.charAt(T) === w, A = A.slice(0, T), Ut || (A = A.slice(0, A.lastIndexOf(w)))), !v && !O && (A = A.toLowerCase()), A;
3362
+ O = d[K], h(O, P) ? $ = !1 : ne[O] ? (O = $ && ne[O].match(/[A-Za-z0-9]/) ? " " + ne[O] : ne[O], $ = !1) : O in r ? (K + 1 < De && o.indexOf(d[K + 1]) >= 0 ? (b += O, O = "") : re === !0 ? (O = i[b] + r[O], b = "") : O = $ && r[O].match(/[A-Za-z0-9]/) ? " " + r[O] : r[O], $ = !1, re = !1) : O in i ? (b += O, O = "", K === De - 1 && (O = i[b]), re = !0) : /* process symbol chars */ pe[O] && !(x && l.indexOf(O) !== -1) && !(F && u.indexOf(O) !== -1) ? (O = $ || A.substr(-1).match(/[A-Za-z0-9]/) ? w + pe[O] : pe[O], O += d[K + 1] !== void 0 && d[K + 1].match(/[A-Za-z0-9]/) ? w : "", $ = !0) : (re === !0 ? (O = i[b] + O, b = "", re = !1) : $ && (/[A-Za-z0-9]/.test(O) || A.substr(-1).match(/A-Za-z0-9]/)) && (O = " " + O), $ = !1), A += O.replace(new RegExp("[^\\w\\s" + G + "_-]", "g"), w);
3363
+ return S && (A = A.replace(/(\w)(\S*)/g, function(H, he, Ht) {
3364
+ var qe = he.toUpperCase() + (Ht !== null ? Ht : "");
3365
+ return Object.keys(P).indexOf(qe.toLowerCase()) < 0 ? qe : qe.toLowerCase();
3366
+ })), A = A.replace(/\s+/g, w).replace(new RegExp("\\" + w + "+", "g"), w).replace(new RegExp("(^\\" + w + "+|\\" + w + "+$)", "g"), ""), E && A.length > E && (Ut = A.charAt(E) === w, A = A.slice(0, E), Ut || (A = A.slice(0, A.lastIndexOf(w)))), !T && !S && (A = A.toLowerCase()), A;
3362
3367
  }, f = function(d) {
3363
3368
  return function(w) {
3364
3369
  return p(w, d);
3365
3370
  };
3366
3371
  }, _ = function(d) {
3367
3372
  return d.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
3368
- }, h = function(E, d) {
3373
+ }, h = function(v, d) {
3369
3374
  for (var m in d)
3370
- if (d[m] === E)
3375
+ if (d[m] === v)
3371
3376
  return !0;
3372
3377
  };
3373
3378
  if (typeof t < "u" && t.exports)
@@ -3385,9 +3390,9 @@ var lu = Object.create, $r = Object.defineProperty, cu = Object.getOwnPropertyDe
3385
3390
  }
3386
3391
  }(e);
3387
3392
  }
3388
- }), gu = zr({
3393
+ }), vu = zr({
3389
3394
  "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e, t) {
3390
- g(), t.exports = mu();
3395
+ g(), t.exports = Eu();
3391
3396
  }
3392
3397
  });
3393
3398
  g();
@@ -3398,15 +3403,15 @@ g();
3398
3403
  g();
3399
3404
  g();
3400
3405
  g();
3401
- function Eu(e) {
3406
+ function yu(e) {
3402
3407
  var t;
3403
3408
  const n = e.name || e._componentTag || e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || e.__name;
3404
3409
  return n === "index" && ((t = e.__file) != null && t.endsWith("index.vue")) ? "" : n;
3405
3410
  }
3406
- function vu(e) {
3411
+ function Cu(e) {
3407
3412
  const t = e.__file;
3408
3413
  if (t)
3409
- return eu(tu(t, ".vue"));
3414
+ return nu(ru(t, ".vue"));
3410
3415
  }
3411
3416
  function _n(e, t) {
3412
3417
  return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t;
@@ -3422,9 +3427,9 @@ function Kr(e) {
3422
3427
  const r = (t = e.subTree) == null ? void 0 : t.type, o = Dt(e);
3423
3428
  return o ? ((n = o == null ? void 0 : o.types) == null ? void 0 : n.Fragment) === r : !1;
3424
3429
  }
3425
- function Ge(e) {
3430
+ function We(e) {
3426
3431
  var t, n, r;
3427
- const o = Eu((e == null ? void 0 : e.type) || {});
3432
+ const o = yu((e == null ? void 0 : e.type) || {});
3428
3433
  if (o)
3429
3434
  return o;
3430
3435
  if ((e == null ? void 0 : e.root) === e)
@@ -3435,10 +3440,10 @@ function Ge(e) {
3435
3440
  for (const s in (r = e.appContext) == null ? void 0 : r.components)
3436
3441
  if (e.appContext.components[s] === (e == null ? void 0 : e.type))
3437
3442
  return _n(e, s);
3438
- const i = vu((e == null ? void 0 : e.type) || {});
3443
+ const i = Cu((e == null ? void 0 : e.type) || {});
3439
3444
  return i || "Anonymous Component";
3440
3445
  }
3441
- function yu(e) {
3446
+ function Au(e) {
3442
3447
  var t, n, r;
3443
3448
  const o = (r = (n = (t = e == null ? void 0 : e.appContext) == null ? void 0 : t.app) == null ? void 0 : n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__) != null ? r : 0, i = e === (e == null ? void 0 : e.root) ? "root" : e.uid;
3444
3449
  return `${o}:${i}`;
@@ -3446,7 +3451,7 @@ function yu(e) {
3446
3451
  function gt(e, t) {
3447
3452
  return t = t || `${e.id}:root`, e.instanceMap.get(t) || e.instanceMap.get(":root");
3448
3453
  }
3449
- function Cu() {
3454
+ function wu() {
3450
3455
  const e = {
3451
3456
  top: 0,
3452
3457
  bottom: 0,
@@ -3462,11 +3467,11 @@ function Cu() {
3462
3467
  return e;
3463
3468
  }
3464
3469
  var xe;
3465
- function Au(e) {
3470
+ function bu(e) {
3466
3471
  return xe || (xe = document.createRange()), xe.selectNode(e), xe.getBoundingClientRect();
3467
3472
  }
3468
- function wu(e) {
3469
- const t = Cu();
3473
+ function Tu(e) {
3474
+ const t = wu();
3470
3475
  if (!e.children)
3471
3476
  return t;
3472
3477
  for (let n = 0, r = e.children.length; n < r; n++) {
@@ -3476,13 +3481,13 @@ function wu(e) {
3476
3481
  i = te(o.component);
3477
3482
  else if (o.el) {
3478
3483
  const s = o.el;
3479
- s.nodeType === 1 || s.getBoundingClientRect ? i = s.getBoundingClientRect() : s.nodeType === 3 && s.data.trim() && (i = Au(s));
3484
+ s.nodeType === 1 || s.getBoundingClientRect ? i = s.getBoundingClientRect() : s.nodeType === 3 && s.data.trim() && (i = bu(s));
3480
3485
  }
3481
- i && bu(t, i);
3486
+ i && Ou(t, i);
3482
3487
  }
3483
3488
  return t;
3484
3489
  }
3485
- function bu(e, t) {
3490
+ function Ou(e, t) {
3486
3491
  return (!e.top || t.top < e.top) && (e.top = t.top), (!e.bottom || t.bottom > e.bottom) && (e.bottom = t.bottom), (!e.left || t.left < e.left) && (e.left = t.left), (!e.right || t.right > e.right) && (e.right = t.right), e;
3487
3492
  }
3488
3493
  var mn = {
@@ -3495,13 +3500,13 @@ var mn = {
3495
3500
  };
3496
3501
  function te(e) {
3497
3502
  const t = e.subTree.el;
3498
- return typeof window > "u" ? mn : Kr(e) ? wu(e.subTree) : (t == null ? void 0 : t.nodeType) === 1 ? t == null ? void 0 : t.getBoundingClientRect() : e.subTree.component ? te(e.subTree.component) : mn;
3503
+ return typeof window > "u" ? mn : Kr(e) ? Tu(e.subTree) : (t == null ? void 0 : t.nodeType) === 1 ? t == null ? void 0 : t.getBoundingClientRect() : e.subTree.component ? te(e.subTree.component) : mn;
3499
3504
  }
3500
3505
  g();
3501
3506
  function kt(e) {
3502
- return Kr(e) ? Tu(e.subTree) : e.subTree ? [e.subTree.el] : [];
3507
+ return Kr(e) ? Su(e.subTree) : e.subTree ? [e.subTree.el] : [];
3503
3508
  }
3504
- function Tu(e) {
3509
+ function Su(e) {
3505
3510
  if (!e.children)
3506
3511
  return [];
3507
3512
  const t = [];
@@ -3518,7 +3523,7 @@ var jr = "__vue-devtools-component-inspector__", Wr = "__vue-devtools-component-
3518
3523
  borderRadius: "5px",
3519
3524
  transition: "all 0.1s ease-in",
3520
3525
  pointerEvents: "none"
3521
- }, Ou = {
3526
+ }, Pu = {
3522
3527
  fontFamily: "Arial, Helvetica, sans-serif",
3523
3528
  padding: "5px 8px",
3524
3529
  borderRadius: "4px",
@@ -3531,7 +3536,7 @@ var jr = "__vue-devtools-component-inspector__", Wr = "__vue-devtools-component-
3531
3536
  lineHeight: "24px",
3532
3537
  backgroundColor: "#42b883",
3533
3538
  boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"
3534
- }, Su = {
3539
+ }, Iu = {
3535
3540
  display: "inline-block",
3536
3541
  fontWeight: 400,
3537
3542
  fontStyle: "normal",
@@ -3541,13 +3546,13 @@ var jr = "__vue-devtools-component-inspector__", Wr = "__vue-devtools-component-
3541
3546
  function fe() {
3542
3547
  return document.getElementById(jr);
3543
3548
  }
3544
- function Pu() {
3549
+ function Du() {
3545
3550
  return document.getElementById(Wr);
3546
3551
  }
3547
- function Iu() {
3552
+ function ku() {
3548
3553
  return document.getElementById(Yr);
3549
3554
  }
3550
- function Du() {
3555
+ function xu() {
3551
3556
  return document.getElementById(Gr);
3552
3557
  }
3553
3558
  function xt(e) {
@@ -3568,16 +3573,16 @@ function Rt(e) {
3568
3573
  });
3569
3574
  const r = document.createElement("span");
3570
3575
  r.id = Wr, Object.assign(r.style, {
3571
- ...Ou,
3576
+ ...Pu,
3572
3577
  top: e.bounds.top < 35 ? 0 : "-35px"
3573
3578
  });
3574
3579
  const o = document.createElement("span");
3575
3580
  o.id = Gr, o.innerHTML = `&lt;${e.name}&gt;&nbsp;&nbsp;`;
3576
3581
  const i = document.createElement("i");
3577
- return i.id = Yr, i.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(i.style, Su), r.appendChild(o), r.appendChild(i), n.appendChild(r), document.body.appendChild(n), n;
3582
+ return i.id = Yr, i.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(i.style, Iu), r.appendChild(o), r.appendChild(i), n.appendChild(r), document.body.appendChild(n), n;
3578
3583
  }
3579
3584
  function Ft(e) {
3580
- const t = fe(), n = Pu(), r = Du(), o = Iu();
3585
+ const t = fe(), n = Du(), r = xu(), o = ku();
3581
3586
  t && (Object.assign(t.style, {
3582
3587
  ...qr,
3583
3588
  ...xt(e.bounds)
@@ -3585,11 +3590,11 @@ function Ft(e) {
3585
3590
  top: e.bounds.top < 35 ? 0 : "-35px"
3586
3591
  }), r.innerHTML = `&lt;${e.name}&gt;&nbsp;&nbsp;`, o.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`);
3587
3592
  }
3588
- function ku(e) {
3593
+ function Ru(e) {
3589
3594
  const t = te(e);
3590
3595
  if (!t.width && !t.height)
3591
3596
  return;
3592
- const n = Ge(e);
3597
+ const n = We(e);
3593
3598
  fe() ? Ft({ bounds: t, name: n }) : Rt({ bounds: t, name: n });
3594
3599
  }
3595
3600
  function Xr() {
@@ -3602,35 +3607,35 @@ function vt(e) {
3602
3607
  if (t) {
3603
3608
  const n = t.__vueParentComponent;
3604
3609
  if (n && (Et = n, n.vnode.el)) {
3605
- const o = te(n), i = Ge(n);
3610
+ const o = te(n), i = We(n);
3606
3611
  fe() ? Ft({ bounds: o, name: i }) : Rt({ bounds: o, name: i });
3607
3612
  }
3608
3613
  }
3609
3614
  }
3610
- function xu(e, t) {
3615
+ function Fu(e, t) {
3611
3616
  if (e.preventDefault(), e.stopPropagation(), Et) {
3612
- const n = yu(Et);
3617
+ const n = Au(Et);
3613
3618
  t(n);
3614
3619
  }
3615
3620
  }
3616
- var ze = null;
3617
- function Ru() {
3618
- Xr(), window.removeEventListener("mouseover", vt), window.removeEventListener("click", ze, !0), ze = null;
3621
+ var $e = null;
3622
+ function Mu() {
3623
+ Xr(), window.removeEventListener("mouseover", vt), window.removeEventListener("click", $e, !0), $e = null;
3619
3624
  }
3620
- function Fu() {
3625
+ function Lu() {
3621
3626
  return window.addEventListener("mouseover", vt), new Promise((e) => {
3622
3627
  function t(n) {
3623
- n.preventDefault(), n.stopPropagation(), xu(n, (r) => {
3624
- window.removeEventListener("click", t, !0), ze = null, window.removeEventListener("mouseover", vt);
3628
+ n.preventDefault(), n.stopPropagation(), Fu(n, (r) => {
3629
+ window.removeEventListener("click", t, !0), $e = null, window.removeEventListener("mouseover", vt);
3625
3630
  const o = fe();
3626
3631
  o && (o.style.display = "none"), e(JSON.stringify({ id: r }));
3627
3632
  });
3628
3633
  }
3629
- ze = t, window.addEventListener("click", t, !0);
3634
+ $e = t, window.addEventListener("click", t, !0);
3630
3635
  });
3631
3636
  }
3632
- function Lu(e) {
3633
- const t = gt(M.value, e.id);
3637
+ function Nu(e) {
3638
+ const t = gt(L.value, e.id);
3634
3639
  if (t) {
3635
3640
  const [n] = kt(t);
3636
3641
  if (typeof n.scrollIntoView == "function")
@@ -3651,7 +3656,7 @@ function Lu(e) {
3651
3656
  setTimeout(() => {
3652
3657
  const r = te(t);
3653
3658
  if (r.width || r.height) {
3654
- const o = Ge(t), i = fe();
3659
+ const o = We(t), i = fe();
3655
3660
  i ? Ft({ ...e, name: o, bounds: r }) : Rt({ ...e, name: o, bounds: r }), setTimeout(() => {
3656
3661
  i && (i.style.display = "none");
3657
3662
  }, 1500);
@@ -3662,36 +3667,36 @@ function Lu(e) {
3662
3667
  g();
3663
3668
  var gn, En;
3664
3669
  (En = (gn = y).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__) != null || (gn.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = !0);
3665
- function Mu(e) {
3670
+ function Vu(e) {
3666
3671
  let t = 0;
3667
3672
  const n = setInterval(() => {
3668
3673
  y.__VUE_INSPECTOR__ && (clearInterval(n), t += 30, e()), t >= /* 5s */
3669
3674
  5e3 && clearInterval(n);
3670
3675
  }, 30);
3671
3676
  }
3672
- function Nu() {
3677
+ function Bu() {
3673
3678
  const e = y.__VUE_INSPECTOR__, t = e.openInEditor;
3674
3679
  e.openInEditor = async (...n) => {
3675
3680
  e.disable(), t(...n);
3676
3681
  };
3677
3682
  }
3678
- function Vu() {
3683
+ function Uu() {
3679
3684
  return new Promise((e) => {
3680
3685
  function t() {
3681
- Nu(), e(y.__VUE_INSPECTOR__);
3686
+ Bu(), e(y.__VUE_INSPECTOR__);
3682
3687
  }
3683
- y.__VUE_INSPECTOR__ ? t() : Mu(() => {
3688
+ y.__VUE_INSPECTOR__ ? t() : Vu(() => {
3684
3689
  t();
3685
3690
  });
3686
3691
  });
3687
3692
  }
3688
3693
  g();
3689
3694
  g();
3690
- function Bu(e) {
3695
+ function Hu(e) {
3691
3696
  return !!(e && e.__v_isReadonly);
3692
3697
  }
3693
3698
  function Zr(e) {
3694
- return Bu(e) ? Zr(e.__v_raw) : !!(e && e.__v_isReactive);
3699
+ return Hu(e) ? Zr(e.__v_raw) : !!(e && e.__v_isReactive);
3695
3700
  }
3696
3701
  function ot(e) {
3697
3702
  return !!(e && e.__v_isRef === !0);
@@ -3700,9 +3705,9 @@ function ge(e) {
3700
3705
  const t = e && e.__v_raw;
3701
3706
  return t ? ge(t) : e;
3702
3707
  }
3703
- var Uu = class {
3708
+ var $u = class {
3704
3709
  constructor() {
3705
- this.refEditor = new Hu();
3710
+ this.refEditor = new zu();
3706
3711
  }
3707
3712
  set(e, t, n, r) {
3708
3713
  const o = Array.isArray(t) ? t : t.split(".");
@@ -3738,7 +3743,7 @@ var Uu = class {
3738
3743
  }
3739
3744
  };
3740
3745
  }
3741
- }, Hu = class {
3746
+ }, zu = class {
3742
3747
  set(e, t) {
3743
3748
  if (ot(e))
3744
3749
  e.value = t;
@@ -3771,8 +3776,8 @@ var Uu = class {
3771
3776
  g();
3772
3777
  g();
3773
3778
  g();
3774
- var $u = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
3775
- function zu() {
3779
+ var Ku = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
3780
+ function ju() {
3776
3781
  if (!Br || typeof localStorage > "u" || localStorage === null)
3777
3782
  return {
3778
3783
  recordingState: !1,
@@ -3782,7 +3787,7 @@ function zu() {
3782
3787
  performanceEventEnabled: !1,
3783
3788
  selected: ""
3784
3789
  };
3785
- const e = localStorage.getItem($u);
3790
+ const e = localStorage.getItem(Ku);
3786
3791
  return e ? JSON.parse(e) : {
3787
3792
  recordingState: !1,
3788
3793
  mouseEventEnabled: !1,
@@ -3797,13 +3802,13 @@ g();
3797
3802
  g();
3798
3803
  var vn, yn;
3799
3804
  (yn = (vn = y).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS) != null || (vn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = []);
3800
- var Ku = new Proxy(y.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, {
3805
+ var Wu = new Proxy(y.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, {
3801
3806
  get(e, t, n) {
3802
3807
  return Reflect.get(e, t, n);
3803
3808
  }
3804
3809
  });
3805
- function ju(e, t) {
3806
- x.timelineLayersState[t.id] = !1, Ku.push({
3810
+ function Gu(e, t) {
3811
+ R.timelineLayersState[t.id] = !1, Wu.push({
3807
3812
  ...e,
3808
3813
  descriptorId: t.id,
3809
3814
  appRecord: Dt(t.app)
@@ -3811,16 +3816,16 @@ function ju(e, t) {
3811
3816
  }
3812
3817
  var Cn, An;
3813
3818
  (An = (Cn = y).__VUE_DEVTOOLS_KIT_INSPECTOR__) != null || (Cn.__VUE_DEVTOOLS_KIT_INSPECTOR__ = []);
3814
- var Lt = new Proxy(y.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
3819
+ var Mt = new Proxy(y.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
3815
3820
  get(e, t, n) {
3816
3821
  return Reflect.get(e, t, n);
3817
3822
  }
3818
3823
  }), Qr = ae(() => {
3819
3824
  de.hooks.callHook("sendInspectorToClient", Jr());
3820
3825
  });
3821
- function Wu(e, t) {
3826
+ function Yu(e, t) {
3822
3827
  var n, r;
3823
- Lt.push({
3828
+ Mt.push({
3824
3829
  options: e,
3825
3830
  descriptor: t,
3826
3831
  treeFilterPlaceholder: (n = e.treeFilterPlaceholder) != null ? n : "Search tree...",
@@ -3831,7 +3836,7 @@ function Wu(e, t) {
3831
3836
  }), Qr();
3832
3837
  }
3833
3838
  function Jr() {
3834
- return Lt.filter((e) => e.descriptor.app === M.value.app).filter((e) => e.descriptor.id !== "components").map((e) => {
3839
+ return Mt.filter((e) => e.descriptor.app === L.value.app).filter((e) => e.descriptor.id !== "components").map((e) => {
3835
3840
  var t;
3836
3841
  const n = e.descriptor, r = e.options;
3837
3842
  return {
@@ -3845,19 +3850,19 @@ function Jr() {
3845
3850
  };
3846
3851
  });
3847
3852
  }
3848
- function Ne(e, t) {
3849
- return Lt.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
3853
+ function Le(e, t) {
3854
+ return Mt.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
3850
3855
  }
3851
- function Gu() {
3856
+ function qu() {
3852
3857
  const e = Hr();
3853
3858
  e.hook("addInspector", ({ inspector: r, plugin: o }) => {
3854
- Wu(r, o.descriptor);
3859
+ Yu(r, o.descriptor);
3855
3860
  });
3856
3861
  const t = ae(async ({ inspectorId: r, plugin: o }) => {
3857
3862
  var i;
3858
- if (!r || !((i = o == null ? void 0 : o.descriptor) != null && i.app) || x.highPerfModeEnabled)
3863
+ if (!r || !((i = o == null ? void 0 : o.descriptor) != null && i.app) || R.highPerfModeEnabled)
3859
3864
  return;
3860
- const s = Ne(r, o.descriptor.app), a = {
3865
+ const s = Le(r, o.descriptor.app), a = {
3861
3866
  app: o.descriptor.app,
3862
3867
  inspectorId: r,
3863
3868
  filter: (s == null ? void 0 : s.treeFilter) || "",
@@ -3885,9 +3890,9 @@ function Gu() {
3885
3890
  e.hook("sendInspectorTree", t);
3886
3891
  const n = ae(async ({ inspectorId: r, plugin: o }) => {
3887
3892
  var i;
3888
- if (!r || !((i = o == null ? void 0 : o.descriptor) != null && i.app) || x.highPerfModeEnabled)
3893
+ if (!r || !((i = o == null ? void 0 : o.descriptor) != null && i.app) || R.highPerfModeEnabled)
3889
3894
  return;
3890
- const s = Ne(r, o.descriptor.app), a = {
3895
+ const s = Le(r, o.descriptor.app), a = {
3891
3896
  app: o.descriptor.app,
3892
3897
  inspectorId: r,
3893
3898
  nodeId: (s == null ? void 0 : s.selectedNodeId) || "",
@@ -3916,14 +3921,14 @@ function Gu() {
3916
3921
  );
3917
3922
  }, 120);
3918
3923
  return e.hook("sendInspectorState", n), e.hook("customInspectorSelectNode", ({ inspectorId: r, nodeId: o, plugin: i }) => {
3919
- const s = Ne(r, i.descriptor.app);
3924
+ const s = Le(r, i.descriptor.app);
3920
3925
  s && (s.selectedNodeId = o);
3921
3926
  }), e.hook("timelineLayerAdded", ({ options: r, plugin: o }) => {
3922
- ju(r, o.descriptor);
3927
+ Gu(r, o.descriptor);
3923
3928
  }), e.hook("timelineEventAdded", ({ options: r, plugin: o }) => {
3924
3929
  var i;
3925
3930
  const s = ["performance", "component-event", "keyboard", "mouse"];
3926
- x.highPerfModeEnabled || !((i = x.timelineLayersState) != null && i[o.descriptor.id]) && !s.includes(r.layerId) || e.callHookWith(
3931
+ R.highPerfModeEnabled || !((i = R.timelineLayersState) != null && i[o.descriptor.id]) && !s.includes(r.layerId) || e.callHookWith(
3927
3932
  async (a) => {
3928
3933
  await Promise.all(a.map((l) => l(r)));
3929
3934
  },
@@ -3936,9 +3941,9 @@ function Gu() {
3936
3941
  return null;
3937
3942
  const i = o.id.toString();
3938
3943
  return [...o.instanceMap].filter(([a]) => a.split(":")[0] === i).map(([, a]) => a);
3939
- }), e.hook("getComponentBounds", async ({ instance: r }) => te(r)), e.hook("getComponentName", ({ instance: r }) => Ge(r)), e.hook("componentHighlight", ({ uid: r }) => {
3940
- const o = M.value.instanceMap.get(r);
3941
- o && ku(o);
3944
+ }), e.hook("getComponentBounds", async ({ instance: r }) => te(r)), e.hook("getComponentName", ({ instance: r }) => We(r)), e.hook("componentHighlight", ({ uid: r }) => {
3945
+ const o = L.value.instanceMap.get(r);
3946
+ o && Ru(o);
3942
3947
  }), e.hook("componentUnhighlight", () => {
3943
3948
  Xr();
3944
3949
  }), e;
@@ -3954,7 +3959,7 @@ var In, Dn;
3954
3959
  var kn, xn;
3955
3960
  (xn = (kn = y).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__) != null || (kn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = []);
3956
3961
  var J = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";
3957
- function Yu() {
3962
+ function Xu() {
3958
3963
  return {
3959
3964
  connected: !1,
3960
3965
  clientConnected: !1,
@@ -3966,44 +3971,44 @@ function Yu() {
3966
3971
  highPerfModeEnabled: !0,
3967
3972
  devtoolsClientDetected: {},
3968
3973
  perfUniqueGroupId: 0,
3969
- timelineLayersState: zu()
3974
+ timelineLayersState: ju()
3970
3975
  };
3971
3976
  }
3972
3977
  var Rn, Fn;
3973
- (Fn = (Rn = y)[J]) != null || (Rn[J] = Yu());
3974
- var qu = ae((e) => {
3978
+ (Fn = (Rn = y)[J]) != null || (Rn[J] = Xu());
3979
+ var Zu = ae((e) => {
3975
3980
  de.hooks.callHook("devtoolsStateUpdated", { state: e });
3976
3981
  });
3977
3982
  ae((e, t) => {
3978
3983
  de.hooks.callHook("devtoolsConnectedUpdated", { state: e, oldState: t });
3979
3984
  });
3980
- var Ye = new Proxy(y.__VUE_DEVTOOLS_KIT_APP_RECORDS__, {
3985
+ var Ge = new Proxy(y.__VUE_DEVTOOLS_KIT_APP_RECORDS__, {
3981
3986
  get(e, t, n) {
3982
3987
  return t === "value" ? y.__VUE_DEVTOOLS_KIT_APP_RECORDS__ : y.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t];
3983
3988
  }
3984
- }), M = new Proxy(y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, {
3989
+ }), L = new Proxy(y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, {
3985
3990
  get(e, t, n) {
3986
3991
  return t === "value" ? y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ : t === "id" ? y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ : y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t];
3987
3992
  }
3988
3993
  });
3989
3994
  function eo() {
3990
- qu({
3995
+ Zu({
3991
3996
  ...y[J],
3992
- appRecords: Ye.value,
3993
- activeAppRecordId: M.id,
3997
+ appRecords: Ge.value,
3998
+ activeAppRecordId: L.id,
3994
3999
  tabs: y.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,
3995
4000
  commands: y.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__
3996
4001
  });
3997
4002
  }
3998
- function Xu(e) {
4003
+ function Qu(e) {
3999
4004
  y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = e, eo();
4000
4005
  }
4001
- function Zu(e) {
4006
+ function Ju(e) {
4002
4007
  y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = e, eo();
4003
4008
  }
4004
- var x = new Proxy(y[J], {
4009
+ var R = new Proxy(y[J], {
4005
4010
  get(e, t) {
4006
- return t === "appRecords" ? Ye : t === "activeAppRecordId" ? M.id : t === "tabs" ? y.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? y.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : y[J][t];
4011
+ return t === "appRecords" ? Ge : t === "activeAppRecordId" ? L.id : t === "tabs" ? y.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? y.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : y[J][t];
4007
4012
  },
4008
4013
  deleteProperty(e, t) {
4009
4014
  return delete e[t], !0;
@@ -4012,7 +4017,7 @@ var x = new Proxy(y[J], {
4012
4017
  return { ...y[J] }, e[t] = n, y[J][t] = n, !0;
4013
4018
  }
4014
4019
  });
4015
- function Qu(e = {}) {
4020
+ function ea(e = {}) {
4016
4021
  var t, n, r;
4017
4022
  const { file: o, host: i, baseUrl: s = window.location.origin, line: a = 0, column: l = 0 } = e;
4018
4023
  if (o) {
@@ -4024,7 +4029,7 @@ function Qu(e = {}) {
4024
4029
  console.log(`%c${f}`, "color:red");
4025
4030
  }
4026
4031
  });
4027
- } else if (x.vitePluginDetected) {
4032
+ } else if (R.vitePluginDetected) {
4028
4033
  const u = (r = y.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__) != null ? r : s;
4029
4034
  y.__VUE_INSPECTOR__.openInEditor(u, o, a, l);
4030
4035
  }
@@ -4035,9 +4040,9 @@ g();
4035
4040
  g();
4036
4041
  g();
4037
4042
  g();
4038
- var Ln, Mn;
4039
- (Mn = (Ln = y).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__) != null || (Ln.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = []);
4040
- var Mt = new Proxy(y.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, {
4043
+ var Mn, Ln;
4044
+ (Ln = (Mn = y).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__) != null || (Mn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = []);
4045
+ var Lt = new Proxy(y.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, {
4041
4046
  get(e, t, n) {
4042
4047
  return Reflect.get(e, t, n);
4043
4048
  }
@@ -4051,9 +4056,9 @@ function yt(e) {
4051
4056
  function Nt(e) {
4052
4057
  return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`;
4053
4058
  }
4054
- function Ju(e) {
4059
+ function ta(e) {
4055
4060
  var t, n, r;
4056
- const o = (n = (t = Mt.find((i) => {
4061
+ const o = (n = (t = Lt.find((i) => {
4057
4062
  var s;
4058
4063
  return i[0].id === e && !!((s = i[0]) != null && s.settings);
4059
4064
  })) == null ? void 0 : t[0]) != null ? n : null;
@@ -4068,16 +4073,16 @@ function to(e, t) {
4068
4073
  return JSON.parse(s);
4069
4074
  }
4070
4075
  if (e) {
4071
- const s = (r = (n = Mt.find((a) => a[0].id === e)) == null ? void 0 : n[0]) != null ? r : null;
4076
+ const s = (r = (n = Lt.find((a) => a[0].id === e)) == null ? void 0 : n[0]) != null ? r : null;
4072
4077
  return yt((o = s == null ? void 0 : s.settings) != null ? o : {});
4073
4078
  }
4074
4079
  return yt(t);
4075
4080
  }
4076
- function ea(e, t) {
4081
+ function na(e, t) {
4077
4082
  const n = Nt(e);
4078
4083
  localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(yt(t)));
4079
4084
  }
4080
- function ta(e, t, n) {
4085
+ function ra(e, t, n) {
4081
4086
  const r = Nt(e), o = localStorage.getItem(r), i = JSON.parse(o || "{}"), s = {
4082
4087
  ...i,
4083
4088
  [t]: n
@@ -4107,7 +4112,7 @@ g();
4107
4112
  g();
4108
4113
  g();
4109
4114
  g();
4110
- var Nn, Vn, B = (Vn = (Nn = y).__VUE_DEVTOOLS_HOOK) != null ? Vn : Nn.__VUE_DEVTOOLS_HOOK = Hr(), na = {
4115
+ var Nn, Vn, B = (Vn = (Nn = y).__VUE_DEVTOOLS_HOOK) != null ? Vn : Nn.__VUE_DEVTOOLS_HOOK = Hr(), oa = {
4111
4116
  vueAppInit(e) {
4112
4117
  B.hook("app:init", e);
4113
4118
  },
@@ -4139,11 +4144,11 @@ var Nn, Vn, B = (Vn = (Nn = y).__VUE_DEVTOOLS_HOOK) != null ? Vn : Nn.__VUE_DEVT
4139
4144
  return B.hook("perf:end", e);
4140
4145
  }
4141
4146
  }, no = {
4142
- on: na,
4147
+ on: oa,
4143
4148
  setupDevToolsPlugin(e, t) {
4144
4149
  return B.callHook("devtools-plugin:setup", e, t);
4145
4150
  }
4146
- }, ra = class {
4151
+ }, ia = class {
4147
4152
  constructor({ plugin: e, ctx: t }) {
4148
4153
  this.hooks = t.hooks, this.plugin = e;
4149
4154
  }
@@ -4185,7 +4190,7 @@ var Nn, Vn, B = (Vn = (Nn = y).__VUE_DEVTOOLS_HOOK) != null ? Vn : Nn.__VUE_DEVT
4185
4190
  // component inspector
4186
4191
  notifyComponentUpdate(e) {
4187
4192
  var t;
4188
- if (x.highPerfModeEnabled)
4193
+ if (R.highPerfModeEnabled)
4189
4194
  return;
4190
4195
  const n = Jr().find((r) => r.packageName === this.plugin.descriptor.packageName);
4191
4196
  if (n != null && n.id) {
@@ -4207,13 +4212,13 @@ var Nn, Vn, B = (Vn = (Nn = y).__VUE_DEVTOOLS_HOOK) != null ? Vn : Nn.__VUE_DEVT
4207
4212
  }
4208
4213
  // custom inspector
4209
4214
  addInspector(e) {
4210
- this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings && ea(e.id, this.plugin.descriptor.settings);
4215
+ this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings && na(e.id, this.plugin.descriptor.settings);
4211
4216
  }
4212
4217
  sendInspectorTree(e) {
4213
- x.highPerfModeEnabled || this.hooks.callHook("sendInspectorTree", { inspectorId: e, plugin: this.plugin });
4218
+ R.highPerfModeEnabled || this.hooks.callHook("sendInspectorTree", { inspectorId: e, plugin: this.plugin });
4214
4219
  }
4215
4220
  sendInspectorState(e) {
4216
- x.highPerfModeEnabled || this.hooks.callHook("sendInspectorState", { inspectorId: e, plugin: this.plugin });
4221
+ R.highPerfModeEnabled || this.hooks.callHook("sendInspectorState", { inspectorId: e, plugin: this.plugin });
4217
4222
  }
4218
4223
  selectInspectorNode(e, t) {
4219
4224
  this.hooks.callHook("customInspectorSelectNode", { inspectorId: e, nodeId: t, plugin: this.plugin });
@@ -4223,13 +4228,13 @@ var Nn, Vn, B = (Vn = (Nn = y).__VUE_DEVTOOLS_HOOK) != null ? Vn : Nn.__VUE_DEVT
4223
4228
  }
4224
4229
  // timeline
4225
4230
  now() {
4226
- return x.highPerfModeEnabled ? 0 : Date.now();
4231
+ return R.highPerfModeEnabled ? 0 : Date.now();
4227
4232
  }
4228
4233
  addTimelineLayer(e) {
4229
4234
  this.hooks.callHook("timelineLayerAdded", { options: e, plugin: this.plugin });
4230
4235
  }
4231
4236
  addTimelineEvent(e) {
4232
- x.highPerfModeEnabled || this.hooks.callHook("timelineEventAdded", { options: e, plugin: this.plugin });
4237
+ R.highPerfModeEnabled || this.hooks.callHook("timelineEventAdded", { options: e, plugin: this.plugin });
4233
4238
  }
4234
4239
  // settings
4235
4240
  getSettings(e) {
@@ -4255,21 +4260,21 @@ var Nn, Vn, B = (Vn = (Nn = y).__VUE_DEVTOOLS_HOOK) != null ? Vn : Nn.__VUE_DEVT
4255
4260
  /* COMPONENT_UNHIGHLIGHT */
4256
4261
  );
4257
4262
  }
4258
- }, oa = ra;
4263
+ }, sa = ia;
4259
4264
  g();
4260
4265
  g();
4261
4266
  g();
4262
4267
  g();
4263
- var ia = "__vue_devtool_undefined__", sa = "__vue_devtool_infinity__", ua = "__vue_devtool_negative_infinity__", aa = "__vue_devtool_nan__";
4268
+ var ua = "__vue_devtool_undefined__", aa = "__vue_devtool_infinity__", la = "__vue_devtool_negative_infinity__", ca = "__vue_devtool_nan__";
4264
4269
  g();
4265
4270
  g();
4266
- var la = {
4267
- [ia]: "undefined",
4268
- [aa]: "NaN",
4269
- [sa]: "Infinity",
4270
- [ua]: "-Infinity"
4271
+ var fa = {
4272
+ [ua]: "undefined",
4273
+ [ca]: "NaN",
4274
+ [aa]: "Infinity",
4275
+ [la]: "-Infinity"
4271
4276
  };
4272
- Object.entries(la).reduce((e, [t, n]) => (e[n] = t, e), {});
4277
+ Object.entries(fa).reduce((e, [t, n]) => (e[n] = t, e), {});
4273
4278
  g();
4274
4279
  g();
4275
4280
  g();
@@ -4277,14 +4282,14 @@ g();
4277
4282
  g();
4278
4283
  var Bn, Un;
4279
4284
  (Un = (Bn = y).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__) != null || (Bn.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set());
4280
- function ca(e, t) {
4285
+ function da(e, t) {
4281
4286
  return no.setupDevToolsPlugin(e, t);
4282
4287
  }
4283
- function fa(e, t) {
4288
+ function pa(e, t) {
4284
4289
  const [n, r] = e;
4285
4290
  if (n.app !== t)
4286
4291
  return;
4287
- const o = new oa({
4292
+ const o = new sa({
4288
4293
  plugin: {
4289
4294
  setupFn: r,
4290
4295
  descriptor: n
@@ -4296,8 +4301,8 @@ function fa(e, t) {
4296
4301
  }), r(o);
4297
4302
  }
4298
4303
  function ro(e, t) {
4299
- y.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || x.highPerfModeEnabled && !(t != null && t.inspectingComponent) || (y.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), Mt.forEach((n) => {
4300
- fa(n, e);
4304
+ y.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || R.highPerfModeEnabled && !(t != null && t.inspectingComponent) || (y.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), Lt.forEach((n) => {
4305
+ pa(n, e);
4301
4306
  }));
4302
4307
  }
4303
4308
  g();
@@ -4320,7 +4325,7 @@ new Proxy(y[Ce], {
4320
4325
  return y[Ce];
4321
4326
  }
4322
4327
  });
4323
- function da(e) {
4328
+ function ha(e) {
4324
4329
  const t = /* @__PURE__ */ new Map();
4325
4330
  return ((e == null ? void 0 : e.getRoutes()) || []).filter((n) => !t.has(n.path) && t.set(n.path, 1));
4326
4331
  }
@@ -4335,7 +4340,7 @@ function Vt(e) {
4335
4340
  };
4336
4341
  });
4337
4342
  }
4338
- function pa(e) {
4343
+ function _a(e) {
4339
4344
  if (e) {
4340
4345
  const { fullPath: t, hash: n, href: r, path: o, name: i, matched: s, params: a, query: l } = e;
4341
4346
  return {
@@ -4351,10 +4356,10 @@ function pa(e) {
4351
4356
  }
4352
4357
  return e;
4353
4358
  }
4354
- function ha(e, t) {
4359
+ function ma(e, t) {
4355
4360
  function n() {
4356
4361
  var r;
4357
- const o = (r = e.app) == null ? void 0 : r.config.globalProperties.$router, i = pa(o == null ? void 0 : o.currentRoute.value), s = Vt(da(o)), a = console.warn;
4362
+ const o = (r = e.app) == null ? void 0 : r.config.globalProperties.$router, i = _a(o == null ? void 0 : o.currentRoute.value), s = Vt(ha(o)), a = console.warn;
4358
4363
  console.warn = () => {
4359
4364
  }, y[le] = {
4360
4365
  currentRoute: i ? hn(i) : {},
@@ -4363,16 +4368,16 @@ function ha(e, t) {
4363
4368
  }
4364
4369
  n(), no.on.componentUpdated(ae(() => {
4365
4370
  var r;
4366
- ((r = t.value) == null ? void 0 : r.app) === e.app && (n(), !x.highPerfModeEnabled && de.hooks.callHook("routerInfoUpdated", { state: y[le] }));
4371
+ ((r = t.value) == null ? void 0 : r.app) === e.app && (n(), !R.highPerfModeEnabled && de.hooks.callHook("routerInfoUpdated", { state: y[le] }));
4367
4372
  }, 200));
4368
4373
  }
4369
- function _a(e) {
4374
+ function ga(e) {
4370
4375
  return {
4371
4376
  // get inspector tree
4372
4377
  async getInspectorTree(t) {
4373
4378
  const n = {
4374
4379
  ...t,
4375
- app: M.value.app,
4380
+ app: L.value.app,
4376
4381
  rootNodes: []
4377
4382
  };
4378
4383
  return await new Promise((r) => {
@@ -4389,7 +4394,7 @@ function _a(e) {
4389
4394
  async getInspectorState(t) {
4390
4395
  const n = {
4391
4396
  ...t,
4392
- app: M.value.app,
4397
+ app: L.value.app,
4393
4398
  state: null
4394
4399
  }, r = {
4395
4400
  currentTab: `custom-inspector:${t.inspectorId}`
@@ -4406,9 +4411,9 @@ function _a(e) {
4406
4411
  },
4407
4412
  // edit inspector state
4408
4413
  editInspectorState(t) {
4409
- const n = new Uu(), r = {
4414
+ const n = new $u(), r = {
4410
4415
  ...t,
4411
- app: M.value.app,
4416
+ app: L.value.app,
4412
4417
  set: (o, i = t.path, s = t.state.value, a) => {
4413
4418
  n.set(o, i, s, a || n.createDefaultSetCallback(t.state));
4414
4419
  }
@@ -4423,7 +4428,7 @@ function _a(e) {
4423
4428
  },
4424
4429
  // send inspector state
4425
4430
  sendInspectorState(t) {
4426
- const n = Ne(t);
4431
+ const n = Le(t);
4427
4432
  e.callHook("sendInspectorState", { inspectorId: t, plugin: {
4428
4433
  descriptor: n.descriptor,
4429
4434
  setupFn: () => ({})
@@ -4431,45 +4436,45 @@ function _a(e) {
4431
4436
  },
4432
4437
  // inspect component inspector
4433
4438
  inspectComponentInspector() {
4434
- return Fu();
4439
+ return Lu();
4435
4440
  },
4436
4441
  // cancel inspect component inspector
4437
4442
  cancelInspectComponentInspector() {
4438
- return Ru();
4443
+ return Mu();
4439
4444
  },
4440
4445
  // get component render code
4441
4446
  getComponentRenderCode(t) {
4442
- const n = gt(M.value, t);
4447
+ const n = gt(L.value, t);
4443
4448
  if (n)
4444
4449
  return typeof (n == null ? void 0 : n.type) != "function" ? n.render.toString() : n.type.toString();
4445
4450
  },
4446
4451
  // scroll to component
4447
4452
  scrollToComponent(t) {
4448
- return Lu({ id: t });
4453
+ return Nu({ id: t });
4449
4454
  },
4450
4455
  // open in editor
4451
- openInEditor: Qu,
4456
+ openInEditor: ea,
4452
4457
  // get vue inspector
4453
- getVueInspector: Vu,
4458
+ getVueInspector: Uu,
4454
4459
  // toggle app
4455
4460
  toggleApp(t, n) {
4456
- const r = Ye.value.find((o) => o.id === t);
4457
- r && (Zu(t), Xu(r), ha(r, M), Qr(), ro(r.app, n));
4461
+ const r = Ge.value.find((o) => o.id === t);
4462
+ r && (Ju(t), Qu(r), ma(r, L), Qr(), ro(r.app, n));
4458
4463
  },
4459
4464
  // inspect dom
4460
4465
  inspectDOM(t) {
4461
- const n = gt(M.value, t);
4466
+ const n = gt(L.value, t);
4462
4467
  if (n) {
4463
4468
  const [r] = kt(n);
4464
4469
  r && (y.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = r);
4465
4470
  }
4466
4471
  },
4467
4472
  updatePluginSettings(t, n, r) {
4468
- ta(t, n, r);
4473
+ ra(t, n, r);
4469
4474
  },
4470
4475
  getPluginSettings(t) {
4471
4476
  return {
4472
- options: Ju(t),
4477
+ options: ta(t),
4473
4478
  values: to(t)
4474
4479
  };
4475
4480
  }
@@ -4480,44 +4485,44 @@ var jn, Wn;
4480
4485
  (Wn = (jn = y).__VUE_DEVTOOLS_ENV__) != null || (jn.__VUE_DEVTOOLS_ENV__ = {
4481
4486
  vitePluginDetected: !1
4482
4487
  });
4483
- var Gn = Gu(), Yn, qn;
4488
+ var Gn = qu(), Yn, qn;
4484
4489
  (qn = (Yn = y).__VUE_DEVTOOLS_KIT_CONTEXT__) != null || (Yn.__VUE_DEVTOOLS_KIT_CONTEXT__ = {
4485
4490
  hooks: Gn,
4486
4491
  get state() {
4487
4492
  return {
4488
- ...x,
4489
- activeAppRecordId: M.id,
4490
- activeAppRecord: M.value,
4491
- appRecords: Ye.value
4493
+ ...R,
4494
+ activeAppRecordId: L.id,
4495
+ activeAppRecord: L.value,
4496
+ appRecords: Ge.value
4492
4497
  };
4493
4498
  },
4494
- api: _a(Gn)
4499
+ api: ga(Gn)
4495
4500
  });
4496
4501
  var de = y.__VUE_DEVTOOLS_KIT_CONTEXT__;
4497
4502
  g();
4498
- _u(gu());
4503
+ gu(vu());
4499
4504
  var Xn, Zn;
4500
4505
  (Zn = (Xn = y).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null || (Xn.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
4501
4506
  id: 0,
4502
4507
  appIds: /* @__PURE__ */ new Set()
4503
4508
  });
4504
4509
  g();
4505
- function ma(e) {
4506
- x.highPerfModeEnabled = e ?? !x.highPerfModeEnabled, !e && M.value && ro(M.value.app);
4510
+ function Ea(e) {
4511
+ R.highPerfModeEnabled = e ?? !R.highPerfModeEnabled, !e && L.value && ro(L.value.app);
4507
4512
  }
4508
4513
  g();
4509
4514
  g();
4510
4515
  g();
4511
- function ga(e) {
4512
- x.devtoolsClientDetected = {
4513
- ...x.devtoolsClientDetected,
4516
+ function va(e) {
4517
+ R.devtoolsClientDetected = {
4518
+ ...R.devtoolsClientDetected,
4514
4519
  ...e
4515
4520
  };
4516
- const t = Object.values(x.devtoolsClientDetected).some(Boolean);
4517
- ma(!t);
4521
+ const t = Object.values(R.devtoolsClientDetected).some(Boolean);
4522
+ Ea(!t);
4518
4523
  }
4519
4524
  var Qn, Jn;
4520
- (Jn = (Qn = y).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null || (Qn.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = ga);
4525
+ (Jn = (Qn = y).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null || (Qn.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = va);
4521
4526
  g();
4522
4527
  g();
4523
4528
  g();
@@ -4525,7 +4530,7 @@ g();
4525
4530
  g();
4526
4531
  g();
4527
4532
  g();
4528
- var Ea = class {
4533
+ var ya = class {
4529
4534
  constructor() {
4530
4535
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
4531
4536
  }
@@ -4543,7 +4548,7 @@ var Ea = class {
4543
4548
  }
4544
4549
  }, oo = class {
4545
4550
  constructor(e) {
4546
- this.generateIdentifier = e, this.kv = new Ea();
4551
+ this.generateIdentifier = e, this.kv = new ya();
4547
4552
  }
4548
4553
  register(e, t) {
4549
4554
  this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
@@ -4557,7 +4562,7 @@ var Ea = class {
4557
4562
  getValue(e) {
4558
4563
  return this.kv.getByKey(e);
4559
4564
  }
4560
- }, va = class extends oo {
4565
+ }, Ca = class extends oo {
4561
4566
  constructor() {
4562
4567
  super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
4563
4568
  }
@@ -4570,7 +4575,7 @@ var Ea = class {
4570
4575
  };
4571
4576
  g();
4572
4577
  g();
4573
- function ya(e) {
4578
+ function Aa(e) {
4574
4579
  if ("values" in Object)
4575
4580
  return Object.values(e);
4576
4581
  const t = [];
@@ -4578,8 +4583,8 @@ function ya(e) {
4578
4583
  e.hasOwnProperty(n) && t.push(e[n]);
4579
4584
  return t;
4580
4585
  }
4581
- function Ca(e, t) {
4582
- const n = ya(e);
4586
+ function wa(e, t) {
4587
+ const n = Aa(e);
4583
4588
  if ("find" in n)
4584
4589
  return n.find(t);
4585
4590
  const r = n;
@@ -4592,7 +4597,7 @@ function Ca(e, t) {
4592
4597
  function ce(e, t) {
4593
4598
  Object.entries(e).forEach(([n, r]) => t(r, n));
4594
4599
  }
4595
- function Ve(e, t) {
4600
+ function Ne(e, t) {
4596
4601
  return e.indexOf(t) !== -1;
4597
4602
  }
4598
4603
  function er(e, t) {
@@ -4602,7 +4607,7 @@ function er(e, t) {
4602
4607
  return r;
4603
4608
  }
4604
4609
  }
4605
- var Aa = class {
4610
+ var ba = class {
4606
4611
  constructor() {
4607
4612
  this.transfomers = {};
4608
4613
  }
@@ -4610,7 +4615,7 @@ var Aa = class {
4610
4615
  this.transfomers[e.name] = e;
4611
4616
  }
4612
4617
  findApplicable(e) {
4613
- return Ca(this.transfomers, (t) => t.isApplicable(e));
4618
+ return wa(this.transfomers, (t) => t.isApplicable(e));
4614
4619
  }
4615
4620
  findByName(e) {
4616
4621
  return this.transfomers[e];
@@ -4618,7 +4623,7 @@ var Aa = class {
4618
4623
  };
4619
4624
  g();
4620
4625
  g();
4621
- var wa = (e) => Object.prototype.toString.call(e).slice(8, -1), io = (e) => typeof e > "u", ba = (e) => e === null, Ae = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Ct = (e) => Ae(e) && Object.keys(e).length === 0, X = (e) => Array.isArray(e), Ta = (e) => typeof e == "string", Oa = (e) => typeof e == "number" && !isNaN(e), Sa = (e) => typeof e == "boolean", Pa = (e) => e instanceof RegExp, we = (e) => e instanceof Map, be = (e) => e instanceof Set, so = (e) => wa(e) === "Symbol", Ia = (e) => e instanceof Date && !isNaN(e.valueOf()), Da = (e) => e instanceof Error, tr = (e) => typeof e == "number" && isNaN(e), ka = (e) => Sa(e) || ba(e) || io(e) || Oa(e) || Ta(e) || so(e), xa = (e) => typeof e == "bigint", Ra = (e) => e === 1 / 0 || e === -1 / 0, Fa = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), La = (e) => e instanceof URL;
4626
+ var Ta = (e) => Object.prototype.toString.call(e).slice(8, -1), io = (e) => typeof e > "u", Oa = (e) => e === null, Ae = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Ct = (e) => Ae(e) && Object.keys(e).length === 0, X = (e) => Array.isArray(e), Sa = (e) => typeof e == "string", Pa = (e) => typeof e == "number" && !isNaN(e), Ia = (e) => typeof e == "boolean", Da = (e) => e instanceof RegExp, we = (e) => e instanceof Map, be = (e) => e instanceof Set, so = (e) => Ta(e) === "Symbol", ka = (e) => e instanceof Date && !isNaN(e.valueOf()), xa = (e) => e instanceof Error, tr = (e) => typeof e == "number" && isNaN(e), Ra = (e) => Ia(e) || Oa(e) || io(e) || Pa(e) || Sa(e) || so(e), Fa = (e) => typeof e == "bigint", Ma = (e) => e === 1 / 0 || e === -1 / 0, La = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Na = (e) => e instanceof URL;
4622
4627
  g();
4623
4628
  var uo = (e) => e.replace(/\./g, "\\."), it = (e) => e.map(String).map(uo).join("."), ve = (e) => {
4624
4629
  const t = [];
@@ -4650,9 +4655,9 @@ function z(e, t, n, r) {
4650
4655
  var ao = [
4651
4656
  z(io, "undefined", () => null, () => {
4652
4657
  }),
4653
- z(xa, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
4654
- z(Ia, "Date", (e) => e.toISOString(), (e) => new Date(e)),
4655
- z(Da, "Error", (e, t) => {
4658
+ z(Fa, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
4659
+ z(ka, "Date", (e) => e.toISOString(), (e) => new Date(e)),
4660
+ z(xa, "Error", (e, t) => {
4656
4661
  const n = {
4657
4662
  name: e.name,
4658
4663
  message: e.message
@@ -4666,7 +4671,7 @@ var ao = [
4666
4671
  n[r] = e[r];
4667
4672
  }), n;
4668
4673
  }),
4669
- z(Pa, "regexp", (e) => "" + e, (e) => {
4674
+ z(Da, "regexp", (e) => "" + e, (e) => {
4670
4675
  const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
4671
4676
  return new RegExp(t, n);
4672
4677
  }),
@@ -4679,11 +4684,11 @@ var ao = [
4679
4684
  (e) => new Set(e)
4680
4685
  ),
4681
4686
  z(we, "map", (e) => [...e.entries()], (e) => new Map(e)),
4682
- z((e) => tr(e) || Ra(e), "number", (e) => tr(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
4687
+ z((e) => tr(e) || Ma(e), "number", (e) => tr(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
4683
4688
  z((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
4684
- z(La, "URL", (e) => e.toString(), (e) => new URL(e))
4689
+ z(Na, "URL", (e) => e.toString(), (e) => new URL(e))
4685
4690
  ];
4686
- function qe(e, t, n, r) {
4691
+ function Ye(e, t, n, r) {
4687
4692
  return {
4688
4693
  isApplicable: e,
4689
4694
  annotation: t,
@@ -4691,12 +4696,12 @@ function qe(e, t, n, r) {
4691
4696
  untransform: r
4692
4697
  };
4693
4698
  }
4694
- var lo = qe((e, t) => so(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
4699
+ var lo = Ye((e, t) => so(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
4695
4700
  const r = n.symbolRegistry.getValue(t[1]);
4696
4701
  if (!r)
4697
4702
  throw new Error("Trying to deserialize unknown symbol");
4698
4703
  return r;
4699
- }), Ma = [
4704
+ }), Va = [
4700
4705
  Int8Array,
4701
4706
  Uint8Array,
4702
4707
  Int16Array,
@@ -4706,8 +4711,8 @@ var lo = qe((e, t) => so(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
4706
4711
  Float32Array,
4707
4712
  Float64Array,
4708
4713
  Uint8ClampedArray
4709
- ].reduce((e, t) => (e[t.name] = t, e), {}), co = qe(Fa, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
4710
- const n = Ma[t[1]];
4714
+ ].reduce((e, t) => (e[t.name] = t, e), {}), co = Ye(La, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
4715
+ const n = Va[t[1]];
4711
4716
  if (!n)
4712
4717
  throw new Error("Trying to deserialize unknown typed array");
4713
4718
  return new n(e);
@@ -4715,7 +4720,7 @@ var lo = qe((e, t) => so(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
4715
4720
  function fo(e, t) {
4716
4721
  return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
4717
4722
  }
4718
- var po = qe(fo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
4723
+ var po = Ye(fo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
4719
4724
  const n = t.classRegistry.getAllowedProps(e.constructor);
4720
4725
  if (!n)
4721
4726
  return { ...e };
@@ -4728,13 +4733,13 @@ var po = qe(fo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
4728
4733
  if (!r)
4729
4734
  throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
4730
4735
  return Object.assign(Object.create(r.prototype), e);
4731
- }), ho = qe((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
4736
+ }), ho = Ye((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
4732
4737
  const r = n.customTransformerRegistry.findByName(t[1]);
4733
4738
  if (!r)
4734
4739
  throw new Error("Trying to deserialize unknown custom value");
4735
4740
  return r.deserialize(e);
4736
- }), Na = [po, lo, ho, co], nr = (e, t) => {
4737
- const n = er(Na, (o) => o.isApplicable(e, t));
4741
+ }), Ba = [po, lo, ho, co], nr = (e, t) => {
4742
+ const n = er(Ba, (o) => o.isApplicable(e, t));
4738
4743
  if (n)
4739
4744
  return {
4740
4745
  value: n.transform(e, t),
@@ -4750,7 +4755,7 @@ var po = qe(fo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
4750
4755
  ao.forEach((e) => {
4751
4756
  _o[e.annotation] = e;
4752
4757
  });
4753
- var Va = (e, t, n) => {
4758
+ var Ua = (e, t, n) => {
4754
4759
  if (X(t))
4755
4760
  switch (t[0]) {
4756
4761
  case "symbol":
@@ -4781,14 +4786,14 @@ var oe = (e, t) => {
4781
4786
  return n.next().value;
4782
4787
  };
4783
4788
  function mo(e) {
4784
- if (Ve(e, "__proto__"))
4789
+ if (Ne(e, "__proto__"))
4785
4790
  throw new Error("__proto__ is not allowed as a property");
4786
- if (Ve(e, "prototype"))
4791
+ if (Ne(e, "prototype"))
4787
4792
  throw new Error("prototype is not allowed as a property");
4788
- if (Ve(e, "constructor"))
4793
+ if (Ne(e, "constructor"))
4789
4794
  throw new Error("constructor is not allowed as a property");
4790
4795
  }
4791
- var Ba = (e, t) => {
4796
+ var Ha = (e, t) => {
4792
4797
  mo(t);
4793
4798
  for (let n = 0; n < t.length; n++) {
4794
4799
  const r = t[n];
@@ -4869,14 +4874,14 @@ function wt(e, t, n = []) {
4869
4874
  wt(i, t, [...n, ...ve(s)]);
4870
4875
  }), t(r, n);
4871
4876
  }
4872
- function Ua(e, t, n) {
4877
+ function $a(e, t, n) {
4873
4878
  return wt(t, (r, o) => {
4874
- e = At(e, o, (i) => Va(i, r, n));
4879
+ e = At(e, o, (i) => Ua(i, r, n));
4875
4880
  }), e;
4876
4881
  }
4877
- function Ha(e, t) {
4882
+ function za(e, t) {
4878
4883
  function n(r, o) {
4879
- const i = Ba(e, ve(o));
4884
+ const i = Ha(e, ve(o));
4880
4885
  r.map(ve).forEach((s) => {
4881
4886
  e = At(e, s, () => i);
4882
4887
  });
@@ -4890,12 +4895,12 @@ function Ha(e, t) {
4890
4895
  ce(t, n);
4891
4896
  return e;
4892
4897
  }
4893
- var $a = (e, t) => Ae(e) || X(e) || we(e) || be(e) || fo(e, t);
4894
- function za(e, t, n) {
4898
+ var Ka = (e, t) => Ae(e) || X(e) || we(e) || be(e) || fo(e, t);
4899
+ function ja(e, t, n) {
4895
4900
  const r = n.get(e);
4896
4901
  r ? r.push(t) : n.set(e, [t]);
4897
4902
  }
4898
- function Ka(e, t) {
4903
+ function Wa(e, t) {
4899
4904
  const n = {};
4900
4905
  let r;
4901
4906
  return e.forEach((o) => {
@@ -4908,35 +4913,35 @@ function Ka(e, t) {
4908
4913
  }
4909
4914
  var go = (e, t, n, r, o = [], i = [], s = /* @__PURE__ */ new Map()) => {
4910
4915
  var a;
4911
- const l = ka(e);
4916
+ const l = Ra(e);
4912
4917
  if (!l) {
4913
- za(e, o, t);
4918
+ ja(e, o, t);
4914
4919
  const h = s.get(e);
4915
4920
  if (h)
4916
4921
  return r ? {
4917
4922
  transformedValue: null
4918
4923
  } : h;
4919
4924
  }
4920
- if (!$a(e, n)) {
4921
- const h = nr(e, n), E = h ? {
4925
+ if (!Ka(e, n)) {
4926
+ const h = nr(e, n), v = h ? {
4922
4927
  transformedValue: h.value,
4923
4928
  annotations: [h.type]
4924
4929
  } : {
4925
4930
  transformedValue: e
4926
4931
  };
4927
- return l || s.set(e, E), E;
4932
+ return l || s.set(e, v), v;
4928
4933
  }
4929
- if (Ve(i, e))
4934
+ if (Ne(i, e))
4930
4935
  return {
4931
4936
  transformedValue: null
4932
4937
  };
4933
4938
  const u = nr(e, n), c = (a = u == null ? void 0 : u.value) != null ? a : e, p = X(c) ? [] : {}, f = {};
4934
- ce(c, (h, E) => {
4935
- if (E === "__proto__" || E === "constructor" || E === "prototype")
4936
- throw new Error(`Detected property ${E}. This is a prototype pollution risk, please remove it from your object.`);
4937
- const d = go(h, t, n, r, [...o, E], [...i, e], s);
4938
- p[E] = d.transformedValue, X(d.annotations) ? f[E] = d.annotations : Ae(d.annotations) && ce(d.annotations, (m, w) => {
4939
- f[uo(E) + "." + w] = m;
4939
+ ce(c, (h, v) => {
4940
+ if (v === "__proto__" || v === "constructor" || v === "prototype")
4941
+ throw new Error(`Detected property ${v}. This is a prototype pollution risk, please remove it from your object.`);
4942
+ const d = go(h, t, n, r, [...o, v], [...i, e], s);
4943
+ p[v] = d.transformedValue, X(d.annotations) ? f[v] = d.annotations : Ae(d.annotations) && ce(d.annotations, (m, w) => {
4944
+ f[uo(v) + "." + w] = m;
4940
4945
  });
4941
4946
  });
4942
4947
  const _ = Ct(f) ? {
@@ -4956,13 +4961,13 @@ function Eo(e) {
4956
4961
  function rr(e) {
4957
4962
  return Eo(e) === "Array";
4958
4963
  }
4959
- function ja(e) {
4964
+ function Ga(e) {
4960
4965
  if (Eo(e) !== "Object")
4961
4966
  return !1;
4962
4967
  const t = Object.getPrototypeOf(e);
4963
4968
  return !!t && t.constructor === Object && t === Object.prototype;
4964
4969
  }
4965
- function Wa(e, t, n, r, o) {
4970
+ function Ya(e, t, n, r, o) {
4966
4971
  const i = {}.propertyIsEnumerable.call(r, t) ? "enumerable" : "nonenumerable";
4967
4972
  i === "enumerable" && (e[t] = n), o && i === "nonenumerable" && Object.defineProperty(e, t, {
4968
4973
  value: n,
@@ -4974,14 +4979,14 @@ function Wa(e, t, n, r, o) {
4974
4979
  function bt(e, t = {}) {
4975
4980
  if (rr(e))
4976
4981
  return e.map((o) => bt(o, t));
4977
- if (!ja(e))
4982
+ if (!Ga(e))
4978
4983
  return e;
4979
4984
  const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
4980
4985
  return [...n, ...r].reduce((o, i) => {
4981
4986
  if (rr(t.props) && !t.props.includes(i))
4982
4987
  return o;
4983
4988
  const s = e[i], a = bt(s, t);
4984
- return Wa(o, i, a, e, t.nonenumerable), o;
4989
+ return Ya(o, i, a, e, t.nonenumerable), o;
4985
4990
  }, {});
4986
4991
  }
4987
4992
  var I = class {
@@ -4989,10 +4994,10 @@ var I = class {
4989
4994
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
4990
4995
  */
4991
4996
  constructor({ dedupe: e = !1 } = {}) {
4992
- this.classRegistry = new va(), this.symbolRegistry = new oo((t) => {
4997
+ this.classRegistry = new Ca(), this.symbolRegistry = new oo((t) => {
4993
4998
  var n;
4994
4999
  return (n = t.description) != null ? n : "";
4995
- }), this.customTransformerRegistry = new Aa(), this.allowedErrorProps = [], this.dedupe = e;
5000
+ }), this.customTransformerRegistry = new ba(), this.allowedErrorProps = [], this.dedupe = e;
4996
5001
  }
4997
5002
  serialize(e) {
4998
5003
  const t = /* @__PURE__ */ new Map(), n = go(e, t, this, this.dedupe), r = {
@@ -5002,7 +5007,7 @@ var I = class {
5002
5007
  ...r.meta,
5003
5008
  values: n.annotations
5004
5009
  });
5005
- const o = Ka(t, this.dedupe);
5010
+ const o = Wa(t, this.dedupe);
5006
5011
  return o && (r.meta = {
5007
5012
  ...r.meta,
5008
5013
  referentialEqualities: o
@@ -5011,7 +5016,7 @@ var I = class {
5011
5016
  deserialize(e) {
5012
5017
  const { json: t, meta: n } = e;
5013
5018
  let r = bt(t);
5014
- return n != null && n.values && (r = Ua(r, n.values, this)), n != null && n.referentialEqualities && (r = Ha(r, n.referentialEqualities)), r;
5019
+ return n != null && n.values && (r = $a(r, n.values, this)), n != null && n.referentialEqualities && (r = za(r, n.referentialEqualities)), r;
5015
5020
  }
5016
5021
  stringify(e) {
5017
5022
  return JSON.stringify(this.serialize(e));
@@ -5086,7 +5091,7 @@ g();
5086
5091
  g();
5087
5092
  g();
5088
5093
  g();
5089
- function Ga(e, t) {
5094
+ function qa(e, t) {
5090
5095
  const n = `▲ ■ ●${e}`;
5091
5096
  typeof mr == "function" ? mr(n, t) : console.log(n);
5092
5097
  }
@@ -5105,10 +5110,10 @@ function Bt(e) {
5105
5110
  function gr(e, t, n) {
5106
5111
  e.push(t), e.length > n && e.shift();
5107
5112
  }
5108
- function Ya(e) {
5113
+ function Xa(e) {
5109
5114
  return (e / 1024).toFixed(2);
5110
5115
  }
5111
- function qa(e) {
5116
+ function Za(e) {
5112
5117
  if (!e)
5113
5118
  return;
5114
5119
  const t = {
@@ -5126,7 +5131,7 @@ function qa(e) {
5126
5131
  let a = performance.now(), l = 0;
5127
5132
  const u = 1, c = ({ timestamp: f }) => {
5128
5133
  var _;
5129
- e.scene.value && (t.memory.allocatedMem = Bt(e.scene.value)), f - a >= n && (a = f, gr(t.fps.accumulator, r.value, s), t.fps.value = r.value, o.value && ((_ = i.value) != null && _.usedJSHeapSize) && (gr(t.memory.accumulator, i.value.usedJSHeapSize / 1024 / 1024, s), t.memory.accumulator.length > 0 && (t.memory.currentMem = t.memory.accumulator.reduce((h, E) => h + E, 0) / t.memory.accumulator.length)));
5134
+ e.scene.value && (t.memory.allocatedMem = Bt(e.scene.value)), f - a >= n && (a = f, gr(t.fps.accumulator, r.value, s), t.fps.value = r.value, o.value && ((_ = i.value) != null && _.usedJSHeapSize) && (gr(t.memory.accumulator, i.value.usedJSHeapSize / 1024 / 1024, s), t.memory.accumulator.length > 0 && (t.memory.currentMem = t.memory.accumulator.reduce((h, v) => h + v, 0) / t.memory.accumulator.length)));
5130
5135
  }, { pause: p } = br(({ delta: f }) => {
5131
5136
  window.__TRES__DEVTOOLS__ && (c({ timestamp: performance.now() }), l += f, l >= u && (window.__TRES__DEVTOOLS__.cb({
5132
5137
  context: e,
@@ -5151,7 +5156,7 @@ const vo = (e) => {
5151
5156
  });
5152
5157
  const n = Bt(e);
5153
5158
  return n > 0 && t.tags.push({
5154
- label: `${Ya(n)} KB`,
5159
+ label: `${Xa(n)} KB`,
5155
5160
  textColor: 15707189,
5156
5161
  backgroundColor: 16775644,
5157
5162
  tooltip: "Memory usage"
@@ -5177,7 +5182,7 @@ const vo = (e) => {
5177
5182
  tooltip: "Position"
5178
5183
  })), t;
5179
5184
  };
5180
- function Xa(e, t, n = "") {
5185
+ function Qa(e, t, n = "") {
5181
5186
  const r = n ? `${n}.${e}` : e;
5182
5187
  return {
5183
5188
  id: `context-${t}-${r}`,
@@ -5202,7 +5207,7 @@ function Tt(e, t, n = /* @__PURE__ */ new WeakSet(), r = 0, o = 4, i, s = "") {
5202
5207
  n.add(e), Object.entries(e).forEach(([c, p]) => {
5203
5208
  if (c.startsWith("_") || typeof p == "function")
5204
5209
  return;
5205
- const f = s ? `${s}.${c}` : c, _ = Xa(c, a, s);
5210
+ const f = s ? `${s}.${c}` : c, _ = Qa(c, a, s);
5206
5211
  c !== "scene" && (Ee(p) ? (_.tags.push({
5207
5212
  label: `Ref<${typeof p.value}>`,
5208
5213
  textColor: 4372611,
@@ -5218,7 +5223,7 @@ function Tt(e, t, n = /* @__PURE__ */ new WeakSet(), r = 0, o = 4, i, s = "") {
5218
5223
  })) : _.label = `${c}: ${JSON.stringify(p)}`, t.children.push(_));
5219
5224
  });
5220
5225
  }
5221
- const Za = (e) => (t) => {
5226
+ const Ja = (e) => (t) => {
5222
5227
  if (t.inspectorId === Te) {
5223
5228
  const n = vo(e.scene.value);
5224
5229
  yo(e.scene.value, n, t.filter);
@@ -5230,7 +5235,7 @@ const Za = (e) => (t) => {
5230
5235
  };
5231
5236
  Tt(e, r), t.rootNodes = [n, r];
5232
5237
  }
5233
- }, Qa = (e, { highlightMesh: t, prevInstance: n }) => (r) => {
5238
+ }, el = (e, { highlightMesh: t, prevInstance: n }) => (r) => {
5234
5239
  var o;
5235
5240
  if (r.inspectorId === Te) {
5236
5241
  if (r.nodeId.includes("scene")) {
@@ -5311,7 +5316,7 @@ const Za = (e) => (t) => {
5311
5316
  });
5312
5317
  }
5313
5318
  }
5314
- }, Ja = (e) => (t) => {
5319
+ }, tl = (e) => (t) => {
5315
5320
  if (t.inspectorId === Te && t.nodeId.includes("scene")) {
5316
5321
  const n = t.nodeId.match(/^scene-(.+)$/), r = n ? n[1] : null;
5317
5322
  if (!r)
@@ -5319,7 +5324,7 @@ const Za = (e) => (t) => {
5319
5324
  qi(e.scene.value, r, t.path, t.state.value);
5320
5325
  }
5321
5326
  }, Te = "tres:inspector";
5322
- function el(e, t) {
5327
+ function nl(e, t) {
5323
5328
  const n = {
5324
5329
  id: "dev.esm.tres",
5325
5330
  label: "TresJS 🪐",
@@ -5328,10 +5333,10 @@ function el(e, t) {
5328
5333
  homepage: "https://docs.tresjs.org",
5329
5334
  app: e
5330
5335
  }, r = null, o = null;
5331
- qa(t), ca(
5336
+ Za(t), da(
5332
5337
  n,
5333
5338
  (i) => {
5334
- typeof i.now != "function" && Ga(
5339
+ typeof i.now != "function" && qa(
5335
5340
  "You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."
5336
5341
  ), i.addInspector({
5337
5342
  id: Te,
@@ -5342,14 +5347,14 @@ function el(e, t) {
5342
5347
  i.sendInspectorTree(Te);
5343
5348
  }, 1e3), setInterval(() => {
5344
5349
  i.notifyComponentUpdate();
5345
- }, 5e3), i.on.getInspectorTree(Za(t)), i.on.getInspectorState(Qa(t, {
5350
+ }, 5e3), i.on.getInspectorTree(Ja(t)), i.on.getInspectorState(el(t, {
5346
5351
  highlightMesh: r,
5347
5352
  prevInstance: o
5348
- })), i.on.editInspectorState(Ja(t));
5353
+ })), i.on.editInspectorState(tl(t));
5349
5354
  }
5350
5355
  );
5351
5356
  }
5352
- const tl = ["data-scene", "data-tres"], nl = /* @__PURE__ */ st({
5357
+ const rl = ["data-scene", "data-tres"], ol = /* @__PURE__ */ st({
5353
5358
  __name: "TresCanvas",
5354
5359
  props: {
5355
5360
  camera: {},
@@ -5368,8 +5373,8 @@ const tl = ["data-scene", "data-tres"], nl = /* @__PURE__ */ st({
5368
5373
  clearColor: { default: "#000000" },
5369
5374
  clearAlpha: { default: 1 },
5370
5375
  shadows: { type: Boolean, default: void 0 },
5371
- toneMapping: { default: jo },
5372
- shadowMapType: { default: Ko },
5376
+ toneMapping: { default: Ko },
5377
+ shadowMapType: { default: zo },
5373
5378
  useLegacyLights: { type: Boolean, default: void 0 },
5374
5379
  outputColorSpace: {},
5375
5380
  toneMappingExposure: {},
@@ -5379,9 +5384,9 @@ const tl = ["data-scene", "data-tres"], nl = /* @__PURE__ */ st({
5379
5384
  },
5380
5385
  emits: ["ready", "pointermissed", "render", "beforeLoop", "loop", "click", "contextmenu", "pointermove", "pointerenter", "pointerleave", "pointerover", "pointerout", "dblclick", "pointerdown", "pointerup", "pointercancel", "lostpointercapture", "wheel"],
5381
5386
  setup(e, { expose: t, emit: n }) {
5382
- const r = e, o = n, i = So(), s = Oe(), a = ut(new vr()), l = zt();
5387
+ const r = e, o = n, i = Oo(), s = Oe(), a = ut(new vr()), l = zt();
5383
5388
  _t(Er);
5384
- const u = (h, E = !1) => st({
5389
+ const u = (h, v = !1) => st({
5385
5390
  setup() {
5386
5391
  var A;
5387
5392
  const d = (A = zt()) == null ? void 0 : A.appContext;
@@ -5391,14 +5396,14 @@ const tl = ["data-scene", "data-tres"], nl = /* @__PURE__ */ st({
5391
5396
  b && (b.parent && w(b.parent), b.provides && Object.assign(m, b.provides));
5392
5397
  }
5393
5398
  return l != null && l.parent && r.enableProvideBridge && (w(l.parent), Reflect.ownKeys(m).forEach((b) => {
5394
- Le(b, m[b]);
5395
- })), Le("useTres", h), Le("extend", _t), typeof window < "u" && (d != null && d.app) && el(d == null ? void 0 : d.app, h), () => Kt(Fo, null, E ? [] : i.default());
5399
+ Xe(b, m[b]);
5400
+ })), Xe(Ls, h), Xe("extend", _t), typeof window < "u" && (d != null && d.app) && nl(d == null ? void 0 : d.app, h), () => Kt(Ro, null, v ? [] : i.default());
5396
5401
  }
5397
- }), c = (h, E = !1) => {
5398
- const d = u(h, E), { render: m } = Ro(Hs(h));
5402
+ }), c = (h, v = !1) => {
5403
+ const d = u(h, v), { render: m } = xo(zs(h));
5399
5404
  m(Kt(d), a.value);
5400
- }, p = (h, E = !1) => {
5401
- He(h.scene.value), E && (h.renderer.instance.dispose(), h.renderer.instance instanceof Cr && (h.renderer.instance.renderLists.dispose(), h.renderer.instance.forceContextLoss())), a.value.__tres = {
5405
+ }, p = (h, v = !1) => {
5406
+ Ue(h.scene.value), v && (h.renderer.instance.dispose(), h.renderer.instance instanceof Cr && (h.renderer.instance.renderLists.dispose(), h.renderer.instance.forceContextLoss())), a.value.__tres = {
5402
5407
  root: h
5403
5408
  };
5404
5409
  }, f = ut(null);
@@ -5406,34 +5411,34 @@ const tl = ["data-scene", "data-tres"], nl = /* @__PURE__ */ st({
5406
5411
  const _ = () => {
5407
5412
  p(f.value), c(f.value, !0);
5408
5413
  };
5409
- return Po(() => {
5414
+ return So(() => {
5410
5415
  const h = s;
5411
- f.value = Ms({
5416
+ f.value = Ns({
5412
5417
  scene: a.value,
5413
5418
  canvas: h,
5414
5419
  windowSize: r.windowSize ?? !1,
5415
5420
  rendererOptions: r
5416
5421
  });
5417
- const { camera: E, renderer: d } = f.value, { registerCamera: m, cameras: w, activeCamera: A, deregisterCamera: b } = E;
5422
+ const { camera: v, renderer: d } = f.value, { registerCamera: m, cameras: w, activeCamera: A, deregisterCamera: b } = v;
5418
5423
  c(f.value);
5419
5424
  const V = () => {
5420
- const P = new Wo(
5425
+ const P = new jo(
5421
5426
  45,
5422
5427
  window.innerWidth / window.innerHeight,
5423
5428
  0.1,
5424
5429
  1e3
5425
5430
  );
5426
5431
  P.position.set(3, 3, 3), P.lookAt(0, 0, 0), m(P);
5427
- const v = W(() => {
5428
- w.value.length >= 2 && (P.removeFromParent(), b(P), v == null || v());
5432
+ const T = W(() => {
5433
+ w.value.length >= 2 && (P.removeFromParent(), b(P), T == null || T());
5429
5434
  });
5430
5435
  };
5431
5436
  f.value.events.onPointerMissed((P) => {
5432
5437
  o("pointermissed", P);
5433
5438
  }), Ot(
5434
5439
  () => r.camera,
5435
- (P, v) => {
5436
- P && m(D(P), !0), v && (D(v).removeFromParent(), b(D(v)));
5440
+ (P, T) => {
5441
+ P && m(D(P), !0), T && (D(T).removeFromParent(), b(D(T)));
5437
5442
  },
5438
5443
  {
5439
5444
  immediate: !0
@@ -5447,13 +5452,13 @@ const tl = ["data-scene", "data-tres"], nl = /* @__PURE__ */ st({
5447
5452
  }), d.onReady(() => {
5448
5453
  o("ready", f.value);
5449
5454
  });
5450
- }), se(_), (h, E) => (Do(), Io("canvas", {
5455
+ }), se(_), (h, v) => (Io(), Po("canvas", {
5451
5456
  ref_key: "canvasRef",
5452
5457
  ref: s,
5453
5458
  "data-scene": a.value.uuid,
5454
- class: xo(h.$attrs.class),
5459
+ class: ko(h.$attrs.class),
5455
5460
  "data-tres": `tresjs ${Fe(Di).version}`,
5456
- style: ko({
5461
+ style: Do({
5457
5462
  display: "block",
5458
5463
  width: "100%",
5459
5464
  height: "100%",
@@ -5464,38 +5469,38 @@ const tl = ["data-scene", "data-tres"], nl = /* @__PURE__ */ st({
5464
5469
  touchAction: "none",
5465
5470
  ...h.$attrs.style
5466
5471
  })
5467
- }, null, 14, tl));
5472
+ }, null, 14, rl));
5468
5473
  }
5469
5474
  });
5470
- function hl(e) {
5475
+ function ml(e) {
5471
5476
  return typeof e == "number" ? [e, e, e] : e instanceof k ? [e.x, e.y, e.z] : e;
5472
5477
  }
5473
- function _l(e) {
5478
+ function gl(e) {
5474
5479
  return e instanceof Me ? e : Array.isArray(e) ? new Me(...e) : new Me(e);
5475
5480
  }
5476
- const rl = [
5481
+ const il = [
5477
5482
  "TresCanvas",
5478
5483
  "TresLeches",
5479
5484
  "TresScene"
5480
- ], ml = {
5485
+ ], El = {
5481
5486
  template: {
5482
5487
  compilerOptions: {
5483
- isCustomElement: (e) => e.startsWith("Tres") && !rl.includes(e) || e === "primitive"
5488
+ isCustomElement: (e) => e.startsWith("Tres") && !il.includes(e) || e === "primitive"
5484
5489
  }
5485
5490
  }
5486
5491
  };
5487
5492
  let j = null;
5488
- const gl = {
5493
+ const vl = {
5489
5494
  updated: (e, t) => {
5490
5495
  var o;
5491
5496
  const n = Zi(t);
5492
5497
  if (!n) {
5493
- Ue(`v-distance-to: problem with binding value: ${t.value}`);
5498
+ Be(`v-distance-to: problem with binding value: ${t.value}`);
5494
5499
  return;
5495
5500
  }
5496
5501
  j && (j.dispose(), e.parent.remove(j));
5497
5502
  const r = n.clone().sub(e.position);
5498
- r.normalize(), j = new Go(r, e.position, e.position.distanceTo(n), 16776960), e.parent.add(j), console.table(
5503
+ r.normalize(), j = new Wo(r, e.position, e.position.distanceTo(n), 16776960), e.parent.add(j), console.table(
5499
5504
  [
5500
5505
  ["Distance:", e.position.distanceTo(n)],
5501
5506
  [`origin: ${e.name || e.type}`, `x:${e.position.x}, y:${e.position.y}, z:${(o = e.position) == null ? void 0 : o.z}`],
@@ -5507,14 +5512,14 @@ const gl = {
5507
5512
  j == null || j.dispose(), e.parent && e.parent.remove(j);
5508
5513
  }
5509
5514
  };
5510
- class Co extends Yo {
5515
+ class Co extends Go {
5511
5516
  constructor(t, n) {
5512
5517
  const r = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0], o = new jt();
5513
5518
  o.setAttribute("position", new Wt(r, 3)), o.computeBoundingSphere();
5514
- const i = new qo({ fog: !1 });
5519
+ const i = new Yo({ fog: !1 });
5515
5520
  super(o, i), this.light = t, this.color = n, this.type = "RectAreaLightHelper";
5516
5521
  const s = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0], a = new jt();
5517
- a.setAttribute("position", new Wt(s, 3)), a.computeBoundingSphere(), this.add(new Ke(a, new yr({ side: Xo, fog: !1 })));
5522
+ a.setAttribute("position", new Wt(s, 3)), a.computeBoundingSphere(), this.add(new ze(a, new yr({ side: qo, fog: !1 })));
5518
5523
  }
5519
5524
  updateMatrixWorld() {
5520
5525
  if (this.scale.set(0.5 * this.light.width, 0.5 * this.light.height, 1), this.color !== void 0)
@@ -5531,31 +5536,31 @@ class Co extends Yo {
5531
5536
  }
5532
5537
  }
5533
5538
  let Re, Y;
5534
- const ol = {
5535
- DirectionalLight: ei,
5536
- PointLight: Jo,
5537
- SpotLight: Qo,
5538
- HemisphereLight: Zo,
5539
+ const sl = {
5540
+ DirectionalLight: Jo,
5541
+ PointLight: Qo,
5542
+ SpotLight: Zo,
5543
+ HemisphereLight: Xo,
5539
5544
  RectAreaLight: Co
5540
- }, El = {
5545
+ }, yl = {
5541
5546
  mounted: (e) => {
5542
5547
  if (!e.isLight) {
5543
- Ue(`${e.type} is not a light`);
5548
+ Be(`${e.type} is not a light`);
5544
5549
  return;
5545
5550
  }
5546
- Re = ol[e.type], e.parent.add(new Re(e, 1, e.color.getHex()));
5551
+ Re = sl[e.type], e.parent.add(new Re(e, 1, e.color.getHex()));
5547
5552
  },
5548
5553
  updated: (e) => {
5549
5554
  Y = e.parent.children.find((t) => t instanceof Re), !(Y instanceof Co) && Y.update();
5550
5555
  },
5551
5556
  unmounted: (e) => {
5552
5557
  if (!e.isLight) {
5553
- Ue(`${e.type} is not a light`);
5558
+ Be(`${e.type} is not a light`);
5554
5559
  return;
5555
5560
  }
5556
5561
  Y = e.parent.children.find((t) => t instanceof Re), Y && Y.dispose && Y.dispose(), e.parent && e.parent.remove(Y);
5557
5562
  }
5558
- }, vl = {
5563
+ }, Cl = {
5559
5564
  mounted: (e, t) => {
5560
5565
  if (t.arg) {
5561
5566
  console.log(`v-log:${t.arg}`, e[t.arg]);
@@ -5563,35 +5568,35 @@ const ol = {
5563
5568
  }
5564
5569
  console.log("v-log", e);
5565
5570
  }
5566
- }, yl = {
5571
+ }, Al = {
5567
5572
  install(e) {
5568
- e.component("TresCanvas", nl);
5573
+ e.component("TresCanvas", ol);
5569
5574
  }
5570
5575
  };
5571
5576
  export {
5572
- nl as TresCanvas,
5573
- fl as UseLoader,
5577
+ ol as TresCanvas,
5578
+ pl as UseLoader,
5574
5579
  ss as buildGraph,
5575
5580
  ht as catalogue,
5576
- yl as default,
5577
- He as dispose,
5581
+ Al as default,
5582
+ Ue as dispose,
5578
5583
  _t as extend,
5579
- ll as isProd,
5584
+ fl as isProd,
5580
5585
  Xt as logError,
5581
- cl as logMessage,
5582
- Ue as logWarning,
5583
- _l as normalizeColor,
5584
- hl as normalizeVectorFlexibleParam,
5585
- ml as templateCompilerOptions,
5586
+ dl as logMessage,
5587
+ Be as logWarning,
5588
+ gl as normalizeColor,
5589
+ ml as normalizeVectorFlexibleParam,
5590
+ El as templateCompilerOptions,
5586
5591
  is as useCameraManager,
5587
- dl as useGraph,
5592
+ hl as useGraph,
5588
5593
  os as useLoader,
5589
- pl as useLoop,
5594
+ _l as useLoop,
5590
5595
  as as useRendererManager,
5591
- Ns as useTres,
5596
+ Bs as useTres,
5592
5597
  Nr as useTresContext,
5593
- Ms as useTresContextProvider,
5594
- gl as vDistanceTo,
5595
- El as vLightHelper,
5596
- vl as vLog
5598
+ Ns as useTresContextProvider,
5599
+ vl as vDistanceTo,
5600
+ yl as vLightHelper,
5601
+ Cl as vLog
5597
5602
  };