first commit

This commit is contained in:
rafaeldpsilva
2025-12-10 12:32:12 +00:00
commit adbbf6bf50
3442 changed files with 2725681 additions and 0 deletions

58
web-app/node_modules/.vite/deps/_metadata.json generated vendored Normal file
View File

@@ -0,0 +1,58 @@
{
"hash": "21356d71",
"configHash": "e8ce1a0a",
"lockfileHash": "99cc31ad",
"browserHash": "22139d26",
"optimized": {
"vue": {
"src": "../../vue/dist/vue.runtime.esm-bundler.js",
"file": "vue.js",
"fileHash": "0d94b1c2",
"needsInterop": false
},
"three": {
"src": "../../three/build/three.module.js",
"file": "three.js",
"fileHash": "62ac119f",
"needsInterop": false
},
"three/examples/jsm/controls/OrbitControls.js": {
"src": "../../three/examples/jsm/controls/OrbitControls.js",
"file": "three_examples_jsm_controls_OrbitControls__js.js",
"fileHash": "3477ecfc",
"needsInterop": false
},
"three/examples/jsm/loaders/GLTFLoader.js": {
"src": "../../three/examples/jsm/loaders/GLTFLoader.js",
"file": "three_examples_jsm_loaders_GLTFLoader__js.js",
"fileHash": "bbcf1a24",
"needsInterop": false
},
"papaparse": {
"src": "../../papaparse/papaparse.min.js",
"file": "papaparse.js",
"fileHash": "d6382eb5",
"needsInterop": true
},
"suncalc": {
"src": "../../suncalc/suncalc.js",
"file": "suncalc.js",
"fileHash": "07e425ee",
"needsInterop": true
},
"three/examples/jsm/controls/TransformControls.js": {
"src": "../../three/examples/jsm/controls/TransformControls.js",
"file": "three_examples_jsm_controls_TransformControls__js.js",
"fileHash": "2bbc7916",
"needsInterop": false
}
},
"chunks": {
"chunk-BQJMB3HC": {
"file": "chunk-BQJMB3HC.js"
},
"chunk-BUSYA2B4": {
"file": "chunk-BUSYA2B4.js"
}
}
}

31599
web-app/node_modules/.vite/deps/chunk-BQJMB3HC.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

8
web-app/node_modules/.vite/deps/chunk-BUSYA2B4.js generated vendored Normal file
View File

@@ -0,0 +1,8 @@
var __getOwnPropNames = Object.getOwnPropertyNames;
var __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
export {
__commonJS
};

View File

@@ -0,0 +1,7 @@
{
"version": 3,
"sources": [],
"sourcesContent": [],
"mappings": "",
"names": []
}

3
web-app/node_modules/.vite/deps/package.json generated vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"type": "module"
}

431
web-app/node_modules/.vite/deps/papaparse.js generated vendored Normal file
View File

@@ -0,0 +1,431 @@
import {
__commonJS
} from "./chunk-BUSYA2B4.js";
// node_modules/papaparse/papaparse.min.js
var require_papaparse_min = __commonJS({
"node_modules/papaparse/papaparse.min.js"(exports, module) {
((e, t) => {
"function" == typeof define && define.amd ? define([], t) : "object" == typeof module && "undefined" != typeof exports ? module.exports = t() : e.Papa = t();
})(exports, function r() {
var n = "undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== n ? n : {};
var d, s = !n.document && !!n.postMessage, a = n.IS_PAPA_WORKER || false, o = {}, h = 0, v = {};
function u(e) {
this._handle = null, this._finished = false, this._completed = false, this._halted = false, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = true, this._completeResults = { data: [], errors: [], meta: {} }, (function(e2) {
var t = b(e2);
t.chunkSize = parseInt(t.chunkSize), e2.step || e2.chunk || (t.chunkSize = null);
this._handle = new i(t), (this._handle.streamer = this)._config = t;
}).call(this, e), this.parseChunk = function(t, e2) {
var i2 = parseInt(this._config.skipFirstNLines) || 0;
if (this.isFirstChunk && 0 < i2) {
let e3 = this._config.newline;
e3 || (r2 = this._config.quoteChar || '"', e3 = this._handle.guessLineEndings(t, r2)), t = [...t.split(e3).slice(i2)].join(e3);
}
this.isFirstChunk && U(this._config.beforeFirstChunk) && void 0 !== (r2 = this._config.beforeFirstChunk(t)) && (t = r2), this.isFirstChunk = false, this._halted = false;
var i2 = this._partialLine + t, r2 = (this._partialLine = "", this._handle.parse(i2, this._baseIndex, !this._finished));
if (!this._handle.paused() && !this._handle.aborted()) {
t = r2.meta.cursor, i2 = (this._finished || (this._partialLine = i2.substring(t - this._baseIndex), this._baseIndex = t), r2 && r2.data && (this._rowCount += r2.data.length), this._finished || this._config.preview && this._rowCount >= this._config.preview);
if (a) n.postMessage({ results: r2, workerId: v.WORKER_ID, finished: i2 });
else if (U(this._config.chunk) && !e2) {
if (this._config.chunk(r2, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = true);
this._completeResults = r2 = void 0;
}
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(r2.data), this._completeResults.errors = this._completeResults.errors.concat(r2.errors), this._completeResults.meta = r2.meta), this._completed || !i2 || !U(this._config.complete) || r2 && r2.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = true), i2 || r2 && r2.meta.paused || this._nextChunk(), r2;
}
this._halted = true;
}, this._sendError = function(e2) {
U(this._config.error) ? this._config.error(e2) : a && this._config.error && n.postMessage({ workerId: v.WORKER_ID, error: e2, finished: false });
};
}
function f(e) {
var r2;
(e = e || {}).chunkSize || (e.chunkSize = v.RemoteChunkSize), u.call(this, e), this._nextChunk = s ? function() {
this._readChunk(), this._chunkLoaded();
} : function() {
this._readChunk();
}, this.stream = function(e2) {
this._input = e2, this._nextChunk();
}, this._readChunk = function() {
if (this._finished) this._chunkLoaded();
else {
if (r2 = new XMLHttpRequest(), this._config.withCredentials && (r2.withCredentials = this._config.withCredentials), s || (r2.onload = y(this._chunkLoaded, this), r2.onerror = y(this._chunkError, this)), r2.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !s), this._config.downloadRequestHeaders) {
var e2, t = this._config.downloadRequestHeaders;
for (e2 in t) r2.setRequestHeader(e2, t[e2]);
}
var i2;
this._config.chunkSize && (i2 = this._start + this._config.chunkSize - 1, r2.setRequestHeader("Range", "bytes=" + this._start + "-" + i2));
try {
r2.send(this._config.downloadRequestBody);
} catch (e3) {
this._chunkError(e3.message);
}
s && 0 === r2.status && this._chunkError();
}
}, this._chunkLoaded = function() {
4 === r2.readyState && (r2.status < 200 || 400 <= r2.status ? this._chunkError() : (this._start += this._config.chunkSize || r2.responseText.length, this._finished = !this._config.chunkSize || this._start >= ((e2) => null !== (e2 = e2.getResponseHeader("Content-Range")) ? parseInt(e2.substring(e2.lastIndexOf("/") + 1)) : -1)(r2), this.parseChunk(r2.responseText)));
}, this._chunkError = function(e2) {
e2 = r2.statusText || e2;
this._sendError(new Error(e2));
};
}
function l(e) {
(e = e || {}).chunkSize || (e.chunkSize = v.LocalChunkSize), u.call(this, e);
var i2, r2, n2 = "undefined" != typeof FileReader;
this.stream = function(e2) {
this._input = e2, r2 = e2.slice || e2.webkitSlice || e2.mozSlice, n2 ? ((i2 = new FileReader()).onload = y(this._chunkLoaded, this), i2.onerror = y(this._chunkError, this)) : i2 = new FileReaderSync(), this._nextChunk();
}, this._nextChunk = function() {
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
}, this._readChunk = function() {
var e2 = this._input, t = (this._config.chunkSize && (t = Math.min(this._start + this._config.chunkSize, this._input.size), e2 = r2.call(e2, this._start, t)), i2.readAsText(e2, this._config.encoding));
n2 || this._chunkLoaded({ target: { result: t } });
}, this._chunkLoaded = function(e2) {
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(e2.target.result);
}, this._chunkError = function() {
this._sendError(i2.error);
};
}
function c(e) {
var i2;
u.call(this, e = e || {}), this.stream = function(e2) {
return i2 = e2, this._nextChunk();
}, this._nextChunk = function() {
var e2, t;
if (!this._finished) return e2 = this._config.chunkSize, i2 = e2 ? (t = i2.substring(0, e2), i2.substring(e2)) : (t = i2, ""), this._finished = !i2, this.parseChunk(t);
};
}
function p(e) {
u.call(this, e = e || {});
var t = [], i2 = true, r2 = false;
this.pause = function() {
u.prototype.pause.apply(this, arguments), this._input.pause();
}, this.resume = function() {
u.prototype.resume.apply(this, arguments), this._input.resume();
}, this.stream = function(e2) {
this._input = e2, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
}, this._checkIsFinished = function() {
r2 && 1 === t.length && (this._finished = true);
}, this._nextChunk = function() {
this._checkIsFinished(), t.length ? this.parseChunk(t.shift()) : i2 = true;
}, this._streamData = y(function(e2) {
try {
t.push("string" == typeof e2 ? e2 : e2.toString(this._config.encoding)), i2 && (i2 = false, this._checkIsFinished(), this.parseChunk(t.shift()));
} catch (e3) {
this._streamError(e3);
}
}, this), this._streamError = y(function(e2) {
this._streamCleanUp(), this._sendError(e2);
}, this), this._streamEnd = y(function() {
this._streamCleanUp(), r2 = true, this._streamData("");
}, this), this._streamCleanUp = y(function() {
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
}, this);
}
function i(m2) {
var n2, s2, a2, t, o2 = Math.pow(2, 53), h2 = -o2, u2 = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, d2 = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, i2 = this, r2 = 0, f2 = 0, l2 = false, e = false, c2 = [], p2 = { data: [], errors: [], meta: {} };
function y2(e2) {
return "greedy" === m2.skipEmptyLines ? "" === e2.join("").trim() : 1 === e2.length && 0 === e2[0].length;
}
function g2() {
if (p2 && a2 && (k("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + v.DefaultDelimiter + "'"), a2 = false), m2.skipEmptyLines && (p2.data = p2.data.filter(function(e3) {
return !y2(e3);
})), _2()) {
let t3 = function(e3, t4) {
U(m2.transformHeader) && (e3 = m2.transformHeader(e3, t4)), c2.push(e3);
};
var t2 = t3;
if (p2) if (Array.isArray(p2.data[0])) {
for (var e2 = 0; _2() && e2 < p2.data.length; e2++) p2.data[e2].forEach(t3);
p2.data.splice(0, 1);
} else p2.data.forEach(t3);
}
function i3(e3, t3) {
for (var i4 = m2.header ? {} : [], r4 = 0; r4 < e3.length; r4++) {
var n3 = r4, s3 = e3[r4], s3 = ((e4, t4) => ((e5) => (m2.dynamicTypingFunction && void 0 === m2.dynamicTyping[e5] && (m2.dynamicTyping[e5] = m2.dynamicTypingFunction(e5)), true === (m2.dynamicTyping[e5] || m2.dynamicTyping)))(e4) ? "true" === t4 || "TRUE" === t4 || "false" !== t4 && "FALSE" !== t4 && (((e5) => {
if (u2.test(e5)) {
e5 = parseFloat(e5);
if (h2 < e5 && e5 < o2) return 1;
}
})(t4) ? parseFloat(t4) : d2.test(t4) ? new Date(t4) : "" === t4 ? null : t4) : t4)(n3 = m2.header ? r4 >= c2.length ? "__parsed_extra" : c2[r4] : n3, s3 = m2.transform ? m2.transform(s3, n3) : s3);
"__parsed_extra" === n3 ? (i4[n3] = i4[n3] || [], i4[n3].push(s3)) : i4[n3] = s3;
}
return m2.header && (r4 > c2.length ? k("FieldMismatch", "TooManyFields", "Too many fields: expected " + c2.length + " fields but parsed " + r4, f2 + t3) : r4 < c2.length && k("FieldMismatch", "TooFewFields", "Too few fields: expected " + c2.length + " fields but parsed " + r4, f2 + t3)), i4;
}
var r3;
p2 && (m2.header || m2.dynamicTyping || m2.transform) && (r3 = 1, !p2.data.length || Array.isArray(p2.data[0]) ? (p2.data = p2.data.map(i3), r3 = p2.data.length) : p2.data = i3(p2.data, 0), m2.header && p2.meta && (p2.meta.fields = c2), f2 += r3);
}
function _2() {
return m2.header && 0 === c2.length;
}
function k(e2, t2, i3, r3) {
e2 = { type: e2, code: t2, message: i3 };
void 0 !== r3 && (e2.row = r3), p2.errors.push(e2);
}
U(m2.step) && (t = m2.step, m2.step = function(e2) {
p2 = e2, _2() ? g2() : (g2(), 0 !== p2.data.length && (r2 += e2.data.length, m2.preview && r2 > m2.preview ? s2.abort() : (p2.data = p2.data[0], t(p2, i2))));
}), this.parse = function(e2, t2, i3) {
var r3 = m2.quoteChar || '"', r3 = (m2.newline || (m2.newline = this.guessLineEndings(e2, r3)), a2 = false, m2.delimiter ? U(m2.delimiter) && (m2.delimiter = m2.delimiter(e2), p2.meta.delimiter = m2.delimiter) : ((r3 = ((e3, t3, i4, r4, n3) => {
var s3, a3, o3, h3;
n3 = n3 || [",", " ", "|", ";", v.RECORD_SEP, v.UNIT_SEP];
for (var u3 = 0; u3 < n3.length; u3++) {
for (var d3, f3 = n3[u3], l3 = 0, c3 = 0, p3 = 0, g3 = (o3 = void 0, new E({ comments: r4, delimiter: f3, newline: t3, preview: 10 }).parse(e3)), _3 = 0; _3 < g3.data.length; _3++) i4 && y2(g3.data[_3]) ? p3++ : (d3 = g3.data[_3].length, c3 += d3, void 0 === o3 ? o3 = d3 : 0 < d3 && (l3 += Math.abs(d3 - o3), o3 = d3));
0 < g3.data.length && (c3 /= g3.data.length - p3), (void 0 === a3 || l3 <= a3) && (void 0 === h3 || h3 < c3) && 1.99 < c3 && (a3 = l3, s3 = f3, h3 = c3);
}
return { successful: !!(m2.delimiter = s3), bestDelimiter: s3 };
})(e2, m2.newline, m2.skipEmptyLines, m2.comments, m2.delimitersToGuess)).successful ? m2.delimiter = r3.bestDelimiter : (a2 = true, m2.delimiter = v.DefaultDelimiter), p2.meta.delimiter = m2.delimiter), b(m2));
return m2.preview && m2.header && r3.preview++, n2 = e2, s2 = new E(r3), p2 = s2.parse(n2, t2, i3), g2(), l2 ? { meta: { paused: true } } : p2 || { meta: { paused: false } };
}, this.paused = function() {
return l2;
}, this.pause = function() {
l2 = true, s2.abort(), n2 = U(m2.chunk) ? "" : n2.substring(s2.getCharIndex());
}, this.resume = function() {
i2.streamer._halted ? (l2 = false, i2.streamer.parseChunk(n2, true)) : setTimeout(i2.resume, 3);
}, this.aborted = function() {
return e;
}, this.abort = function() {
e = true, s2.abort(), p2.meta.aborted = true, U(m2.complete) && m2.complete(p2), n2 = "";
}, this.guessLineEndings = function(e2, t2) {
e2 = e2.substring(0, 1048576);
var t2 = new RegExp(P(t2) + "([^]*?)" + P(t2), "gm"), i3 = (e2 = e2.replace(t2, "")).split("\r"), t2 = e2.split("\n"), e2 = 1 < t2.length && t2[0].length < i3[0].length;
if (1 === i3.length || e2) return "\n";
for (var r3 = 0, n3 = 0; n3 < i3.length; n3++) "\n" === i3[n3][0] && r3++;
return r3 >= i3.length / 2 ? "\r\n" : "\r";
};
}
function P(e) {
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
}
function E(C) {
var S = (C = C || {}).delimiter, O = C.newline, x = C.comments, I = C.step, A = C.preview, T = C.fastMode, D = null, L = false, F = null == C.quoteChar ? '"' : C.quoteChar, j = F;
if (void 0 !== C.escapeChar && (j = C.escapeChar), ("string" != typeof S || -1 < v.BAD_DELIMITERS.indexOf(S)) && (S = ","), x === S) throw new Error("Comment character same as delimiter");
true === x ? x = "#" : ("string" != typeof x || -1 < v.BAD_DELIMITERS.indexOf(x)) && (x = false), "\n" !== O && "\r" !== O && "\r\n" !== O && (O = "\n");
var z = 0, M = false;
this.parse = function(i2, t, r2) {
if ("string" != typeof i2) throw new Error("Input must be a string");
var n2 = i2.length, e = S.length, s2 = O.length, a2 = x.length, o2 = U(I), h2 = [], u2 = [], d2 = [], f2 = z = 0;
if (!i2) return w();
if (T || false !== T && -1 === i2.indexOf(F)) {
for (var l2 = i2.split(O), c2 = 0; c2 < l2.length; c2++) {
if (d2 = l2[c2], z += d2.length, c2 !== l2.length - 1) z += O.length;
else if (r2) return w();
if (!x || d2.substring(0, a2) !== x) {
if (o2) {
if (h2 = [], k(d2.split(S)), R(), M) return w();
} else k(d2.split(S));
if (A && A <= c2) return h2 = h2.slice(0, A), w(true);
}
}
return w();
}
for (var p2 = i2.indexOf(S, z), g2 = i2.indexOf(O, z), _2 = new RegExp(P(j) + P(F), "g"), m2 = i2.indexOf(F, z); ; ) if (i2[z] === F) for (m2 = z, z++; ; ) {
if (-1 === (m2 = i2.indexOf(F, m2 + 1))) return r2 || u2.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: h2.length, index: z }), E2();
if (m2 === n2 - 1) return E2(i2.substring(z, m2).replace(_2, F));
if (F === j && i2[m2 + 1] === j) m2++;
else if (F === j || 0 === m2 || i2[m2 - 1] !== j) {
-1 !== p2 && p2 < m2 + 1 && (p2 = i2.indexOf(S, m2 + 1));
var y2 = v2(-1 === (g2 = -1 !== g2 && g2 < m2 + 1 ? i2.indexOf(O, m2 + 1) : g2) ? p2 : Math.min(p2, g2));
if (i2.substr(m2 + 1 + y2, e) === S) {
d2.push(i2.substring(z, m2).replace(_2, F)), i2[z = m2 + 1 + y2 + e] !== F && (m2 = i2.indexOf(F, z)), p2 = i2.indexOf(S, z), g2 = i2.indexOf(O, z);
break;
}
y2 = v2(g2);
if (i2.substring(m2 + 1 + y2, m2 + 1 + y2 + s2) === O) {
if (d2.push(i2.substring(z, m2).replace(_2, F)), b2(m2 + 1 + y2 + s2), p2 = i2.indexOf(S, z), m2 = i2.indexOf(F, z), o2 && (R(), M)) return w();
if (A && h2.length >= A) return w(true);
break;
}
u2.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: h2.length, index: z }), m2++;
}
}
else if (x && 0 === d2.length && i2.substring(z, z + a2) === x) {
if (-1 === g2) return w();
z = g2 + s2, g2 = i2.indexOf(O, z), p2 = i2.indexOf(S, z);
} else if (-1 !== p2 && (p2 < g2 || -1 === g2)) d2.push(i2.substring(z, p2)), z = p2 + e, p2 = i2.indexOf(S, z);
else {
if (-1 === g2) break;
if (d2.push(i2.substring(z, g2)), b2(g2 + s2), o2 && (R(), M)) return w();
if (A && h2.length >= A) return w(true);
}
return E2();
function k(e2) {
h2.push(e2), f2 = z;
}
function v2(e2) {
var t2 = 0;
return t2 = -1 !== e2 && (e2 = i2.substring(m2 + 1, e2)) && "" === e2.trim() ? e2.length : t2;
}
function E2(e2) {
return r2 || (void 0 === e2 && (e2 = i2.substring(z)), d2.push(e2), z = n2, k(d2), o2 && R()), w();
}
function b2(e2) {
z = e2, k(d2), d2 = [], g2 = i2.indexOf(O, z);
}
function w(e2) {
if (C.header && !t && h2.length && !L) {
var s3 = h2[0], a3 = /* @__PURE__ */ Object.create(null), o3 = new Set(s3);
let n3 = false;
for (let r3 = 0; r3 < s3.length; r3++) {
let i3 = s3[r3];
if (a3[i3 = U(C.transformHeader) ? C.transformHeader(i3, r3) : i3]) {
let e3, t2 = a3[i3];
for (; e3 = i3 + "_" + t2, t2++, o3.has(e3); ) ;
o3.add(e3), s3[r3] = e3, a3[i3]++, n3 = true, (D = null === D ? {} : D)[e3] = i3;
} else a3[i3] = 1, s3[r3] = i3;
o3.add(i3);
}
n3 && console.warn("Duplicate headers found and renamed."), L = true;
}
return { data: h2, errors: u2, meta: { delimiter: S, linebreak: O, aborted: M, truncated: !!e2, cursor: f2 + (t || 0), renamedHeaders: D } };
}
function R() {
I(w()), h2 = [], u2 = [];
}
}, this.abort = function() {
M = true;
}, this.getCharIndex = function() {
return z;
};
}
function g(e) {
var t = e.data, i2 = o[t.workerId], r2 = false;
if (t.error) i2.userError(t.error, t.file);
else if (t.results && t.results.data) {
var n2 = { abort: function() {
r2 = true, _(t.workerId, { data: [], errors: [], meta: { aborted: true } });
}, pause: m, resume: m };
if (U(i2.userStep)) {
for (var s2 = 0; s2 < t.results.data.length && (i2.userStep({ data: t.results.data[s2], errors: t.results.errors, meta: t.results.meta }, n2), !r2); s2++) ;
delete t.results;
} else U(i2.userChunk) && (i2.userChunk(t.results, n2, t.file), delete t.results);
}
t.finished && !r2 && _(t.workerId, t.results);
}
function _(e, t) {
var i2 = o[e];
U(i2.userComplete) && i2.userComplete(t), i2.terminate(), delete o[e];
}
function m() {
throw new Error("Not implemented.");
}
function b(e) {
if ("object" != typeof e || null === e) return e;
var t, i2 = Array.isArray(e) ? [] : {};
for (t in e) i2[t] = b(e[t]);
return i2;
}
function y(e, t) {
return function() {
e.apply(t, arguments);
};
}
function U(e) {
return "function" == typeof e;
}
return v.parse = function(e, t) {
var i2 = (t = t || {}).dynamicTyping || false;
U(i2) && (t.dynamicTypingFunction = i2, i2 = {});
if (t.dynamicTyping = i2, t.transform = !!U(t.transform) && t.transform, !t.worker || !v.WORKERS_SUPPORTED) return i2 = null, v.NODE_STREAM_INPUT, "string" == typeof e ? (e = ((e2) => 65279 !== e2.charCodeAt(0) ? e2 : e2.slice(1))(e), i2 = new (t.download ? f : c)(t)) : true === e.readable && U(e.read) && U(e.on) ? i2 = new p(t) : (n.File && e instanceof File || e instanceof Object) && (i2 = new l(t)), i2.stream(e);
(i2 = (() => {
var e2;
return !!v.WORKERS_SUPPORTED && (e2 = (() => {
var e3 = n.URL || n.webkitURL || null, t2 = r.toString();
return v.BLOB_URL || (v.BLOB_URL = e3.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", t2, ")();"], { type: "text/javascript" })));
})(), (e2 = new n.Worker(e2)).onmessage = g, e2.id = h++, o[e2.id] = e2);
})()).userStep = t.step, i2.userChunk = t.chunk, i2.userComplete = t.complete, i2.userError = t.error, t.step = U(t.step), t.chunk = U(t.chunk), t.complete = U(t.complete), t.error = U(t.error), delete t.worker, i2.postMessage({ input: e, config: t, workerId: i2.id });
}, v.unparse = function(e, t) {
var n2 = false, _2 = true, m2 = ",", y2 = "\r\n", s2 = '"', a2 = s2 + s2, i2 = false, r2 = null, o2 = false, h2 = ((() => {
if ("object" == typeof t) {
if ("string" != typeof t.delimiter || v.BAD_DELIMITERS.filter(function(e2) {
return -1 !== t.delimiter.indexOf(e2);
}).length || (m2 = t.delimiter), "boolean" != typeof t.quotes && "function" != typeof t.quotes && !Array.isArray(t.quotes) || (n2 = t.quotes), "boolean" != typeof t.skipEmptyLines && "string" != typeof t.skipEmptyLines || (i2 = t.skipEmptyLines), "string" == typeof t.newline && (y2 = t.newline), "string" == typeof t.quoteChar && (s2 = t.quoteChar), "boolean" == typeof t.header && (_2 = t.header), Array.isArray(t.columns)) {
if (0 === t.columns.length) throw new Error("Option columns is empty");
r2 = t.columns;
}
void 0 !== t.escapeChar && (a2 = t.escapeChar + s2), t.escapeFormulae instanceof RegExp ? o2 = t.escapeFormulae : "boolean" == typeof t.escapeFormulae && t.escapeFormulae && (o2 = /^[=+\-@\t\r].*$/);
}
})(), new RegExp(P(s2), "g"));
"string" == typeof e && (e = JSON.parse(e));
if (Array.isArray(e)) {
if (!e.length || Array.isArray(e[0])) return u2(null, e, i2);
if ("object" == typeof e[0]) return u2(r2 || Object.keys(e[0]), e, i2);
} else if ("object" == typeof e) return "string" == typeof e.data && (e.data = JSON.parse(e.data)), Array.isArray(e.data) && (e.fields || (e.fields = e.meta && e.meta.fields || r2), e.fields || (e.fields = Array.isArray(e.data[0]) ? e.fields : "object" == typeof e.data[0] ? Object.keys(e.data[0]) : []), Array.isArray(e.data[0]) || "object" == typeof e.data[0] || (e.data = [e.data])), u2(e.fields || [], e.data || [], i2);
throw new Error("Unable to serialize unrecognized input");
function u2(e2, t2, i3) {
var r3 = "", n3 = ("string" == typeof e2 && (e2 = JSON.parse(e2)), "string" == typeof t2 && (t2 = JSON.parse(t2)), Array.isArray(e2) && 0 < e2.length), s3 = !Array.isArray(t2[0]);
if (n3 && _2) {
for (var a3 = 0; a3 < e2.length; a3++) 0 < a3 && (r3 += m2), r3 += k(e2[a3], a3);
0 < t2.length && (r3 += y2);
}
for (var o3 = 0; o3 < t2.length; o3++) {
var h3 = (n3 ? e2 : t2[o3]).length, u3 = false, d2 = n3 ? 0 === Object.keys(t2[o3]).length : 0 === t2[o3].length;
if (i3 && !n3 && (u3 = "greedy" === i3 ? "" === t2[o3].join("").trim() : 1 === t2[o3].length && 0 === t2[o3][0].length), "greedy" === i3 && n3) {
for (var f2 = [], l2 = 0; l2 < h3; l2++) {
var c2 = s3 ? e2[l2] : l2;
f2.push(t2[o3][c2]);
}
u3 = "" === f2.join("").trim();
}
if (!u3) {
for (var p2 = 0; p2 < h3; p2++) {
0 < p2 && !d2 && (r3 += m2);
var g2 = n3 && s3 ? e2[p2] : p2;
r3 += k(t2[o3][g2], p2);
}
o3 < t2.length - 1 && (!i3 || 0 < h3 && !d2) && (r3 += y2);
}
}
return r3;
}
function k(e2, t2) {
var i3, r3;
return null == e2 ? "" : e2.constructor === Date ? JSON.stringify(e2).slice(1, 25) : (r3 = false, o2 && "string" == typeof e2 && o2.test(e2) && (e2 = "'" + e2, r3 = true), i3 = e2.toString().replace(h2, a2), (r3 = r3 || true === n2 || "function" == typeof n2 && n2(e2, t2) || Array.isArray(n2) && n2[t2] || ((e3, t3) => {
for (var i4 = 0; i4 < t3.length; i4++) if (-1 < e3.indexOf(t3[i4])) return true;
return false;
})(i3, v.BAD_DELIMITERS) || -1 < i3.indexOf(m2) || " " === i3.charAt(0) || " " === i3.charAt(i3.length - 1)) ? s2 + i3 + s2 : i3);
}
}, v.RECORD_SEP = String.fromCharCode(30), v.UNIT_SEP = String.fromCharCode(31), v.BYTE_ORDER_MARK = "\uFEFF", v.BAD_DELIMITERS = ["\r", "\n", '"', v.BYTE_ORDER_MARK], v.WORKERS_SUPPORTED = !s && !!n.Worker, v.NODE_STREAM_INPUT = 1, v.LocalChunkSize = 10485760, v.RemoteChunkSize = 5242880, v.DefaultDelimiter = ",", v.Parser = E, v.ParserHandle = i, v.NetworkStreamer = f, v.FileStreamer = l, v.StringStreamer = c, v.ReadableStreamStreamer = p, n.jQuery && ((d = n.jQuery).fn.parse = function(o2) {
var i2 = o2.config || {}, h2 = [];
return this.each(function(e2) {
if (!("INPUT" === d(this).prop("tagName").toUpperCase() && "file" === d(this).attr("type").toLowerCase() && n.FileReader) || !this.files || 0 === this.files.length) return true;
for (var t = 0; t < this.files.length; t++) h2.push({ file: this.files[t], inputElem: this, instanceConfig: d.extend({}, i2) });
}), e(), this;
function e() {
if (0 === h2.length) U(o2.complete) && o2.complete();
else {
var e2, t, i3, r2, n2 = h2[0];
if (U(o2.before)) {
var s2 = o2.before(n2.file, n2.inputElem);
if ("object" == typeof s2) {
if ("abort" === s2.action) return e2 = "AbortError", t = n2.file, i3 = n2.inputElem, r2 = s2.reason, void (U(o2.error) && o2.error({ name: e2 }, t, i3, r2));
if ("skip" === s2.action) return void u2();
"object" == typeof s2.config && (n2.instanceConfig = d.extend(n2.instanceConfig, s2.config));
} else if ("skip" === s2) return void u2();
}
var a2 = n2.instanceConfig.complete;
n2.instanceConfig.complete = function(e3) {
U(a2) && a2(e3, n2.file, n2.inputElem), u2();
}, v.parse(n2.file, n2.instanceConfig);
}
}
function u2() {
h2.splice(0, 1), e();
}
}), a && (n.onmessage = function(e) {
e = e.data;
void 0 === v.WORKER_ID && e && (v.WORKER_ID = e.workerId);
"string" == typeof e.input ? n.postMessage({ workerId: v.WORKER_ID, results: v.parse(e.input, e.config), finished: true }) : (n.File && e.input instanceof File || e.input instanceof Object) && (e = v.parse(e.input, e.config)) && n.postMessage({ workerId: v.WORKER_ID, results: e, finished: true });
}), (f.prototype = Object.create(u.prototype)).constructor = f, (l.prototype = Object.create(u.prototype)).constructor = l, (c.prototype = Object.create(c.prototype)).constructor = c, (p.prototype = Object.create(u.prototype)).constructor = p, v;
});
}
});
export default require_papaparse_min();
/*! Bundled license information:
papaparse/papaparse.min.js:
(* @license
Papa Parse
v5.5.3
https://github.com/mholt/PapaParse
License: MIT
*)
*/
//# sourceMappingURL=papaparse.js.map

7
web-app/node_modules/.vite/deps/papaparse.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

186
web-app/node_modules/.vite/deps/suncalc.js generated vendored Normal file
View File

@@ -0,0 +1,186 @@
import {
__commonJS
} from "./chunk-BUSYA2B4.js";
// node_modules/suncalc/suncalc.js
var require_suncalc = __commonJS({
"node_modules/suncalc/suncalc.js"(exports, module) {
(function() {
"use strict";
var PI = Math.PI, sin = Math.sin, cos = Math.cos, tan = Math.tan, asin = Math.asin, atan = Math.atan2, acos = Math.acos, rad = PI / 180;
var dayMs = 1e3 * 60 * 60 * 24, J1970 = 2440588, J2000 = 2451545;
function toJulian(date) {
return date.valueOf() / dayMs - 0.5 + J1970;
}
function fromJulian(j) {
return new Date((j + 0.5 - J1970) * dayMs);
}
function toDays(date) {
return toJulian(date) - J2000;
}
var e = rad * 23.4397;
function rightAscension(l, b) {
return atan(sin(l) * cos(e) - tan(b) * sin(e), cos(l));
}
function declination(l, b) {
return asin(sin(b) * cos(e) + cos(b) * sin(e) * sin(l));
}
function azimuth(H, phi, dec) {
return atan(sin(H), cos(H) * sin(phi) - tan(dec) * cos(phi));
}
function altitude(H, phi, dec) {
return asin(sin(phi) * sin(dec) + cos(phi) * cos(dec) * cos(H));
}
function siderealTime(d, lw) {
return rad * (280.16 + 360.9856235 * d) - lw;
}
function astroRefraction(h) {
if (h < 0)
h = 0;
return 2967e-7 / Math.tan(h + 312536e-8 / (h + 0.08901179));
}
function solarMeanAnomaly(d) {
return rad * (357.5291 + 0.98560028 * d);
}
function eclipticLongitude(M) {
var C = rad * (1.9148 * sin(M) + 0.02 * sin(2 * M) + 3e-4 * sin(3 * M)), P = rad * 102.9372;
return M + C + P + PI;
}
function sunCoords(d) {
var M = solarMeanAnomaly(d), L = eclipticLongitude(M);
return {
dec: declination(L, 0),
ra: rightAscension(L, 0)
};
}
var SunCalc = {};
SunCalc.getPosition = function(date, lat, lng) {
var lw = rad * -lng, phi = rad * lat, d = toDays(date), c = sunCoords(d), H = siderealTime(d, lw) - c.ra;
return {
azimuth: azimuth(H, phi, c.dec),
altitude: altitude(H, phi, c.dec)
};
};
var times = SunCalc.times = [
[-0.833, "sunrise", "sunset"],
[-0.3, "sunriseEnd", "sunsetStart"],
[-6, "dawn", "dusk"],
[-12, "nauticalDawn", "nauticalDusk"],
[-18, "nightEnd", "night"],
[6, "goldenHourEnd", "goldenHour"]
];
SunCalc.addTime = function(angle, riseName, setName) {
times.push([angle, riseName, setName]);
};
var J0 = 9e-4;
function julianCycle(d, lw) {
return Math.round(d - J0 - lw / (2 * PI));
}
function approxTransit(Ht, lw, n) {
return J0 + (Ht + lw) / (2 * PI) + n;
}
function solarTransitJ(ds, M, L) {
return J2000 + ds + 53e-4 * sin(M) - 69e-4 * sin(2 * L);
}
function hourAngle(h, phi, d) {
return acos((sin(h) - sin(phi) * sin(d)) / (cos(phi) * cos(d)));
}
function observerAngle(height) {
return -2.076 * Math.sqrt(height) / 60;
}
function getSetJ(h, lw, phi, dec, n, M, L) {
var w = hourAngle(h, phi, dec), a = approxTransit(w, lw, n);
return solarTransitJ(a, M, L);
}
SunCalc.getTimes = function(date, lat, lng, height) {
height = height || 0;
var lw = rad * -lng, phi = rad * lat, dh = observerAngle(height), d = toDays(date), n = julianCycle(d, lw), ds = approxTransit(0, lw, n), M = solarMeanAnomaly(ds), L = eclipticLongitude(M), dec = declination(L, 0), Jnoon = solarTransitJ(ds, M, L), i, len, time, h0, Jset, Jrise;
var result = {
solarNoon: fromJulian(Jnoon),
nadir: fromJulian(Jnoon - 0.5)
};
for (i = 0, len = times.length; i < len; i += 1) {
time = times[i];
h0 = (time[0] + dh) * rad;
Jset = getSetJ(h0, lw, phi, dec, n, M, L);
Jrise = Jnoon - (Jset - Jnoon);
result[time[1]] = fromJulian(Jrise);
result[time[2]] = fromJulian(Jset);
}
return result;
};
function moonCoords(d) {
var L = rad * (218.316 + 13.176396 * d), M = rad * (134.963 + 13.064993 * d), F = rad * (93.272 + 13.22935 * d), l = L + rad * 6.289 * sin(M), b = rad * 5.128 * sin(F), dt = 385001 - 20905 * cos(M);
return {
ra: rightAscension(l, b),
dec: declination(l, b),
dist: dt
};
}
SunCalc.getMoonPosition = function(date, lat, lng) {
var lw = rad * -lng, phi = rad * lat, d = toDays(date), c = moonCoords(d), H = siderealTime(d, lw) - c.ra, h = altitude(H, phi, c.dec), pa = atan(sin(H), tan(phi) * cos(c.dec) - sin(c.dec) * cos(H));
h = h + astroRefraction(h);
return {
azimuth: azimuth(H, phi, c.dec),
altitude: h,
distance: c.dist,
parallacticAngle: pa
};
};
SunCalc.getMoonIllumination = function(date) {
var d = toDays(date || /* @__PURE__ */ new Date()), s = sunCoords(d), m = moonCoords(d), sdist = 149598e3, phi = acos(sin(s.dec) * sin(m.dec) + cos(s.dec) * cos(m.dec) * cos(s.ra - m.ra)), inc = atan(sdist * sin(phi), m.dist - sdist * cos(phi)), angle = atan(cos(s.dec) * sin(s.ra - m.ra), sin(s.dec) * cos(m.dec) - cos(s.dec) * sin(m.dec) * cos(s.ra - m.ra));
return {
fraction: (1 + cos(inc)) / 2,
phase: 0.5 + 0.5 * inc * (angle < 0 ? -1 : 1) / Math.PI,
angle
};
};
function hoursLater(date, h) {
return new Date(date.valueOf() + h * dayMs / 24);
}
SunCalc.getMoonTimes = function(date, lat, lng, inUTC) {
var t = new Date(date);
if (inUTC) t.setUTCHours(0, 0, 0, 0);
else t.setHours(0, 0, 0, 0);
var hc = 0.133 * rad, h0 = SunCalc.getMoonPosition(t, lat, lng).altitude - hc, h1, h2, rise, set, a, b, xe, ye, d, roots, x1, x2, dx;
for (var i = 1; i <= 24; i += 2) {
h1 = SunCalc.getMoonPosition(hoursLater(t, i), lat, lng).altitude - hc;
h2 = SunCalc.getMoonPosition(hoursLater(t, i + 1), lat, lng).altitude - hc;
a = (h0 + h2) / 2 - h1;
b = (h2 - h0) / 2;
xe = -b / (2 * a);
ye = (a * xe + b) * xe + h1;
d = b * b - 4 * a * h1;
roots = 0;
if (d >= 0) {
dx = Math.sqrt(d) / (Math.abs(a) * 2);
x1 = xe - dx;
x2 = xe + dx;
if (Math.abs(x1) <= 1) roots++;
if (Math.abs(x2) <= 1) roots++;
if (x1 < -1) x1 = x2;
}
if (roots === 1) {
if (h0 < 0) rise = i + x1;
else set = i + x1;
} else if (roots === 2) {
rise = i + (ye < 0 ? x2 : x1);
set = i + (ye < 0 ? x1 : x2);
}
if (rise && set) break;
h0 = h2;
}
var result = {};
if (rise) result.rise = hoursLater(t, rise);
if (set) result.set = hoursLater(t, set);
if (!rise && !set) result[ye > 0 ? "alwaysUp" : "alwaysDown"] = true;
return result;
};
if (typeof exports === "object" && typeof module !== "undefined") module.exports = SunCalc;
else if (typeof define === "function" && define.amd) define(SunCalc);
else window.SunCalc = SunCalc;
})();
}
});
export default require_suncalc();
//# sourceMappingURL=suncalc.js.map

7
web-app/node_modules/.vite/deps/suncalc.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

835
web-app/node_modules/.vite/deps/three.js generated vendored Normal file
View File

@@ -0,0 +1,835 @@
import {
ACESFilmicToneMapping,
AddEquation,
AddOperation,
AdditiveAnimationBlendMode,
AdditiveBlending,
AgXToneMapping,
AlphaFormat,
AlwaysCompare,
AlwaysDepth,
AlwaysStencilFunc,
AmbientLight,
AnimationAction,
AnimationClip,
AnimationLoader,
AnimationMixer,
AnimationObjectGroup,
AnimationUtils,
ArcCurve,
ArrayCamera,
ArrowHelper,
AttachedBindMode,
Audio,
AudioAnalyser,
AudioContext,
AudioListener,
AudioLoader,
AxesHelper,
BackSide,
BasicDepthPacking,
BasicShadowMap,
BatchedMesh,
Bone,
BooleanKeyframeTrack,
Box2,
Box3,
Box3Helper,
BoxGeometry,
BoxHelper,
BufferAttribute,
BufferGeometry,
BufferGeometryLoader,
ByteType,
Cache,
Camera,
CameraHelper,
CanvasTexture,
CapsuleGeometry,
CatmullRomCurve3,
CineonToneMapping,
CircleGeometry,
ClampToEdgeWrapping,
Clock,
Color,
ColorKeyframeTrack,
ColorManagement,
CompressedArrayTexture,
CompressedCubeTexture,
CompressedTexture,
CompressedTextureLoader,
ConeGeometry,
ConstantAlphaFactor,
ConstantColorFactor,
Controls,
CubeCamera,
CubeReflectionMapping,
CubeRefractionMapping,
CubeTexture,
CubeTextureLoader,
CubeUVReflectionMapping,
CubicBezierCurve,
CubicBezierCurve3,
CubicInterpolant,
CullFaceBack,
CullFaceFront,
CullFaceFrontBack,
CullFaceNone,
Curve,
CurvePath,
CustomBlending,
CustomToneMapping,
CylinderGeometry,
Cylindrical,
Data3DTexture,
DataArrayTexture,
DataTexture,
DataTextureLoader,
DataUtils,
DecrementStencilOp,
DecrementWrapStencilOp,
DefaultLoadingManager,
DepthFormat,
DepthStencilFormat,
DepthTexture,
DetachedBindMode,
DirectionalLight,
DirectionalLightHelper,
DiscreteInterpolant,
DodecahedronGeometry,
DoubleSide,
DstAlphaFactor,
DstColorFactor,
DynamicCopyUsage,
DynamicDrawUsage,
DynamicReadUsage,
EdgesGeometry,
EllipseCurve,
EqualCompare,
EqualDepth,
EqualStencilFunc,
EquirectangularReflectionMapping,
EquirectangularRefractionMapping,
Euler,
EventDispatcher,
ExtrudeGeometry,
FileLoader,
Float16BufferAttribute,
Float32BufferAttribute,
FloatType,
Fog,
FogExp2,
FramebufferTexture,
FrontSide,
Frustum,
GLBufferAttribute,
GLSL1,
GLSL3,
GreaterCompare,
GreaterDepth,
GreaterEqualCompare,
GreaterEqualDepth,
GreaterEqualStencilFunc,
GreaterStencilFunc,
GridHelper,
Group,
HalfFloatType,
HemisphereLight,
HemisphereLightHelper,
IcosahedronGeometry,
ImageBitmapLoader,
ImageLoader,
ImageUtils,
IncrementStencilOp,
IncrementWrapStencilOp,
InstancedBufferAttribute,
InstancedBufferGeometry,
InstancedInterleavedBuffer,
InstancedMesh,
Int16BufferAttribute,
Int32BufferAttribute,
Int8BufferAttribute,
IntType,
InterleavedBuffer,
InterleavedBufferAttribute,
Interpolant,
InterpolateDiscrete,
InterpolateLinear,
InterpolateSmooth,
InvertStencilOp,
KeepStencilOp,
KeyframeTrack,
LOD,
LatheGeometry,
Layers,
LessCompare,
LessDepth,
LessEqualCompare,
LessEqualDepth,
LessEqualStencilFunc,
LessStencilFunc,
Light,
LightProbe,
Line,
Line3,
LineBasicMaterial,
LineCurve,
LineCurve3,
LineDashedMaterial,
LineLoop,
LineSegments,
LinearFilter,
LinearInterpolant,
LinearMipMapLinearFilter,
LinearMipMapNearestFilter,
LinearMipmapLinearFilter,
LinearMipmapNearestFilter,
LinearSRGBColorSpace,
LinearToneMapping,
LinearTransfer,
Loader,
LoaderUtils,
LoadingManager,
LoopOnce,
LoopPingPong,
LoopRepeat,
LuminanceAlphaFormat,
LuminanceFormat,
MOUSE,
Material,
MaterialLoader,
MathUtils,
Matrix2,
Matrix3,
Matrix4,
MaxEquation,
Mesh,
MeshBasicMaterial,
MeshDepthMaterial,
MeshDistanceMaterial,
MeshLambertMaterial,
MeshMatcapMaterial,
MeshNormalMaterial,
MeshPhongMaterial,
MeshPhysicalMaterial,
MeshStandardMaterial,
MeshToonMaterial,
MinEquation,
MirroredRepeatWrapping,
MixOperation,
MultiplyBlending,
MultiplyOperation,
NearestFilter,
NearestMipMapLinearFilter,
NearestMipMapNearestFilter,
NearestMipmapLinearFilter,
NearestMipmapNearestFilter,
NeutralToneMapping,
NeverCompare,
NeverDepth,
NeverStencilFunc,
NoBlending,
NoColorSpace,
NoToneMapping,
NormalAnimationBlendMode,
NormalBlending,
NotEqualCompare,
NotEqualDepth,
NotEqualStencilFunc,
NumberKeyframeTrack,
Object3D,
ObjectLoader,
ObjectSpaceNormalMap,
OctahedronGeometry,
OneFactor,
OneMinusConstantAlphaFactor,
OneMinusConstantColorFactor,
OneMinusDstAlphaFactor,
OneMinusDstColorFactor,
OneMinusSrcAlphaFactor,
OneMinusSrcColorFactor,
OrthographicCamera,
PCFShadowMap,
PCFSoftShadowMap,
PMREMGenerator,
Path,
PerspectiveCamera,
Plane,
PlaneGeometry,
PlaneHelper,
PointLight,
PointLightHelper,
Points,
PointsMaterial,
PolarGridHelper,
PolyhedronGeometry,
PositionalAudio,
PropertyBinding,
PropertyMixer,
QuadraticBezierCurve,
QuadraticBezierCurve3,
Quaternion,
QuaternionKeyframeTrack,
QuaternionLinearInterpolant,
RED_GREEN_RGTC2_Format,
RED_RGTC1_Format,
REVISION,
RGBADepthPacking,
RGBAFormat,
RGBAIntegerFormat,
RGBA_ASTC_10x10_Format,
RGBA_ASTC_10x5_Format,
RGBA_ASTC_10x6_Format,
RGBA_ASTC_10x8_Format,
RGBA_ASTC_12x10_Format,
RGBA_ASTC_12x12_Format,
RGBA_ASTC_4x4_Format,
RGBA_ASTC_5x4_Format,
RGBA_ASTC_5x5_Format,
RGBA_ASTC_6x5_Format,
RGBA_ASTC_6x6_Format,
RGBA_ASTC_8x5_Format,
RGBA_ASTC_8x6_Format,
RGBA_ASTC_8x8_Format,
RGBA_BPTC_Format,
RGBA_ETC2_EAC_Format,
RGBA_PVRTC_2BPPV1_Format,
RGBA_PVRTC_4BPPV1_Format,
RGBA_S3TC_DXT1_Format,
RGBA_S3TC_DXT3_Format,
RGBA_S3TC_DXT5_Format,
RGBDepthPacking,
RGBFormat,
RGBIntegerFormat,
RGB_BPTC_SIGNED_Format,
RGB_BPTC_UNSIGNED_Format,
RGB_ETC1_Format,
RGB_ETC2_Format,
RGB_PVRTC_2BPPV1_Format,
RGB_PVRTC_4BPPV1_Format,
RGB_S3TC_DXT1_Format,
RGDepthPacking,
RGFormat,
RGIntegerFormat,
RawShaderMaterial,
Ray,
Raycaster,
RectAreaLight,
RedFormat,
RedIntegerFormat,
ReinhardToneMapping,
RenderTarget,
RepeatWrapping,
ReplaceStencilOp,
ReverseSubtractEquation,
RingGeometry,
SIGNED_RED_GREEN_RGTC2_Format,
SIGNED_RED_RGTC1_Format,
SRGBColorSpace,
SRGBTransfer,
Scene,
ShaderChunk,
ShaderLib,
ShaderMaterial,
ShadowMaterial,
Shape,
ShapeGeometry,
ShapePath,
ShapeUtils,
ShortType,
Skeleton,
SkeletonHelper,
SkinnedMesh,
Source,
Sphere,
SphereGeometry,
Spherical,
SphericalHarmonics3,
SplineCurve,
SpotLight,
SpotLightHelper,
Sprite,
SpriteMaterial,
SrcAlphaFactor,
SrcAlphaSaturateFactor,
SrcColorFactor,
StaticCopyUsage,
StaticDrawUsage,
StaticReadUsage,
StereoCamera,
StreamCopyUsage,
StreamDrawUsage,
StreamReadUsage,
StringKeyframeTrack,
SubtractEquation,
SubtractiveBlending,
TOUCH,
TangentSpaceNormalMap,
TetrahedronGeometry,
Texture,
TextureLoader,
TextureUtils,
TorusGeometry,
TorusKnotGeometry,
Triangle,
TriangleFanDrawMode,
TriangleStripDrawMode,
TrianglesDrawMode,
TubeGeometry,
UVMapping,
Uint16BufferAttribute,
Uint32BufferAttribute,
Uint8BufferAttribute,
Uint8ClampedBufferAttribute,
Uniform,
UniformsGroup,
UniformsLib,
UniformsUtils,
UnsignedByteType,
UnsignedInt248Type,
UnsignedInt5999Type,
UnsignedIntType,
UnsignedShort4444Type,
UnsignedShort5551Type,
UnsignedShortType,
VSMShadowMap,
Vector2,
Vector3,
Vector4,
VectorKeyframeTrack,
VideoTexture,
WebGL3DRenderTarget,
WebGLArrayRenderTarget,
WebGLCoordinateSystem,
WebGLCubeRenderTarget,
WebGLMultipleRenderTargets,
WebGLRenderTarget,
WebGLRenderer,
WebGLUtils,
WebGPUCoordinateSystem,
WireframeGeometry,
WrapAroundEnding,
ZeroCurvatureEnding,
ZeroFactor,
ZeroSlopeEnding,
ZeroStencilOp,
createCanvasElement
} from "./chunk-BQJMB3HC.js";
import "./chunk-BUSYA2B4.js";
export {
ACESFilmicToneMapping,
AddEquation,
AddOperation,
AdditiveAnimationBlendMode,
AdditiveBlending,
AgXToneMapping,
AlphaFormat,
AlwaysCompare,
AlwaysDepth,
AlwaysStencilFunc,
AmbientLight,
AnimationAction,
AnimationClip,
AnimationLoader,
AnimationMixer,
AnimationObjectGroup,
AnimationUtils,
ArcCurve,
ArrayCamera,
ArrowHelper,
AttachedBindMode,
Audio,
AudioAnalyser,
AudioContext,
AudioListener,
AudioLoader,
AxesHelper,
BackSide,
BasicDepthPacking,
BasicShadowMap,
BatchedMesh,
Bone,
BooleanKeyframeTrack,
Box2,
Box3,
Box3Helper,
BoxGeometry,
BoxHelper,
BufferAttribute,
BufferGeometry,
BufferGeometryLoader,
ByteType,
Cache,
Camera,
CameraHelper,
CanvasTexture,
CapsuleGeometry,
CatmullRomCurve3,
CineonToneMapping,
CircleGeometry,
ClampToEdgeWrapping,
Clock,
Color,
ColorKeyframeTrack,
ColorManagement,
CompressedArrayTexture,
CompressedCubeTexture,
CompressedTexture,
CompressedTextureLoader,
ConeGeometry,
ConstantAlphaFactor,
ConstantColorFactor,
Controls,
CubeCamera,
CubeReflectionMapping,
CubeRefractionMapping,
CubeTexture,
CubeTextureLoader,
CubeUVReflectionMapping,
CubicBezierCurve,
CubicBezierCurve3,
CubicInterpolant,
CullFaceBack,
CullFaceFront,
CullFaceFrontBack,
CullFaceNone,
Curve,
CurvePath,
CustomBlending,
CustomToneMapping,
CylinderGeometry,
Cylindrical,
Data3DTexture,
DataArrayTexture,
DataTexture,
DataTextureLoader,
DataUtils,
DecrementStencilOp,
DecrementWrapStencilOp,
DefaultLoadingManager,
DepthFormat,
DepthStencilFormat,
DepthTexture,
DetachedBindMode,
DirectionalLight,
DirectionalLightHelper,
DiscreteInterpolant,
DodecahedronGeometry,
DoubleSide,
DstAlphaFactor,
DstColorFactor,
DynamicCopyUsage,
DynamicDrawUsage,
DynamicReadUsage,
EdgesGeometry,
EllipseCurve,
EqualCompare,
EqualDepth,
EqualStencilFunc,
EquirectangularReflectionMapping,
EquirectangularRefractionMapping,
Euler,
EventDispatcher,
ExtrudeGeometry,
FileLoader,
Float16BufferAttribute,
Float32BufferAttribute,
FloatType,
Fog,
FogExp2,
FramebufferTexture,
FrontSide,
Frustum,
GLBufferAttribute,
GLSL1,
GLSL3,
GreaterCompare,
GreaterDepth,
GreaterEqualCompare,
GreaterEqualDepth,
GreaterEqualStencilFunc,
GreaterStencilFunc,
GridHelper,
Group,
HalfFloatType,
HemisphereLight,
HemisphereLightHelper,
IcosahedronGeometry,
ImageBitmapLoader,
ImageLoader,
ImageUtils,
IncrementStencilOp,
IncrementWrapStencilOp,
InstancedBufferAttribute,
InstancedBufferGeometry,
InstancedInterleavedBuffer,
InstancedMesh,
Int16BufferAttribute,
Int32BufferAttribute,
Int8BufferAttribute,
IntType,
InterleavedBuffer,
InterleavedBufferAttribute,
Interpolant,
InterpolateDiscrete,
InterpolateLinear,
InterpolateSmooth,
InvertStencilOp,
KeepStencilOp,
KeyframeTrack,
LOD,
LatheGeometry,
Layers,
LessCompare,
LessDepth,
LessEqualCompare,
LessEqualDepth,
LessEqualStencilFunc,
LessStencilFunc,
Light,
LightProbe,
Line,
Line3,
LineBasicMaterial,
LineCurve,
LineCurve3,
LineDashedMaterial,
LineLoop,
LineSegments,
LinearFilter,
LinearInterpolant,
LinearMipMapLinearFilter,
LinearMipMapNearestFilter,
LinearMipmapLinearFilter,
LinearMipmapNearestFilter,
LinearSRGBColorSpace,
LinearToneMapping,
LinearTransfer,
Loader,
LoaderUtils,
LoadingManager,
LoopOnce,
LoopPingPong,
LoopRepeat,
LuminanceAlphaFormat,
LuminanceFormat,
MOUSE,
Material,
MaterialLoader,
MathUtils,
Matrix2,
Matrix3,
Matrix4,
MaxEquation,
Mesh,
MeshBasicMaterial,
MeshDepthMaterial,
MeshDistanceMaterial,
MeshLambertMaterial,
MeshMatcapMaterial,
MeshNormalMaterial,
MeshPhongMaterial,
MeshPhysicalMaterial,
MeshStandardMaterial,
MeshToonMaterial,
MinEquation,
MirroredRepeatWrapping,
MixOperation,
MultiplyBlending,
MultiplyOperation,
NearestFilter,
NearestMipMapLinearFilter,
NearestMipMapNearestFilter,
NearestMipmapLinearFilter,
NearestMipmapNearestFilter,
NeutralToneMapping,
NeverCompare,
NeverDepth,
NeverStencilFunc,
NoBlending,
NoColorSpace,
NoToneMapping,
NormalAnimationBlendMode,
NormalBlending,
NotEqualCompare,
NotEqualDepth,
NotEqualStencilFunc,
NumberKeyframeTrack,
Object3D,
ObjectLoader,
ObjectSpaceNormalMap,
OctahedronGeometry,
OneFactor,
OneMinusConstantAlphaFactor,
OneMinusConstantColorFactor,
OneMinusDstAlphaFactor,
OneMinusDstColorFactor,
OneMinusSrcAlphaFactor,
OneMinusSrcColorFactor,
OrthographicCamera,
PCFShadowMap,
PCFSoftShadowMap,
PMREMGenerator,
Path,
PerspectiveCamera,
Plane,
PlaneGeometry,
PlaneHelper,
PointLight,
PointLightHelper,
Points,
PointsMaterial,
PolarGridHelper,
PolyhedronGeometry,
PositionalAudio,
PropertyBinding,
PropertyMixer,
QuadraticBezierCurve,
QuadraticBezierCurve3,
Quaternion,
QuaternionKeyframeTrack,
QuaternionLinearInterpolant,
RED_GREEN_RGTC2_Format,
RED_RGTC1_Format,
REVISION,
RGBADepthPacking,
RGBAFormat,
RGBAIntegerFormat,
RGBA_ASTC_10x10_Format,
RGBA_ASTC_10x5_Format,
RGBA_ASTC_10x6_Format,
RGBA_ASTC_10x8_Format,
RGBA_ASTC_12x10_Format,
RGBA_ASTC_12x12_Format,
RGBA_ASTC_4x4_Format,
RGBA_ASTC_5x4_Format,
RGBA_ASTC_5x5_Format,
RGBA_ASTC_6x5_Format,
RGBA_ASTC_6x6_Format,
RGBA_ASTC_8x5_Format,
RGBA_ASTC_8x6_Format,
RGBA_ASTC_8x8_Format,
RGBA_BPTC_Format,
RGBA_ETC2_EAC_Format,
RGBA_PVRTC_2BPPV1_Format,
RGBA_PVRTC_4BPPV1_Format,
RGBA_S3TC_DXT1_Format,
RGBA_S3TC_DXT3_Format,
RGBA_S3TC_DXT5_Format,
RGBDepthPacking,
RGBFormat,
RGBIntegerFormat,
RGB_BPTC_SIGNED_Format,
RGB_BPTC_UNSIGNED_Format,
RGB_ETC1_Format,
RGB_ETC2_Format,
RGB_PVRTC_2BPPV1_Format,
RGB_PVRTC_4BPPV1_Format,
RGB_S3TC_DXT1_Format,
RGDepthPacking,
RGFormat,
RGIntegerFormat,
RawShaderMaterial,
Ray,
Raycaster,
RectAreaLight,
RedFormat,
RedIntegerFormat,
ReinhardToneMapping,
RenderTarget,
RepeatWrapping,
ReplaceStencilOp,
ReverseSubtractEquation,
RingGeometry,
SIGNED_RED_GREEN_RGTC2_Format,
SIGNED_RED_RGTC1_Format,
SRGBColorSpace,
SRGBTransfer,
Scene,
ShaderChunk,
ShaderLib,
ShaderMaterial,
ShadowMaterial,
Shape,
ShapeGeometry,
ShapePath,
ShapeUtils,
ShortType,
Skeleton,
SkeletonHelper,
SkinnedMesh,
Source,
Sphere,
SphereGeometry,
Spherical,
SphericalHarmonics3,
SplineCurve,
SpotLight,
SpotLightHelper,
Sprite,
SpriteMaterial,
SrcAlphaFactor,
SrcAlphaSaturateFactor,
SrcColorFactor,
StaticCopyUsage,
StaticDrawUsage,
StaticReadUsage,
StereoCamera,
StreamCopyUsage,
StreamDrawUsage,
StreamReadUsage,
StringKeyframeTrack,
SubtractEquation,
SubtractiveBlending,
TOUCH,
TangentSpaceNormalMap,
TetrahedronGeometry,
Texture,
TextureLoader,
TextureUtils,
TorusGeometry,
TorusKnotGeometry,
Triangle,
TriangleFanDrawMode,
TriangleStripDrawMode,
TrianglesDrawMode,
TubeGeometry,
UVMapping,
Uint16BufferAttribute,
Uint32BufferAttribute,
Uint8BufferAttribute,
Uint8ClampedBufferAttribute,
Uniform,
UniformsGroup,
UniformsLib,
UniformsUtils,
UnsignedByteType,
UnsignedInt248Type,
UnsignedInt5999Type,
UnsignedIntType,
UnsignedShort4444Type,
UnsignedShort5551Type,
UnsignedShortType,
VSMShadowMap,
Vector2,
Vector3,
Vector4,
VectorKeyframeTrack,
VideoTexture,
WebGL3DRenderTarget,
WebGLArrayRenderTarget,
WebGLCoordinateSystem,
WebGLCubeRenderTarget,
WebGLMultipleRenderTargets,
WebGLRenderTarget,
WebGLRenderer,
WebGLUtils,
WebGPUCoordinateSystem,
WireframeGeometry,
WrapAroundEnding,
ZeroCurvatureEnding,
ZeroFactor,
ZeroSlopeEnding,
ZeroStencilOp,
createCanvasElement
};

7
web-app/node_modules/.vite/deps/three.js.map generated vendored Normal file
View File

@@ -0,0 +1,7 @@
{
"version": 3,
"sources": [],
"sourcesContent": [],
"mappings": "",
"names": []
}

View File

@@ -0,0 +1,803 @@
import {
Controls,
MOUSE,
MathUtils,
Plane,
Quaternion,
Ray,
Spherical,
TOUCH,
Vector2,
Vector3
} from "./chunk-BQJMB3HC.js";
import "./chunk-BUSYA2B4.js";
// node_modules/three/examples/jsm/controls/OrbitControls.js
var _changeEvent = { type: "change" };
var _startEvent = { type: "start" };
var _endEvent = { type: "end" };
var _ray = new Ray();
var _plane = new Plane();
var _TILT_LIMIT = Math.cos(70 * MathUtils.DEG2RAD);
var _v = new Vector3();
var _twoPI = 2 * Math.PI;
var _STATE = {
NONE: -1,
ROTATE: 0,
DOLLY: 1,
PAN: 2,
TOUCH_ROTATE: 3,
TOUCH_PAN: 4,
TOUCH_DOLLY_PAN: 5,
TOUCH_DOLLY_ROTATE: 6
};
var _EPS = 1e-6;
var OrbitControls = class extends Controls {
constructor(object, domElement = null) {
super(object, domElement);
this.state = _STATE.NONE;
this.enabled = true;
this.target = new Vector3();
this.cursor = new Vector3();
this.minDistance = 0;
this.maxDistance = Infinity;
this.minZoom = 0;
this.maxZoom = Infinity;
this.minTargetRadius = 0;
this.maxTargetRadius = Infinity;
this.minPolarAngle = 0;
this.maxPolarAngle = Math.PI;
this.minAzimuthAngle = -Infinity;
this.maxAzimuthAngle = Infinity;
this.enableDamping = false;
this.dampingFactor = 0.05;
this.enableZoom = true;
this.zoomSpeed = 1;
this.enableRotate = true;
this.rotateSpeed = 1;
this.enablePan = true;
this.panSpeed = 1;
this.screenSpacePanning = true;
this.keyPanSpeed = 7;
this.zoomToCursor = false;
this.autoRotate = false;
this.autoRotateSpeed = 2;
this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" };
this.mouseButtons = { LEFT: MOUSE.ROTATE, MIDDLE: MOUSE.DOLLY, RIGHT: MOUSE.PAN };
this.touches = { ONE: TOUCH.ROTATE, TWO: TOUCH.DOLLY_PAN };
this.target0 = this.target.clone();
this.position0 = this.object.position.clone();
this.zoom0 = this.object.zoom;
this._domElementKeyEvents = null;
this._lastPosition = new Vector3();
this._lastQuaternion = new Quaternion();
this._lastTargetPosition = new Vector3();
this._quat = new Quaternion().setFromUnitVectors(object.up, new Vector3(0, 1, 0));
this._quatInverse = this._quat.clone().invert();
this._spherical = new Spherical();
this._sphericalDelta = new Spherical();
this._scale = 1;
this._panOffset = new Vector3();
this._rotateStart = new Vector2();
this._rotateEnd = new Vector2();
this._rotateDelta = new Vector2();
this._panStart = new Vector2();
this._panEnd = new Vector2();
this._panDelta = new Vector2();
this._dollyStart = new Vector2();
this._dollyEnd = new Vector2();
this._dollyDelta = new Vector2();
this._dollyDirection = new Vector3();
this._mouse = new Vector2();
this._performCursorZoom = false;
this._pointers = [];
this._pointerPositions = {};
this._controlActive = false;
this._onPointerMove = onPointerMove.bind(this);
this._onPointerDown = onPointerDown.bind(this);
this._onPointerUp = onPointerUp.bind(this);
this._onContextMenu = onContextMenu.bind(this);
this._onMouseWheel = onMouseWheel.bind(this);
this._onKeyDown = onKeyDown.bind(this);
this._onTouchStart = onTouchStart.bind(this);
this._onTouchMove = onTouchMove.bind(this);
this._onMouseDown = onMouseDown.bind(this);
this._onMouseMove = onMouseMove.bind(this);
this._interceptControlDown = interceptControlDown.bind(this);
this._interceptControlUp = interceptControlUp.bind(this);
if (this.domElement !== null) {
this.connect();
}
this.update();
}
connect() {
this.domElement.addEventListener("pointerdown", this._onPointerDown);
this.domElement.addEventListener("pointercancel", this._onPointerUp);
this.domElement.addEventListener("contextmenu", this._onContextMenu);
this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: false });
const document = this.domElement.getRootNode();
document.addEventListener("keydown", this._interceptControlDown, { passive: true, capture: true });
this.domElement.style.touchAction = "none";
}
disconnect() {
this.domElement.removeEventListener("pointerdown", this._onPointerDown);
this.domElement.removeEventListener("pointermove", this._onPointerMove);
this.domElement.removeEventListener("pointerup", this._onPointerUp);
this.domElement.removeEventListener("pointercancel", this._onPointerUp);
this.domElement.removeEventListener("wheel", this._onMouseWheel);
this.domElement.removeEventListener("contextmenu", this._onContextMenu);
this.stopListenToKeyEvents();
const document = this.domElement.getRootNode();
document.removeEventListener("keydown", this._interceptControlDown, { capture: true });
this.domElement.style.touchAction = "auto";
}
dispose() {
this.disconnect();
}
getPolarAngle() {
return this._spherical.phi;
}
getAzimuthalAngle() {
return this._spherical.theta;
}
getDistance() {
return this.object.position.distanceTo(this.target);
}
listenToKeyEvents(domElement) {
domElement.addEventListener("keydown", this._onKeyDown);
this._domElementKeyEvents = domElement;
}
stopListenToKeyEvents() {
if (this._domElementKeyEvents !== null) {
this._domElementKeyEvents.removeEventListener("keydown", this._onKeyDown);
this._domElementKeyEvents = null;
}
}
saveState() {
this.target0.copy(this.target);
this.position0.copy(this.object.position);
this.zoom0 = this.object.zoom;
}
reset() {
this.target.copy(this.target0);
this.object.position.copy(this.position0);
this.object.zoom = this.zoom0;
this.object.updateProjectionMatrix();
this.dispatchEvent(_changeEvent);
this.update();
this.state = _STATE.NONE;
}
update(deltaTime = null) {
const position = this.object.position;
_v.copy(position).sub(this.target);
_v.applyQuaternion(this._quat);
this._spherical.setFromVector3(_v);
if (this.autoRotate && this.state === _STATE.NONE) {
this._rotateLeft(this._getAutoRotationAngle(deltaTime));
}
if (this.enableDamping) {
this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor;
this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor;
} else {
this._spherical.theta += this._sphericalDelta.theta;
this._spherical.phi += this._sphericalDelta.phi;
}
let min = this.minAzimuthAngle;
let max = this.maxAzimuthAngle;
if (isFinite(min) && isFinite(max)) {
if (min < -Math.PI) min += _twoPI;
else if (min > Math.PI) min -= _twoPI;
if (max < -Math.PI) max += _twoPI;
else if (max > Math.PI) max -= _twoPI;
if (min <= max) {
this._spherical.theta = Math.max(min, Math.min(max, this._spherical.theta));
} else {
this._spherical.theta = this._spherical.theta > (min + max) / 2 ? Math.max(min, this._spherical.theta) : Math.min(max, this._spherical.theta);
}
}
this._spherical.phi = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, this._spherical.phi));
this._spherical.makeSafe();
if (this.enableDamping === true) {
this.target.addScaledVector(this._panOffset, this.dampingFactor);
} else {
this.target.add(this._panOffset);
}
this.target.sub(this.cursor);
this.target.clampLength(this.minTargetRadius, this.maxTargetRadius);
this.target.add(this.cursor);
let zoomChanged = false;
if (this.zoomToCursor && this._performCursorZoom || this.object.isOrthographicCamera) {
this._spherical.radius = this._clampDistance(this._spherical.radius);
} else {
const prevRadius = this._spherical.radius;
this._spherical.radius = this._clampDistance(this._spherical.radius * this._scale);
zoomChanged = prevRadius != this._spherical.radius;
}
_v.setFromSpherical(this._spherical);
_v.applyQuaternion(this._quatInverse);
position.copy(this.target).add(_v);
this.object.lookAt(this.target);
if (this.enableDamping === true) {
this._sphericalDelta.theta *= 1 - this.dampingFactor;
this._sphericalDelta.phi *= 1 - this.dampingFactor;
this._panOffset.multiplyScalar(1 - this.dampingFactor);
} else {
this._sphericalDelta.set(0, 0, 0);
this._panOffset.set(0, 0, 0);
}
if (this.zoomToCursor && this._performCursorZoom) {
let newRadius = null;
if (this.object.isPerspectiveCamera) {
const prevRadius = _v.length();
newRadius = this._clampDistance(prevRadius * this._scale);
const radiusDelta = prevRadius - newRadius;
this.object.position.addScaledVector(this._dollyDirection, radiusDelta);
this.object.updateMatrixWorld();
zoomChanged = !!radiusDelta;
} else if (this.object.isOrthographicCamera) {
const mouseBefore = new Vector3(this._mouse.x, this._mouse.y, 0);
mouseBefore.unproject(this.object);
const prevZoom = this.object.zoom;
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale));
this.object.updateProjectionMatrix();
zoomChanged = prevZoom !== this.object.zoom;
const mouseAfter = new Vector3(this._mouse.x, this._mouse.y, 0);
mouseAfter.unproject(this.object);
this.object.position.sub(mouseAfter).add(mouseBefore);
this.object.updateMatrixWorld();
newRadius = _v.length();
} else {
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled.");
this.zoomToCursor = false;
}
if (newRadius !== null) {
if (this.screenSpacePanning) {
this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(newRadius).add(this.object.position);
} else {
_ray.origin.copy(this.object.position);
_ray.direction.set(0, 0, -1).transformDirection(this.object.matrix);
if (Math.abs(this.object.up.dot(_ray.direction)) < _TILT_LIMIT) {
this.object.lookAt(this.target);
} else {
_plane.setFromNormalAndCoplanarPoint(this.object.up, this.target);
_ray.intersectPlane(_plane, this.target);
}
}
}
} else if (this.object.isOrthographicCamera) {
const prevZoom = this.object.zoom;
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale));
if (prevZoom !== this.object.zoom) {
this.object.updateProjectionMatrix();
zoomChanged = true;
}
}
this._scale = 1;
this._performCursorZoom = false;
if (zoomChanged || this._lastPosition.distanceToSquared(this.object.position) > _EPS || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > _EPS || this._lastTargetPosition.distanceToSquared(this.target) > _EPS) {
this.dispatchEvent(_changeEvent);
this._lastPosition.copy(this.object.position);
this._lastQuaternion.copy(this.object.quaternion);
this._lastTargetPosition.copy(this.target);
return true;
}
return false;
}
_getAutoRotationAngle(deltaTime) {
if (deltaTime !== null) {
return _twoPI / 60 * this.autoRotateSpeed * deltaTime;
} else {
return _twoPI / 60 / 60 * this.autoRotateSpeed;
}
}
_getZoomScale(delta) {
const normalizedDelta = Math.abs(delta * 0.01);
return Math.pow(0.95, this.zoomSpeed * normalizedDelta);
}
_rotateLeft(angle) {
this._sphericalDelta.theta -= angle;
}
_rotateUp(angle) {
this._sphericalDelta.phi -= angle;
}
_panLeft(distance, objectMatrix) {
_v.setFromMatrixColumn(objectMatrix, 0);
_v.multiplyScalar(-distance);
this._panOffset.add(_v);
}
_panUp(distance, objectMatrix) {
if (this.screenSpacePanning === true) {
_v.setFromMatrixColumn(objectMatrix, 1);
} else {
_v.setFromMatrixColumn(objectMatrix, 0);
_v.crossVectors(this.object.up, _v);
}
_v.multiplyScalar(distance);
this._panOffset.add(_v);
}
// deltaX and deltaY are in pixels; right and down are positive
_pan(deltaX, deltaY) {
const element = this.domElement;
if (this.object.isPerspectiveCamera) {
const position = this.object.position;
_v.copy(position).sub(this.target);
let targetDistance = _v.length();
targetDistance *= Math.tan(this.object.fov / 2 * Math.PI / 180);
this._panLeft(2 * deltaX * targetDistance / element.clientHeight, this.object.matrix);
this._panUp(2 * deltaY * targetDistance / element.clientHeight, this.object.matrix);
} else if (this.object.isOrthographicCamera) {
this._panLeft(deltaX * (this.object.right - this.object.left) / this.object.zoom / element.clientWidth, this.object.matrix);
this._panUp(deltaY * (this.object.top - this.object.bottom) / this.object.zoom / element.clientHeight, this.object.matrix);
} else {
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.");
this.enablePan = false;
}
}
_dollyOut(dollyScale) {
if (this.object.isPerspectiveCamera || this.object.isOrthographicCamera) {
this._scale /= dollyScale;
} else {
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.");
this.enableZoom = false;
}
}
_dollyIn(dollyScale) {
if (this.object.isPerspectiveCamera || this.object.isOrthographicCamera) {
this._scale *= dollyScale;
} else {
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.");
this.enableZoom = false;
}
}
_updateZoomParameters(x, y) {
if (!this.zoomToCursor) {
return;
}
this._performCursorZoom = true;
const rect = this.domElement.getBoundingClientRect();
const dx = x - rect.left;
const dy = y - rect.top;
const w = rect.width;
const h = rect.height;
this._mouse.x = dx / w * 2 - 1;
this._mouse.y = -(dy / h) * 2 + 1;
this._dollyDirection.set(this._mouse.x, this._mouse.y, 1).unproject(this.object).sub(this.object.position).normalize();
}
_clampDistance(dist) {
return Math.max(this.minDistance, Math.min(this.maxDistance, dist));
}
//
// event callbacks - update the object state
//
_handleMouseDownRotate(event) {
this._rotateStart.set(event.clientX, event.clientY);
}
_handleMouseDownDolly(event) {
this._updateZoomParameters(event.clientX, event.clientX);
this._dollyStart.set(event.clientX, event.clientY);
}
_handleMouseDownPan(event) {
this._panStart.set(event.clientX, event.clientY);
}
_handleMouseMoveRotate(event) {
this._rotateEnd.set(event.clientX, event.clientY);
this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
const element = this.domElement;
this._rotateLeft(_twoPI * this._rotateDelta.x / element.clientHeight);
this._rotateUp(_twoPI * this._rotateDelta.y / element.clientHeight);
this._rotateStart.copy(this._rotateEnd);
this.update();
}
_handleMouseMoveDolly(event) {
this._dollyEnd.set(event.clientX, event.clientY);
this._dollyDelta.subVectors(this._dollyEnd, this._dollyStart);
if (this._dollyDelta.y > 0) {
this._dollyOut(this._getZoomScale(this._dollyDelta.y));
} else if (this._dollyDelta.y < 0) {
this._dollyIn(this._getZoomScale(this._dollyDelta.y));
}
this._dollyStart.copy(this._dollyEnd);
this.update();
}
_handleMouseMovePan(event) {
this._panEnd.set(event.clientX, event.clientY);
this._panDelta.subVectors(this._panEnd, this._panStart).multiplyScalar(this.panSpeed);
this._pan(this._panDelta.x, this._panDelta.y);
this._panStart.copy(this._panEnd);
this.update();
}
_handleMouseWheel(event) {
this._updateZoomParameters(event.clientX, event.clientY);
if (event.deltaY < 0) {
this._dollyIn(this._getZoomScale(event.deltaY));
} else if (event.deltaY > 0) {
this._dollyOut(this._getZoomScale(event.deltaY));
}
this.update();
}
_handleKeyDown(event) {
let needsUpdate = false;
switch (event.code) {
case this.keys.UP:
if (event.ctrlKey || event.metaKey || event.shiftKey) {
this._rotateUp(_twoPI * this.rotateSpeed / this.domElement.clientHeight);
} else {
this._pan(0, this.keyPanSpeed);
}
needsUpdate = true;
break;
case this.keys.BOTTOM:
if (event.ctrlKey || event.metaKey || event.shiftKey) {
this._rotateUp(-_twoPI * this.rotateSpeed / this.domElement.clientHeight);
} else {
this._pan(0, -this.keyPanSpeed);
}
needsUpdate = true;
break;
case this.keys.LEFT:
if (event.ctrlKey || event.metaKey || event.shiftKey) {
this._rotateLeft(_twoPI * this.rotateSpeed / this.domElement.clientHeight);
} else {
this._pan(this.keyPanSpeed, 0);
}
needsUpdate = true;
break;
case this.keys.RIGHT:
if (event.ctrlKey || event.metaKey || event.shiftKey) {
this._rotateLeft(-_twoPI * this.rotateSpeed / this.domElement.clientHeight);
} else {
this._pan(-this.keyPanSpeed, 0);
}
needsUpdate = true;
break;
}
if (needsUpdate) {
event.preventDefault();
this.update();
}
}
_handleTouchStartRotate(event) {
if (this._pointers.length === 1) {
this._rotateStart.set(event.pageX, event.pageY);
} else {
const position = this._getSecondPointerPosition(event);
const x = 0.5 * (event.pageX + position.x);
const y = 0.5 * (event.pageY + position.y);
this._rotateStart.set(x, y);
}
}
_handleTouchStartPan(event) {
if (this._pointers.length === 1) {
this._panStart.set(event.pageX, event.pageY);
} else {
const position = this._getSecondPointerPosition(event);
const x = 0.5 * (event.pageX + position.x);
const y = 0.5 * (event.pageY + position.y);
this._panStart.set(x, y);
}
}
_handleTouchStartDolly(event) {
const position = this._getSecondPointerPosition(event);
const dx = event.pageX - position.x;
const dy = event.pageY - position.y;
const distance = Math.sqrt(dx * dx + dy * dy);
this._dollyStart.set(0, distance);
}
_handleTouchStartDollyPan(event) {
if (this.enableZoom) this._handleTouchStartDolly(event);
if (this.enablePan) this._handleTouchStartPan(event);
}
_handleTouchStartDollyRotate(event) {
if (this.enableZoom) this._handleTouchStartDolly(event);
if (this.enableRotate) this._handleTouchStartRotate(event);
}
_handleTouchMoveRotate(event) {
if (this._pointers.length == 1) {
this._rotateEnd.set(event.pageX, event.pageY);
} else {
const position = this._getSecondPointerPosition(event);
const x = 0.5 * (event.pageX + position.x);
const y = 0.5 * (event.pageY + position.y);
this._rotateEnd.set(x, y);
}
this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
const element = this.domElement;
this._rotateLeft(_twoPI * this._rotateDelta.x / element.clientHeight);
this._rotateUp(_twoPI * this._rotateDelta.y / element.clientHeight);
this._rotateStart.copy(this._rotateEnd);
}
_handleTouchMovePan(event) {
if (this._pointers.length === 1) {
this._panEnd.set(event.pageX, event.pageY);
} else {
const position = this._getSecondPointerPosition(event);
const x = 0.5 * (event.pageX + position.x);
const y = 0.5 * (event.pageY + position.y);
this._panEnd.set(x, y);
}
this._panDelta.subVectors(this._panEnd, this._panStart).multiplyScalar(this.panSpeed);
this._pan(this._panDelta.x, this._panDelta.y);
this._panStart.copy(this._panEnd);
}
_handleTouchMoveDolly(event) {
const position = this._getSecondPointerPosition(event);
const dx = event.pageX - position.x;
const dy = event.pageY - position.y;
const distance = Math.sqrt(dx * dx + dy * dy);
this._dollyEnd.set(0, distance);
this._dollyDelta.set(0, Math.pow(this._dollyEnd.y / this._dollyStart.y, this.zoomSpeed));
this._dollyOut(this._dollyDelta.y);
this._dollyStart.copy(this._dollyEnd);
const centerX = (event.pageX + position.x) * 0.5;
const centerY = (event.pageY + position.y) * 0.5;
this._updateZoomParameters(centerX, centerY);
}
_handleTouchMoveDollyPan(event) {
if (this.enableZoom) this._handleTouchMoveDolly(event);
if (this.enablePan) this._handleTouchMovePan(event);
}
_handleTouchMoveDollyRotate(event) {
if (this.enableZoom) this._handleTouchMoveDolly(event);
if (this.enableRotate) this._handleTouchMoveRotate(event);
}
// pointers
_addPointer(event) {
this._pointers.push(event.pointerId);
}
_removePointer(event) {
delete this._pointerPositions[event.pointerId];
for (let i = 0; i < this._pointers.length; i++) {
if (this._pointers[i] == event.pointerId) {
this._pointers.splice(i, 1);
return;
}
}
}
_isTrackingPointer(event) {
for (let i = 0; i < this._pointers.length; i++) {
if (this._pointers[i] == event.pointerId) return true;
}
return false;
}
_trackPointer(event) {
let position = this._pointerPositions[event.pointerId];
if (position === void 0) {
position = new Vector2();
this._pointerPositions[event.pointerId] = position;
}
position.set(event.pageX, event.pageY);
}
_getSecondPointerPosition(event) {
const pointerId = event.pointerId === this._pointers[0] ? this._pointers[1] : this._pointers[0];
return this._pointerPositions[pointerId];
}
//
_customWheelEvent(event) {
const mode = event.deltaMode;
const newEvent = {
clientX: event.clientX,
clientY: event.clientY,
deltaY: event.deltaY
};
switch (mode) {
case 1:
newEvent.deltaY *= 16;
break;
case 2:
newEvent.deltaY *= 100;
break;
}
if (event.ctrlKey && !this._controlActive) {
newEvent.deltaY *= 10;
}
return newEvent;
}
};
function onPointerDown(event) {
if (this.enabled === false) return;
if (this._pointers.length === 0) {
this.domElement.setPointerCapture(event.pointerId);
this.domElement.addEventListener("pointermove", this._onPointerMove);
this.domElement.addEventListener("pointerup", this._onPointerUp);
}
if (this._isTrackingPointer(event)) return;
this._addPointer(event);
if (event.pointerType === "touch") {
this._onTouchStart(event);
} else {
this._onMouseDown(event);
}
}
function onPointerMove(event) {
if (this.enabled === false) return;
if (event.pointerType === "touch") {
this._onTouchMove(event);
} else {
this._onMouseMove(event);
}
}
function onPointerUp(event) {
this._removePointer(event);
switch (this._pointers.length) {
case 0:
this.domElement.releasePointerCapture(event.pointerId);
this.domElement.removeEventListener("pointermove", this._onPointerMove);
this.domElement.removeEventListener("pointerup", this._onPointerUp);
this.dispatchEvent(_endEvent);
this.state = _STATE.NONE;
break;
case 1:
const pointerId = this._pointers[0];
const position = this._pointerPositions[pointerId];
this._onTouchStart({ pointerId, pageX: position.x, pageY: position.y });
break;
}
}
function onMouseDown(event) {
let mouseAction;
switch (event.button) {
case 0:
mouseAction = this.mouseButtons.LEFT;
break;
case 1:
mouseAction = this.mouseButtons.MIDDLE;
break;
case 2:
mouseAction = this.mouseButtons.RIGHT;
break;
default:
mouseAction = -1;
}
switch (mouseAction) {
case MOUSE.DOLLY:
if (this.enableZoom === false) return;
this._handleMouseDownDolly(event);
this.state = _STATE.DOLLY;
break;
case MOUSE.ROTATE:
if (event.ctrlKey || event.metaKey || event.shiftKey) {
if (this.enablePan === false) return;
this._handleMouseDownPan(event);
this.state = _STATE.PAN;
} else {
if (this.enableRotate === false) return;
this._handleMouseDownRotate(event);
this.state = _STATE.ROTATE;
}
break;
case MOUSE.PAN:
if (event.ctrlKey || event.metaKey || event.shiftKey) {
if (this.enableRotate === false) return;
this._handleMouseDownRotate(event);
this.state = _STATE.ROTATE;
} else {
if (this.enablePan === false) return;
this._handleMouseDownPan(event);
this.state = _STATE.PAN;
}
break;
default:
this.state = _STATE.NONE;
}
if (this.state !== _STATE.NONE) {
this.dispatchEvent(_startEvent);
}
}
function onMouseMove(event) {
switch (this.state) {
case _STATE.ROTATE:
if (this.enableRotate === false) return;
this._handleMouseMoveRotate(event);
break;
case _STATE.DOLLY:
if (this.enableZoom === false) return;
this._handleMouseMoveDolly(event);
break;
case _STATE.PAN:
if (this.enablePan === false) return;
this._handleMouseMovePan(event);
break;
}
}
function onMouseWheel(event) {
if (this.enabled === false || this.enableZoom === false || this.state !== _STATE.NONE) return;
event.preventDefault();
this.dispatchEvent(_startEvent);
this._handleMouseWheel(this._customWheelEvent(event));
this.dispatchEvent(_endEvent);
}
function onKeyDown(event) {
if (this.enabled === false || this.enablePan === false) return;
this._handleKeyDown(event);
}
function onTouchStart(event) {
this._trackPointer(event);
switch (this._pointers.length) {
case 1:
switch (this.touches.ONE) {
case TOUCH.ROTATE:
if (this.enableRotate === false) return;
this._handleTouchStartRotate(event);
this.state = _STATE.TOUCH_ROTATE;
break;
case TOUCH.PAN:
if (this.enablePan === false) return;
this._handleTouchStartPan(event);
this.state = _STATE.TOUCH_PAN;
break;
default:
this.state = _STATE.NONE;
}
break;
case 2:
switch (this.touches.TWO) {
case TOUCH.DOLLY_PAN:
if (this.enableZoom === false && this.enablePan === false) return;
this._handleTouchStartDollyPan(event);
this.state = _STATE.TOUCH_DOLLY_PAN;
break;
case TOUCH.DOLLY_ROTATE:
if (this.enableZoom === false && this.enableRotate === false) return;
this._handleTouchStartDollyRotate(event);
this.state = _STATE.TOUCH_DOLLY_ROTATE;
break;
default:
this.state = _STATE.NONE;
}
break;
default:
this.state = _STATE.NONE;
}
if (this.state !== _STATE.NONE) {
this.dispatchEvent(_startEvent);
}
}
function onTouchMove(event) {
this._trackPointer(event);
switch (this.state) {
case _STATE.TOUCH_ROTATE:
if (this.enableRotate === false) return;
this._handleTouchMoveRotate(event);
this.update();
break;
case _STATE.TOUCH_PAN:
if (this.enablePan === false) return;
this._handleTouchMovePan(event);
this.update();
break;
case _STATE.TOUCH_DOLLY_PAN:
if (this.enableZoom === false && this.enablePan === false) return;
this._handleTouchMoveDollyPan(event);
this.update();
break;
case _STATE.TOUCH_DOLLY_ROTATE:
if (this.enableZoom === false && this.enableRotate === false) return;
this._handleTouchMoveDollyRotate(event);
this.update();
break;
default:
this.state = _STATE.NONE;
}
}
function onContextMenu(event) {
if (this.enabled === false) return;
event.preventDefault();
}
function interceptControlDown(event) {
if (event.key === "Control") {
this._controlActive = true;
const document = this.domElement.getRootNode();
document.addEventListener("keyup", this._interceptControlUp, { passive: true, capture: true });
}
}
function interceptControlUp(event) {
if (event.key === "Control") {
this._controlActive = false;
const document = this.domElement.getRootNode();
document.removeEventListener("keyup", this._interceptControlUp, { passive: true, capture: true });
}
}
export {
OrbitControls
};
//# sourceMappingURL=three_examples_jsm_controls_OrbitControls__js.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

12799
web-app/node_modules/.vite/deps/vue.js generated vendored Normal file

File diff suppressed because it is too large Load Diff

7
web-app/node_modules/.vite/deps/vue.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long