@tresjs/core 5.0.0 → 5.0.2
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/README.md +1 -1
- package/dist/tres.js +345 -346
- package/package.json +2 -5
package/dist/tres.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @tresjs/core
|
|
3
|
-
* version: v5.0.
|
|
3
|
+
* version: v5.0.2
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Declarative ThreeJS using Vue Components
|
|
6
6
|
* author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
|
|
@@ -9,7 +9,7 @@ import { reactive as Do, toValue as D, watch as At, onUnmounted as ie, defineCom
|
|
|
9
9
|
import * as vr from "three";
|
|
10
10
|
import { Layers as Vo, Scene as yr, MathUtils as Bo, Clock as Uo, WebGLRenderer as br, Mesh as He, Material as Ho, Vector3 as I, Vector2 as Y, Ray as st, SphereGeometry as jo, Object3D as je, Matrix4 as Te, BufferAttribute as Cr, Triangle as wr, Line3 as zo, Plane as ze, Raycaster as $o, Quaternion as ut, Sphere as Ko, MeshBasicMaterial as Ar, DoubleSide as Wo, Color as xe, PCFSoftShadowMap as Go, ACESFilmicToneMapping as Yo, PerspectiveCamera as qo, ArrowHelper as Xo, Line as Qo, BufferGeometry as Gt, Float32BufferAttribute as Yt, LineBasicMaterial as Zo, BackSide as Jo, HemisphereLightHelper as ei, SpotLightHelper as ti, PointLightHelper as ni, DirectionalLightHelper as ri } from "three";
|
|
11
11
|
import { useAsyncState as oi, whenever as qt, tryOnScopeDispose as ii, createEventHook as Ee, useRafFn as Tr, useDevicePixelRatio as si, useTimeout as ui, unrefElement as ai, useWindowSize as li, useElementSize as ci, refDebounced as Xt, createInjectionState as fi, useFps as di, useMemory as pi, promiseTimeout as hi } from "@vueuse/core";
|
|
12
|
-
const _i = "@tresjs/core", mi = "module", gi = "5.0.
|
|
12
|
+
const _i = "@tresjs/core", mi = "module", gi = "5.0.2", Ei = "pnpm@10.17.0", vi = "Declarative ThreeJS using Vue Components", yi = "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)", bi = "MIT", Ci = { type: "git", url: "git+https://github.com/Tresjs/tres.git" }, wi = ["vue", "3d", "threejs", "three", "threejs-vue"], Ai = !1, Ti = { ".": { types: "./dist/index.d.ts", import: "./dist/tres.js", default: "./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" }, "./*": "./*" }, Oi = "./dist/tres.js", Si = "./dist/index.d.ts", Pi = ["*.d.ts", "dist"], Di = { access: "public" }, Ii = { 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": "pnpm --filter='./docs' dev", "docs:generate": "pnpm --filter='./docs' generate", "docs:prepare": "pnpm --filter='./docs' prepare", "docs:lint": "pnpm --filter='./docs' lint", "docs:typecheck": "pnpm --filter='./docs' typecheck" }, ki = { three: ">=0.133", vue: ">=3.4" }, xi = { "@pmndrs/pointer-events": "^6.6.17", "@vue/devtools-api": "^7.7.2", "@vueuse/core": "^13.9.0", radashi: "^12.6.2" }, Ri = { "@release-it/conventional-changelog": "^10.0.0", "@stackblitz/sdk": "^1.11.0", "@tresjs/cientos": "5.0.0-alpha.1", "@tresjs/eslint-config": "^1.4.0", "@tresjs/leches": "1.0.0-next.0", "@types/three": "^0.180.0", "@typescript-eslint/eslint-plugin": "^8.42.0", "@typescript-eslint/parser": "^8.42.0", "@vitejs/plugin-vue": "^6.0.1", "@vitest/coverage-c8": "^0.33.0", "@vitest/coverage-v8": "^3.2.4", "@vitest/ui": "^3.2.4", "@vue/test-utils": "^2.4.6", eslint: "^9.34.0", "eslint-plugin-vue": "^10.4.0", esno: "^4.8.0", gsap: "^3.13.0", jsdom: "^27.0.0", kolorist: "^1.8.0", ohmyfetch: "^0.4.21", pathe: "^2.0.3", "release-it": "^19.0.4", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-copy": "^3.5.0", "rollup-plugin-visualizer": "^6.0.3", sponsorkit: "^17.0.0", three: "^0.180.0", unocss: "^65.5.0", unplugin: "^2.3.10", "unplugin-vue-components": "^29.0.0", vite: "^7.1.6", "vite-plugin-banner": "^0.8.1", "vite-plugin-dts": "4.5.4", "vite-plugin-inspect": "^11.3.3", "vite-plugin-require-transform": "^1.0.21", "vite-svg-loader": "^5.1.0", vitepress: "1.6.4", vitest: "3.2.4", vue: "3.5.21", "vue-demi": "^0.14.10", "vue-tsc": "^3.0.6" }, Li = { onlyBuiltDependencies: ["better-sqlite3"], ignoredBuiltDependencies: ["vue-demi"], overrides: { ipx: "^3.0.3", vue: "^3.5.21", "vue-router": "^4.5.1" } }, Fi = { unimport: "4.1.1" }, Mi = {
|
|
13
13
|
name: _i,
|
|
14
14
|
type: mi,
|
|
15
15
|
version: gi,
|
|
@@ -21,33 +21,32 @@ const _i = "@tresjs/core", mi = "module", gi = "5.0.0", Ei = "pnpm@10.17.0", vi
|
|
|
21
21
|
keywords: wi,
|
|
22
22
|
sideEffects: Ai,
|
|
23
23
|
exports: Ti,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
resolutions: Mi
|
|
24
|
+
module: Oi,
|
|
25
|
+
types: Si,
|
|
26
|
+
files: Pi,
|
|
27
|
+
publishConfig: Di,
|
|
28
|
+
scripts: Ii,
|
|
29
|
+
peerDependencies: ki,
|
|
30
|
+
dependencies: xi,
|
|
31
|
+
devDependencies: Ri,
|
|
32
|
+
pnpm: Li,
|
|
33
|
+
resolutions: Fi
|
|
35
34
|
};
|
|
36
35
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
37
36
|
// @__NO_SIDE_EFFECTS__
|
|
38
|
-
function
|
|
37
|
+
function Ni(e) {
|
|
39
38
|
const t = /* @__PURE__ */ Object.create(null);
|
|
40
39
|
for (const n of e.split(","))
|
|
41
40
|
t[n] = 1;
|
|
42
41
|
return (n) => n in t;
|
|
43
42
|
}
|
|
44
|
-
const
|
|
43
|
+
const Vi = "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", Bi = /* @__PURE__ */ Ni(Vi);
|
|
45
44
|
function Qt(e) {
|
|
46
45
|
var t;
|
|
47
|
-
const n = ((t = e?.replace(/([A-Z])+/g,
|
|
46
|
+
const n = ((t = e?.replace(/([A-Z])+/g, Ui)) == null ? void 0 : t.split(/(?=[A-Z])|[\.\-\s_]/).map((r) => r.toLowerCase())) ?? [];
|
|
48
47
|
return n.length === 0 ? "" : n.length === 1 ? n[0] : n.reduce((r, o) => `${r}${o.charAt(0).toUpperCase()}${o.slice(1)}`);
|
|
49
48
|
}
|
|
50
|
-
function
|
|
49
|
+
function Ui(e) {
|
|
51
50
|
if (!e || e.length === 0)
|
|
52
51
|
return "";
|
|
53
52
|
const t = e.toLowerCase();
|
|
@@ -77,34 +76,34 @@ function Sr(e) {
|
|
|
77
76
|
return typeof e == "number" && !Number.isNaN(e);
|
|
78
77
|
}
|
|
79
78
|
function Tt(e) {
|
|
80
|
-
return
|
|
79
|
+
return Hi(e, "[object Object]");
|
|
81
80
|
}
|
|
82
81
|
function Ot(e) {
|
|
83
82
|
return typeof e == "string";
|
|
84
83
|
}
|
|
85
|
-
function
|
|
84
|
+
function Hi(e, t) {
|
|
86
85
|
return Object.prototype.toString.call(e) === t;
|
|
87
86
|
}
|
|
88
87
|
function at(e) {
|
|
89
88
|
return typeof e > "u";
|
|
90
89
|
}
|
|
91
|
-
const B = (e) => (t) => Tt(t) && e in t && !!t[e], lt = B("isObject3D"), $e = B("isMesh"), Pr = B("isCamera"),
|
|
90
|
+
const B = (e) => (t) => Tt(t) && e in t && !!t[e], lt = B("isObject3D"), $e = B("isMesh"), Pr = B("isCamera"), ji = B("isOrthographicCamera"), Dr = B("isPerspectiveCamera"), Ir = B("isColor"), zi = (e) => Ot(e) || Sr(e) || Ir(e), Zt = (e) => e instanceof Vo, kr = B("isBufferGeometry"), xr = B("isMaterial"), Rr = B("isLight"), Lr = B("isFog"), Fr = B("isScene"), fl = B("isGroup"), ct = (e) => e !== null && typeof e == "object" && "set" in e && typeof e.set == "function", $i = (e) => ct(e) && "copy" in e && typeof e.copy == "function", Ki = (e) => !!e?.constructor, re = (e) => Pr(e) || ji(e) || Dr(e), Wi = (e) => (
|
|
92
91
|
// NOTE: TresObject is currently defined as
|
|
93
92
|
// TresObject3D | THREE.BufferGeometry | THREE.Material | THREE.Fog
|
|
94
93
|
lt(e) || kr(e) || xr(e) || Lr(e)
|
|
95
|
-
),
|
|
94
|
+
), Gi = B("isPrimitive"), Yi = (e) => Wi(e) && "__tres" in e, qi = (e, t) => {
|
|
96
95
|
let n = 0;
|
|
97
96
|
for (let r = 0; r < e.length; r++)
|
|
98
97
|
t(e[r], r) && (e[n] = e[r], n++);
|
|
99
98
|
return e.length = n, e;
|
|
100
|
-
},
|
|
99
|
+
}, dl = !0, Fe = "[TresJS ▲ ■ ●] ";
|
|
101
100
|
function Jt(...e) {
|
|
102
101
|
typeof e[0] == "string" ? e[0] = Fe + e[0] : e.unshift(Fe), console.error(...e);
|
|
103
102
|
}
|
|
104
103
|
function Me(...e) {
|
|
105
104
|
typeof e[0] == "string" ? e[0] = Fe + e[0] : e.unshift(Fe), console.warn(...e);
|
|
106
105
|
}
|
|
107
|
-
function
|
|
106
|
+
function pl(e, t) {
|
|
108
107
|
}
|
|
109
108
|
function en(e) {
|
|
110
109
|
((n) => "map" in n && !!n.map)(e) && e.map.dispose(), e.dispose();
|
|
@@ -129,7 +128,7 @@ function Ve(e, t) {
|
|
|
129
128
|
function tn(...e) {
|
|
130
129
|
return e.map((t, n) => n === 0 ? t : t.charAt(0).toUpperCase() + t.slice(1)).join("");
|
|
131
130
|
}
|
|
132
|
-
function
|
|
131
|
+
function Xi(e, t, n) {
|
|
133
132
|
const r = /-\d+$/;
|
|
134
133
|
if (Ot(n)) {
|
|
135
134
|
if (r.test(n)) {
|
|
@@ -146,7 +145,7 @@ function Qi(e, t, n) {
|
|
|
146
145
|
} else
|
|
147
146
|
t.__tres.previousAttach = n(e, t);
|
|
148
147
|
}
|
|
149
|
-
function
|
|
148
|
+
function Qi(e, t, n) {
|
|
150
149
|
if (Ot(n)) {
|
|
151
150
|
const { target: r, key: o } = Ve(e, n), i = t.__tres.previousAttach;
|
|
152
151
|
i === void 0 ? delete r[o] : r[o] = i, "__tresDetach" in r && r.__tresDetach();
|
|
@@ -170,7 +169,7 @@ function ft(e) {
|
|
|
170
169
|
const t = e?.__tres?.root;
|
|
171
170
|
t?.renderer && t.renderer.canBeInvalidated.value && t.renderer.invalidate();
|
|
172
171
|
}
|
|
173
|
-
function
|
|
172
|
+
function Zi(e, t, n, r, o) {
|
|
174
173
|
const i = [...t.__tres.objects], s = se(t);
|
|
175
174
|
if (e = se(e), s === e)
|
|
176
175
|
return !0;
|
|
@@ -187,7 +186,7 @@ function Ji(e, t, n, r, o) {
|
|
|
187
186
|
return !0;
|
|
188
187
|
}
|
|
189
188
|
function se(e) {
|
|
190
|
-
if (
|
|
189
|
+
if (Gi(e)) {
|
|
191
190
|
const t = e;
|
|
192
191
|
return t.object.__tres = t.__tres, t.object;
|
|
193
192
|
} else
|
|
@@ -195,14 +194,14 @@ function se(e) {
|
|
|
195
194
|
}
|
|
196
195
|
function Mr(e, t) {
|
|
197
196
|
const n = e.__tres?.parent || t.scene.value;
|
|
198
|
-
e.__tres && (e.__tres.parent = null), n && n.__tres && "objects" in n.__tres &&
|
|
197
|
+
e.__tres && (e.__tres.parent = null), n && n.__tres && "objects" in n.__tres && qi(n.__tres.objects, (r) => r !== e), e.__tres?.attach ? Qi(n, e, e.__tres.attach) : (e.parent?.remove?.(se(e)), e.parent = null);
|
|
199
198
|
}
|
|
200
199
|
function Nr(e, t) {
|
|
201
200
|
e.traverse?.((n) => {
|
|
202
201
|
re(n) && t.camera.deregisterCamera(n);
|
|
203
202
|
}), re(e) && t.camera.deregisterCamera(e), ft(e);
|
|
204
203
|
}
|
|
205
|
-
function
|
|
204
|
+
function Ji(e, t, n) {
|
|
206
205
|
const r = new e(n?.manager), o = Do({
|
|
207
206
|
loaded: 0,
|
|
208
207
|
total: 0,
|
|
@@ -243,7 +242,7 @@ function es(e, t, n) {
|
|
|
243
242
|
progress: o
|
|
244
243
|
};
|
|
245
244
|
}
|
|
246
|
-
const
|
|
245
|
+
const hl = /* @__PURE__ */ ot({
|
|
247
246
|
__name: "component",
|
|
248
247
|
props: {
|
|
249
248
|
loader: {},
|
|
@@ -252,7 +251,7 @@ const _l = /* @__PURE__ */ ot({
|
|
|
252
251
|
},
|
|
253
252
|
emits: ["loaded", "error"],
|
|
254
253
|
setup(e, { emit: t }) {
|
|
255
|
-
const n = e, r = t, { state: o, isLoading: i, error: s } =
|
|
254
|
+
const n = e, r = t, { state: o, isLoading: i, error: s } = Ji(n.loader, n.path, { manager: n.manager });
|
|
256
255
|
return qt(s, (u) => {
|
|
257
256
|
u && r("error", u);
|
|
258
257
|
}), qt(o, (u) => {
|
|
@@ -263,7 +262,7 @@ const _l = /* @__PURE__ */ ot({
|
|
|
263
262
|
error: ke(s)
|
|
264
263
|
});
|
|
265
264
|
}
|
|
266
|
-
}),
|
|
265
|
+
}), es = ({ sizes: e }) => {
|
|
267
266
|
const t = Ae([]), n = J(() => t.value[0]), r = (s) => {
|
|
268
267
|
const u = Pr(s) ? s : t.value.find((l) => l.uuid === s);
|
|
269
268
|
if (!u)
|
|
@@ -287,7 +286,7 @@ const _l = /* @__PURE__ */ ot({
|
|
|
287
286
|
setActiveCamera: r
|
|
288
287
|
};
|
|
289
288
|
};
|
|
290
|
-
function
|
|
289
|
+
function ts(e) {
|
|
291
290
|
const t = { nodes: {}, materials: {}, meshes: {} };
|
|
292
291
|
return e && e.traverse((n) => {
|
|
293
292
|
n.name && (t.nodes[n.name] = n), $e(n) && (t.meshes[n.name] || (t.meshes[n.name] = n), (Array.isArray(n.material) ? n.material : [n.material]).forEach((r) => {
|
|
@@ -295,10 +294,10 @@ function ns(e) {
|
|
|
295
294
|
}));
|
|
296
295
|
}), t;
|
|
297
296
|
}
|
|
298
|
-
const
|
|
297
|
+
const _l = (e) => J(() => {
|
|
299
298
|
const t = D(e);
|
|
300
299
|
if (t)
|
|
301
|
-
return
|
|
300
|
+
return ts(t);
|
|
302
301
|
});
|
|
303
302
|
function nn() {
|
|
304
303
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set();
|
|
@@ -326,7 +325,7 @@ function nn() {
|
|
|
326
325
|
return e.size;
|
|
327
326
|
} };
|
|
328
327
|
}
|
|
329
|
-
const dt = Ae({}), pt = (e) => Object.assign(dt.value, e),
|
|
328
|
+
const dt = Ae({}), pt = (e) => Object.assign(dt.value, e), ns = (e, t, n) => {
|
|
330
329
|
if (!Q(e.setPixelRatio))
|
|
331
330
|
return;
|
|
332
331
|
let r = 0;
|
|
@@ -335,7 +334,7 @@ const dt = Ae({}), pt = (e) => Object.assign(dt.value, e), rs = (e, t, n) => {
|
|
|
335
334
|
r = Bo.clamp(t, o, i);
|
|
336
335
|
} else Sr(n) ? r = n : r = t;
|
|
337
336
|
r !== e.getPixelRatio?.() && e.setPixelRatio(r);
|
|
338
|
-
},
|
|
337
|
+
}, rs = (e) => {
|
|
339
338
|
const t = new Uo(), n = {
|
|
340
339
|
before: Ee(),
|
|
341
340
|
after: Ee()
|
|
@@ -360,7 +359,7 @@ const dt = Ae({}), pt = (e) => Object.assign(dt.value, e), rs = (e, t, n) => {
|
|
|
360
359
|
onLoop: n.after.on
|
|
361
360
|
};
|
|
362
361
|
};
|
|
363
|
-
function
|
|
362
|
+
function os({
|
|
364
363
|
scene: e,
|
|
365
364
|
canvas: t,
|
|
366
365
|
options: n,
|
|
@@ -395,7 +394,7 @@ function is({
|
|
|
395
394
|
};
|
|
396
395
|
const M = (E) => {
|
|
397
396
|
P = E;
|
|
398
|
-
}, A =
|
|
397
|
+
}, A = rs(() => {
|
|
399
398
|
u.value && P(C);
|
|
400
399
|
});
|
|
401
400
|
p.on(A.start), At([r.width, r.height], () => {
|
|
@@ -405,7 +404,7 @@ function is({
|
|
|
405
404
|
});
|
|
406
405
|
const { pixelRatio: O } = si();
|
|
407
406
|
$(() => {
|
|
408
|
-
|
|
407
|
+
ns(s, O.value, D(n.dpr));
|
|
409
408
|
}), D(n.renderMode) === "on-demand" && f(), D(n.renderMode) === "manual" && ui(100, {
|
|
410
409
|
callback: _
|
|
411
410
|
});
|
|
@@ -451,7 +450,7 @@ function is({
|
|
|
451
450
|
replaceRenderFunction: M
|
|
452
451
|
};
|
|
453
452
|
}
|
|
454
|
-
function
|
|
453
|
+
function is(e, t, n = 10) {
|
|
455
454
|
const r = D(e) ? li() : ci(J(() => D(t).parentElement)), o = zt(Xt(r.width, n)), i = zt(Xt(r.height, n)), s = J(() => o.value / i.value);
|
|
456
455
|
return {
|
|
457
456
|
height: i,
|
|
@@ -459,7 +458,7 @@ function ss(e, t, n = 10) {
|
|
|
459
458
|
aspectRatio: s
|
|
460
459
|
};
|
|
461
460
|
}
|
|
462
|
-
class
|
|
461
|
+
class ss {
|
|
463
462
|
nativeEvent;
|
|
464
463
|
NONE = 0;
|
|
465
464
|
CAPTURING_PHASE = 1;
|
|
@@ -567,7 +566,7 @@ class us {
|
|
|
567
566
|
}
|
|
568
567
|
}
|
|
569
568
|
const Xe = new I();
|
|
570
|
-
class L extends
|
|
569
|
+
class L extends ss {
|
|
571
570
|
type;
|
|
572
571
|
bubbles;
|
|
573
572
|
internalPointer;
|
|
@@ -737,7 +736,7 @@ function N(e) {
|
|
|
737
736
|
function Vr(e, t) {
|
|
738
737
|
if (t == null)
|
|
739
738
|
return;
|
|
740
|
-
const n =
|
|
739
|
+
const n = as(t, e.type);
|
|
741
740
|
if (n != null && n.length > 0) {
|
|
742
741
|
const r = e.retarget(t), o = n.length;
|
|
743
742
|
for (let i = 0; i < o && !r.stoppedImmediate; i++)
|
|
@@ -758,24 +757,24 @@ const Br = {
|
|
|
758
757
|
pointerover: "onPointerOver",
|
|
759
758
|
pointerup: "onPointerUp",
|
|
760
759
|
wheel: "onWheel"
|
|
761
|
-
},
|
|
762
|
-
function
|
|
760
|
+
}, us = Object.keys(Br);
|
|
761
|
+
function as(e, t) {
|
|
763
762
|
if (e._listeners != null && t in e._listeners)
|
|
764
763
|
return e._listeners[t];
|
|
765
764
|
let n;
|
|
766
765
|
if (e.isVoidObject && t === "click" && e.parent?.__r3f != null && (n = e.parent.__r3f.root.getState().onPointerMissed), e.__r3f != null && (n = e.__r3f.handlers[Br[t]]), n != null)
|
|
767
766
|
return [n];
|
|
768
767
|
}
|
|
769
|
-
const
|
|
768
|
+
const ls = 1e10, cs = new jo(ls), rn = /* @__PURE__ */ new Map();
|
|
770
769
|
function Ur(e) {
|
|
771
770
|
let t = rn.get(e);
|
|
772
|
-
return t == null && (t = new He(
|
|
771
|
+
return t == null && (t = new He(cs), t.isVoidObject = !0, t.parent = e, t.pointerEventsOrder = -1 / 0, rn.set(e, t)), t;
|
|
773
772
|
}
|
|
774
|
-
function
|
|
773
|
+
function fs(e, t, n) {
|
|
775
774
|
const r = t.normal ?? t.face?.normal;
|
|
776
775
|
return r == null ? !1 : (e.setFromNormalAndCoplanarPoint(r, t.localPoint), e.applyMatrix4(n), !0);
|
|
777
776
|
}
|
|
778
|
-
function
|
|
777
|
+
function ds(e, t, n) {
|
|
779
778
|
if (t === "none" || t === "listener" && !e)
|
|
780
779
|
return !1;
|
|
781
780
|
if (n === "all")
|
|
@@ -789,7 +788,7 @@ function on(e, t) {
|
|
|
789
788
|
return t ? !e : e;
|
|
790
789
|
}
|
|
791
790
|
function Hr(e, t, n, r = !1, o, i, s) {
|
|
792
|
-
const u = r ||
|
|
791
|
+
const u = r || ps(e, t), a = t.pointerEvents ?? o, l = a ?? t.defaultPointerEvents ?? "listener", c = t.pointerEventsType ?? i ?? "all", f = t.pointerEventsOrder ?? s ?? 0, _ = ds(u, l, c), d = n.length;
|
|
793
792
|
if (d === 1)
|
|
794
793
|
(_ === !0 || typeof _ == "function" && _(n[0])) && Qe(n[0], t, l, c, f);
|
|
795
794
|
else if (_ === !0)
|
|
@@ -806,7 +805,7 @@ function Hr(e, t, n, r = !1, o, i, s) {
|
|
|
806
805
|
for (let p = 0; p < v; p++)
|
|
807
806
|
Hr(e, h[p], n, u, a, c, f);
|
|
808
807
|
}
|
|
809
|
-
function
|
|
808
|
+
function ps(e, t) {
|
|
810
809
|
if (t.ancestorsHaveListeners || e === "pointer" && t.ancestorsHavePointerListeners || e === "wheel" && t.ancestorsHaveWheelListeners || t.__r3f != null && t.__r3f?.eventCount > 0 && (e === "wheel" && t.__r3f.handlers.onWheel != null || e === "pointer" && Object.keys(t.__r3f.handlers).some((o) => o != "onWheel")))
|
|
811
810
|
return !0;
|
|
812
811
|
if (t._listeners == null)
|
|
@@ -818,7 +817,7 @@ function hs(e, t) {
|
|
|
818
817
|
const n = Object.entries(t._listeners), r = n.length;
|
|
819
818
|
for (let o = 0; o < r; o++) {
|
|
820
819
|
const i = n[o];
|
|
821
|
-
if (i[0] !== "wheel" &&
|
|
820
|
+
if (i[0] !== "wheel" && us.includes(i[0]) && i[1] != null && i[1].length > 0)
|
|
822
821
|
return !0;
|
|
823
822
|
}
|
|
824
823
|
return !1;
|
|
@@ -826,7 +825,7 @@ function hs(e, t) {
|
|
|
826
825
|
function Qe({ intersector: e, options: t }, n, r, o, i) {
|
|
827
826
|
t.filter?.(n, r, o, i) !== !1 && e.executeIntersection(n, i);
|
|
828
827
|
}
|
|
829
|
-
function
|
|
828
|
+
function hs(e, t, { customSort: n = _s } = {}, r) {
|
|
830
829
|
let o, i, s;
|
|
831
830
|
const u = e.length;
|
|
832
831
|
for (let a = 0; a < u; a++) {
|
|
@@ -835,11 +834,11 @@ function _s(e, t, { customSort: n = ms } = {}, r) {
|
|
|
835
834
|
}
|
|
836
835
|
return s;
|
|
837
836
|
}
|
|
838
|
-
function
|
|
837
|
+
function _s(e, t = 0, n, r = 0) {
|
|
839
838
|
return t != r ? r - t : e.distance - n.distance;
|
|
840
839
|
}
|
|
841
840
|
const sn = 1e7;
|
|
842
|
-
function
|
|
841
|
+
function ms(e, t, n, r, o, i = 0) {
|
|
843
842
|
const s = t.direction.clone().multiplyScalar(sn), u = sn;
|
|
844
843
|
return {
|
|
845
844
|
distance: u + i,
|
|
@@ -853,11 +852,11 @@ function gs(e, t, n, r, o, i = 0) {
|
|
|
853
852
|
localPoint: s
|
|
854
853
|
};
|
|
855
854
|
}
|
|
856
|
-
function
|
|
855
|
+
function gs(e, t, n) {
|
|
857
856
|
for (; n > 0; )
|
|
858
857
|
e.push(t), --n;
|
|
859
858
|
}
|
|
860
|
-
const Ze = Symbol("buttonsDownTime"),
|
|
859
|
+
const Ze = Symbol("buttonsDownTime"), Es = Symbol("buttonsClickTime");
|
|
861
860
|
globalThis.pointerEventspointerMap ??= /* @__PURE__ */ new Map();
|
|
862
861
|
je.prototype.setPointerCapture = function(e) {
|
|
863
862
|
St(e)?.setCapture(this);
|
|
@@ -872,7 +871,7 @@ je.prototype.hasPointerCapture = function(e) {
|
|
|
872
871
|
function St(e) {
|
|
873
872
|
return globalThis.pointerEventspointerMap?.get(e);
|
|
874
873
|
}
|
|
875
|
-
class
|
|
874
|
+
class vs {
|
|
876
875
|
id;
|
|
877
876
|
type;
|
|
878
877
|
state;
|
|
@@ -994,11 +993,11 @@ class ys {
|
|
|
994
993
|
return;
|
|
995
994
|
const { clickThesholdMs: n, contextMenuButton: r = 2, dblClickThresholdMs: o = 500, clickThresholdMs: i = n ?? 300 } = this.options;
|
|
996
995
|
this.pointerCapture = void 0;
|
|
997
|
-
const s =
|
|
996
|
+
const s = ys(this.buttonsDownTime, this.intersection.object[Ze], t.button, t.timeStamp, i), u = this.getCamera();
|
|
998
997
|
if (s && t.button === r && N(new L("contextmenu", !0, t, this, this.intersection, u)), N(new L("pointerup", !0, t, this, this.intersection, u)), !s || t.button === r)
|
|
999
998
|
return;
|
|
1000
999
|
N(new L("click", !0, t, this, this.intersection, u));
|
|
1001
|
-
const { object: a } = this.intersection, l = a[
|
|
1000
|
+
const { object: a } = this.intersection, l = a[Es] ??= /* @__PURE__ */ new Map(), c = l.get(t.button);
|
|
1002
1001
|
if (c == null || t.timeStamp - c > o) {
|
|
1003
1002
|
l.set(t.button, t.timeStamp);
|
|
1004
1003
|
return;
|
|
@@ -1045,26 +1044,26 @@ function jr(e, t, n, r) {
|
|
|
1045
1044
|
const o = n.indexOf(e);
|
|
1046
1045
|
o != -1 ? n.splice(o, 1) : r.push(e), t.push(e), jr(e.parent, t, n, r);
|
|
1047
1046
|
}
|
|
1048
|
-
function
|
|
1047
|
+
function ys(e, t, n, r, o) {
|
|
1049
1048
|
if (t == null)
|
|
1050
1049
|
return !1;
|
|
1051
1050
|
const i = t.get(n);
|
|
1052
1051
|
return !(i == null || r - i > o || i != e.get(n));
|
|
1053
1052
|
}
|
|
1054
|
-
const he = new wr(), Je = new wr(), un = new Y(), an = new Y(), ln = new Y(), et = new I(),
|
|
1055
|
-
function
|
|
1056
|
-
Pe.copy(t).applyMatrix4(
|
|
1053
|
+
const he = new wr(), Je = new wr(), un = new Y(), an = new Y(), ln = new Y(), et = new I(), bs = new Te(), Pe = new I();
|
|
1054
|
+
function Cs(e, t, n) {
|
|
1055
|
+
Pe.copy(t).applyMatrix4(bs.copy(n.matrixWorld).invert());
|
|
1057
1056
|
const r = n.geometry.attributes.uv;
|
|
1058
1057
|
if (r == null || !(r instanceof Cr))
|
|
1059
1058
|
return !1;
|
|
1060
1059
|
let o;
|
|
1061
|
-
return
|
|
1060
|
+
return ws(n, (i, s, u) => {
|
|
1062
1061
|
n.getVertexPosition(i, he.a), n.getVertexPosition(s, he.b), n.getVertexPosition(u, he.c);
|
|
1063
1062
|
const a = he.closestPointToPoint(Pe, et).distanceTo(Pe);
|
|
1064
1063
|
o != null && a >= o || (o = a, Je.copy(he), un.fromBufferAttribute(r, i), an.fromBufferAttribute(r, s), ln.fromBufferAttribute(r, u));
|
|
1065
1064
|
}), o == null ? !1 : (Je.closestPointToPoint(Pe, et), Je.getInterpolation(et, un, an, ln, e), !0);
|
|
1066
1065
|
}
|
|
1067
|
-
function
|
|
1066
|
+
function ws(e, t) {
|
|
1068
1067
|
const n = e.geometry.drawRange;
|
|
1069
1068
|
if (e.geometry.index != null) {
|
|
1070
1069
|
const s = e.geometry.index, u = Math.max(0, n.start), a = Math.min(s.count, n.start + n.count);
|
|
@@ -1086,11 +1085,11 @@ new ze();
|
|
|
1086
1085
|
new st();
|
|
1087
1086
|
new Y();
|
|
1088
1087
|
new I(0, 0, 0), new I(0, 0, 1);
|
|
1089
|
-
const cn = new Te(),
|
|
1088
|
+
const cn = new Te(), As = new I();
|
|
1090
1089
|
new I(0, 0, -1);
|
|
1091
1090
|
new ze();
|
|
1092
|
-
const fn = new Y(),
|
|
1093
|
-
class
|
|
1091
|
+
const fn = new Y(), Ts = new I();
|
|
1092
|
+
class Os {
|
|
1094
1093
|
prepareTransformation;
|
|
1095
1094
|
options;
|
|
1096
1095
|
raycaster = new $o();
|
|
@@ -1117,9 +1116,9 @@ class Ss {
|
|
|
1117
1116
|
const i = this.raycaster.ray.intersectPlane(this.viewPlane, new I());
|
|
1118
1117
|
if (i == null)
|
|
1119
1118
|
return t;
|
|
1120
|
-
t.object.updateWorldMatrix(!0, !1),
|
|
1119
|
+
t.object.updateWorldMatrix(!0, !1), fs(this.viewPlane, t, t.object.matrixWorld);
|
|
1121
1120
|
let s = t.uv;
|
|
1122
|
-
return t.object instanceof He &&
|
|
1121
|
+
return t.object instanceof He && Cs(fn, i, t.object) && (s = fn.clone()), {
|
|
1123
1122
|
...t,
|
|
1124
1123
|
details: {
|
|
1125
1124
|
...o,
|
|
@@ -1136,15 +1135,15 @@ class Ss {
|
|
|
1136
1135
|
}
|
|
1137
1136
|
startIntersection(t) {
|
|
1138
1137
|
const n = this.prepareTransformation(t, this.coords);
|
|
1139
|
-
return n == null ? !1 : (n.updateWorldMatrix(!0, !1), n.matrixWorld.decompose(this.fromPosition, this.fromQuaternion,
|
|
1138
|
+
return n == null ? !1 : (n.updateWorldMatrix(!0, !1), n.matrixWorld.decompose(this.fromPosition, this.fromQuaternion, As), this.raycaster.setFromCamera(this.coords, n), this.viewPlane.setFromNormalAndCoplanarPoint(n.getWorldDirection(Ts), this.raycaster.ray.origin), !0);
|
|
1140
1139
|
}
|
|
1141
1140
|
executeIntersection(t, n) {
|
|
1142
1141
|
const r = this.intersects.length;
|
|
1143
|
-
t.raycast(this.raycaster, this.intersects),
|
|
1142
|
+
t.raycast(this.raycaster, this.intersects), gs(this.pointerEventsOrders, n, this.intersects.length - r);
|
|
1144
1143
|
}
|
|
1145
1144
|
finalizeIntersection(t) {
|
|
1146
|
-
const n = this.fromPosition.clone(), r = this.cameraQuaternion.clone(), o = this.raycaster.ray.direction.clone(), i =
|
|
1147
|
-
return this.intersects.length = 0, this.pointerEventsOrders.length = 0, s == null ?
|
|
1145
|
+
const n = this.fromPosition.clone(), r = this.cameraQuaternion.clone(), o = this.raycaster.ray.direction.clone(), i = hs(this.intersects, this.pointerEventsOrders, this.options), s = i == null ? void 0 : this.intersects[i];
|
|
1146
|
+
return this.intersects.length = 0, this.pointerEventsOrders.length = 0, s == null ? ms(t, this.raycaster.ray, (u, a) => ({
|
|
1148
1147
|
type: "screen-ray",
|
|
1149
1148
|
distanceViewPlane: a,
|
|
1150
1149
|
screenPoint: this.coords.clone(),
|
|
@@ -1175,23 +1174,23 @@ new I();
|
|
|
1175
1174
|
new I();
|
|
1176
1175
|
new I(1e-4, 1e-4, 1e-4);
|
|
1177
1176
|
new Te();
|
|
1178
|
-
let
|
|
1179
|
-
function
|
|
1180
|
-
return
|
|
1177
|
+
let Ss = 23412;
|
|
1178
|
+
function Ps() {
|
|
1179
|
+
return Ss++;
|
|
1181
1180
|
}
|
|
1182
|
-
function
|
|
1181
|
+
function Ds(e, t, n) {
|
|
1183
1182
|
if (!(t instanceof globalThis.MouseEvent))
|
|
1184
1183
|
return n.set(0, 0);
|
|
1185
1184
|
const { width: r, height: o, top: i, left: s } = e.getBoundingClientRect(), u = t.clientX - s, a = t.clientY - i;
|
|
1186
1185
|
return n.set(u / r * 2 - 1, -(a / o) * 2 + 1);
|
|
1187
1186
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return
|
|
1187
|
+
function Is(e, t, n, r) {
|
|
1188
|
+
return ks(
|
|
1190
1189
|
e,
|
|
1191
1190
|
//backwards compatibility
|
|
1192
1191
|
typeof t == "function" ? t : () => t,
|
|
1193
1192
|
n,
|
|
1194
|
-
|
|
1193
|
+
Ds.bind(null, e),
|
|
1195
1194
|
e.setPointerCapture.bind(e),
|
|
1196
1195
|
(o) => {
|
|
1197
1196
|
e.hasPointerCapture(o) && e.releasePointerCapture(o);
|
|
@@ -1202,10 +1201,10 @@ function ks(e, t, n, r) {
|
|
|
1202
1201
|
}
|
|
1203
1202
|
);
|
|
1204
1203
|
}
|
|
1205
|
-
function
|
|
1204
|
+
function ks(e, t, n, r, o, i, s = {}) {
|
|
1206
1205
|
const u = s?.forwardPointerCapture ?? !0, a = /* @__PURE__ */ new Map(), l = s.pointerTypePrefix ?? "forward-", c = (O, T) => {
|
|
1207
1206
|
let E = a.get(O.pointerId);
|
|
1208
|
-
return E != null || (E = new
|
|
1207
|
+
return E != null || (E = new vs(Ps(), `${l}${O.pointerType}`, O.pointerState, new Os((x, R) => (r(x, R), t()), s), t, void 0, u ? o.bind(null, O.pointerId) : void 0, u ? i.bind(null, O.pointerId) : void 0, s), T != "move" && T != "wheel" && (E.setIntersection(E.computeIntersection("pointer", n, O)), E.commit(O, !1)), a.set(O.pointerId, E)), E;
|
|
1209
1208
|
}, f = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), d = [], h = [], v = (O, T, E) => {
|
|
1210
1209
|
switch (O) {
|
|
1211
1210
|
case "move":
|
|
@@ -1263,31 +1262,31 @@ function xs(e, t, n, r, o, i, s = {}) {
|
|
|
1263
1262
|
function dn(e) {
|
|
1264
1263
|
return e.button != null;
|
|
1265
1264
|
}
|
|
1266
|
-
function
|
|
1265
|
+
function xs({
|
|
1267
1266
|
canvas: e,
|
|
1268
1267
|
contextParts: { scene: t, camera: n, renderer: r }
|
|
1269
1268
|
}) {
|
|
1270
|
-
const { update: o, destroy: i } =
|
|
1269
|
+
const { update: o, destroy: i } = Is(D(e), () => D(n.activeCamera), t.value), { off: s } = r.loop.onLoop(o);
|
|
1271
1270
|
ie(i), ie(s);
|
|
1272
1271
|
const u = Ur(t.value), a = Ee();
|
|
1273
1272
|
return u.addEventListener("click", a.trigger), {
|
|
1274
1273
|
onPointerMissed: a.on
|
|
1275
1274
|
};
|
|
1276
1275
|
}
|
|
1277
|
-
const
|
|
1276
|
+
const Rs = "useTres", [Ls, Fs] = fi(({
|
|
1278
1277
|
scene: e,
|
|
1279
1278
|
canvas: t,
|
|
1280
1279
|
windowSize: n,
|
|
1281
1280
|
rendererOptions: r
|
|
1282
1281
|
}) => {
|
|
1283
|
-
const o = it(e), i =
|
|
1282
|
+
const o = it(e), i = is(n, t), s = es({ sizes: i }), u = os(
|
|
1284
1283
|
{
|
|
1285
1284
|
scene: o,
|
|
1286
1285
|
canvas: t,
|
|
1287
1286
|
options: r,
|
|
1288
1287
|
contextParts: { sizes: i, camera: s }
|
|
1289
1288
|
}
|
|
1290
|
-
), a =
|
|
1289
|
+
), a = xs({
|
|
1291
1290
|
canvas: t,
|
|
1292
1291
|
contextParts: { scene: o, camera: s, renderer: u }
|
|
1293
1292
|
}), l = {
|
|
@@ -1305,14 +1304,14 @@ const Ls = "useTres", [Fs, Ms] = fi(({
|
|
|
1305
1304
|
}, {
|
|
1306
1305
|
injectionKey: "useTres"
|
|
1307
1306
|
}), zr = () => {
|
|
1308
|
-
const e =
|
|
1307
|
+
const e = Fs();
|
|
1309
1308
|
if (!e)
|
|
1310
1309
|
throw new Error(`useTresContext must be used together with useTresContextProvider.
|
|
1311
1310
|
You probably tried to use it above or on the same level as a TresCanvas component.
|
|
1312
1311
|
It should be used in child components of a TresCanvas instance.`);
|
|
1313
1312
|
return e;
|
|
1314
1313
|
};
|
|
1315
|
-
function
|
|
1314
|
+
function Ms() {
|
|
1316
1315
|
const { scene: e, renderer: t, camera: n, sizes: r, controls: o, extend: i, events: s } = zr();
|
|
1317
1316
|
return {
|
|
1318
1317
|
scene: e,
|
|
@@ -1326,8 +1325,8 @@ function Ns() {
|
|
|
1326
1325
|
advance: t.advance
|
|
1327
1326
|
};
|
|
1328
1327
|
}
|
|
1329
|
-
const
|
|
1330
|
-
const e =
|
|
1328
|
+
const ml = () => {
|
|
1329
|
+
const e = Ms(), { renderer: t } = zr(), n = nn(), r = nn();
|
|
1331
1330
|
t.loop.onBeforeLoop((i) => {
|
|
1332
1331
|
n.trigger({ ...e, ...i });
|
|
1333
1332
|
}), t.loop.onLoop((i) => {
|
|
@@ -1343,7 +1342,7 @@ const gl = () => {
|
|
|
1343
1342
|
render: o
|
|
1344
1343
|
};
|
|
1345
1344
|
};
|
|
1346
|
-
function
|
|
1345
|
+
function Ns(e, t = {}, n = {}) {
|
|
1347
1346
|
let r = e;
|
|
1348
1347
|
const o = (u) => {
|
|
1349
1348
|
r = u;
|
|
@@ -1362,7 +1361,7 @@ function Vs(e, t = {}, n = {}) {
|
|
|
1362
1361
|
};
|
|
1363
1362
|
return i = new Proxy({}, s), i;
|
|
1364
1363
|
}
|
|
1365
|
-
const
|
|
1364
|
+
const Vs = [
|
|
1366
1365
|
"onClick",
|
|
1367
1366
|
"onContextmenu",
|
|
1368
1367
|
"onPointermove",
|
|
@@ -1376,7 +1375,7 @@ const Bs = [
|
|
|
1376
1375
|
"onPointercancel",
|
|
1377
1376
|
"onLostpointercapture",
|
|
1378
1377
|
"onWheel"
|
|
1379
|
-
],
|
|
1378
|
+
], Bs = {
|
|
1380
1379
|
onClick: "click",
|
|
1381
1380
|
onContextmenu: "contextmenu",
|
|
1382
1381
|
onPointermove: "pointermove",
|
|
@@ -1390,10 +1389,10 @@ const Bs = [
|
|
|
1390
1389
|
onPointercancel: "pointercancel",
|
|
1391
1390
|
onLostpointercapture: "lostpointercapture",
|
|
1392
1391
|
onWheel: "wheel"
|
|
1393
|
-
}, pn = (e) =>
|
|
1392
|
+
}, pn = (e) => Vs.includes(e), Us = (e) => {
|
|
1394
1393
|
const t = e.scene.value;
|
|
1395
1394
|
function n(c, f, _, d) {
|
|
1396
|
-
if (d || (d = {}), d.args || (d.args = []),
|
|
1395
|
+
if (d || (d = {}), d.args || (d.args = []), Bi(c))
|
|
1397
1396
|
return null;
|
|
1398
1397
|
let h = c.replace("Tres", ""), v;
|
|
1399
1398
|
if (c === "primitive") {
|
|
@@ -1401,7 +1400,7 @@ const Bs = [
|
|
|
1401
1400
|
"Tres primitives need an 'object' prop, whose value is an object or shallowRef<object>"
|
|
1402
1401
|
), h = d.object.type;
|
|
1403
1402
|
const p = {};
|
|
1404
|
-
v =
|
|
1403
|
+
v = Ns(
|
|
1405
1404
|
d.object,
|
|
1406
1405
|
{
|
|
1407
1406
|
object: (b) => b,
|
|
@@ -1410,7 +1409,7 @@ const Bs = [
|
|
|
1410
1409
|
},
|
|
1411
1410
|
{
|
|
1412
1411
|
object: (b, C, P, M) => {
|
|
1413
|
-
|
|
1412
|
+
Zi(b, P, M, { patchProp: i, remove: o, insert: r }, e);
|
|
1414
1413
|
},
|
|
1415
1414
|
__tres: (b) => {
|
|
1416
1415
|
Object.assign(p, b);
|
|
@@ -1424,7 +1423,7 @@ const Bs = [
|
|
|
1424
1423
|
), v = new p(...d.args);
|
|
1425
1424
|
}
|
|
1426
1425
|
return v ? (re(v) && (d?.position || v.position.set(3, 3, 3), d?.lookAt || v.lookAt(0, 0, 0)), v = X(v, {
|
|
1427
|
-
...
|
|
1426
|
+
...Yi(v) ? v.__tres : {},
|
|
1428
1427
|
type: h,
|
|
1429
1428
|
memoizedProps: d,
|
|
1430
1429
|
primitive: c === "primitive",
|
|
@@ -1436,7 +1435,7 @@ const Bs = [
|
|
|
1436
1435
|
return;
|
|
1437
1436
|
f = f || t;
|
|
1438
1437
|
const _ = c.__tres ? c : X(c, {}, e), d = f.__tres ? f : X(f, {}, e);
|
|
1439
|
-
c = se(_), f = se(d), re(c) && e.camera?.registerCamera(c), _.__tres.attach ?
|
|
1438
|
+
c = se(_), f = se(d), re(c) && e.camera?.registerCamera(c), _.__tres.attach ? Xi(d, _, _.__tres.attach) : lt(c) && lt(d) && (d.add(c), c.dispatchEvent({ type: "added" })), _.__tres.parent = d, d.__tres.objects && !d.__tres.objects.includes(_) && d.__tres.objects.push(_);
|
|
1440
1439
|
}
|
|
1441
1440
|
function o(c, f) {
|
|
1442
1441
|
if (!c)
|
|
@@ -1470,7 +1469,7 @@ const Bs = [
|
|
|
1470
1469
|
c.__tres || (c = X(c, {}, e)), c.__tres.dispose = d;
|
|
1471
1470
|
return;
|
|
1472
1471
|
}
|
|
1473
|
-
pn(f) && Q(d) && c.addEventListener(
|
|
1472
|
+
pn(f) && Q(d) && c.addEventListener(Bs[f], d);
|
|
1474
1473
|
let p = Qt(v), g = h?.[p];
|
|
1475
1474
|
if (v === "args") {
|
|
1476
1475
|
const C = c, P = _ ?? [], M = d ?? [], A = c.__tres?.type || c.type;
|
|
@@ -1508,7 +1507,7 @@ const Bs = [
|
|
|
1508
1507
|
pn(f) || (Array.isArray(b) ? c[p](...b) : c[p](b)), p.startsWith("on") && Q(b) && (h[p] = b);
|
|
1509
1508
|
return;
|
|
1510
1509
|
}
|
|
1511
|
-
Zt(g) && Zt(b) ? g.mask = b.mask : Ir(g) &&
|
|
1510
|
+
Zt(g) && Zt(b) ? g.mask = b.mask : Ir(g) && zi(b) ? g.set(b) : $i(g) && Ki(b) && g.constructor === b.constructor ? g.copy(b) : ct(g) && Array.isArray(b) ? "fromArray" in g && typeof g.fromArray == "function" ? g.fromArray(b) : g.set(...b) : ct(g) && typeof b == "number" ? "setScalar" in g && typeof g.setScalar == "function" ? g.setScalar(b) : g.set(b) : h[p] = b, re(c) && c.updateProjectionMatrix(), ft(c);
|
|
1512
1511
|
}
|
|
1513
1512
|
function s(c) {
|
|
1514
1513
|
return c?.__tres?.parent || null;
|
|
@@ -1539,8 +1538,8 @@ const Bs = [
|
|
|
1539
1538
|
cloneNode: l,
|
|
1540
1539
|
insertStaticContent: l
|
|
1541
1540
|
};
|
|
1542
|
-
},
|
|
1543
|
-
class
|
|
1541
|
+
}, Hs = ["asset-load"];
|
|
1542
|
+
class js {
|
|
1544
1543
|
subscribers = /* @__PURE__ */ new Set();
|
|
1545
1544
|
messageQueue = [];
|
|
1546
1545
|
maxQueueSize = 100;
|
|
@@ -1555,7 +1554,7 @@ class zs {
|
|
|
1555
1554
|
data: n,
|
|
1556
1555
|
timestamp: Date.now()
|
|
1557
1556
|
};
|
|
1558
|
-
this.subscribers.size > 0 ? this.subscribers.forEach((o) => o(r)) :
|
|
1557
|
+
this.subscribers.size > 0 ? this.subscribers.forEach((o) => o(r)) : Hs.includes(t) && this.queueMessage(r);
|
|
1559
1558
|
}
|
|
1560
1559
|
/**
|
|
1561
1560
|
* Queue a message for later delivery
|
|
@@ -1599,26 +1598,26 @@ class zs {
|
|
|
1599
1598
|
this.messageQueue = [];
|
|
1600
1599
|
}
|
|
1601
1600
|
}
|
|
1602
|
-
var
|
|
1601
|
+
var zs = Object.create, $r = Object.defineProperty, $s = Object.getOwnPropertyDescriptor, Pt = Object.getOwnPropertyNames, Ks = Object.getPrototypeOf, Ws = Object.prototype.hasOwnProperty, Gs = (e, t) => function() {
|
|
1603
1602
|
return e && (t = (0, e[Pt(e)[0]])(e = 0)), t;
|
|
1604
|
-
},
|
|
1603
|
+
}, Ys = (e, t) => function() {
|
|
1605
1604
|
return t || (0, e[Pt(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
1606
|
-
},
|
|
1605
|
+
}, qs = (e, t, n, r) => {
|
|
1607
1606
|
if (t && typeof t == "object" || typeof t == "function")
|
|
1608
1607
|
for (let o of Pt(t))
|
|
1609
|
-
!
|
|
1608
|
+
!Ws.call(e, o) && o !== n && $r(e, o, { get: () => t[o], enumerable: !(r = $s(t, o)) || r.enumerable });
|
|
1610
1609
|
return e;
|
|
1611
|
-
},
|
|
1610
|
+
}, Xs = (e, t, n) => (n = e != null ? zs(Ks(e)) : {}, qs(
|
|
1612
1611
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
1613
1612
|
// file that has been converted to a CommonJS file using a Babel-
|
|
1614
1613
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
1615
1614
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1616
1615
|
$r(n, "default", { value: e, enumerable: !0 }),
|
|
1617
1616
|
e
|
|
1618
|
-
)), Oe =
|
|
1617
|
+
)), Oe = Gs({
|
|
1619
1618
|
"../../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"() {
|
|
1620
1619
|
}
|
|
1621
|
-
}),
|
|
1620
|
+
}), Qs = Ys({
|
|
1622
1621
|
"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e, t) {
|
|
1623
1622
|
Oe(), t.exports = r;
|
|
1624
1623
|
function n(i) {
|
|
@@ -1747,14 +1746,14 @@ Kr && (y.self, y.top);
|
|
|
1747
1746
|
var hn;
|
|
1748
1747
|
typeof navigator < "u" && ((hn = navigator.userAgent) == null || hn.toLowerCase().includes("electron"));
|
|
1749
1748
|
Oe();
|
|
1750
|
-
var
|
|
1751
|
-
function
|
|
1749
|
+
var Zs = Xs(Qs()), Js = /(?:^|[-_/])(\w)/g;
|
|
1750
|
+
function eu(e, t) {
|
|
1752
1751
|
return t ? t.toUpperCase() : "";
|
|
1753
1752
|
}
|
|
1754
|
-
function
|
|
1755
|
-
return e && `${e}`.replace(
|
|
1753
|
+
function tu(e) {
|
|
1754
|
+
return e && `${e}`.replace(Js, eu);
|
|
1756
1755
|
}
|
|
1757
|
-
function
|
|
1756
|
+
function nu(e, t) {
|
|
1758
1757
|
let n = e.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
|
|
1759
1758
|
n.endsWith(`index${t}`) && (n = n.replace(`/index${t}`, t));
|
|
1760
1759
|
const r = n.lastIndexOf("/"), o = n.substring(r + 1);
|
|
@@ -1763,15 +1762,15 @@ function ru(e, t) {
|
|
|
1763
1762
|
return o.substring(0, i);
|
|
1764
1763
|
}
|
|
1765
1764
|
}
|
|
1766
|
-
var _n = (0,
|
|
1767
|
-
const
|
|
1765
|
+
var _n = (0, Zs.default)({ circles: !0 });
|
|
1766
|
+
const ru = {
|
|
1768
1767
|
trailing: !0
|
|
1769
1768
|
};
|
|
1770
1769
|
function ue(e, t = 25, n = {}) {
|
|
1771
|
-
if (n = { ...
|
|
1770
|
+
if (n = { ...ru, ...n }, !Number.isFinite(t))
|
|
1772
1771
|
throw new TypeError("Expected `wait` to be a finite number");
|
|
1773
1772
|
let r, o, i = [], s, u;
|
|
1774
|
-
const a = (l, c) => (s =
|
|
1773
|
+
const a = (l, c) => (s = ou(e, l, c), s.finally(() => {
|
|
1775
1774
|
if (s = null, n.trailing && u && !o) {
|
|
1776
1775
|
const f = a(l, u);
|
|
1777
1776
|
return u = null, f;
|
|
@@ -1790,7 +1789,7 @@ function ue(e, t = 25, n = {}) {
|
|
|
1790
1789
|
});
|
|
1791
1790
|
};
|
|
1792
1791
|
}
|
|
1793
|
-
async function
|
|
1792
|
+
async function ou(e, t, n) {
|
|
1794
1793
|
return await e.apply(t, n);
|
|
1795
1794
|
}
|
|
1796
1795
|
function ht(e, t = {}, n) {
|
|
@@ -1800,15 +1799,15 @@ function ht(e, t = {}, n) {
|
|
|
1800
1799
|
}
|
|
1801
1800
|
return t;
|
|
1802
1801
|
}
|
|
1803
|
-
const
|
|
1804
|
-
function
|
|
1802
|
+
const iu = { run: (e) => e() }, su = () => iu, Wr = typeof console.createTask < "u" ? console.createTask : su;
|
|
1803
|
+
function uu(e, t) {
|
|
1805
1804
|
const n = t.shift(), r = Wr(n);
|
|
1806
1805
|
return e.reduce(
|
|
1807
1806
|
(o, i) => o.then(() => r.run(() => i(...t))),
|
|
1808
1807
|
Promise.resolve()
|
|
1809
1808
|
);
|
|
1810
1809
|
}
|
|
1811
|
-
function
|
|
1810
|
+
function au(e, t) {
|
|
1812
1811
|
const n = t.shift(), r = Wr(n);
|
|
1813
1812
|
return Promise.all(e.map((o) => r.run(() => o(...t))));
|
|
1814
1813
|
}
|
|
@@ -1816,7 +1815,7 @@ function tt(e, t) {
|
|
|
1816
1815
|
for (const n of [...e])
|
|
1817
1816
|
n(t);
|
|
1818
1817
|
}
|
|
1819
|
-
class
|
|
1818
|
+
class lu {
|
|
1820
1819
|
constructor() {
|
|
1821
1820
|
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);
|
|
1822
1821
|
}
|
|
@@ -1885,10 +1884,10 @@ class cu {
|
|
|
1885
1884
|
delete this._hooks[t];
|
|
1886
1885
|
}
|
|
1887
1886
|
callHook(t, ...n) {
|
|
1888
|
-
return n.unshift(t), this.callHookWith(
|
|
1887
|
+
return n.unshift(t), this.callHookWith(uu, t, ...n);
|
|
1889
1888
|
}
|
|
1890
1889
|
callHookParallel(t, ...n) {
|
|
1891
|
-
return n.unshift(t), this.callHookWith(
|
|
1890
|
+
return n.unshift(t), this.callHookWith(au, t, ...n);
|
|
1892
1891
|
}
|
|
1893
1892
|
callHookWith(t, n, ...r) {
|
|
1894
1893
|
const o = this._before || this._after ? { name: n, args: r, context: {} } : void 0;
|
|
@@ -1919,28 +1918,28 @@ class cu {
|
|
|
1919
1918
|
}
|
|
1920
1919
|
}
|
|
1921
1920
|
function Gr() {
|
|
1922
|
-
return new
|
|
1921
|
+
return new lu();
|
|
1923
1922
|
}
|
|
1924
|
-
var
|
|
1923
|
+
var cu = Object.create, Yr = Object.defineProperty, fu = Object.getOwnPropertyDescriptor, Dt = Object.getOwnPropertyNames, du = Object.getPrototypeOf, pu = Object.prototype.hasOwnProperty, hu = (e, t) => function() {
|
|
1925
1924
|
return e && (t = (0, e[Dt(e)[0]])(e = 0)), t;
|
|
1926
1925
|
}, qr = (e, t) => function() {
|
|
1927
1926
|
return t || (0, e[Dt(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
1928
|
-
},
|
|
1927
|
+
}, _u = (e, t, n, r) => {
|
|
1929
1928
|
if (t && typeof t == "object" || typeof t == "function")
|
|
1930
1929
|
for (let o of Dt(t))
|
|
1931
|
-
!
|
|
1930
|
+
!pu.call(e, o) && o !== n && Yr(e, o, { get: () => t[o], enumerable: !(r = fu(t, o)) || r.enumerable });
|
|
1932
1931
|
return e;
|
|
1933
|
-
},
|
|
1932
|
+
}, mu = (e, t, n) => (n = e != null ? cu(du(e)) : {}, _u(
|
|
1934
1933
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
1935
1934
|
// file that has been converted to a CommonJS file using a Babel-
|
|
1936
1935
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
1937
1936
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1938
1937
|
Yr(n, "default", { value: e, enumerable: !0 }),
|
|
1939
1938
|
e
|
|
1940
|
-
)), m =
|
|
1939
|
+
)), m = hu({
|
|
1941
1940
|
"../../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"() {
|
|
1942
1941
|
}
|
|
1943
|
-
}),
|
|
1942
|
+
}), gu = qr({
|
|
1944
1943
|
"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e, t) {
|
|
1945
1944
|
m(), function(n) {
|
|
1946
1945
|
var r = {
|
|
@@ -3324,9 +3323,9 @@ var fu = Object.create, Yr = Object.defineProperty, du = Object.getOwnPropertyDe
|
|
|
3324
3323
|
}
|
|
3325
3324
|
}(e);
|
|
3326
3325
|
}
|
|
3327
|
-
}),
|
|
3326
|
+
}), Eu = qr({
|
|
3328
3327
|
"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e, t) {
|
|
3329
|
-
m(), t.exports =
|
|
3328
|
+
m(), t.exports = gu();
|
|
3330
3329
|
}
|
|
3331
3330
|
});
|
|
3332
3331
|
m();
|
|
@@ -3337,15 +3336,15 @@ m();
|
|
|
3337
3336
|
m();
|
|
3338
3337
|
m();
|
|
3339
3338
|
m();
|
|
3340
|
-
function
|
|
3339
|
+
function vu(e) {
|
|
3341
3340
|
var t;
|
|
3342
3341
|
const n = e.name || e._componentTag || e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || e.__name;
|
|
3343
3342
|
return n === "index" && ((t = e.__file) != null && t.endsWith("index.vue")) ? "" : n;
|
|
3344
3343
|
}
|
|
3345
|
-
function
|
|
3344
|
+
function yu(e) {
|
|
3346
3345
|
const t = e.__file;
|
|
3347
3346
|
if (t)
|
|
3348
|
-
return nu(
|
|
3347
|
+
return tu(nu(t, ".vue"));
|
|
3349
3348
|
}
|
|
3350
3349
|
function mn(e, t) {
|
|
3351
3350
|
return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t;
|
|
@@ -3363,7 +3362,7 @@ function Xr(e) {
|
|
|
3363
3362
|
}
|
|
3364
3363
|
function Ke(e) {
|
|
3365
3364
|
var t, n, r;
|
|
3366
|
-
const o =
|
|
3365
|
+
const o = vu(e?.type || {});
|
|
3367
3366
|
if (o)
|
|
3368
3367
|
return o;
|
|
3369
3368
|
if (e?.root === e)
|
|
@@ -3374,10 +3373,10 @@ function Ke(e) {
|
|
|
3374
3373
|
for (const s in (r = e.appContext) == null ? void 0 : r.components)
|
|
3375
3374
|
if (e.appContext.components[s] === e?.type)
|
|
3376
3375
|
return mn(e, s);
|
|
3377
|
-
const i =
|
|
3376
|
+
const i = yu(e?.type || {});
|
|
3378
3377
|
return i || "Anonymous Component";
|
|
3379
3378
|
}
|
|
3380
|
-
function
|
|
3379
|
+
function bu(e) {
|
|
3381
3380
|
var t, n, r;
|
|
3382
3381
|
const o = (r = (n = (t = e?.appContext) == null ? void 0 : t.app) == null ? void 0 : n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__) != null ? r : 0, i = e === e?.root ? "root" : e.uid;
|
|
3383
3382
|
return `${o}:${i}`;
|
|
@@ -3385,7 +3384,7 @@ function Cu(e) {
|
|
|
3385
3384
|
function _t(e, t) {
|
|
3386
3385
|
return t = t || `${e.id}:root`, e.instanceMap.get(t) || e.instanceMap.get(":root");
|
|
3387
3386
|
}
|
|
3388
|
-
function
|
|
3387
|
+
function Cu() {
|
|
3389
3388
|
const e = {
|
|
3390
3389
|
top: 0,
|
|
3391
3390
|
bottom: 0,
|
|
@@ -3401,11 +3400,11 @@ function wu() {
|
|
|
3401
3400
|
return e;
|
|
3402
3401
|
}
|
|
3403
3402
|
var De;
|
|
3404
|
-
function
|
|
3403
|
+
function wu(e) {
|
|
3405
3404
|
return De || (De = document.createRange()), De.selectNode(e), De.getBoundingClientRect();
|
|
3406
3405
|
}
|
|
3407
|
-
function
|
|
3408
|
-
const t =
|
|
3406
|
+
function Au(e) {
|
|
3407
|
+
const t = Cu();
|
|
3409
3408
|
if (!e.children)
|
|
3410
3409
|
return t;
|
|
3411
3410
|
for (let n = 0, r = e.children.length; n < r; n++) {
|
|
@@ -3415,13 +3414,13 @@ function Tu(e) {
|
|
|
3415
3414
|
i = ee(o.component);
|
|
3416
3415
|
else if (o.el) {
|
|
3417
3416
|
const s = o.el;
|
|
3418
|
-
s.nodeType === 1 || s.getBoundingClientRect ? i = s.getBoundingClientRect() : s.nodeType === 3 && s.data.trim() && (i =
|
|
3417
|
+
s.nodeType === 1 || s.getBoundingClientRect ? i = s.getBoundingClientRect() : s.nodeType === 3 && s.data.trim() && (i = wu(s));
|
|
3419
3418
|
}
|
|
3420
|
-
i &&
|
|
3419
|
+
i && Tu(t, i);
|
|
3421
3420
|
}
|
|
3422
3421
|
return t;
|
|
3423
3422
|
}
|
|
3424
|
-
function
|
|
3423
|
+
function Tu(e, t) {
|
|
3425
3424
|
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;
|
|
3426
3425
|
}
|
|
3427
3426
|
var gn = {
|
|
@@ -3434,13 +3433,13 @@ var gn = {
|
|
|
3434
3433
|
};
|
|
3435
3434
|
function ee(e) {
|
|
3436
3435
|
const t = e.subTree.el;
|
|
3437
|
-
return typeof window > "u" ? gn : Xr(e) ?
|
|
3436
|
+
return typeof window > "u" ? gn : Xr(e) ? Au(e.subTree) : t?.nodeType === 1 ? t?.getBoundingClientRect() : e.subTree.component ? ee(e.subTree.component) : gn;
|
|
3438
3437
|
}
|
|
3439
3438
|
m();
|
|
3440
3439
|
function kt(e) {
|
|
3441
|
-
return Xr(e) ?
|
|
3440
|
+
return Xr(e) ? Ou(e.subTree) : e.subTree ? [e.subTree.el] : [];
|
|
3442
3441
|
}
|
|
3443
|
-
function
|
|
3442
|
+
function Ou(e) {
|
|
3444
3443
|
if (!e.children)
|
|
3445
3444
|
return [];
|
|
3446
3445
|
const t = [];
|
|
@@ -3457,7 +3456,7 @@ var Qr = "__vue-devtools-component-inspector__", Zr = "__vue-devtools-component-
|
|
|
3457
3456
|
borderRadius: "5px",
|
|
3458
3457
|
transition: "all 0.1s ease-in",
|
|
3459
3458
|
pointerEvents: "none"
|
|
3460
|
-
},
|
|
3459
|
+
}, Su = {
|
|
3461
3460
|
fontFamily: "Arial, Helvetica, sans-serif",
|
|
3462
3461
|
padding: "5px 8px",
|
|
3463
3462
|
borderRadius: "4px",
|
|
@@ -3470,7 +3469,7 @@ var Qr = "__vue-devtools-component-inspector__", Zr = "__vue-devtools-component-
|
|
|
3470
3469
|
lineHeight: "24px",
|
|
3471
3470
|
backgroundColor: "#42b883",
|
|
3472
3471
|
boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"
|
|
3473
|
-
},
|
|
3472
|
+
}, Pu = {
|
|
3474
3473
|
display: "inline-block",
|
|
3475
3474
|
fontWeight: 400,
|
|
3476
3475
|
fontStyle: "normal",
|
|
@@ -3480,13 +3479,13 @@ var Qr = "__vue-devtools-component-inspector__", Zr = "__vue-devtools-component-
|
|
|
3480
3479
|
function ce() {
|
|
3481
3480
|
return document.getElementById(Qr);
|
|
3482
3481
|
}
|
|
3483
|
-
function
|
|
3482
|
+
function Du() {
|
|
3484
3483
|
return document.getElementById(Zr);
|
|
3485
3484
|
}
|
|
3486
|
-
function
|
|
3485
|
+
function Iu() {
|
|
3487
3486
|
return document.getElementById(eo);
|
|
3488
3487
|
}
|
|
3489
|
-
function
|
|
3488
|
+
function ku() {
|
|
3490
3489
|
return document.getElementById(Jr);
|
|
3491
3490
|
}
|
|
3492
3491
|
function xt(e) {
|
|
@@ -3507,16 +3506,16 @@ function Rt(e) {
|
|
|
3507
3506
|
});
|
|
3508
3507
|
const r = document.createElement("span");
|
|
3509
3508
|
r.id = Zr, Object.assign(r.style, {
|
|
3510
|
-
...
|
|
3509
|
+
...Su,
|
|
3511
3510
|
top: e.bounds.top < 35 ? 0 : "-35px"
|
|
3512
3511
|
});
|
|
3513
3512
|
const o = document.createElement("span");
|
|
3514
3513
|
o.id = Jr, o.innerHTML = `<${e.name}> `;
|
|
3515
3514
|
const i = document.createElement("i");
|
|
3516
|
-
return i.id = eo, i.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(i.style,
|
|
3515
|
+
return i.id = eo, i.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(i.style, Pu), r.appendChild(o), r.appendChild(i), n.appendChild(r), document.body.appendChild(n), n;
|
|
3517
3516
|
}
|
|
3518
3517
|
function Lt(e) {
|
|
3519
|
-
const t = ce(), n =
|
|
3518
|
+
const t = ce(), n = Du(), r = ku(), o = Iu();
|
|
3520
3519
|
t && (Object.assign(t.style, {
|
|
3521
3520
|
...to,
|
|
3522
3521
|
...xt(e.bounds)
|
|
@@ -3524,7 +3523,7 @@ function Lt(e) {
|
|
|
3524
3523
|
top: e.bounds.top < 35 ? 0 : "-35px"
|
|
3525
3524
|
}), r.innerHTML = `<${e.name}> `, o.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`);
|
|
3526
3525
|
}
|
|
3527
|
-
function
|
|
3526
|
+
function xu(e) {
|
|
3528
3527
|
const t = ee(e);
|
|
3529
3528
|
if (!t.width && !t.height)
|
|
3530
3529
|
return;
|
|
@@ -3546,20 +3545,20 @@ function gt(e) {
|
|
|
3546
3545
|
}
|
|
3547
3546
|
}
|
|
3548
3547
|
}
|
|
3549
|
-
function
|
|
3548
|
+
function Ru(e, t) {
|
|
3550
3549
|
if (e.preventDefault(), e.stopPropagation(), mt) {
|
|
3551
|
-
const n =
|
|
3550
|
+
const n = bu(mt);
|
|
3552
3551
|
t(n);
|
|
3553
3552
|
}
|
|
3554
3553
|
}
|
|
3555
3554
|
var Ue = null;
|
|
3556
|
-
function
|
|
3555
|
+
function Lu() {
|
|
3557
3556
|
no(), window.removeEventListener("mouseover", gt), window.removeEventListener("click", Ue, !0), Ue = null;
|
|
3558
3557
|
}
|
|
3559
|
-
function
|
|
3558
|
+
function Fu() {
|
|
3560
3559
|
return window.addEventListener("mouseover", gt), new Promise((e) => {
|
|
3561
3560
|
function t(n) {
|
|
3562
|
-
n.preventDefault(), n.stopPropagation(),
|
|
3561
|
+
n.preventDefault(), n.stopPropagation(), Ru(n, (r) => {
|
|
3563
3562
|
window.removeEventListener("click", t, !0), Ue = null, window.removeEventListener("mouseover", gt);
|
|
3564
3563
|
const o = ce();
|
|
3565
3564
|
o && (o.style.display = "none"), e(JSON.stringify({ id: r }));
|
|
@@ -3568,7 +3567,7 @@ function Mu() {
|
|
|
3568
3567
|
Ue = t, window.addEventListener("click", t, !0);
|
|
3569
3568
|
});
|
|
3570
3569
|
}
|
|
3571
|
-
function
|
|
3570
|
+
function Mu(e) {
|
|
3572
3571
|
const t = _t(F.value, e.id);
|
|
3573
3572
|
if (t) {
|
|
3574
3573
|
const [n] = kt(t);
|
|
@@ -3601,36 +3600,36 @@ function Nu(e) {
|
|
|
3601
3600
|
m();
|
|
3602
3601
|
var En, vn;
|
|
3603
3602
|
(vn = (En = y).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__) != null || (En.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = !0);
|
|
3604
|
-
function
|
|
3603
|
+
function Nu(e) {
|
|
3605
3604
|
let t = 0;
|
|
3606
3605
|
const n = setInterval(() => {
|
|
3607
3606
|
y.__VUE_INSPECTOR__ && (clearInterval(n), t += 30, e()), t >= /* 5s */
|
|
3608
3607
|
5e3 && clearInterval(n);
|
|
3609
3608
|
}, 30);
|
|
3610
3609
|
}
|
|
3611
|
-
function
|
|
3610
|
+
function Vu() {
|
|
3612
3611
|
const e = y.__VUE_INSPECTOR__, t = e.openInEditor;
|
|
3613
3612
|
e.openInEditor = async (...n) => {
|
|
3614
3613
|
e.disable(), t(...n);
|
|
3615
3614
|
};
|
|
3616
3615
|
}
|
|
3617
|
-
function
|
|
3616
|
+
function Bu() {
|
|
3618
3617
|
return new Promise((e) => {
|
|
3619
3618
|
function t() {
|
|
3620
|
-
|
|
3619
|
+
Vu(), e(y.__VUE_INSPECTOR__);
|
|
3621
3620
|
}
|
|
3622
|
-
y.__VUE_INSPECTOR__ ? t() :
|
|
3621
|
+
y.__VUE_INSPECTOR__ ? t() : Nu(() => {
|
|
3623
3622
|
t();
|
|
3624
3623
|
});
|
|
3625
3624
|
});
|
|
3626
3625
|
}
|
|
3627
3626
|
m();
|
|
3628
3627
|
m();
|
|
3629
|
-
function
|
|
3628
|
+
function Uu(e) {
|
|
3630
3629
|
return !!(e && e.__v_isReadonly);
|
|
3631
3630
|
}
|
|
3632
3631
|
function ro(e) {
|
|
3633
|
-
return
|
|
3632
|
+
return Uu(e) ? ro(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
3634
3633
|
}
|
|
3635
3634
|
function nt(e) {
|
|
3636
3635
|
return !!(e && e.__v_isRef === !0);
|
|
@@ -3639,9 +3638,9 @@ function _e(e) {
|
|
|
3639
3638
|
const t = e && e.__v_raw;
|
|
3640
3639
|
return t ? _e(t) : e;
|
|
3641
3640
|
}
|
|
3642
|
-
var
|
|
3641
|
+
var Hu = class {
|
|
3643
3642
|
constructor() {
|
|
3644
|
-
this.refEditor = new
|
|
3643
|
+
this.refEditor = new ju();
|
|
3645
3644
|
}
|
|
3646
3645
|
set(e, t, n, r) {
|
|
3647
3646
|
const o = Array.isArray(t) ? t : t.split(".");
|
|
@@ -3677,7 +3676,7 @@ var ju = class {
|
|
|
3677
3676
|
}
|
|
3678
3677
|
};
|
|
3679
3678
|
}
|
|
3680
|
-
},
|
|
3679
|
+
}, ju = class {
|
|
3681
3680
|
set(e, t) {
|
|
3682
3681
|
if (nt(e))
|
|
3683
3682
|
e.value = t;
|
|
@@ -3710,8 +3709,8 @@ var ju = class {
|
|
|
3710
3709
|
m();
|
|
3711
3710
|
m();
|
|
3712
3711
|
m();
|
|
3713
|
-
var
|
|
3714
|
-
function
|
|
3712
|
+
var zu = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
|
|
3713
|
+
function $u() {
|
|
3715
3714
|
if (!Kr || typeof localStorage > "u" || localStorage === null)
|
|
3716
3715
|
return {
|
|
3717
3716
|
recordingState: !1,
|
|
@@ -3721,7 +3720,7 @@ function Ku() {
|
|
|
3721
3720
|
performanceEventEnabled: !1,
|
|
3722
3721
|
selected: ""
|
|
3723
3722
|
};
|
|
3724
|
-
const e = localStorage.getItem(
|
|
3723
|
+
const e = localStorage.getItem(zu);
|
|
3725
3724
|
return e ? JSON.parse(e) : {
|
|
3726
3725
|
recordingState: !1,
|
|
3727
3726
|
mouseEventEnabled: !1,
|
|
@@ -3736,13 +3735,13 @@ m();
|
|
|
3736
3735
|
m();
|
|
3737
3736
|
var yn, bn;
|
|
3738
3737
|
(bn = (yn = y).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS) != null || (yn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = []);
|
|
3739
|
-
var
|
|
3738
|
+
var Ku = new Proxy(y.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, {
|
|
3740
3739
|
get(e, t, n) {
|
|
3741
3740
|
return Reflect.get(e, t, n);
|
|
3742
3741
|
}
|
|
3743
3742
|
});
|
|
3744
|
-
function
|
|
3745
|
-
k.timelineLayersState[t.id] = !1,
|
|
3743
|
+
function Wu(e, t) {
|
|
3744
|
+
k.timelineLayersState[t.id] = !1, Ku.push({
|
|
3746
3745
|
...e,
|
|
3747
3746
|
descriptorId: t.id,
|
|
3748
3747
|
appRecord: It(t.app)
|
|
@@ -3757,7 +3756,7 @@ var Ft = new Proxy(y.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
|
|
|
3757
3756
|
}), oo = ue(() => {
|
|
3758
3757
|
fe.hooks.callHook("sendInspectorToClient", io());
|
|
3759
3758
|
});
|
|
3760
|
-
function
|
|
3759
|
+
function Gu(e, t) {
|
|
3761
3760
|
var n, r;
|
|
3762
3761
|
Ft.push({
|
|
3763
3762
|
options: e,
|
|
@@ -3787,10 +3786,10 @@ function io() {
|
|
|
3787
3786
|
function Re(e, t) {
|
|
3788
3787
|
return Ft.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
|
|
3789
3788
|
}
|
|
3790
|
-
function
|
|
3789
|
+
function Yu() {
|
|
3791
3790
|
const e = Gr();
|
|
3792
3791
|
e.hook("addInspector", ({ inspector: r, plugin: o }) => {
|
|
3793
|
-
|
|
3792
|
+
Gu(r, o.descriptor);
|
|
3794
3793
|
});
|
|
3795
3794
|
const t = ue(async ({ inspectorId: r, plugin: o }) => {
|
|
3796
3795
|
var i;
|
|
@@ -3858,7 +3857,7 @@ function qu() {
|
|
|
3858
3857
|
const s = Re(r, i.descriptor.app);
|
|
3859
3858
|
s && (s.selectedNodeId = o);
|
|
3860
3859
|
}), e.hook("timelineLayerAdded", ({ options: r, plugin: o }) => {
|
|
3861
|
-
|
|
3860
|
+
Wu(r, o.descriptor);
|
|
3862
3861
|
}), e.hook("timelineEventAdded", ({ options: r, plugin: o }) => {
|
|
3863
3862
|
var i;
|
|
3864
3863
|
const s = ["performance", "component-event", "keyboard", "mouse"];
|
|
@@ -3877,7 +3876,7 @@ function qu() {
|
|
|
3877
3876
|
return [...o.instanceMap].filter(([u]) => u.split(":")[0] === i).map(([, u]) => u);
|
|
3878
3877
|
}), e.hook("getComponentBounds", async ({ instance: r }) => ee(r)), e.hook("getComponentName", ({ instance: r }) => Ke(r)), e.hook("componentHighlight", ({ uid: r }) => {
|
|
3879
3878
|
const o = F.value.instanceMap.get(r);
|
|
3880
|
-
o &&
|
|
3879
|
+
o && xu(o);
|
|
3881
3880
|
}), e.hook("componentUnhighlight", () => {
|
|
3882
3881
|
no();
|
|
3883
3882
|
}), e;
|
|
@@ -3893,7 +3892,7 @@ var In, kn;
|
|
|
3893
3892
|
var xn, Rn;
|
|
3894
3893
|
(Rn = (xn = y).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__) != null || (xn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = []);
|
|
3895
3894
|
var Z = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";
|
|
3896
|
-
function
|
|
3895
|
+
function qu() {
|
|
3897
3896
|
return {
|
|
3898
3897
|
connected: !1,
|
|
3899
3898
|
clientConnected: !1,
|
|
@@ -3905,12 +3904,12 @@ function Xu() {
|
|
|
3905
3904
|
highPerfModeEnabled: !0,
|
|
3906
3905
|
devtoolsClientDetected: {},
|
|
3907
3906
|
perfUniqueGroupId: 0,
|
|
3908
|
-
timelineLayersState:
|
|
3907
|
+
timelineLayersState: $u()
|
|
3909
3908
|
};
|
|
3910
3909
|
}
|
|
3911
3910
|
var Ln, Fn;
|
|
3912
|
-
(Fn = (Ln = y)[Z]) != null || (Ln[Z] =
|
|
3913
|
-
var
|
|
3911
|
+
(Fn = (Ln = y)[Z]) != null || (Ln[Z] = qu());
|
|
3912
|
+
var Xu = ue((e) => {
|
|
3914
3913
|
fe.hooks.callHook("devtoolsStateUpdated", { state: e });
|
|
3915
3914
|
});
|
|
3916
3915
|
ue((e, t) => {
|
|
@@ -3926,7 +3925,7 @@ var We = new Proxy(y.__VUE_DEVTOOLS_KIT_APP_RECORDS__, {
|
|
|
3926
3925
|
}
|
|
3927
3926
|
});
|
|
3928
3927
|
function so() {
|
|
3929
|
-
|
|
3928
|
+
Xu({
|
|
3930
3929
|
...y[Z],
|
|
3931
3930
|
appRecords: We.value,
|
|
3932
3931
|
activeAppRecordId: F.id,
|
|
@@ -3934,10 +3933,10 @@ function so() {
|
|
|
3934
3933
|
commands: y.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__
|
|
3935
3934
|
});
|
|
3936
3935
|
}
|
|
3937
|
-
function
|
|
3936
|
+
function Qu(e) {
|
|
3938
3937
|
y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = e, so();
|
|
3939
3938
|
}
|
|
3940
|
-
function
|
|
3939
|
+
function Zu(e) {
|
|
3941
3940
|
y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = e, so();
|
|
3942
3941
|
}
|
|
3943
3942
|
var k = new Proxy(y[Z], {
|
|
@@ -3951,7 +3950,7 @@ var k = new Proxy(y[Z], {
|
|
|
3951
3950
|
return { ...y[Z] }, e[t] = n, y[Z][t] = n, !0;
|
|
3952
3951
|
}
|
|
3953
3952
|
});
|
|
3954
|
-
function
|
|
3953
|
+
function Ju(e = {}) {
|
|
3955
3954
|
var t, n, r;
|
|
3956
3955
|
const { file: o, host: i, baseUrl: s = window.location.origin, line: u = 0, column: a = 0 } = e;
|
|
3957
3956
|
if (o) {
|
|
@@ -3990,7 +3989,7 @@ function Et(e) {
|
|
|
3990
3989
|
function Nt(e) {
|
|
3991
3990
|
return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`;
|
|
3992
3991
|
}
|
|
3993
|
-
function
|
|
3992
|
+
function ea(e) {
|
|
3994
3993
|
var t, n, r;
|
|
3995
3994
|
const o = (n = (t = Mt.find((i) => {
|
|
3996
3995
|
var s;
|
|
@@ -4012,11 +4011,11 @@ function uo(e, t) {
|
|
|
4012
4011
|
}
|
|
4013
4012
|
return Et(t);
|
|
4014
4013
|
}
|
|
4015
|
-
function
|
|
4014
|
+
function ta(e, t) {
|
|
4016
4015
|
const n = Nt(e);
|
|
4017
4016
|
localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(Et(t)));
|
|
4018
4017
|
}
|
|
4019
|
-
function
|
|
4018
|
+
function na(e, t, n) {
|
|
4020
4019
|
const r = Nt(e), o = localStorage.getItem(r), i = JSON.parse(o || "{}"), s = {
|
|
4021
4020
|
...i,
|
|
4022
4021
|
[t]: n
|
|
@@ -4046,7 +4045,7 @@ m();
|
|
|
4046
4045
|
m();
|
|
4047
4046
|
m();
|
|
4048
4047
|
m();
|
|
4049
|
-
var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVTOOLS_HOOK = Gr(),
|
|
4048
|
+
var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVTOOLS_HOOK = Gr(), ra = {
|
|
4050
4049
|
vueAppInit(e) {
|
|
4051
4050
|
V.hook("app:init", e);
|
|
4052
4051
|
},
|
|
@@ -4078,11 +4077,11 @@ var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVT
|
|
|
4078
4077
|
return V.hook("perf:end", e);
|
|
4079
4078
|
}
|
|
4080
4079
|
}, ao = {
|
|
4081
|
-
on:
|
|
4080
|
+
on: ra,
|
|
4082
4081
|
setupDevToolsPlugin(e, t) {
|
|
4083
4082
|
return V.callHook("devtools-plugin:setup", e, t);
|
|
4084
4083
|
}
|
|
4085
|
-
},
|
|
4084
|
+
}, oa = class {
|
|
4086
4085
|
constructor({ plugin: e, ctx: t }) {
|
|
4087
4086
|
this.hooks = t.hooks, this.plugin = e;
|
|
4088
4087
|
}
|
|
@@ -4146,7 +4145,7 @@ var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVT
|
|
|
4146
4145
|
}
|
|
4147
4146
|
// custom inspector
|
|
4148
4147
|
addInspector(e) {
|
|
4149
|
-
this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings &&
|
|
4148
|
+
this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings && ta(e.id, this.plugin.descriptor.settings);
|
|
4150
4149
|
}
|
|
4151
4150
|
sendInspectorTree(e) {
|
|
4152
4151
|
k.highPerfModeEnabled || this.hooks.callHook("sendInspectorTree", { inspectorId: e, plugin: this.plugin });
|
|
@@ -4194,21 +4193,21 @@ var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVT
|
|
|
4194
4193
|
/* COMPONENT_UNHIGHLIGHT */
|
|
4195
4194
|
);
|
|
4196
4195
|
}
|
|
4197
|
-
},
|
|
4196
|
+
}, ia = oa;
|
|
4198
4197
|
m();
|
|
4199
4198
|
m();
|
|
4200
4199
|
m();
|
|
4201
4200
|
m();
|
|
4202
|
-
var
|
|
4201
|
+
var sa = "__vue_devtool_undefined__", ua = "__vue_devtool_infinity__", aa = "__vue_devtool_negative_infinity__", la = "__vue_devtool_nan__";
|
|
4203
4202
|
m();
|
|
4204
4203
|
m();
|
|
4205
|
-
var
|
|
4206
|
-
[
|
|
4207
|
-
[
|
|
4208
|
-
[
|
|
4209
|
-
[
|
|
4204
|
+
var ca = {
|
|
4205
|
+
[sa]: "undefined",
|
|
4206
|
+
[la]: "NaN",
|
|
4207
|
+
[ua]: "Infinity",
|
|
4208
|
+
[aa]: "-Infinity"
|
|
4210
4209
|
};
|
|
4211
|
-
Object.entries(
|
|
4210
|
+
Object.entries(ca).reduce((e, [t, n]) => (e[n] = t, e), {});
|
|
4212
4211
|
m();
|
|
4213
4212
|
m();
|
|
4214
4213
|
m();
|
|
@@ -4216,14 +4215,14 @@ m();
|
|
|
4216
4215
|
m();
|
|
4217
4216
|
var Un, Hn;
|
|
4218
4217
|
(Hn = (Un = y).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__) != null || (Un.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set());
|
|
4219
|
-
function
|
|
4218
|
+
function fa(e, t) {
|
|
4220
4219
|
return ao.setupDevToolsPlugin(e, t);
|
|
4221
4220
|
}
|
|
4222
|
-
function
|
|
4221
|
+
function da(e, t) {
|
|
4223
4222
|
const [n, r] = e;
|
|
4224
4223
|
if (n.app !== t)
|
|
4225
4224
|
return;
|
|
4226
|
-
const o = new
|
|
4225
|
+
const o = new ia({
|
|
4227
4226
|
plugin: {
|
|
4228
4227
|
setupFn: r,
|
|
4229
4228
|
descriptor: n
|
|
@@ -4236,7 +4235,7 @@ function pa(e, t) {
|
|
|
4236
4235
|
}
|
|
4237
4236
|
function lo(e, t) {
|
|
4238
4237
|
y.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || k.highPerfModeEnabled && !t?.inspectingComponent || (y.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), Mt.forEach((n) => {
|
|
4239
|
-
|
|
4238
|
+
da(n, e);
|
|
4240
4239
|
}));
|
|
4241
4240
|
}
|
|
4242
4241
|
m();
|
|
@@ -4259,7 +4258,7 @@ new Proxy(y[ve], {
|
|
|
4259
4258
|
return y[ve];
|
|
4260
4259
|
}
|
|
4261
4260
|
});
|
|
4262
|
-
function
|
|
4261
|
+
function pa(e) {
|
|
4263
4262
|
const t = /* @__PURE__ */ new Map();
|
|
4264
4263
|
return (e?.getRoutes() || []).filter((n) => !t.has(n.path) && t.set(n.path, 1));
|
|
4265
4264
|
}
|
|
@@ -4274,7 +4273,7 @@ function Vt(e) {
|
|
|
4274
4273
|
};
|
|
4275
4274
|
});
|
|
4276
4275
|
}
|
|
4277
|
-
function
|
|
4276
|
+
function ha(e) {
|
|
4278
4277
|
if (e) {
|
|
4279
4278
|
const { fullPath: t, hash: n, href: r, path: o, name: i, matched: s, params: u, query: a } = e;
|
|
4280
4279
|
return {
|
|
@@ -4290,10 +4289,10 @@ function _a(e) {
|
|
|
4290
4289
|
}
|
|
4291
4290
|
return e;
|
|
4292
4291
|
}
|
|
4293
|
-
function
|
|
4292
|
+
function _a(e, t) {
|
|
4294
4293
|
function n() {
|
|
4295
4294
|
var r;
|
|
4296
|
-
const o = (r = e.app) == null ? void 0 : r.config.globalProperties.$router, i =
|
|
4295
|
+
const o = (r = e.app) == null ? void 0 : r.config.globalProperties.$router, i = ha(o?.currentRoute.value), s = Vt(pa(o)), u = console.warn;
|
|
4297
4296
|
console.warn = () => {
|
|
4298
4297
|
}, y[ae] = {
|
|
4299
4298
|
currentRoute: i ? _n(i) : {},
|
|
@@ -4305,7 +4304,7 @@ function ma(e, t) {
|
|
|
4305
4304
|
((r = t.value) == null ? void 0 : r.app) === e.app && (n(), !k.highPerfModeEnabled && fe.hooks.callHook("routerInfoUpdated", { state: y[ae] }));
|
|
4306
4305
|
}, 200));
|
|
4307
4306
|
}
|
|
4308
|
-
function
|
|
4307
|
+
function ma(e) {
|
|
4309
4308
|
return {
|
|
4310
4309
|
// get inspector tree
|
|
4311
4310
|
async getInspectorTree(t) {
|
|
@@ -4345,7 +4344,7 @@ function ga(e) {
|
|
|
4345
4344
|
},
|
|
4346
4345
|
// edit inspector state
|
|
4347
4346
|
editInspectorState(t) {
|
|
4348
|
-
const n = new
|
|
4347
|
+
const n = new Hu(), r = {
|
|
4349
4348
|
...t,
|
|
4350
4349
|
app: F.value.app,
|
|
4351
4350
|
set: (o, i = t.path, s = t.state.value, u) => {
|
|
@@ -4370,11 +4369,11 @@ function ga(e) {
|
|
|
4370
4369
|
},
|
|
4371
4370
|
// inspect component inspector
|
|
4372
4371
|
inspectComponentInspector() {
|
|
4373
|
-
return
|
|
4372
|
+
return Fu();
|
|
4374
4373
|
},
|
|
4375
4374
|
// cancel inspect component inspector
|
|
4376
4375
|
cancelInspectComponentInspector() {
|
|
4377
|
-
return
|
|
4376
|
+
return Lu();
|
|
4378
4377
|
},
|
|
4379
4378
|
// get component render code
|
|
4380
4379
|
getComponentRenderCode(t) {
|
|
@@ -4384,16 +4383,16 @@ function ga(e) {
|
|
|
4384
4383
|
},
|
|
4385
4384
|
// scroll to component
|
|
4386
4385
|
scrollToComponent(t) {
|
|
4387
|
-
return
|
|
4386
|
+
return Mu({ id: t });
|
|
4388
4387
|
},
|
|
4389
4388
|
// open in editor
|
|
4390
|
-
openInEditor:
|
|
4389
|
+
openInEditor: Ju,
|
|
4391
4390
|
// get vue inspector
|
|
4392
|
-
getVueInspector:
|
|
4391
|
+
getVueInspector: Bu,
|
|
4393
4392
|
// toggle app
|
|
4394
4393
|
toggleApp(t, n) {
|
|
4395
4394
|
const r = We.value.find((o) => o.id === t);
|
|
4396
|
-
r && (
|
|
4395
|
+
r && (Zu(t), Qu(r), _a(r, F), oo(), lo(r.app, n));
|
|
4397
4396
|
},
|
|
4398
4397
|
// inspect dom
|
|
4399
4398
|
inspectDOM(t) {
|
|
@@ -4404,11 +4403,11 @@ function ga(e) {
|
|
|
4404
4403
|
}
|
|
4405
4404
|
},
|
|
4406
4405
|
updatePluginSettings(t, n, r) {
|
|
4407
|
-
|
|
4406
|
+
na(t, n, r);
|
|
4408
4407
|
},
|
|
4409
4408
|
getPluginSettings(t) {
|
|
4410
4409
|
return {
|
|
4411
|
-
options:
|
|
4410
|
+
options: ea(t),
|
|
4412
4411
|
values: uo(t)
|
|
4413
4412
|
};
|
|
4414
4413
|
}
|
|
@@ -4419,7 +4418,7 @@ var Wn, Gn;
|
|
|
4419
4418
|
(Gn = (Wn = y).__VUE_DEVTOOLS_ENV__) != null || (Wn.__VUE_DEVTOOLS_ENV__ = {
|
|
4420
4419
|
vitePluginDetected: !1
|
|
4421
4420
|
});
|
|
4422
|
-
var Yn =
|
|
4421
|
+
var Yn = Yu(), qn, Xn;
|
|
4423
4422
|
(Xn = (qn = y).__VUE_DEVTOOLS_KIT_CONTEXT__) != null || (qn.__VUE_DEVTOOLS_KIT_CONTEXT__ = {
|
|
4424
4423
|
hooks: Yn,
|
|
4425
4424
|
get state() {
|
|
@@ -4430,11 +4429,11 @@ var Yn = qu(), qn, Xn;
|
|
|
4430
4429
|
appRecords: We.value
|
|
4431
4430
|
};
|
|
4432
4431
|
},
|
|
4433
|
-
api:
|
|
4432
|
+
api: ma(Yn)
|
|
4434
4433
|
});
|
|
4435
4434
|
var fe = y.__VUE_DEVTOOLS_KIT_CONTEXT__;
|
|
4436
4435
|
m();
|
|
4437
|
-
|
|
4436
|
+
mu(Eu());
|
|
4438
4437
|
var Qn, Zn;
|
|
4439
4438
|
(Zn = (Qn = y).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null || (Qn.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
|
|
4440
4439
|
id: 0,
|
|
@@ -4442,22 +4441,22 @@ var Qn, Zn;
|
|
|
4442
4441
|
});
|
|
4443
4442
|
m();
|
|
4444
4443
|
m();
|
|
4445
|
-
function
|
|
4444
|
+
function ga(e) {
|
|
4446
4445
|
k.highPerfModeEnabled = e ?? !k.highPerfModeEnabled, !e && F.value && lo(F.value.app);
|
|
4447
4446
|
}
|
|
4448
4447
|
m();
|
|
4449
4448
|
m();
|
|
4450
4449
|
m();
|
|
4451
|
-
function
|
|
4450
|
+
function Ea(e) {
|
|
4452
4451
|
k.devtoolsClientDetected = {
|
|
4453
4452
|
...k.devtoolsClientDetected,
|
|
4454
4453
|
...e
|
|
4455
4454
|
};
|
|
4456
4455
|
const t = Object.values(k.devtoolsClientDetected).some(Boolean);
|
|
4457
|
-
|
|
4456
|
+
ga(!t);
|
|
4458
4457
|
}
|
|
4459
4458
|
var Jn, er;
|
|
4460
|
-
(er = (Jn = y).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null || (Jn.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ =
|
|
4459
|
+
(er = (Jn = y).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null || (Jn.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = Ea);
|
|
4461
4460
|
m();
|
|
4462
4461
|
m();
|
|
4463
4462
|
m();
|
|
@@ -4465,7 +4464,7 @@ m();
|
|
|
4465
4464
|
m();
|
|
4466
4465
|
m();
|
|
4467
4466
|
m();
|
|
4468
|
-
var
|
|
4467
|
+
var va = class {
|
|
4469
4468
|
constructor() {
|
|
4470
4469
|
this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
|
|
4471
4470
|
}
|
|
@@ -4483,7 +4482,7 @@ var ya = class {
|
|
|
4483
4482
|
}
|
|
4484
4483
|
}, co = class {
|
|
4485
4484
|
constructor(e) {
|
|
4486
|
-
this.generateIdentifier = e, this.kv = new
|
|
4485
|
+
this.generateIdentifier = e, this.kv = new va();
|
|
4487
4486
|
}
|
|
4488
4487
|
register(e, t) {
|
|
4489
4488
|
this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
|
|
@@ -4497,7 +4496,7 @@ var ya = class {
|
|
|
4497
4496
|
getValue(e) {
|
|
4498
4497
|
return this.kv.getByKey(e);
|
|
4499
4498
|
}
|
|
4500
|
-
},
|
|
4499
|
+
}, ya = class extends co {
|
|
4501
4500
|
constructor() {
|
|
4502
4501
|
super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
4503
4502
|
}
|
|
@@ -4510,7 +4509,7 @@ var ya = class {
|
|
|
4510
4509
|
};
|
|
4511
4510
|
m();
|
|
4512
4511
|
m();
|
|
4513
|
-
function
|
|
4512
|
+
function ba(e) {
|
|
4514
4513
|
if ("values" in Object)
|
|
4515
4514
|
return Object.values(e);
|
|
4516
4515
|
const t = [];
|
|
@@ -4518,8 +4517,8 @@ function Ca(e) {
|
|
|
4518
4517
|
e.hasOwnProperty(n) && t.push(e[n]);
|
|
4519
4518
|
return t;
|
|
4520
4519
|
}
|
|
4521
|
-
function
|
|
4522
|
-
const n =
|
|
4520
|
+
function Ca(e, t) {
|
|
4521
|
+
const n = ba(e);
|
|
4523
4522
|
if ("find" in n)
|
|
4524
4523
|
return n.find(t);
|
|
4525
4524
|
const r = n;
|
|
@@ -4542,7 +4541,7 @@ function tr(e, t) {
|
|
|
4542
4541
|
return r;
|
|
4543
4542
|
}
|
|
4544
4543
|
}
|
|
4545
|
-
var
|
|
4544
|
+
var wa = class {
|
|
4546
4545
|
constructor() {
|
|
4547
4546
|
this.transfomers = {};
|
|
4548
4547
|
}
|
|
@@ -4550,7 +4549,7 @@ var Aa = class {
|
|
|
4550
4549
|
this.transfomers[e.name] = e;
|
|
4551
4550
|
}
|
|
4552
4551
|
findApplicable(e) {
|
|
4553
|
-
return
|
|
4552
|
+
return Ca(this.transfomers, (t) => t.isApplicable(e));
|
|
4554
4553
|
}
|
|
4555
4554
|
findByName(e) {
|
|
4556
4555
|
return this.transfomers[e];
|
|
@@ -4558,7 +4557,7 @@ var Aa = class {
|
|
|
4558
4557
|
};
|
|
4559
4558
|
m();
|
|
4560
4559
|
m();
|
|
4561
|
-
var
|
|
4560
|
+
var Aa = (e) => Object.prototype.toString.call(e).slice(8, -1), fo = (e) => typeof e > "u", Ta = (e) => e === null, ye = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, vt = (e) => ye(e) && Object.keys(e).length === 0, G = (e) => Array.isArray(e), Oa = (e) => typeof e == "string", Sa = (e) => typeof e == "number" && !isNaN(e), Pa = (e) => typeof e == "boolean", Da = (e) => e instanceof RegExp, be = (e) => e instanceof Map, Ce = (e) => e instanceof Set, po = (e) => Aa(e) === "Symbol", Ia = (e) => e instanceof Date && !isNaN(e.valueOf()), ka = (e) => e instanceof Error, nr = (e) => typeof e == "number" && isNaN(e), xa = (e) => Pa(e) || Ta(e) || fo(e) || Sa(e) || Oa(e) || po(e), Ra = (e) => typeof e == "bigint", La = (e) => e === 1 / 0 || e === -1 / 0, Fa = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Ma = (e) => e instanceof URL;
|
|
4562
4561
|
m();
|
|
4563
4562
|
var ho = (e) => e.replace(/\./g, "\\."), rt = (e) => e.map(String).map(ho).join("."), ge = (e) => {
|
|
4564
4563
|
const t = [];
|
|
@@ -4590,9 +4589,9 @@ function j(e, t, n, r) {
|
|
|
4590
4589
|
var _o = [
|
|
4591
4590
|
j(fo, "undefined", () => null, () => {
|
|
4592
4591
|
}),
|
|
4593
|
-
j(
|
|
4594
|
-
j(
|
|
4595
|
-
j(
|
|
4592
|
+
j(Ra, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
|
|
4593
|
+
j(Ia, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
|
4594
|
+
j(ka, "Error", (e, t) => {
|
|
4596
4595
|
const n = {
|
|
4597
4596
|
name: e.name,
|
|
4598
4597
|
message: e.message
|
|
@@ -4606,7 +4605,7 @@ var _o = [
|
|
|
4606
4605
|
n[r] = e[r];
|
|
4607
4606
|
}), n;
|
|
4608
4607
|
}),
|
|
4609
|
-
j(
|
|
4608
|
+
j(Da, "regexp", (e) => "" + e, (e) => {
|
|
4610
4609
|
const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
|
|
4611
4610
|
return new RegExp(t, n);
|
|
4612
4611
|
}),
|
|
@@ -4619,9 +4618,9 @@ var _o = [
|
|
|
4619
4618
|
(e) => new Set(e)
|
|
4620
4619
|
),
|
|
4621
4620
|
j(be, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
4622
|
-
j((e) => nr(e) ||
|
|
4621
|
+
j((e) => nr(e) || La(e), "number", (e) => nr(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
4623
4622
|
j((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
|
4624
|
-
j(
|
|
4623
|
+
j(Ma, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
4625
4624
|
];
|
|
4626
4625
|
function Ge(e, t, n, r) {
|
|
4627
4626
|
return {
|
|
@@ -4636,7 +4635,7 @@ var mo = Ge((e, t) => po(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
|
4636
4635
|
if (!r)
|
|
4637
4636
|
throw new Error("Trying to deserialize unknown symbol");
|
|
4638
4637
|
return r;
|
|
4639
|
-
}),
|
|
4638
|
+
}), Na = [
|
|
4640
4639
|
Int8Array,
|
|
4641
4640
|
Uint8Array,
|
|
4642
4641
|
Int16Array,
|
|
@@ -4646,8 +4645,8 @@ var mo = Ge((e, t) => po(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
|
4646
4645
|
Float32Array,
|
|
4647
4646
|
Float64Array,
|
|
4648
4647
|
Uint8ClampedArray
|
|
4649
|
-
].reduce((e, t) => (e[t.name] = t, e), {}), go = Ge(
|
|
4650
|
-
const n =
|
|
4648
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), go = Ge(Fa, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
4649
|
+
const n = Na[t[1]];
|
|
4651
4650
|
if (!n)
|
|
4652
4651
|
throw new Error("Trying to deserialize unknown typed array");
|
|
4653
4652
|
return new n(e);
|
|
@@ -4673,8 +4672,8 @@ var vo = Ge(Eo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
4673
4672
|
if (!r)
|
|
4674
4673
|
throw new Error("Trying to deserialize unknown custom value");
|
|
4675
4674
|
return r.deserialize(e);
|
|
4676
|
-
}),
|
|
4677
|
-
const n = tr(
|
|
4675
|
+
}), Va = [vo, mo, yo, go], rr = (e, t) => {
|
|
4676
|
+
const n = tr(Va, (o) => o.isApplicable(e, t));
|
|
4678
4677
|
if (n)
|
|
4679
4678
|
return {
|
|
4680
4679
|
value: n.transform(e, t),
|
|
@@ -4690,7 +4689,7 @@ var vo = Ge(Eo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
4690
4689
|
_o.forEach((e) => {
|
|
4691
4690
|
bo[e.annotation] = e;
|
|
4692
4691
|
});
|
|
4693
|
-
var
|
|
4692
|
+
var Ba = (e, t, n) => {
|
|
4694
4693
|
if (G(t))
|
|
4695
4694
|
switch (t[0]) {
|
|
4696
4695
|
case "symbol":
|
|
@@ -4728,7 +4727,7 @@ function Co(e) {
|
|
|
4728
4727
|
if (Le(e, "constructor"))
|
|
4729
4728
|
throw new Error("constructor is not allowed as a property");
|
|
4730
4729
|
}
|
|
4731
|
-
var
|
|
4730
|
+
var Ua = (e, t) => {
|
|
4732
4731
|
Co(t);
|
|
4733
4732
|
for (let n = 0; n < t.length; n++) {
|
|
4734
4733
|
const r = t[n];
|
|
@@ -4809,14 +4808,14 @@ function bt(e, t, n = []) {
|
|
|
4809
4808
|
bt(i, t, [...n, ...ge(s)]);
|
|
4810
4809
|
}), t(r, n);
|
|
4811
4810
|
}
|
|
4812
|
-
function
|
|
4811
|
+
function Ha(e, t, n) {
|
|
4813
4812
|
return bt(t, (r, o) => {
|
|
4814
|
-
e = yt(e, o, (i) =>
|
|
4813
|
+
e = yt(e, o, (i) => Ba(i, r, n));
|
|
4815
4814
|
}), e;
|
|
4816
4815
|
}
|
|
4817
|
-
function
|
|
4816
|
+
function ja(e, t) {
|
|
4818
4817
|
function n(r, o) {
|
|
4819
|
-
const i =
|
|
4818
|
+
const i = Ua(e, ge(o));
|
|
4820
4819
|
r.map(ge).forEach((s) => {
|
|
4821
4820
|
e = yt(e, s, () => i);
|
|
4822
4821
|
});
|
|
@@ -4830,12 +4829,12 @@ function za(e, t) {
|
|
|
4830
4829
|
le(t, n);
|
|
4831
4830
|
return e;
|
|
4832
4831
|
}
|
|
4833
|
-
var
|
|
4834
|
-
function
|
|
4832
|
+
var za = (e, t) => ye(e) || G(e) || be(e) || Ce(e) || Eo(e, t);
|
|
4833
|
+
function $a(e, t, n) {
|
|
4835
4834
|
const r = n.get(e);
|
|
4836
4835
|
r ? r.push(t) : n.set(e, [t]);
|
|
4837
4836
|
}
|
|
4838
|
-
function
|
|
4837
|
+
function Ka(e, t) {
|
|
4839
4838
|
const n = {};
|
|
4840
4839
|
let r;
|
|
4841
4840
|
return e.forEach((o) => {
|
|
@@ -4848,16 +4847,16 @@ function Wa(e, t) {
|
|
|
4848
4847
|
}
|
|
4849
4848
|
var wo = (e, t, n, r, o = [], i = [], s = /* @__PURE__ */ new Map()) => {
|
|
4850
4849
|
var u;
|
|
4851
|
-
const a =
|
|
4850
|
+
const a = xa(e);
|
|
4852
4851
|
if (!a) {
|
|
4853
|
-
|
|
4852
|
+
$a(e, o, t);
|
|
4854
4853
|
const h = s.get(e);
|
|
4855
4854
|
if (h)
|
|
4856
4855
|
return r ? {
|
|
4857
4856
|
transformedValue: null
|
|
4858
4857
|
} : h;
|
|
4859
4858
|
}
|
|
4860
|
-
if (
|
|
4859
|
+
if (!za(e, n)) {
|
|
4861
4860
|
const h = rr(e, n), v = h ? {
|
|
4862
4861
|
transformedValue: h.value,
|
|
4863
4862
|
annotations: [h.type]
|
|
@@ -4896,13 +4895,13 @@ function Ao(e) {
|
|
|
4896
4895
|
function or(e) {
|
|
4897
4896
|
return Ao(e) === "Array";
|
|
4898
4897
|
}
|
|
4899
|
-
function
|
|
4898
|
+
function Wa(e) {
|
|
4900
4899
|
if (Ao(e) !== "Object")
|
|
4901
4900
|
return !1;
|
|
4902
4901
|
const t = Object.getPrototypeOf(e);
|
|
4903
4902
|
return !!t && t.constructor === Object && t === Object.prototype;
|
|
4904
4903
|
}
|
|
4905
|
-
function
|
|
4904
|
+
function Ga(e, t, n, r, o) {
|
|
4906
4905
|
const i = {}.propertyIsEnumerable.call(r, t) ? "enumerable" : "nonenumerable";
|
|
4907
4906
|
i === "enumerable" && (e[t] = n), o && i === "nonenumerable" && Object.defineProperty(e, t, {
|
|
4908
4907
|
value: n,
|
|
@@ -4914,14 +4913,14 @@ function Ya(e, t, n, r, o) {
|
|
|
4914
4913
|
function Ct(e, t = {}) {
|
|
4915
4914
|
if (or(e))
|
|
4916
4915
|
return e.map((o) => Ct(o, t));
|
|
4917
|
-
if (!
|
|
4916
|
+
if (!Wa(e))
|
|
4918
4917
|
return e;
|
|
4919
4918
|
const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
|
|
4920
4919
|
return [...n, ...r].reduce((o, i) => {
|
|
4921
4920
|
if (or(t.props) && !t.props.includes(i))
|
|
4922
4921
|
return o;
|
|
4923
4922
|
const s = e[i], u = Ct(s, t);
|
|
4924
|
-
return
|
|
4923
|
+
return Ga(o, i, u, e, t.nonenumerable), o;
|
|
4925
4924
|
}, {});
|
|
4926
4925
|
}
|
|
4927
4926
|
var S = class {
|
|
@@ -4929,10 +4928,10 @@ var S = class {
|
|
|
4929
4928
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
4930
4929
|
*/
|
|
4931
4930
|
constructor({ dedupe: e = !1 } = {}) {
|
|
4932
|
-
this.classRegistry = new
|
|
4931
|
+
this.classRegistry = new ya(), this.symbolRegistry = new co((t) => {
|
|
4933
4932
|
var n;
|
|
4934
4933
|
return (n = t.description) != null ? n : "";
|
|
4935
|
-
}), this.customTransformerRegistry = new
|
|
4934
|
+
}), this.customTransformerRegistry = new wa(), this.allowedErrorProps = [], this.dedupe = e;
|
|
4936
4935
|
}
|
|
4937
4936
|
serialize(e) {
|
|
4938
4937
|
const t = /* @__PURE__ */ new Map(), n = wo(e, t, this, this.dedupe), r = {
|
|
@@ -4942,7 +4941,7 @@ var S = class {
|
|
|
4942
4941
|
...r.meta,
|
|
4943
4942
|
values: n.annotations
|
|
4944
4943
|
});
|
|
4945
|
-
const o =
|
|
4944
|
+
const o = Ka(t, this.dedupe);
|
|
4946
4945
|
return o && (r.meta = {
|
|
4947
4946
|
...r.meta,
|
|
4948
4947
|
referentialEqualities: o
|
|
@@ -4951,7 +4950,7 @@ var S = class {
|
|
|
4951
4950
|
deserialize(e) {
|
|
4952
4951
|
const { json: t, meta: n } = e;
|
|
4953
4952
|
let r = Ct(t);
|
|
4954
|
-
return n?.values && (r =
|
|
4953
|
+
return n?.values && (r = Ha(r, n.values, this)), n?.referentialEqualities && (r = ja(r, n.referentialEqualities)), r;
|
|
4955
4954
|
}
|
|
4956
4955
|
stringify(e) {
|
|
4957
4956
|
return JSON.stringify(this.serialize(e));
|
|
@@ -5026,7 +5025,7 @@ m();
|
|
|
5026
5025
|
m();
|
|
5027
5026
|
m();
|
|
5028
5027
|
m();
|
|
5029
|
-
function
|
|
5028
|
+
function Ya(e, t) {
|
|
5030
5029
|
const n = `▲ ■ ●${e}`;
|
|
5031
5030
|
typeof gr == "function" ? gr(n, t) : console.log(n);
|
|
5032
5031
|
}
|
|
@@ -5045,13 +5044,13 @@ function Bt(e) {
|
|
|
5045
5044
|
function Er(e, t, n) {
|
|
5046
5045
|
e.push(t), e.length > n && e.shift();
|
|
5047
5046
|
}
|
|
5048
|
-
function
|
|
5047
|
+
function qa(e) {
|
|
5049
5048
|
return (e / 1024).toFixed(2);
|
|
5050
5049
|
}
|
|
5051
|
-
function
|
|
5050
|
+
function Xa(e) {
|
|
5052
5051
|
if (!e)
|
|
5053
5052
|
return;
|
|
5054
|
-
typeof window < "u" && !window.__TRES__DEVTOOLS__ && (window.__TRES__DEVTOOLS__ = new
|
|
5053
|
+
typeof window < "u" && !window.__TRES__DEVTOOLS__ && (window.__TRES__DEVTOOLS__ = new js());
|
|
5055
5054
|
const t = {
|
|
5056
5055
|
maxFrames: 160,
|
|
5057
5056
|
fps: {
|
|
@@ -5083,7 +5082,7 @@ const To = (e, t) => {
|
|
|
5083
5082
|
return r;
|
|
5084
5083
|
}
|
|
5085
5084
|
};
|
|
5086
|
-
class
|
|
5085
|
+
class Qa extends vr.Mesh {
|
|
5087
5086
|
type = "HightlightMesh";
|
|
5088
5087
|
createTime;
|
|
5089
5088
|
constructor(...t) {
|
|
@@ -5108,7 +5107,7 @@ const Oo = (e) => {
|
|
|
5108
5107
|
});
|
|
5109
5108
|
const n = Bt(e);
|
|
5110
5109
|
return n > 0 && t.tags.push({
|
|
5111
|
-
label: `${
|
|
5110
|
+
label: `${qa(n)} KB`,
|
|
5112
5111
|
textColor: 15707189,
|
|
5113
5112
|
backgroundColor: 16775644,
|
|
5114
5113
|
tooltip: "Memory usage"
|
|
@@ -5134,7 +5133,7 @@ const Oo = (e) => {
|
|
|
5134
5133
|
tooltip: "Position"
|
|
5135
5134
|
})), t;
|
|
5136
5135
|
};
|
|
5137
|
-
function
|
|
5136
|
+
function Za(e, t, n = "") {
|
|
5138
5137
|
const r = n ? `${n}.${e}` : e;
|
|
5139
5138
|
return {
|
|
5140
5139
|
id: `context-${t}-${r}`,
|
|
@@ -5158,7 +5157,7 @@ function wt(e, t, n = /* @__PURE__ */ new WeakSet(), r = 0, o = 4, i, s = "") {
|
|
|
5158
5157
|
n.add(e), Object.entries(e).forEach(([a, l]) => {
|
|
5159
5158
|
if (a.startsWith("_") || typeof l == "function")
|
|
5160
5159
|
return;
|
|
5161
|
-
const c = s ? `${s}.${a}` : a, f =
|
|
5160
|
+
const c = s ? `${s}.${a}` : a, f = Za(a, u, s);
|
|
5162
5161
|
a !== "scene" && (me(l) ? (f.tags.push({
|
|
5163
5162
|
label: `Ref<${typeof l.value}>`,
|
|
5164
5163
|
textColor: 4372611,
|
|
@@ -5174,7 +5173,7 @@ function wt(e, t, n = /* @__PURE__ */ new WeakSet(), r = 0, o = 4, i, s = "") {
|
|
|
5174
5173
|
})) : f.label = `${a}: ${JSON.stringify(l)}`, t.children.push(f));
|
|
5175
5174
|
});
|
|
5176
5175
|
}
|
|
5177
|
-
const
|
|
5176
|
+
const Ja = (e) => (t) => {
|
|
5178
5177
|
if (t.inspectorId === we) {
|
|
5179
5178
|
const n = Oo(e.scene.value);
|
|
5180
5179
|
So(e.scene.value, n, t.filter);
|
|
@@ -5186,7 +5185,7 @@ const el = (e) => (t) => {
|
|
|
5186
5185
|
};
|
|
5187
5186
|
wt(e, r), t.rootNodes = [n, r];
|
|
5188
5187
|
}
|
|
5189
|
-
},
|
|
5188
|
+
}, el = (e, { highlightMesh: t, prevInstance: n }) => (r) => {
|
|
5190
5189
|
if (r.inspectorId !== we)
|
|
5191
5190
|
return;
|
|
5192
5191
|
const o = new Ar({
|
|
@@ -5207,7 +5206,7 @@ const el = (e) => (t) => {
|
|
|
5207
5206
|
if (!u)
|
|
5208
5207
|
return;
|
|
5209
5208
|
if (n && t && t.parent && n.remove(t), $e(u)) {
|
|
5210
|
-
const a = new
|
|
5209
|
+
const a = new Qa(u.geometry.clone(), o);
|
|
5211
5210
|
u.add(a), t = a, n = u;
|
|
5212
5211
|
}
|
|
5213
5212
|
if (r.state = {
|
|
@@ -5276,7 +5275,7 @@ const el = (e) => (t) => {
|
|
|
5276
5275
|
})
|
|
5277
5276
|
});
|
|
5278
5277
|
}
|
|
5279
|
-
},
|
|
5278
|
+
}, tl = (e, t, n, r) => {
|
|
5280
5279
|
const o = To(e, t);
|
|
5281
5280
|
if (!o) {
|
|
5282
5281
|
console.warn("Object with UUID not found in the scene.");
|
|
@@ -5292,15 +5291,15 @@ const el = (e) => (t) => {
|
|
|
5292
5291
|
}
|
|
5293
5292
|
const s = n[n.length - 1];
|
|
5294
5293
|
i[s] !== void 0 ? i[s] = r : console.warn(`Property path is not valid: ${n.join(".")}`);
|
|
5295
|
-
},
|
|
5294
|
+
}, nl = (e) => (t) => {
|
|
5296
5295
|
if (t.inspectorId === we && t.nodeId.includes("scene")) {
|
|
5297
5296
|
const n = t.nodeId.match(/^scene-(.+)$/), r = n ? n[1] : null;
|
|
5298
5297
|
if (!r)
|
|
5299
5298
|
return;
|
|
5300
|
-
|
|
5299
|
+
tl(e.scene.value, r, t.path, t.state.value);
|
|
5301
5300
|
}
|
|
5302
5301
|
}, we = "tres:inspector";
|
|
5303
|
-
function
|
|
5302
|
+
function rl(e, t) {
|
|
5304
5303
|
const n = {
|
|
5305
5304
|
id: "dev.esm.tres",
|
|
5306
5305
|
label: "TresJS 🪐",
|
|
@@ -5309,10 +5308,10 @@ function ol(e, t) {
|
|
|
5309
5308
|
homepage: "https://docs.tresjs.org",
|
|
5310
5309
|
app: e
|
|
5311
5310
|
}, r = null, o = null;
|
|
5312
|
-
|
|
5311
|
+
Xa(t), fa(
|
|
5313
5312
|
n,
|
|
5314
5313
|
(i) => {
|
|
5315
|
-
typeof i.now != "function" &&
|
|
5314
|
+
typeof i.now != "function" && Ya(
|
|
5316
5315
|
"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."
|
|
5317
5316
|
), i.addInspector({
|
|
5318
5317
|
id: we,
|
|
@@ -5323,14 +5322,14 @@ function ol(e, t) {
|
|
|
5323
5322
|
i.sendInspectorTree(we);
|
|
5324
5323
|
}, 1e3), setInterval(() => {
|
|
5325
5324
|
i.notifyComponentUpdate();
|
|
5326
|
-
}, 5e3), i.on.getInspectorTree(
|
|
5325
|
+
}, 5e3), i.on.getInspectorTree(Ja(t)), i.on.getInspectorState(el(t, {
|
|
5327
5326
|
highlightMesh: r,
|
|
5328
5327
|
prevInstance: o
|
|
5329
|
-
})), i.on.editInspectorState(
|
|
5328
|
+
})), i.on.editInspectorState(nl(t));
|
|
5330
5329
|
}
|
|
5331
5330
|
);
|
|
5332
5331
|
}
|
|
5333
|
-
const
|
|
5332
|
+
const ol = ["data-scene", "data-tres"], il = /* @__PURE__ */ ot({
|
|
5334
5333
|
__name: "TresCanvas",
|
|
5335
5334
|
props: {
|
|
5336
5335
|
camera: {},
|
|
@@ -5372,10 +5371,10 @@ const il = ["data-scene", "data-tres"], sl = /* @__PURE__ */ ot({
|
|
|
5372
5371
|
}
|
|
5373
5372
|
return a?.parent && r.enableProvideBridge && (b(a.parent), Reflect.ownKeys(g).forEach((C) => {
|
|
5374
5373
|
qe(C, g[C]);
|
|
5375
|
-
})), qe(
|
|
5374
|
+
})), qe(Rs, h), qe("extend", pt), typeof window < "u" && p?.app && rl(p?.app, h), () => Wt(No, null, v ? [] : i.default());
|
|
5376
5375
|
}
|
|
5377
5376
|
}), c = (h, v = !1) => {
|
|
5378
|
-
const p = l(h, v), { render: g } = Mo(
|
|
5377
|
+
const p = l(h, v), { render: g } = Mo(Us(h));
|
|
5379
5378
|
g(Wt(p), u.value);
|
|
5380
5379
|
}, f = (h, v = !1) => {
|
|
5381
5380
|
Ne(h.scene.value), v && (h.renderer.instance.dispose(), h.renderer.instance instanceof br && (h.renderer.instance.renderLists.dispose(), h.renderer.instance.forceContextLoss())), u.value.__tres = {
|
|
@@ -5388,7 +5387,7 @@ const il = ["data-scene", "data-tres"], sl = /* @__PURE__ */ ot({
|
|
|
5388
5387
|
};
|
|
5389
5388
|
return Kt(() => {
|
|
5390
5389
|
const h = s;
|
|
5391
|
-
_.value =
|
|
5390
|
+
_.value = Ls({
|
|
5392
5391
|
scene: u.value,
|
|
5393
5392
|
canvas: h,
|
|
5394
5393
|
windowSize: r.windowSize ?? !1,
|
|
@@ -5434,7 +5433,7 @@ const il = ["data-scene", "data-tres"], sl = /* @__PURE__ */ ot({
|
|
|
5434
5433
|
ref: s,
|
|
5435
5434
|
"data-scene": u.value.uuid,
|
|
5436
5435
|
class: Fo(h.$attrs.class),
|
|
5437
|
-
"data-tres": `tresjs ${ke(
|
|
5436
|
+
"data-tres": `tresjs ${ke(Mi).version}`,
|
|
5438
5437
|
style: Lo({
|
|
5439
5438
|
display: "block",
|
|
5440
5439
|
width: "100%",
|
|
@@ -5446,28 +5445,28 @@ const il = ["data-scene", "data-tres"], sl = /* @__PURE__ */ ot({
|
|
|
5446
5445
|
touchAction: "none",
|
|
5447
5446
|
...h.$attrs.style
|
|
5448
5447
|
})
|
|
5449
|
-
}, null, 14,
|
|
5448
|
+
}, null, 14, ol));
|
|
5450
5449
|
}
|
|
5451
5450
|
});
|
|
5452
|
-
function
|
|
5451
|
+
function gl(e) {
|
|
5453
5452
|
return typeof e == "number" ? [e, e, e] : e instanceof I ? [e.x, e.y, e.z] : e;
|
|
5454
5453
|
}
|
|
5455
|
-
function
|
|
5454
|
+
function El(e) {
|
|
5456
5455
|
return e instanceof xe ? e : Array.isArray(e) ? new xe(...e) : new xe(e);
|
|
5457
5456
|
}
|
|
5458
|
-
const
|
|
5457
|
+
const sl = [
|
|
5459
5458
|
"TresCanvas",
|
|
5460
5459
|
"TresLeches",
|
|
5461
5460
|
"TresScene"
|
|
5462
|
-
],
|
|
5461
|
+
], vl = {
|
|
5463
5462
|
template: {
|
|
5464
5463
|
compilerOptions: {
|
|
5465
|
-
isCustomElement: (e) => e.startsWith("Tres") && !
|
|
5464
|
+
isCustomElement: (e) => e.startsWith("Tres") && !sl.includes(e) || e === "primitive"
|
|
5466
5465
|
}
|
|
5467
5466
|
}
|
|
5468
5467
|
};
|
|
5469
5468
|
let q = null;
|
|
5470
|
-
const
|
|
5469
|
+
const yl = {
|
|
5471
5470
|
updated: (e, t) => {
|
|
5472
5471
|
const r = ((i) => {
|
|
5473
5472
|
let s = i.value;
|
|
@@ -5515,19 +5514,19 @@ class Po extends Qo {
|
|
|
5515
5514
|
}
|
|
5516
5515
|
}
|
|
5517
5516
|
let Ie, W;
|
|
5518
|
-
const
|
|
5517
|
+
const ul = {
|
|
5519
5518
|
DirectionalLight: ri,
|
|
5520
5519
|
PointLight: ni,
|
|
5521
5520
|
SpotLight: ti,
|
|
5522
5521
|
HemisphereLight: ei,
|
|
5523
5522
|
RectAreaLight: Po
|
|
5524
|
-
},
|
|
5523
|
+
}, bl = {
|
|
5525
5524
|
mounted: (e) => {
|
|
5526
5525
|
if (!Rr(e)) {
|
|
5527
5526
|
Me(`${e.type} is not a light`);
|
|
5528
5527
|
return;
|
|
5529
5528
|
}
|
|
5530
|
-
Ie =
|
|
5529
|
+
Ie = ul[e.type], e.parent?.add(new Ie(e, 1, e.color.getHex()));
|
|
5531
5530
|
},
|
|
5532
5531
|
updated: (e) => {
|
|
5533
5532
|
W = e.parent.children.find((t) => t instanceof Ie), !(W instanceof Po) && W.update();
|
|
@@ -5539,7 +5538,7 @@ const al = {
|
|
|
5539
5538
|
}
|
|
5540
5539
|
W = e.parent.children.find((t) => t instanceof Ie), W && W.dispose && W.dispose(), e.parent && e.parent.remove(W);
|
|
5541
5540
|
}
|
|
5542
|
-
},
|
|
5541
|
+
}, Cl = {
|
|
5543
5542
|
mounted: (e, t) => {
|
|
5544
5543
|
if (t.arg) {
|
|
5545
5544
|
console.log(`v-log:${t.arg}`, e[t.arg]);
|
|
@@ -5547,58 +5546,58 @@ const al = {
|
|
|
5547
5546
|
}
|
|
5548
5547
|
console.log("v-log", e);
|
|
5549
5548
|
}
|
|
5550
|
-
},
|
|
5549
|
+
}, wl = {
|
|
5551
5550
|
install(e) {
|
|
5552
|
-
e.component("TresCanvas",
|
|
5551
|
+
e.component("TresCanvas", il);
|
|
5553
5552
|
}
|
|
5554
5553
|
};
|
|
5555
5554
|
export {
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5555
|
+
js as DevtoolsMessenger,
|
|
5556
|
+
il as TresCanvas,
|
|
5557
|
+
hl as UseLoader,
|
|
5558
|
+
ts as buildGraph,
|
|
5560
5559
|
dt as catalogue,
|
|
5561
|
-
|
|
5560
|
+
wl as default,
|
|
5562
5561
|
Ne as dispose,
|
|
5563
5562
|
pt as extend,
|
|
5564
5563
|
kr as isBufferGeometry,
|
|
5565
5564
|
Pr as isCamera,
|
|
5566
|
-
|
|
5565
|
+
Ki as isClassInstance,
|
|
5567
5566
|
Ir as isColor,
|
|
5568
|
-
|
|
5569
|
-
|
|
5567
|
+
zi as isColorRepresentation,
|
|
5568
|
+
$i as isCopyable,
|
|
5570
5569
|
Lr as isFog,
|
|
5571
|
-
|
|
5570
|
+
fl as isGroup,
|
|
5572
5571
|
Zt as isLayers,
|
|
5573
5572
|
Rr as isLight,
|
|
5574
5573
|
xr as isMaterial,
|
|
5575
5574
|
$e as isMesh,
|
|
5576
5575
|
lt as isObject3D,
|
|
5577
|
-
|
|
5576
|
+
ji as isOrthographicCamera,
|
|
5578
5577
|
Dr as isPerspectiveCamera,
|
|
5579
|
-
|
|
5578
|
+
dl as isProd,
|
|
5580
5579
|
Fr as isScene,
|
|
5581
5580
|
re as isTresCamera,
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5581
|
+
Yi as isTresInstance,
|
|
5582
|
+
Wi as isTresObject,
|
|
5583
|
+
Gi as isTresPrimitive,
|
|
5585
5584
|
ct as isVectorLike,
|
|
5586
5585
|
Jt as logError,
|
|
5587
|
-
|
|
5586
|
+
pl as logMessage,
|
|
5588
5587
|
Me as logWarning,
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5588
|
+
El as normalizeColor,
|
|
5589
|
+
gl as normalizeVectorFlexibleParam,
|
|
5590
|
+
rl as registerTresDevtools,
|
|
5591
|
+
vl as templateCompilerOptions,
|
|
5592
|
+
es as useCameraManager,
|
|
5593
|
+
_l as useGraph,
|
|
5594
|
+
Ji as useLoader,
|
|
5595
|
+
ml as useLoop,
|
|
5596
|
+
os as useRendererManager,
|
|
5597
|
+
Ms as useTres,
|
|
5599
5598
|
zr as useTresContext,
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5599
|
+
Ls as useTresContextProvider,
|
|
5600
|
+
yl as vDistanceTo,
|
|
5601
|
+
bl as vLightHelper,
|
|
5602
|
+
Cl as vLog
|
|
5604
5603
|
};
|