lunchboxjs 2.0.0-beta.8 → 2.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lunchboxjs.cjs +16 -16
- package/dist/lunchboxjs.js +420 -388
- package/dist/lunchboxjs.umd.cjs +16 -16
- package/package.json +1 -1
package/dist/lunchboxjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as b from "three";
|
|
2
|
-
const
|
|
2
|
+
const Iu = [
|
|
3
3
|
// ORDER MATTERS HERE!
|
|
4
4
|
// Place the objects most likely to wrap other objects at the beginning of the list.
|
|
5
5
|
// Main wrappers
|
|
@@ -91,19 +91,19 @@ const Gu = [
|
|
|
91
91
|
* Copyright 2019 Google LLC
|
|
92
92
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
93
|
*/
|
|
94
|
-
const
|
|
95
|
-
let
|
|
94
|
+
const eu = globalThis, Bu = eu.ShadowRoot && (eu.ShadyCSS === void 0 || eu.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, mu = Symbol(), _u = /* @__PURE__ */ new WeakMap();
|
|
95
|
+
let ju = class {
|
|
96
96
|
constructor(u, e, r) {
|
|
97
|
-
if (this._$cssResult$ = !0, r !==
|
|
97
|
+
if (this._$cssResult$ = !0, r !== mu)
|
|
98
98
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
99
99
|
this.cssText = u, this.t = e;
|
|
100
100
|
}
|
|
101
101
|
get styleSheet() {
|
|
102
102
|
let u = this.o;
|
|
103
103
|
const e = this.t;
|
|
104
|
-
if (
|
|
104
|
+
if (Bu && u === void 0) {
|
|
105
105
|
const r = e !== void 0 && e.length === 1;
|
|
106
|
-
r && (u =
|
|
106
|
+
r && (u = _u.get(e)), u === void 0 && ((this.o = u = new CSSStyleSheet()).replaceSync(this.cssText), r && _u.set(e, u));
|
|
107
107
|
}
|
|
108
108
|
return u;
|
|
109
109
|
}
|
|
@@ -111,7 +111,7 @@ let zu = class {
|
|
|
111
111
|
return this.cssText;
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
-
const
|
|
114
|
+
const ee = (t) => new ju(typeof t == "string" ? t : t + "", void 0, mu), te = (t, ...u) => {
|
|
115
115
|
const e = t.length === 1 ? t[0] : u.reduce((r, s, D) => r + ((i) => {
|
|
116
116
|
if (i._$cssResult$ === !0)
|
|
117
117
|
return i.cssText;
|
|
@@ -119,30 +119,30 @@ const re = (t) => new zu(typeof t == "string" ? t : t + "", void 0, gu), se = (t
|
|
|
119
119
|
return i;
|
|
120
120
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + i + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
121
121
|
})(s) + t[D + 1], t[0]);
|
|
122
|
-
return new
|
|
123
|
-
},
|
|
124
|
-
if (
|
|
122
|
+
return new ju(e, t, mu);
|
|
123
|
+
}, re = (t, u) => {
|
|
124
|
+
if (Bu)
|
|
125
125
|
t.adoptedStyleSheets = u.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
126
126
|
else
|
|
127
127
|
for (const e of u) {
|
|
128
|
-
const r = document.createElement("style"), s =
|
|
128
|
+
const r = document.createElement("style"), s = eu.litNonce;
|
|
129
129
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, t.appendChild(r);
|
|
130
130
|
}
|
|
131
|
-
},
|
|
131
|
+
}, vu = Bu ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((u) => {
|
|
132
132
|
let e = "";
|
|
133
133
|
for (const r of u.cssRules)
|
|
134
134
|
e += r.cssText;
|
|
135
|
-
return
|
|
135
|
+
return ee(e);
|
|
136
136
|
})(t) : t;
|
|
137
137
|
/**
|
|
138
138
|
* @license
|
|
139
139
|
* Copyright 2017 Google LLC
|
|
140
140
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
141
141
|
*/
|
|
142
|
-
const { is:
|
|
142
|
+
const { is: se, defineProperty: ie, getOwnPropertyDescriptor: De, getOwnPropertyNames: ne, getOwnPropertySymbols: oe, getPrototypeOf: ae } = Object, P = globalThis, wu = P.trustedTypes, ce = wu ? wu.emptyScript : "", au = P.reactiveElementPolyfillSupport, W = (t, u) => t, ru = { toAttribute(t, u) {
|
|
143
143
|
switch (u) {
|
|
144
144
|
case Boolean:
|
|
145
|
-
t = t ?
|
|
145
|
+
t = t ? ce : null;
|
|
146
146
|
break;
|
|
147
147
|
case Object:
|
|
148
148
|
case Array:
|
|
@@ -167,23 +167,23 @@ const { is: ie, defineProperty: ne, getOwnPropertyDescriptor: oe, getOwnProperty
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
return e;
|
|
170
|
-
} },
|
|
170
|
+
} }, yu = (t, u) => !se(t, u), Su = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged: yu };
|
|
171
171
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), P.litPropertyMetadata ?? (P.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
172
|
-
class
|
|
172
|
+
class k extends HTMLElement {
|
|
173
173
|
static addInitializer(u) {
|
|
174
174
|
this._$Ei(), (this.l ?? (this.l = [])).push(u);
|
|
175
175
|
}
|
|
176
176
|
static get observedAttributes() {
|
|
177
177
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
178
178
|
}
|
|
179
|
-
static createProperty(u, e =
|
|
179
|
+
static createProperty(u, e = Su) {
|
|
180
180
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(u, e), !e.noAccessor) {
|
|
181
181
|
const r = Symbol(), s = this.getPropertyDescriptor(u, r, e);
|
|
182
|
-
s !== void 0 &&
|
|
182
|
+
s !== void 0 && ie(this.prototype, u, s);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
static getPropertyDescriptor(u, e, r) {
|
|
186
|
-
const { get: s, set: D } =
|
|
186
|
+
const { get: s, set: D } = De(this.prototype, u) ?? { get() {
|
|
187
187
|
return this[e];
|
|
188
188
|
}, set(i) {
|
|
189
189
|
this[e] = i;
|
|
@@ -191,24 +191,24 @@ class H extends HTMLElement {
|
|
|
191
191
|
return { get() {
|
|
192
192
|
return s == null ? void 0 : s.call(this);
|
|
193
193
|
}, set(i) {
|
|
194
|
-
const
|
|
195
|
-
D.call(this, i), this.requestUpdate(u,
|
|
194
|
+
const o = s == null ? void 0 : s.call(this);
|
|
195
|
+
D.call(this, i), this.requestUpdate(u, o, r);
|
|
196
196
|
}, configurable: !0, enumerable: !0 };
|
|
197
197
|
}
|
|
198
198
|
static getPropertyOptions(u) {
|
|
199
|
-
return this.elementProperties.get(u) ??
|
|
199
|
+
return this.elementProperties.get(u) ?? Su;
|
|
200
200
|
}
|
|
201
201
|
static _$Ei() {
|
|
202
|
-
if (this.hasOwnProperty(
|
|
202
|
+
if (this.hasOwnProperty(W("elementProperties")))
|
|
203
203
|
return;
|
|
204
|
-
const u =
|
|
204
|
+
const u = ae(this);
|
|
205
205
|
u.finalize(), u.l !== void 0 && (this.l = [...u.l]), this.elementProperties = new Map(u.elementProperties);
|
|
206
206
|
}
|
|
207
207
|
static finalize() {
|
|
208
|
-
if (this.hasOwnProperty(
|
|
208
|
+
if (this.hasOwnProperty(W("finalized")))
|
|
209
209
|
return;
|
|
210
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
211
|
-
const e = this.properties, r = [...
|
|
210
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(W("properties"))) {
|
|
211
|
+
const e = this.properties, r = [...ne(e), ...oe(e)];
|
|
212
212
|
for (const s of r)
|
|
213
213
|
this.createProperty(s, e[s]);
|
|
214
214
|
}
|
|
@@ -231,9 +231,9 @@ class H extends HTMLElement {
|
|
|
231
231
|
if (Array.isArray(u)) {
|
|
232
232
|
const r = new Set(u.flat(1 / 0).reverse());
|
|
233
233
|
for (const s of r)
|
|
234
|
-
e.unshift(
|
|
234
|
+
e.unshift(vu(s));
|
|
235
235
|
} else
|
|
236
|
-
u !== void 0 && e.push(
|
|
236
|
+
u !== void 0 && e.push(vu(u));
|
|
237
237
|
return e;
|
|
238
238
|
}
|
|
239
239
|
static _$Eu(u, e) {
|
|
@@ -263,7 +263,7 @@ class H extends HTMLElement {
|
|
|
263
263
|
}
|
|
264
264
|
createRenderRoot() {
|
|
265
265
|
const u = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
266
|
-
return
|
|
266
|
+
return re(u, this.constructor.elementStyles), u;
|
|
267
267
|
}
|
|
268
268
|
connectedCallback() {
|
|
269
269
|
var u;
|
|
@@ -288,7 +288,7 @@ class H extends HTMLElement {
|
|
|
288
288
|
var D;
|
|
289
289
|
const r = this.constructor.elementProperties.get(u), s = this.constructor._$Eu(u, r);
|
|
290
290
|
if (s !== void 0 && r.reflect === !0) {
|
|
291
|
-
const i = (((D = r.converter) == null ? void 0 : D.toAttribute) !== void 0 ? r.converter :
|
|
291
|
+
const i = (((D = r.converter) == null ? void 0 : D.toAttribute) !== void 0 ? r.converter : ru).toAttribute(e, r.type);
|
|
292
292
|
this._$Em = u, i == null ? this.removeAttribute(s) : this.setAttribute(s, i), this._$Em = null;
|
|
293
293
|
}
|
|
294
294
|
}
|
|
@@ -296,13 +296,13 @@ class H extends HTMLElement {
|
|
|
296
296
|
var D;
|
|
297
297
|
const r = this.constructor, s = r._$Eh.get(u);
|
|
298
298
|
if (s !== void 0 && this._$Em !== s) {
|
|
299
|
-
const i = r.getPropertyOptions(s),
|
|
300
|
-
this._$Em = s, this[s] =
|
|
299
|
+
const i = r.getPropertyOptions(s), o = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((D = i.converter) == null ? void 0 : D.fromAttribute) !== void 0 ? i.converter : ru;
|
|
300
|
+
this._$Em = s, this[s] = o.fromAttribute(e, i.type), this._$Em = null;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
requestUpdate(u, e, r) {
|
|
304
304
|
if (u !== void 0) {
|
|
305
|
-
if (r ?? (r = this.constructor.getPropertyOptions(u)), !(r.hasChanged ??
|
|
305
|
+
if (r ?? (r = this.constructor.getPropertyOptions(u)), !(r.hasChanged ?? yu)(this[u], e))
|
|
306
306
|
return;
|
|
307
307
|
this.P(u, e, r);
|
|
308
308
|
}
|
|
@@ -380,86 +380,86 @@ class H extends HTMLElement {
|
|
|
380
380
|
firstUpdated(u) {
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
|
|
383
|
+
k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[W("elementProperties")] = /* @__PURE__ */ new Map(), k[W("finalized")] = /* @__PURE__ */ new Map(), au == null || au({ ReactiveElement: k }), (P.reactiveElementVersions ?? (P.reactiveElementVersions = [])).push("2.0.4");
|
|
384
384
|
/**
|
|
385
385
|
* @license
|
|
386
386
|
* Copyright 2017 Google LLC
|
|
387
387
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
388
388
|
*/
|
|
389
|
-
const
|
|
390
|
-
\f\r]`,
|
|
391
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
392
|
-
function
|
|
389
|
+
const q = globalThis, su = q.trustedTypes, Pu = su ? su.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Gu = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, zu = "?" + S, he = `<${zu}>`, L = document, Z = () => L.createComment(""), K = (t) => t === null || typeof t != "object" && typeof t != "function", Vu = Array.isArray, Ae = (t) => Vu(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", cu = `[
|
|
390
|
+
\f\r]`, z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, xu = /-->/g, Tu = />/g, N = RegExp(`>|${cu}(?:([^\\s"'>=/]+)(${cu}*=${cu}*(?:[^
|
|
391
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Nu = /'/g, Mu = /"/g, Wu = /^(?:script|style|textarea|title)$/i, Ce = (t) => (u, ...e) => ({ _$litType$: t, strings: u, values: e }), qu = Ce(1), I = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), Ou = /* @__PURE__ */ new WeakMap(), R = L.createTreeWalker(L, 129);
|
|
392
|
+
function Ju(t, u) {
|
|
393
393
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
|
|
394
394
|
throw Error("invalid template strings array");
|
|
395
|
-
return
|
|
395
|
+
return Pu !== void 0 ? Pu.createHTML(u) : u;
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const Ee = (t, u) => {
|
|
398
398
|
const e = t.length - 1, r = [];
|
|
399
|
-
let s, D = u === 2 ? "<svg>" : "", i =
|
|
400
|
-
for (let
|
|
401
|
-
const
|
|
402
|
-
let A,
|
|
403
|
-
for (;
|
|
404
|
-
|
|
405
|
-
const g = i ===
|
|
406
|
-
D += i ===
|
|
407
|
-
}
|
|
408
|
-
return [
|
|
399
|
+
let s, D = u === 2 ? "<svg>" : "", i = z;
|
|
400
|
+
for (let o = 0; o < e; o++) {
|
|
401
|
+
const a = t[o];
|
|
402
|
+
let A, F, E = -1, p = 0;
|
|
403
|
+
for (; p < a.length && (i.lastIndex = p, F = i.exec(a), F !== null); )
|
|
404
|
+
p = i.lastIndex, i === z ? F[1] === "!--" ? i = xu : F[1] !== void 0 ? i = Tu : F[2] !== void 0 ? (Wu.test(F[2]) && (s = RegExp("</" + F[2], "g")), i = N) : F[3] !== void 0 && (i = N) : i === N ? F[0] === ">" ? (i = s ?? z, E = -1) : F[1] === void 0 ? E = -2 : (E = i.lastIndex - F[2].length, A = F[1], i = F[3] === void 0 ? N : F[3] === '"' ? Mu : Nu) : i === Mu || i === Nu ? i = N : i === xu || i === Tu ? i = z : (i = N, s = void 0);
|
|
405
|
+
const g = i === N && t[o + 1].startsWith("/>") ? " " : "";
|
|
406
|
+
D += i === z ? a + he : E >= 0 ? (r.push(A), a.slice(0, E) + Gu + a.slice(E) + S + g) : a + S + (E === -2 ? o : g);
|
|
407
|
+
}
|
|
408
|
+
return [Ju(t, D + (t[e] || "<?>") + (u === 2 ? "</svg>" : "")), r];
|
|
409
409
|
};
|
|
410
|
-
class
|
|
410
|
+
class X {
|
|
411
411
|
constructor({ strings: u, _$litType$: e }, r) {
|
|
412
412
|
let s;
|
|
413
413
|
this.parts = [];
|
|
414
414
|
let D = 0, i = 0;
|
|
415
|
-
const
|
|
416
|
-
if (this.el =
|
|
417
|
-
const
|
|
418
|
-
|
|
415
|
+
const o = u.length - 1, a = this.parts, [A, F] = Ee(u, e);
|
|
416
|
+
if (this.el = X.createElement(A, r), R.currentNode = this.el.content, e === 2) {
|
|
417
|
+
const E = this.el.content.firstChild;
|
|
418
|
+
E.replaceWith(...E.childNodes);
|
|
419
419
|
}
|
|
420
|
-
for (; (s =
|
|
420
|
+
for (; (s = R.nextNode()) !== null && a.length < o; ) {
|
|
421
421
|
if (s.nodeType === 1) {
|
|
422
422
|
if (s.hasAttributes())
|
|
423
|
-
for (const
|
|
424
|
-
if (
|
|
425
|
-
const
|
|
426
|
-
|
|
423
|
+
for (const E of s.getAttributeNames())
|
|
424
|
+
if (E.endsWith(Gu)) {
|
|
425
|
+
const p = F[i++], g = s.getAttribute(E).split(S), U = /([.?@])?(.*)/.exec(p);
|
|
426
|
+
a.push({ type: 1, index: D, name: U[2], strings: g, ctor: U[1] === "." ? le : U[1] === "?" ? de : U[1] === "@" ? pe : nu }), s.removeAttribute(E);
|
|
427
427
|
} else
|
|
428
|
-
|
|
429
|
-
if (
|
|
430
|
-
const
|
|
431
|
-
if (
|
|
432
|
-
s.textContent =
|
|
433
|
-
for (let g = 0; g <
|
|
434
|
-
s.append(
|
|
435
|
-
s.append(
|
|
428
|
+
E.startsWith(S) && (a.push({ type: 6, index: D }), s.removeAttribute(E));
|
|
429
|
+
if (Wu.test(s.tagName)) {
|
|
430
|
+
const E = s.textContent.split(S), p = E.length - 1;
|
|
431
|
+
if (p > 0) {
|
|
432
|
+
s.textContent = su ? su.emptyScript : "";
|
|
433
|
+
for (let g = 0; g < p; g++)
|
|
434
|
+
s.append(E[g], Z()), R.nextNode(), a.push({ type: 2, index: ++D });
|
|
435
|
+
s.append(E[p], Z());
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
} else if (s.nodeType === 8)
|
|
439
|
-
if (s.data ===
|
|
440
|
-
|
|
439
|
+
if (s.data === zu)
|
|
440
|
+
a.push({ type: 2, index: D });
|
|
441
441
|
else {
|
|
442
|
-
let
|
|
443
|
-
for (; (
|
|
444
|
-
|
|
442
|
+
let E = -1;
|
|
443
|
+
for (; (E = s.data.indexOf(S, E + 1)) !== -1; )
|
|
444
|
+
a.push({ type: 7, index: D }), E += S.length - 1;
|
|
445
445
|
}
|
|
446
446
|
D++;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
static createElement(u, e) {
|
|
450
|
-
const r =
|
|
450
|
+
const r = L.createElement("template");
|
|
451
451
|
return r.innerHTML = u, r;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
454
|
function j(t, u, e = t, r) {
|
|
455
|
-
var i,
|
|
456
|
-
if (u ===
|
|
455
|
+
var i, o;
|
|
456
|
+
if (u === I)
|
|
457
457
|
return u;
|
|
458
458
|
let s = r !== void 0 ? (i = e._$Co) == null ? void 0 : i[r] : e._$Cl;
|
|
459
|
-
const D =
|
|
460
|
-
return (s == null ? void 0 : s.constructor) !== D && ((
|
|
459
|
+
const D = K(u) ? void 0 : u._$litDirective$;
|
|
460
|
+
return (s == null ? void 0 : s.constructor) !== D && ((o = s == null ? void 0 : s._$AO) == null || o.call(s, !1), D === void 0 ? s = void 0 : (s = new D(t), s._$AT(t, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = s : e._$Cl = s), s !== void 0 && (u = j(t, s._$AS(t, u.values), s, r)), u;
|
|
461
461
|
}
|
|
462
|
-
class
|
|
462
|
+
class Fe {
|
|
463
463
|
constructor(u, e) {
|
|
464
464
|
this._$AV = [], this._$AN = void 0, this._$AD = u, this._$AM = e;
|
|
465
465
|
}
|
|
@@ -470,17 +470,17 @@ class de {
|
|
|
470
470
|
return this._$AM._$AU;
|
|
471
471
|
}
|
|
472
472
|
u(u) {
|
|
473
|
-
const { el: { content: e }, parts: r } = this._$AD, s = ((u == null ? void 0 : u.creationScope) ??
|
|
474
|
-
|
|
475
|
-
let D =
|
|
476
|
-
for (;
|
|
477
|
-
if (i ===
|
|
473
|
+
const { el: { content: e }, parts: r } = this._$AD, s = ((u == null ? void 0 : u.creationScope) ?? L).importNode(e, !0);
|
|
474
|
+
R.currentNode = s;
|
|
475
|
+
let D = R.nextNode(), i = 0, o = 0, a = r[0];
|
|
476
|
+
for (; a !== void 0; ) {
|
|
477
|
+
if (i === a.index) {
|
|
478
478
|
let A;
|
|
479
|
-
|
|
479
|
+
a.type === 2 ? A = new Y(D, D.nextSibling, this, u) : a.type === 1 ? A = new a.ctor(D, a.name, a.strings, this, u) : a.type === 6 && (A = new fe(D, this, u)), this._$AV.push(A), a = r[++o];
|
|
480
480
|
}
|
|
481
|
-
i !== (
|
|
481
|
+
i !== (a == null ? void 0 : a.index) && (D = R.nextNode(), i++);
|
|
482
482
|
}
|
|
483
|
-
return
|
|
483
|
+
return R.currentNode = L, s;
|
|
484
484
|
}
|
|
485
485
|
p(u) {
|
|
486
486
|
let e = 0;
|
|
@@ -488,13 +488,13 @@ class de {
|
|
|
488
488
|
r !== void 0 && (r.strings !== void 0 ? (r._$AI(u, r, e), e += r.strings.length - 2) : r._$AI(u[e])), e++;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
class
|
|
491
|
+
class Y {
|
|
492
492
|
get _$AU() {
|
|
493
493
|
var u;
|
|
494
494
|
return ((u = this._$AM) == null ? void 0 : u._$AU) ?? this._$Cv;
|
|
495
495
|
}
|
|
496
496
|
constructor(u, e, r, s) {
|
|
497
|
-
this.type = 2, this._$AH =
|
|
497
|
+
this.type = 2, this._$AH = m, this._$AN = void 0, this._$AA = u, this._$AB = e, this._$AM = r, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
|
|
498
498
|
}
|
|
499
499
|
get parentNode() {
|
|
500
500
|
let u = this._$AA.parentNode;
|
|
@@ -508,7 +508,7 @@ class Q {
|
|
|
508
508
|
return this._$AB;
|
|
509
509
|
}
|
|
510
510
|
_$AI(u, e = this) {
|
|
511
|
-
u = j(this, u, e),
|
|
511
|
+
u = j(this, u, e), K(u) ? u === m || u == null || u === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : u !== this._$AH && u !== I && this._(u) : u._$litType$ !== void 0 ? this.$(u) : u.nodeType !== void 0 ? this.T(u) : Ae(u) ? this.k(u) : this._(u);
|
|
512
512
|
}
|
|
513
513
|
S(u) {
|
|
514
514
|
return this._$AA.parentNode.insertBefore(u, this._$AB);
|
|
@@ -517,28 +517,28 @@ class Q {
|
|
|
517
517
|
this._$AH !== u && (this._$AR(), this._$AH = this.S(u));
|
|
518
518
|
}
|
|
519
519
|
_(u) {
|
|
520
|
-
this._$AH !==
|
|
520
|
+
this._$AH !== m && K(this._$AH) ? this._$AA.nextSibling.data = u : this.T(L.createTextNode(u)), this._$AH = u;
|
|
521
521
|
}
|
|
522
522
|
$(u) {
|
|
523
523
|
var D;
|
|
524
|
-
const { values: e, _$litType$: r } = u, s = typeof r == "number" ? this._$AC(u) : (r.el === void 0 && (r.el =
|
|
524
|
+
const { values: e, _$litType$: r } = u, s = typeof r == "number" ? this._$AC(u) : (r.el === void 0 && (r.el = X.createElement(Ju(r.h, r.h[0]), this.options)), r);
|
|
525
525
|
if (((D = this._$AH) == null ? void 0 : D._$AD) === s)
|
|
526
526
|
this._$AH.p(e);
|
|
527
527
|
else {
|
|
528
|
-
const i = new
|
|
529
|
-
i.p(e), this.T(
|
|
528
|
+
const i = new Fe(s, this), o = i.u(this.options);
|
|
529
|
+
i.p(e), this.T(o), this._$AH = i;
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
_$AC(u) {
|
|
533
|
-
let e =
|
|
534
|
-
return e === void 0 &&
|
|
533
|
+
let e = Ou.get(u.strings);
|
|
534
|
+
return e === void 0 && Ou.set(u.strings, e = new X(u)), e;
|
|
535
535
|
}
|
|
536
536
|
k(u) {
|
|
537
|
-
|
|
537
|
+
Vu(this._$AH) || (this._$AH = [], this._$AR());
|
|
538
538
|
const e = this._$AH;
|
|
539
539
|
let r, s = 0;
|
|
540
540
|
for (const D of u)
|
|
541
|
-
s === e.length ? e.push(r = new
|
|
541
|
+
s === e.length ? e.push(r = new Y(this.S(Z()), this.S(Z()), this, this.options)) : r = e[s], r._$AI(D), s++;
|
|
542
542
|
s < e.length && (this._$AR(r && r._$AB.nextSibling, s), e.length = s);
|
|
543
543
|
}
|
|
544
544
|
_$AR(u = this._$AA.nextSibling, e) {
|
|
@@ -553,7 +553,7 @@ class Q {
|
|
|
553
553
|
this._$AM === void 0 && (this._$Cv = u, (e = this._$AP) == null || e.call(this, u));
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
class
|
|
556
|
+
class nu {
|
|
557
557
|
get tagName() {
|
|
558
558
|
return this.element.tagName;
|
|
559
559
|
}
|
|
@@ -561,49 +561,49 @@ class ou {
|
|
|
561
561
|
return this._$AM._$AU;
|
|
562
562
|
}
|
|
563
563
|
constructor(u, e, r, s, D) {
|
|
564
|
-
this.type = 1, this._$AH =
|
|
564
|
+
this.type = 1, this._$AH = m, this._$AN = void 0, this.element = u, this.name = e, this._$AM = s, this.options = D, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = m;
|
|
565
565
|
}
|
|
566
566
|
_$AI(u, e = this, r, s) {
|
|
567
567
|
const D = this.strings;
|
|
568
568
|
let i = !1;
|
|
569
569
|
if (D === void 0)
|
|
570
|
-
u = j(this, u, e, 0), i = !
|
|
570
|
+
u = j(this, u, e, 0), i = !K(u) || u !== this._$AH && u !== I, i && (this._$AH = u);
|
|
571
571
|
else {
|
|
572
|
-
const
|
|
573
|
-
let
|
|
574
|
-
for (u = D[0],
|
|
575
|
-
A = j(this,
|
|
572
|
+
const o = u;
|
|
573
|
+
let a, A;
|
|
574
|
+
for (u = D[0], a = 0; a < D.length - 1; a++)
|
|
575
|
+
A = j(this, o[r + a], e, a), A === I && (A = this._$AH[a]), i || (i = !K(A) || A !== this._$AH[a]), A === m ? u = m : u !== m && (u += (A ?? "") + D[a + 1]), this._$AH[a] = A;
|
|
576
576
|
}
|
|
577
577
|
i && !s && this.j(u);
|
|
578
578
|
}
|
|
579
579
|
j(u) {
|
|
580
|
-
u ===
|
|
580
|
+
u === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, u ?? "");
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
|
-
class
|
|
583
|
+
class le extends nu {
|
|
584
584
|
constructor() {
|
|
585
585
|
super(...arguments), this.type = 3;
|
|
586
586
|
}
|
|
587
587
|
j(u) {
|
|
588
|
-
this.element[this.name] = u ===
|
|
588
|
+
this.element[this.name] = u === m ? void 0 : u;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
class
|
|
591
|
+
class de extends nu {
|
|
592
592
|
constructor() {
|
|
593
593
|
super(...arguments), this.type = 4;
|
|
594
594
|
}
|
|
595
595
|
j(u) {
|
|
596
|
-
this.element.toggleAttribute(this.name, !!u && u !==
|
|
596
|
+
this.element.toggleAttribute(this.name, !!u && u !== m);
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
class
|
|
599
|
+
class pe extends nu {
|
|
600
600
|
constructor(u, e, r, s, D) {
|
|
601
601
|
super(u, e, r, s, D), this.type = 5;
|
|
602
602
|
}
|
|
603
603
|
_$AI(u, e = this) {
|
|
604
|
-
if ((u = j(this, u, e, 0) ??
|
|
604
|
+
if ((u = j(this, u, e, 0) ?? m) === I)
|
|
605
605
|
return;
|
|
606
|
-
const r = this._$AH, s = u ===
|
|
606
|
+
const r = this._$AH, s = u === m && r !== m || u.capture !== r.capture || u.once !== r.once || u.passive !== r.passive, D = u !== m && (r === m || s);
|
|
607
607
|
s && this.element.removeEventListener(this.name, this, r), D && this.element.addEventListener(this.name, this, u), this._$AH = u;
|
|
608
608
|
}
|
|
609
609
|
handleEvent(u) {
|
|
@@ -611,7 +611,7 @@ class Be extends ou {
|
|
|
611
611
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, u) : this._$AH.handleEvent(u);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
class
|
|
614
|
+
class fe {
|
|
615
615
|
constructor(u, e, r) {
|
|
616
616
|
this.element = u, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
|
|
617
617
|
}
|
|
@@ -622,14 +622,14 @@ class me {
|
|
|
622
622
|
j(this, u);
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
const
|
|
626
|
-
|
|
627
|
-
const
|
|
625
|
+
const hu = q.litHtmlPolyfillSupport;
|
|
626
|
+
hu == null || hu(X, Y), (q.litHtmlVersions ?? (q.litHtmlVersions = [])).push("3.1.3");
|
|
627
|
+
const Be = (t, u, e) => {
|
|
628
628
|
const r = (e == null ? void 0 : e.renderBefore) ?? u;
|
|
629
629
|
let s = r._$litPart$;
|
|
630
630
|
if (s === void 0) {
|
|
631
631
|
const D = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
632
|
-
r._$litPart$ = s = new
|
|
632
|
+
r._$litPart$ = s = new Y(u.insertBefore(Z(), D), D, void 0, e ?? {});
|
|
633
633
|
}
|
|
634
634
|
return s._$AI(t), s;
|
|
635
635
|
};
|
|
@@ -638,7 +638,7 @@ const ye = (t, u, e) => {
|
|
|
638
638
|
* Copyright 2017 Google LLC
|
|
639
639
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
640
640
|
*/
|
|
641
|
-
class
|
|
641
|
+
class H extends k {
|
|
642
642
|
constructor() {
|
|
643
643
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
644
644
|
}
|
|
@@ -649,7 +649,7 @@ class I extends H {
|
|
|
649
649
|
}
|
|
650
650
|
update(u) {
|
|
651
651
|
const e = this.render();
|
|
652
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(u), this._$Do =
|
|
652
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(u), this._$Do = Be(e, this.renderRoot, this.renderOptions);
|
|
653
653
|
}
|
|
654
654
|
connectedCallback() {
|
|
655
655
|
var u;
|
|
@@ -660,47 +660,47 @@ class I extends H {
|
|
|
660
660
|
super.disconnectedCallback(), (u = this._$Do) == null || u.setConnected(!1);
|
|
661
661
|
}
|
|
662
662
|
render() {
|
|
663
|
-
return
|
|
663
|
+
return I;
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
var
|
|
667
|
-
|
|
668
|
-
const
|
|
669
|
-
|
|
666
|
+
var Hu;
|
|
667
|
+
H._$litElement$ = !0, H.finalized = !0, (Hu = globalThis.litElementHydrateSupport) == null || Hu.call(globalThis, { LitElement: H });
|
|
668
|
+
const Au = globalThis.litElementPolyfillSupport;
|
|
669
|
+
Au == null || Au({ LitElement: H });
|
|
670
670
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.5");
|
|
671
671
|
/**
|
|
672
672
|
* @license
|
|
673
673
|
* Copyright 2017 Google LLC
|
|
674
674
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
675
675
|
*/
|
|
676
|
-
const
|
|
676
|
+
const me = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged: yu }, ye = (t = me, u, e) => {
|
|
677
677
|
const { kind: r, metadata: s } = e;
|
|
678
678
|
let D = globalThis.litPropertyMetadata.get(s);
|
|
679
679
|
if (D === void 0 && globalThis.litPropertyMetadata.set(s, D = /* @__PURE__ */ new Map()), D.set(e.name, t), r === "accessor") {
|
|
680
680
|
const { name: i } = e;
|
|
681
|
-
return { set(
|
|
682
|
-
const
|
|
683
|
-
u.set.call(this,
|
|
684
|
-
}, init(
|
|
685
|
-
return
|
|
681
|
+
return { set(o) {
|
|
682
|
+
const a = u.get.call(this);
|
|
683
|
+
u.set.call(this, o), this.requestUpdate(i, a, t);
|
|
684
|
+
}, init(o) {
|
|
685
|
+
return o !== void 0 && this.P(i, void 0, t), o;
|
|
686
686
|
} };
|
|
687
687
|
}
|
|
688
688
|
if (r === "setter") {
|
|
689
689
|
const { name: i } = e;
|
|
690
|
-
return function(
|
|
691
|
-
const
|
|
692
|
-
u.call(this,
|
|
690
|
+
return function(o) {
|
|
691
|
+
const a = this[i];
|
|
692
|
+
u.call(this, o), this.requestUpdate(i, a, t);
|
|
693
693
|
};
|
|
694
694
|
}
|
|
695
695
|
throw Error("Unsupported decorator location: " + r);
|
|
696
696
|
};
|
|
697
697
|
function G(t) {
|
|
698
|
-
return (u, e) => typeof e == "object" ?
|
|
698
|
+
return (u, e) => typeof e == "object" ? ye(t, u, e) : ((r, s, D) => {
|
|
699
699
|
const i = s.hasOwnProperty(D);
|
|
700
700
|
return s.constructor.createProperty(D, i ? { ...r, wrapped: !0 } : r), i ? Object.getOwnPropertyDescriptor(s, D) : void 0;
|
|
701
701
|
})(t, u, e);
|
|
702
702
|
}
|
|
703
|
-
const
|
|
703
|
+
const ge = (t, u, e) => {
|
|
704
704
|
if (!u)
|
|
705
705
|
return;
|
|
706
706
|
const r = Array.isArray(u) ? u : u.match(/([^[.\]])+/g), s = r == null ? void 0 : r.reduce(
|
|
@@ -709,7 +709,7 @@ const be = (t, u, e) => {
|
|
|
709
709
|
);
|
|
710
710
|
return s === void 0 ? e : s;
|
|
711
711
|
};
|
|
712
|
-
function
|
|
712
|
+
function $e(t) {
|
|
713
713
|
if (!t)
|
|
714
714
|
return !1;
|
|
715
715
|
const u = t.constructor && t.constructor.toString().substring(0, 5) === "class";
|
|
@@ -718,7 +718,7 @@ function _e(t) {
|
|
|
718
718
|
const e = t.prototype.constructor && t.prototype.constructor.toString && t.prototype.constructor.toString().substring(0, 5) === "class";
|
|
719
719
|
return u || e;
|
|
720
720
|
}
|
|
721
|
-
const
|
|
721
|
+
const be = () => {
|
|
722
722
|
const t = "[object Number]", e = Object.prototype.toString;
|
|
723
723
|
function r(D) {
|
|
724
724
|
return !!D && typeof D == "object";
|
|
@@ -726,17 +726,17 @@ const ve = () => {
|
|
|
726
726
|
return function(i) {
|
|
727
727
|
return typeof i == "number" || r(i) && e.call(i) == t;
|
|
728
728
|
};
|
|
729
|
-
},
|
|
729
|
+
}, _e = be(), ve = (t, u, e) => {
|
|
730
730
|
const r = Array.isArray(u) ? u : u.match(/([^[.\]])+/g);
|
|
731
731
|
r == null || r.reduce((s, D, i) => (s[D] === void 0 && (s[D] = {}), i === r.length - 1 && (s[D] = e), s[D]), t);
|
|
732
|
-
},
|
|
732
|
+
}, Zu = "data-three-uuid", lu = (t, u, e) => {
|
|
733
733
|
var D, i;
|
|
734
|
-
const r =
|
|
735
|
-
if (
|
|
734
|
+
const r = ge(t, u);
|
|
735
|
+
if (_e(e) && (r != null && r.setScalar))
|
|
736
736
|
r.setScalar(+e);
|
|
737
737
|
else if (r != null && r.set)
|
|
738
738
|
if (typeof e == "string") {
|
|
739
|
-
const
|
|
739
|
+
const o = e.split(","), a = o.every((A) => !A.match(/^[^\d,]+$/));
|
|
740
740
|
if ((D = e.toLowerCase().trim().match(/^#[\dabcdef]{3,6}$/)) != null && D.length)
|
|
741
741
|
if (e.length === 4) {
|
|
742
742
|
const A = [e[1], e[1], e[2], e[2], e[3], e[3]].join("");
|
|
@@ -744,16 +744,16 @@ const ve = () => {
|
|
|
744
744
|
} else
|
|
745
745
|
r.set(+`0x${e.slice(1)}`);
|
|
746
746
|
else
|
|
747
|
-
|
|
747
|
+
o != null && o.length && a ? r.set(...o.map((A) => +A)) : r.set(e);
|
|
748
748
|
} else {
|
|
749
|
-
const
|
|
750
|
-
r.set(...
|
|
749
|
+
const o = Array.isArray(e) ? e : [e];
|
|
750
|
+
r.set(...o);
|
|
751
751
|
}
|
|
752
752
|
else
|
|
753
|
-
|
|
753
|
+
ve(t, u, e);
|
|
754
754
|
const s = t;
|
|
755
|
-
(i = s.type) != null && i.toLowerCase().endsWith("material") && (s.needsUpdate = !0);
|
|
756
|
-
},
|
|
755
|
+
typeof s.type == "string" && ((i = s.type) != null && i.toLowerCase().endsWith("material")) && (s.needsUpdate = !0);
|
|
756
|
+
}, Cu = {
|
|
757
757
|
$scene: (t) => {
|
|
758
758
|
const u = t.closest("three-lunchbox");
|
|
759
759
|
return u == null ? void 0 : u.three.scene;
|
|
@@ -770,136 +770,168 @@ const ve = () => {
|
|
|
770
770
|
const u = t.closest("three-lunchbox");
|
|
771
771
|
return u == null ? void 0 : u.three.renderer.domElement;
|
|
772
772
|
}
|
|
773
|
-
},
|
|
773
|
+
}, tu = (t, u) => {
|
|
774
774
|
var r;
|
|
775
|
-
return typeof t != "string" ? t : t === "" ? !0 : ((r =
|
|
775
|
+
return typeof t != "string" ? t : t === "" ? !0 : ((r = Cu[t]) == null ? void 0 : r.call(Cu, u)) ?? t;
|
|
776
776
|
};
|
|
777
|
-
var
|
|
777
|
+
var we = Object.defineProperty, Se = (t, u, e, r) => {
|
|
778
778
|
for (var s = void 0, D = t.length - 1, i; D >= 0; D--)
|
|
779
779
|
(i = t[D]) && (s = i(u, e, s) || s);
|
|
780
|
-
return s &&
|
|
780
|
+
return s && we(u, e, s), s;
|
|
781
781
|
};
|
|
782
|
-
const
|
|
783
|
-
|
|
782
|
+
const Ku = "raycast", Ru = [
|
|
783
|
+
Ku,
|
|
784
784
|
"args",
|
|
785
785
|
"data"
|
|
786
|
-
],
|
|
786
|
+
], Lu = (t) => t.split("-"), Xu = (t) => {
|
|
787
787
|
const u = typeof t == "string" ? b[t] : t;
|
|
788
|
-
if (
|
|
788
|
+
if (!$e(u))
|
|
789
789
|
return null;
|
|
790
|
-
|
|
790
|
+
const e = t.toString().toLowerCase().endsWith("loader");
|
|
791
|
+
class r extends H {
|
|
791
792
|
constructor() {
|
|
792
|
-
super(...arguments), this.args = [], this.instance = null, this.
|
|
793
|
+
super(...arguments), this.args = [], this.instance = null, this.dispose = [], this.mutationObserver = null;
|
|
793
794
|
}
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
if (!A.attributeName)
|
|
795
|
+
observeAttributes() {
|
|
796
|
+
this.mutationObserver = new MutationObserver((i) => {
|
|
797
|
+
i.forEach((o) => {
|
|
798
|
+
if (!o.attributeName)
|
|
799
799
|
return;
|
|
800
|
-
const
|
|
801
|
-
|
|
800
|
+
const a = this.attributes.getNamedItem(o.attributeName);
|
|
801
|
+
a && this.updateProperty(a);
|
|
802
802
|
});
|
|
803
803
|
}), this.mutationObserver.observe(this, {
|
|
804
804
|
attributes: !0
|
|
805
|
-
})
|
|
806
|
-
|
|
807
|
-
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
createUnderlyingThreeObject() {
|
|
808
|
+
this.instance = new u(...this.args.map((i) => tu(i, this)));
|
|
809
|
+
}
|
|
810
|
+
refreshAttributes() {
|
|
811
|
+
this.getAttributeNames().forEach((i) => {
|
|
812
|
+
const o = this.attributes.getNamedItem(i);
|
|
813
|
+
o && this.updateProperty(o);
|
|
808
814
|
}), Array.from(this.attributes).forEach(this.updateProperty.bind(this));
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
else if (g) {
|
|
823
|
-
const eu = this.getAttribute("src");
|
|
824
|
-
if (!eu)
|
|
825
|
-
throw new Error("Loader requires a source.");
|
|
826
|
-
F.load(eu, (z) => {
|
|
827
|
-
this.loaded = z;
|
|
828
|
-
const vu = this.getAttribute("attach");
|
|
829
|
-
vu && this.executeAttach(vu, z), this.dispatchEvent(new CustomEvent("loaded", {
|
|
830
|
-
detail: {
|
|
831
|
-
loaded: z
|
|
832
|
-
}
|
|
833
|
-
}));
|
|
834
|
-
}, void 0, (z) => {
|
|
835
|
-
throw new Error(`error loading: ${eu}` + z);
|
|
836
|
-
});
|
|
837
|
-
} else if (y.add)
|
|
815
|
+
}
|
|
816
|
+
onUnderlyingThreeObjectReady() {
|
|
817
|
+
var a, A;
|
|
818
|
+
const i = this.instance;
|
|
819
|
+
i.uuid && this.setAttribute(Zu, i.uuid);
|
|
820
|
+
const o = this.parentElement;
|
|
821
|
+
if (o.instance) {
|
|
822
|
+
const F = this.instance, E = this.instance, p = o.instance, g = o.instance, U = this.instance;
|
|
823
|
+
if ((a = F.type) != null && a.toLowerCase().includes("geometry") && p.geometry)
|
|
824
|
+
p.geometry = F;
|
|
825
|
+
else if ((A = E.type) != null && A.toLowerCase().includes("material") && p.material)
|
|
826
|
+
p.material = E;
|
|
827
|
+
else if (g.add)
|
|
838
828
|
try {
|
|
839
|
-
|
|
829
|
+
g.add(U);
|
|
840
830
|
} catch {
|
|
841
|
-
throw new Error(`Error adding ${this.tagName} to ${
|
|
831
|
+
throw new Error(`Error adding ${this.tagName} to ${g}`);
|
|
842
832
|
}
|
|
843
|
-
const
|
|
844
|
-
|
|
833
|
+
const bu = this.getAttribute("attach");
|
|
834
|
+
bu && this.executeAttach(bu, this.instance);
|
|
845
835
|
}
|
|
846
836
|
}
|
|
837
|
+
connectedCallback() {
|
|
838
|
+
super.connectedCallback(), this.observeAttributes.call(this), this.createUnderlyingThreeObject.call(this), this.refreshAttributes.call(this), this.dispatchEvent(new CustomEvent("instancecreated", {
|
|
839
|
+
detail: {
|
|
840
|
+
instance: this.instance
|
|
841
|
+
}
|
|
842
|
+
})), this.onUnderlyingThreeObjectReady.call(this);
|
|
843
|
+
}
|
|
847
844
|
/** Update an instance's property. When creating a `<mesh position-y="0.5">`, for example, this sets `mesh.position.y = 0.5`. */
|
|
848
|
-
updateProperty(
|
|
849
|
-
const { name:
|
|
850
|
-
let
|
|
851
|
-
Object.keys(this.instance ?? {}).forEach((
|
|
852
|
-
|
|
845
|
+
updateProperty(i) {
|
|
846
|
+
const { name: o, value: a } = i;
|
|
847
|
+
let A = o;
|
|
848
|
+
Object.keys(this.instance ?? {}).forEach((p) => {
|
|
849
|
+
p.toLowerCase() === A && (A = p);
|
|
853
850
|
});
|
|
854
|
-
const
|
|
855
|
-
if (
|
|
851
|
+
const F = Lu(A);
|
|
852
|
+
if (Ru.includes(A) || Ru.includes(F[0]))
|
|
856
853
|
return;
|
|
857
|
-
let
|
|
854
|
+
let E = tu(a, this);
|
|
858
855
|
try {
|
|
859
|
-
|
|
856
|
+
E = JSON.parse(a === "" ? "true" : a);
|
|
860
857
|
} catch {
|
|
861
858
|
}
|
|
862
|
-
this.instance &&
|
|
859
|
+
this.instance && lu(this.instance, F, E);
|
|
863
860
|
}
|
|
864
|
-
executeAttach(
|
|
865
|
-
const
|
|
866
|
-
|
|
861
|
+
executeAttach(i, o) {
|
|
862
|
+
const a = this.parentElement;
|
|
863
|
+
a.instance && lu(a.instance, Lu(i), o);
|
|
867
864
|
}
|
|
868
865
|
disconnectedCallback() {
|
|
869
|
-
super.disconnectedCallback()
|
|
870
|
-
|
|
871
|
-
|
|
866
|
+
super.disconnectedCallback();
|
|
867
|
+
const i = [this.instance];
|
|
868
|
+
this.disposeThreeObjects.call(this, i);
|
|
869
|
+
}
|
|
870
|
+
disposeThreeObjects(i) {
|
|
871
|
+
i.forEach((o) => {
|
|
872
|
+
var F, E;
|
|
873
|
+
if (!o)
|
|
872
874
|
return;
|
|
873
|
-
const
|
|
874
|
-
(
|
|
875
|
+
const a = o, A = o;
|
|
876
|
+
(F = a.dispose) == null || F.call(a), (E = A.removeFromParent) == null || E.call(A);
|
|
875
877
|
});
|
|
876
878
|
}
|
|
877
879
|
/** Render */
|
|
878
880
|
render() {
|
|
879
|
-
return
|
|
881
|
+
return qu`<slot></slot>`;
|
|
880
882
|
}
|
|
881
883
|
}
|
|
882
|
-
|
|
884
|
+
Se([
|
|
883
885
|
G({ type: Array })
|
|
884
|
-
],
|
|
886
|
+
], r.prototype, "args");
|
|
887
|
+
class s extends r {
|
|
888
|
+
constructor() {
|
|
889
|
+
super(...arguments), this.loader = null;
|
|
890
|
+
}
|
|
891
|
+
createUnderlyingThreeObject() {
|
|
892
|
+
this.loader = new u(...this.args.map((i) => tu(i, this)));
|
|
893
|
+
}
|
|
894
|
+
onUnderlyingThreeObjectReady() {
|
|
895
|
+
const i = this.getAttribute("src");
|
|
896
|
+
if (!i)
|
|
897
|
+
throw new Error("Loader requires a source.");
|
|
898
|
+
if (!this.loader)
|
|
899
|
+
throw new Error(`Missing loader ${this.tagName}`);
|
|
900
|
+
this.loader.load(i, (o) => {
|
|
901
|
+
this.instance = o;
|
|
902
|
+
const a = this.getAttribute("attach");
|
|
903
|
+
a && this.executeAttach(a, o), this.refreshAttributes.call(this), this.dispatchEvent(new CustomEvent("loaded", {
|
|
904
|
+
detail: {
|
|
905
|
+
instance: o
|
|
906
|
+
}
|
|
907
|
+
}));
|
|
908
|
+
}, void 0, (o) => {
|
|
909
|
+
throw new Error(`error loading: ${i}` + o);
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
disconnectedCallback() {
|
|
913
|
+
super.disconnectedCallback(), this.disposeThreeObjects.call(this, [this.loader]);
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
return e ? s : r;
|
|
885
917
|
};
|
|
886
|
-
function
|
|
918
|
+
function Pe(t) {
|
|
887
919
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
888
920
|
}
|
|
889
|
-
var
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
const
|
|
894
|
-
var
|
|
921
|
+
var ou = {};
|
|
922
|
+
ou.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
923
|
+
ou.ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
|
|
924
|
+
ou.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
|
|
925
|
+
const Eu = ou;
|
|
926
|
+
var xe = {
|
|
895
927
|
isSpaceSeparator(t) {
|
|
896
|
-
return typeof t == "string" &&
|
|
928
|
+
return typeof t == "string" && Eu.Space_Separator.test(t);
|
|
897
929
|
},
|
|
898
930
|
isIdStartChar(t) {
|
|
899
|
-
return typeof t == "string" && (t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t === "$" || t === "_" ||
|
|
931
|
+
return typeof t == "string" && (t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t === "$" || t === "_" || Eu.ID_Start.test(t));
|
|
900
932
|
},
|
|
901
933
|
isIdContinueChar(t) {
|
|
902
|
-
return typeof t == "string" && (t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t >= "0" && t <= "9" || t === "$" || t === "_" || t === "" || t === "" ||
|
|
934
|
+
return typeof t == "string" && (t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t >= "0" && t <= "9" || t === "$" || t === "_" || t === "" || t === "" || Eu.ID_Continue.test(t));
|
|
903
935
|
},
|
|
904
936
|
isDigit(t) {
|
|
905
937
|
return typeof t == "string" && /[0-9]/.test(t);
|
|
@@ -908,21 +940,21 @@ var Te = {
|
|
|
908
940
|
return typeof t == "string" && /[0-9A-Fa-f]/.test(t);
|
|
909
941
|
}
|
|
910
942
|
};
|
|
911
|
-
const
|
|
912
|
-
let
|
|
913
|
-
var
|
|
914
|
-
|
|
943
|
+
const f = xe;
|
|
944
|
+
let du, y, v, iu, x, $, B, gu, J;
|
|
945
|
+
var Te = function(u, e) {
|
|
946
|
+
du = String(u), y = "start", v = [], iu = 0, x = 1, $ = 0, B = void 0, gu = void 0, J = void 0;
|
|
915
947
|
do
|
|
916
|
-
|
|
917
|
-
while (
|
|
918
|
-
return typeof e == "function" ?
|
|
948
|
+
B = Ne(), Re[y]();
|
|
949
|
+
while (B.type !== "eof");
|
|
950
|
+
return typeof e == "function" ? pu({ "": J }, "", e) : J;
|
|
919
951
|
};
|
|
920
|
-
function
|
|
952
|
+
function pu(t, u, e) {
|
|
921
953
|
const r = t[u];
|
|
922
954
|
if (r != null && typeof r == "object")
|
|
923
955
|
if (Array.isArray(r))
|
|
924
956
|
for (let s = 0; s < r.length; s++) {
|
|
925
|
-
const D = String(s), i =
|
|
957
|
+
const D = String(s), i = pu(r, D, e);
|
|
926
958
|
i === void 0 ? delete r[D] : Object.defineProperty(r, D, {
|
|
927
959
|
value: i,
|
|
928
960
|
writable: !0,
|
|
@@ -932,7 +964,7 @@ function Bu(t, u, e) {
|
|
|
932
964
|
}
|
|
933
965
|
else
|
|
934
966
|
for (const s in r) {
|
|
935
|
-
const D =
|
|
967
|
+
const D = pu(r, s, e);
|
|
936
968
|
D === void 0 ? delete r[s] : Object.defineProperty(r, s, {
|
|
937
969
|
value: D,
|
|
938
970
|
writable: !0,
|
|
@@ -942,25 +974,25 @@ function Bu(t, u, e) {
|
|
|
942
974
|
}
|
|
943
975
|
return e.call(t, u, r);
|
|
944
976
|
}
|
|
945
|
-
let h, c,
|
|
946
|
-
function
|
|
947
|
-
for (h = "default", c = "",
|
|
977
|
+
let h, c, V, _, C;
|
|
978
|
+
function Ne() {
|
|
979
|
+
for (h = "default", c = "", V = !1, _ = 1; ; ) {
|
|
948
980
|
C = w();
|
|
949
|
-
const t =
|
|
981
|
+
const t = Yu[h]();
|
|
950
982
|
if (t)
|
|
951
983
|
return t;
|
|
952
984
|
}
|
|
953
985
|
}
|
|
954
986
|
function w() {
|
|
955
|
-
if (
|
|
956
|
-
return String.fromCodePoint(
|
|
987
|
+
if (du[iu])
|
|
988
|
+
return String.fromCodePoint(du.codePointAt(iu));
|
|
957
989
|
}
|
|
958
990
|
function n() {
|
|
959
991
|
const t = w();
|
|
960
992
|
return t === `
|
|
961
993
|
` ? (x++, $ = 0) : t ? $ += t.length : $++, t && (iu += t.length), t;
|
|
962
994
|
}
|
|
963
|
-
const
|
|
995
|
+
const Yu = {
|
|
964
996
|
default() {
|
|
965
997
|
switch (C) {
|
|
966
998
|
case " ":
|
|
@@ -982,11 +1014,11 @@ const ue = {
|
|
|
982
1014
|
case void 0:
|
|
983
1015
|
return n(), l("eof");
|
|
984
1016
|
}
|
|
985
|
-
if (
|
|
1017
|
+
if (f.isSpaceSeparator(C)) {
|
|
986
1018
|
n();
|
|
987
1019
|
return;
|
|
988
1020
|
}
|
|
989
|
-
return
|
|
1021
|
+
return Yu[y]();
|
|
990
1022
|
},
|
|
991
1023
|
comment() {
|
|
992
1024
|
switch (C) {
|
|
@@ -1042,11 +1074,11 @@ const ue = {
|
|
|
1042
1074
|
case "[":
|
|
1043
1075
|
return l("punctuator", n());
|
|
1044
1076
|
case "n":
|
|
1045
|
-
return n(),
|
|
1077
|
+
return n(), M("ull"), l("null", null);
|
|
1046
1078
|
case "t":
|
|
1047
|
-
return n(),
|
|
1079
|
+
return n(), M("rue"), l("boolean", !0);
|
|
1048
1080
|
case "f":
|
|
1049
|
-
return n(),
|
|
1081
|
+
return n(), M("alse"), l("boolean", !1);
|
|
1050
1082
|
case "-":
|
|
1051
1083
|
case "+":
|
|
1052
1084
|
n() === "-" && (_ = -1), h = "sign";
|
|
@@ -1069,12 +1101,12 @@ const ue = {
|
|
|
1069
1101
|
c = n(), h = "decimalInteger";
|
|
1070
1102
|
return;
|
|
1071
1103
|
case "I":
|
|
1072
|
-
return n(),
|
|
1104
|
+
return n(), M("nfinity"), l("numeric", 1 / 0);
|
|
1073
1105
|
case "N":
|
|
1074
|
-
return n(),
|
|
1106
|
+
return n(), M("aN"), l("numeric", NaN);
|
|
1075
1107
|
case '"':
|
|
1076
1108
|
case "'":
|
|
1077
|
-
|
|
1109
|
+
V = n() === '"', c = "", h = "string";
|
|
1078
1110
|
return;
|
|
1079
1111
|
}
|
|
1080
1112
|
throw d(n());
|
|
@@ -1083,14 +1115,14 @@ const ue = {
|
|
|
1083
1115
|
if (C !== "u")
|
|
1084
1116
|
throw d(n());
|
|
1085
1117
|
n();
|
|
1086
|
-
const t =
|
|
1118
|
+
const t = fu();
|
|
1087
1119
|
switch (t) {
|
|
1088
1120
|
case "$":
|
|
1089
1121
|
case "_":
|
|
1090
1122
|
break;
|
|
1091
1123
|
default:
|
|
1092
|
-
if (!
|
|
1093
|
-
throw
|
|
1124
|
+
if (!f.isIdStartChar(t))
|
|
1125
|
+
throw Uu();
|
|
1094
1126
|
break;
|
|
1095
1127
|
}
|
|
1096
1128
|
c += t, h = "identifierName";
|
|
@@ -1107,7 +1139,7 @@ const ue = {
|
|
|
1107
1139
|
n(), h = "identifierNameEscape";
|
|
1108
1140
|
return;
|
|
1109
1141
|
}
|
|
1110
|
-
if (
|
|
1142
|
+
if (f.isIdContinueChar(C)) {
|
|
1111
1143
|
c += n();
|
|
1112
1144
|
return;
|
|
1113
1145
|
}
|
|
@@ -1117,7 +1149,7 @@ const ue = {
|
|
|
1117
1149
|
if (C !== "u")
|
|
1118
1150
|
throw d(n());
|
|
1119
1151
|
n();
|
|
1120
|
-
const t =
|
|
1152
|
+
const t = fu();
|
|
1121
1153
|
switch (t) {
|
|
1122
1154
|
case "$":
|
|
1123
1155
|
case "_":
|
|
@@ -1125,8 +1157,8 @@ const ue = {
|
|
|
1125
1157
|
case "":
|
|
1126
1158
|
break;
|
|
1127
1159
|
default:
|
|
1128
|
-
if (!
|
|
1129
|
-
throw
|
|
1160
|
+
if (!f.isIdContinueChar(t))
|
|
1161
|
+
throw Uu();
|
|
1130
1162
|
break;
|
|
1131
1163
|
}
|
|
1132
1164
|
c += t, h = "identifierName";
|
|
@@ -1151,9 +1183,9 @@ const ue = {
|
|
|
1151
1183
|
c = n(), h = "decimalInteger";
|
|
1152
1184
|
return;
|
|
1153
1185
|
case "I":
|
|
1154
|
-
return n(),
|
|
1186
|
+
return n(), M("nfinity"), l("numeric", _ * (1 / 0));
|
|
1155
1187
|
case "N":
|
|
1156
|
-
return n(),
|
|
1188
|
+
return n(), M("aN"), l("numeric", NaN);
|
|
1157
1189
|
}
|
|
1158
1190
|
throw d(n());
|
|
1159
1191
|
},
|
|
@@ -1183,14 +1215,14 @@ const ue = {
|
|
|
1183
1215
|
c += n(), h = "decimalExponent";
|
|
1184
1216
|
return;
|
|
1185
1217
|
}
|
|
1186
|
-
if (
|
|
1218
|
+
if (f.isDigit(C)) {
|
|
1187
1219
|
c += n();
|
|
1188
1220
|
return;
|
|
1189
1221
|
}
|
|
1190
1222
|
return l("numeric", _ * Number(c));
|
|
1191
1223
|
},
|
|
1192
1224
|
decimalPointLeading() {
|
|
1193
|
-
if (
|
|
1225
|
+
if (f.isDigit(C)) {
|
|
1194
1226
|
c += n(), h = "decimalFraction";
|
|
1195
1227
|
return;
|
|
1196
1228
|
}
|
|
@@ -1203,7 +1235,7 @@ const ue = {
|
|
|
1203
1235
|
c += n(), h = "decimalExponent";
|
|
1204
1236
|
return;
|
|
1205
1237
|
}
|
|
1206
|
-
if (
|
|
1238
|
+
if (f.isDigit(C)) {
|
|
1207
1239
|
c += n(), h = "decimalFraction";
|
|
1208
1240
|
return;
|
|
1209
1241
|
}
|
|
@@ -1216,7 +1248,7 @@ const ue = {
|
|
|
1216
1248
|
c += n(), h = "decimalExponent";
|
|
1217
1249
|
return;
|
|
1218
1250
|
}
|
|
1219
|
-
if (
|
|
1251
|
+
if (f.isDigit(C)) {
|
|
1220
1252
|
c += n();
|
|
1221
1253
|
return;
|
|
1222
1254
|
}
|
|
@@ -1229,35 +1261,35 @@ const ue = {
|
|
|
1229
1261
|
c += n(), h = "decimalExponentSign";
|
|
1230
1262
|
return;
|
|
1231
1263
|
}
|
|
1232
|
-
if (
|
|
1264
|
+
if (f.isDigit(C)) {
|
|
1233
1265
|
c += n(), h = "decimalExponentInteger";
|
|
1234
1266
|
return;
|
|
1235
1267
|
}
|
|
1236
1268
|
throw d(n());
|
|
1237
1269
|
},
|
|
1238
1270
|
decimalExponentSign() {
|
|
1239
|
-
if (
|
|
1271
|
+
if (f.isDigit(C)) {
|
|
1240
1272
|
c += n(), h = "decimalExponentInteger";
|
|
1241
1273
|
return;
|
|
1242
1274
|
}
|
|
1243
1275
|
throw d(n());
|
|
1244
1276
|
},
|
|
1245
1277
|
decimalExponentInteger() {
|
|
1246
|
-
if (
|
|
1278
|
+
if (f.isDigit(C)) {
|
|
1247
1279
|
c += n();
|
|
1248
1280
|
return;
|
|
1249
1281
|
}
|
|
1250
1282
|
return l("numeric", _ * Number(c));
|
|
1251
1283
|
},
|
|
1252
1284
|
hexadecimal() {
|
|
1253
|
-
if (
|
|
1285
|
+
if (f.isHexDigit(C)) {
|
|
1254
1286
|
c += n(), h = "hexadecimalInteger";
|
|
1255
1287
|
return;
|
|
1256
1288
|
}
|
|
1257
1289
|
throw d(n());
|
|
1258
1290
|
},
|
|
1259
1291
|
hexadecimalInteger() {
|
|
1260
|
-
if (
|
|
1292
|
+
if (f.isHexDigit(C)) {
|
|
1261
1293
|
c += n();
|
|
1262
1294
|
return;
|
|
1263
1295
|
}
|
|
@@ -1266,15 +1298,15 @@ const ue = {
|
|
|
1266
1298
|
string() {
|
|
1267
1299
|
switch (C) {
|
|
1268
1300
|
case "\\":
|
|
1269
|
-
n(), c +=
|
|
1301
|
+
n(), c += Me();
|
|
1270
1302
|
return;
|
|
1271
1303
|
case '"':
|
|
1272
|
-
if (
|
|
1304
|
+
if (V)
|
|
1273
1305
|
return n(), l("string", c);
|
|
1274
1306
|
c += n();
|
|
1275
1307
|
return;
|
|
1276
1308
|
case "'":
|
|
1277
|
-
if (!
|
|
1309
|
+
if (!V)
|
|
1278
1310
|
return n(), l("string", c);
|
|
1279
1311
|
c += n();
|
|
1280
1312
|
return;
|
|
@@ -1284,7 +1316,7 @@ const ue = {
|
|
|
1284
1316
|
throw d(n());
|
|
1285
1317
|
case "\u2028":
|
|
1286
1318
|
case "\u2029":
|
|
1287
|
-
|
|
1319
|
+
Le(C);
|
|
1288
1320
|
break;
|
|
1289
1321
|
case void 0:
|
|
1290
1322
|
throw d(n());
|
|
@@ -1312,10 +1344,10 @@ const ue = {
|
|
|
1312
1344
|
return l("punctuator", n());
|
|
1313
1345
|
case '"':
|
|
1314
1346
|
case "'":
|
|
1315
|
-
|
|
1347
|
+
V = n() === '"', h = "string";
|
|
1316
1348
|
return;
|
|
1317
1349
|
}
|
|
1318
|
-
if (
|
|
1350
|
+
if (f.isIdStartChar(C)) {
|
|
1319
1351
|
c += n(), h = "identifierName";
|
|
1320
1352
|
return;
|
|
1321
1353
|
}
|
|
@@ -1362,14 +1394,14 @@ function l(t, u) {
|
|
|
1362
1394
|
column: $
|
|
1363
1395
|
};
|
|
1364
1396
|
}
|
|
1365
|
-
function
|
|
1397
|
+
function M(t) {
|
|
1366
1398
|
for (const u of t) {
|
|
1367
1399
|
if (w() !== u)
|
|
1368
1400
|
throw d(n());
|
|
1369
1401
|
n();
|
|
1370
1402
|
}
|
|
1371
1403
|
}
|
|
1372
|
-
function
|
|
1404
|
+
function Me() {
|
|
1373
1405
|
switch (w()) {
|
|
1374
1406
|
case "b":
|
|
1375
1407
|
return n(), "\b";
|
|
@@ -1385,13 +1417,13 @@ function Re() {
|
|
|
1385
1417
|
case "v":
|
|
1386
1418
|
return n(), "\v";
|
|
1387
1419
|
case "0":
|
|
1388
|
-
if (n(),
|
|
1420
|
+
if (n(), f.isDigit(w()))
|
|
1389
1421
|
throw d(n());
|
|
1390
1422
|
return "\0";
|
|
1391
1423
|
case "x":
|
|
1392
|
-
return n(),
|
|
1424
|
+
return n(), Oe();
|
|
1393
1425
|
case "u":
|
|
1394
|
-
return n(),
|
|
1426
|
+
return n(), fu();
|
|
1395
1427
|
case `
|
|
1396
1428
|
`:
|
|
1397
1429
|
case "\u2028":
|
|
@@ -1415,90 +1447,90 @@ function Re() {
|
|
|
1415
1447
|
}
|
|
1416
1448
|
return n();
|
|
1417
1449
|
}
|
|
1418
|
-
function
|
|
1450
|
+
function Oe() {
|
|
1419
1451
|
let t = "", u = w();
|
|
1420
|
-
if (!
|
|
1452
|
+
if (!f.isHexDigit(u) || (t += n(), u = w(), !f.isHexDigit(u)))
|
|
1421
1453
|
throw d(n());
|
|
1422
1454
|
return t += n(), String.fromCodePoint(parseInt(t, 16));
|
|
1423
1455
|
}
|
|
1424
|
-
function
|
|
1456
|
+
function fu() {
|
|
1425
1457
|
let t = "", u = 4;
|
|
1426
1458
|
for (; u-- > 0; ) {
|
|
1427
1459
|
const e = w();
|
|
1428
|
-
if (!
|
|
1460
|
+
if (!f.isHexDigit(e))
|
|
1429
1461
|
throw d(n());
|
|
1430
1462
|
t += n();
|
|
1431
1463
|
}
|
|
1432
1464
|
return String.fromCodePoint(parseInt(t, 16));
|
|
1433
1465
|
}
|
|
1434
|
-
const
|
|
1466
|
+
const Re = {
|
|
1435
1467
|
start() {
|
|
1436
|
-
if (
|
|
1437
|
-
throw
|
|
1438
|
-
|
|
1468
|
+
if (B.type === "eof")
|
|
1469
|
+
throw O();
|
|
1470
|
+
Fu();
|
|
1439
1471
|
},
|
|
1440
1472
|
beforePropertyName() {
|
|
1441
|
-
switch (
|
|
1473
|
+
switch (B.type) {
|
|
1442
1474
|
case "identifier":
|
|
1443
1475
|
case "string":
|
|
1444
|
-
|
|
1476
|
+
gu = B.value, y = "afterPropertyName";
|
|
1445
1477
|
return;
|
|
1446
1478
|
case "punctuator":
|
|
1447
|
-
|
|
1479
|
+
uu();
|
|
1448
1480
|
return;
|
|
1449
1481
|
case "eof":
|
|
1450
|
-
throw
|
|
1482
|
+
throw O();
|
|
1451
1483
|
}
|
|
1452
1484
|
},
|
|
1453
1485
|
afterPropertyName() {
|
|
1454
|
-
if (
|
|
1455
|
-
throw
|
|
1456
|
-
|
|
1486
|
+
if (B.type === "eof")
|
|
1487
|
+
throw O();
|
|
1488
|
+
y = "beforePropertyValue";
|
|
1457
1489
|
},
|
|
1458
1490
|
beforePropertyValue() {
|
|
1459
|
-
if (
|
|
1460
|
-
throw
|
|
1461
|
-
|
|
1491
|
+
if (B.type === "eof")
|
|
1492
|
+
throw O();
|
|
1493
|
+
Fu();
|
|
1462
1494
|
},
|
|
1463
1495
|
beforeArrayValue() {
|
|
1464
|
-
if (
|
|
1465
|
-
throw
|
|
1466
|
-
if (
|
|
1467
|
-
|
|
1496
|
+
if (B.type === "eof")
|
|
1497
|
+
throw O();
|
|
1498
|
+
if (B.type === "punctuator" && B.value === "]") {
|
|
1499
|
+
uu();
|
|
1468
1500
|
return;
|
|
1469
1501
|
}
|
|
1470
|
-
|
|
1502
|
+
Fu();
|
|
1471
1503
|
},
|
|
1472
1504
|
afterPropertyValue() {
|
|
1473
|
-
if (
|
|
1474
|
-
throw
|
|
1475
|
-
switch (
|
|
1505
|
+
if (B.type === "eof")
|
|
1506
|
+
throw O();
|
|
1507
|
+
switch (B.value) {
|
|
1476
1508
|
case ",":
|
|
1477
|
-
|
|
1509
|
+
y = "beforePropertyName";
|
|
1478
1510
|
return;
|
|
1479
1511
|
case "}":
|
|
1480
|
-
|
|
1512
|
+
uu();
|
|
1481
1513
|
}
|
|
1482
1514
|
},
|
|
1483
1515
|
afterArrayValue() {
|
|
1484
|
-
if (
|
|
1485
|
-
throw
|
|
1486
|
-
switch (
|
|
1516
|
+
if (B.type === "eof")
|
|
1517
|
+
throw O();
|
|
1518
|
+
switch (B.value) {
|
|
1487
1519
|
case ",":
|
|
1488
|
-
|
|
1520
|
+
y = "beforeArrayValue";
|
|
1489
1521
|
return;
|
|
1490
1522
|
case "]":
|
|
1491
|
-
|
|
1523
|
+
uu();
|
|
1492
1524
|
}
|
|
1493
1525
|
},
|
|
1494
1526
|
end() {
|
|
1495
1527
|
}
|
|
1496
1528
|
};
|
|
1497
|
-
function
|
|
1529
|
+
function Fu() {
|
|
1498
1530
|
let t;
|
|
1499
|
-
switch (
|
|
1531
|
+
switch (B.type) {
|
|
1500
1532
|
case "punctuator":
|
|
1501
|
-
switch (
|
|
1533
|
+
switch (B.value) {
|
|
1502
1534
|
case "{":
|
|
1503
1535
|
t = {};
|
|
1504
1536
|
break;
|
|
@@ -1511,14 +1543,14 @@ function lu() {
|
|
|
1511
1543
|
case "boolean":
|
|
1512
1544
|
case "numeric":
|
|
1513
1545
|
case "string":
|
|
1514
|
-
t =
|
|
1546
|
+
t = B.value;
|
|
1515
1547
|
break;
|
|
1516
1548
|
}
|
|
1517
|
-
if (
|
|
1518
|
-
|
|
1549
|
+
if (J === void 0)
|
|
1550
|
+
J = t;
|
|
1519
1551
|
else {
|
|
1520
1552
|
const u = v[v.length - 1];
|
|
1521
|
-
Array.isArray(u) ? u.push(t) : Object.defineProperty(u,
|
|
1553
|
+
Array.isArray(u) ? u.push(t) : Object.defineProperty(u, gu, {
|
|
1522
1554
|
value: t,
|
|
1523
1555
|
writable: !0,
|
|
1524
1556
|
enumerable: !0,
|
|
@@ -1526,30 +1558,30 @@ function lu() {
|
|
|
1526
1558
|
});
|
|
1527
1559
|
}
|
|
1528
1560
|
if (t !== null && typeof t == "object")
|
|
1529
|
-
v.push(t), Array.isArray(t) ?
|
|
1561
|
+
v.push(t), Array.isArray(t) ? y = "beforeArrayValue" : y = "beforePropertyName";
|
|
1530
1562
|
else {
|
|
1531
1563
|
const u = v[v.length - 1];
|
|
1532
|
-
u == null ?
|
|
1564
|
+
u == null ? y = "end" : Array.isArray(u) ? y = "afterArrayValue" : y = "afterPropertyValue";
|
|
1533
1565
|
}
|
|
1534
1566
|
}
|
|
1535
|
-
function
|
|
1567
|
+
function uu() {
|
|
1536
1568
|
v.pop();
|
|
1537
1569
|
const t = v[v.length - 1];
|
|
1538
|
-
t == null ?
|
|
1570
|
+
t == null ? y = "end" : Array.isArray(t) ? y = "afterArrayValue" : y = "afterPropertyValue";
|
|
1539
1571
|
}
|
|
1540
1572
|
function d(t) {
|
|
1541
|
-
return
|
|
1573
|
+
return Du(t === void 0 ? `JSON5: invalid end of input at ${x}:${$}` : `JSON5: invalid character '${Qu(t)}' at ${x}:${$}`);
|
|
1542
1574
|
}
|
|
1543
|
-
function
|
|
1544
|
-
return
|
|
1575
|
+
function O() {
|
|
1576
|
+
return Du(`JSON5: invalid end of input at ${x}:${$}`);
|
|
1545
1577
|
}
|
|
1546
|
-
function
|
|
1547
|
-
return $ -= 5,
|
|
1578
|
+
function Uu() {
|
|
1579
|
+
return $ -= 5, Du(`JSON5: invalid identifier character at ${x}:${$}`);
|
|
1548
1580
|
}
|
|
1549
|
-
function
|
|
1550
|
-
console.warn(`JSON5: '${
|
|
1581
|
+
function Le(t) {
|
|
1582
|
+
console.warn(`JSON5: '${Qu(t)}' in strings is not valid ECMAScript; consider escaping`);
|
|
1551
1583
|
}
|
|
1552
|
-
function
|
|
1584
|
+
function Qu(t) {
|
|
1553
1585
|
const u = {
|
|
1554
1586
|
"'": "\\'",
|
|
1555
1587
|
'"': '\\"',
|
|
@@ -1572,17 +1604,17 @@ function ee(t) {
|
|
|
1572
1604
|
}
|
|
1573
1605
|
return t;
|
|
1574
1606
|
}
|
|
1575
|
-
function
|
|
1607
|
+
function Du(t) {
|
|
1576
1608
|
const u = new SyntaxError(t);
|
|
1577
1609
|
return u.lineNumber = x, u.columnNumber = $, u;
|
|
1578
1610
|
}
|
|
1579
|
-
const
|
|
1580
|
-
var
|
|
1611
|
+
const Ue = /* @__PURE__ */ Pe(Te);
|
|
1612
|
+
var ke = Object.defineProperty, Q = (t, u, e, r) => {
|
|
1581
1613
|
for (var s = void 0, D = t.length - 1, i; D >= 0; D--)
|
|
1582
1614
|
(i = t[D]) && (s = i(u, e, s) || s);
|
|
1583
|
-
return s &&
|
|
1615
|
+
return s && ke(u, e, s), s;
|
|
1584
1616
|
};
|
|
1585
|
-
const
|
|
1617
|
+
const He = "orthographic", ku = 1 / 0, $u = class $u extends H {
|
|
1586
1618
|
constructor() {
|
|
1587
1619
|
super(), this.scratchV2 = new b.Vector2(), this.three = {
|
|
1588
1620
|
scene: new b.Scene(),
|
|
@@ -1591,7 +1623,7 @@ const je = "orthographic", Uu = 1 / 0, _u = class _u extends I {
|
|
|
1591
1623
|
antialias: !0,
|
|
1592
1624
|
alpha: !0
|
|
1593
1625
|
})
|
|
1594
|
-
}, this.background = null, this.dpr =
|
|
1626
|
+
}, this.background = null, this.dpr = ku, this.manualRender = !1, this.dispatchBeforeRender = !1, this.dispatchAfterRender = !1, this.raycaster = new b.Raycaster(), this.raycastPool = [], this.frame = 1 / 0, this.resizeObserver = new ResizeObserver((u) => {
|
|
1595
1627
|
u.forEach(({ target: e, contentRect: r }) => {
|
|
1596
1628
|
if (e === this && (this.three.renderer.setSize(r.width * this.dpr, r.height * this.dpr), this.three.camera)) {
|
|
1597
1629
|
const s = r.width / r.height;
|
|
@@ -1608,10 +1640,10 @@ const je = "orthographic", Uu = 1 / 0, _u = class _u extends I {
|
|
|
1608
1640
|
}
|
|
1609
1641
|
/** To run on start. */
|
|
1610
1642
|
connectedCallback() {
|
|
1611
|
-
super.connectedCallback(), this.dpr ===
|
|
1612
|
-
const e =
|
|
1643
|
+
super.connectedCallback(), this.dpr === ku && (this.dpr = window.devicePixelRatio), this.getAttribute(He) !== null ? this.three.camera = new b.OrthographicCamera() : this.three.camera = new b.PerspectiveCamera(75), ["scene", "camera", "renderer"].forEach((u) => {
|
|
1644
|
+
const e = Ue(this.getAttribute(u) ?? "{}");
|
|
1613
1645
|
Object.entries(e).forEach(([r, s]) => {
|
|
1614
|
-
this.three[u] &&
|
|
1646
|
+
this.three[u] && lu(this.three[u], r.split("-"), tu(s, this));
|
|
1615
1647
|
});
|
|
1616
1648
|
}), this.resizeObserver.observe(this), this.background !== null && (this.three.scene.background = new b.Color(this.background)), this.three.renderer.domElement.addEventListener("pointermove", this.onPointerMove.bind(this)), this.three.renderer.domElement.addEventListener("mousemove", this.onPointerMove.bind(this)), this.three.renderer.domElement.addEventListener("click", this.onClick.bind(this)), this.manualRender || this.updateLoop();
|
|
1617
1649
|
}
|
|
@@ -1627,7 +1659,7 @@ const je = "orthographic", Uu = 1 / 0, _u = class _u extends I {
|
|
|
1627
1659
|
s || D.uuid === r.instance.uuid && (s = !0);
|
|
1628
1660
|
}), s)
|
|
1629
1661
|
return;
|
|
1630
|
-
this.three.scene.add(r.instance), e.getAttributeNames().includes(
|
|
1662
|
+
this.three.scene.add(r.instance), e.getAttributeNames().includes(Ku) && this.raycastPool.push(r.instance);
|
|
1631
1663
|
}
|
|
1632
1664
|
}), this.renderThree();
|
|
1633
1665
|
}
|
|
@@ -1641,15 +1673,15 @@ const je = "orthographic", Uu = 1 / 0, _u = class _u extends I {
|
|
|
1641
1673
|
return this.raycaster.setFromCamera(e, this.three.camera), this.raycaster.intersectObjects(this.raycastPool).map((D) => ({
|
|
1642
1674
|
intersect: D,
|
|
1643
1675
|
// TODO: cache result of this query selector somewhere?
|
|
1644
|
-
element: this.querySelector(`[${
|
|
1676
|
+
element: this.querySelector(`[${Zu}="${D.object.uuid}"]`)
|
|
1645
1677
|
}));
|
|
1646
1678
|
}
|
|
1647
1679
|
// Pointer movement
|
|
1648
1680
|
// ==================
|
|
1649
1681
|
onPointerMove(u) {
|
|
1650
1682
|
this.runRaycast.bind(this)(u).forEach((r) => {
|
|
1651
|
-
var s, D, i,
|
|
1652
|
-
u.type === "pointermove" ? ((s = r.element) == null || s.dispatchEvent(new PointerEvent("pointermove")), (D = r.element) == null || D.dispatchEvent(new CustomEvent(
|
|
1683
|
+
var s, D, i, o;
|
|
1684
|
+
u.type === "pointermove" ? ((s = r.element) == null || s.dispatchEvent(new PointerEvent("pointermove")), (D = r.element) == null || D.dispatchEvent(new CustomEvent(Ie, { detail: r }))) : u.type === "mousemove" && ((i = r.element) == null || i.dispatchEvent(new MouseEvent("mousemove")), (o = r.element) == null || o.dispatchEvent(new CustomEvent(je, { detail: r })));
|
|
1653
1685
|
});
|
|
1654
1686
|
}
|
|
1655
1687
|
// Click handling
|
|
@@ -1669,7 +1701,7 @@ const je = "orthographic", Uu = 1 / 0, _u = class _u extends I {
|
|
|
1669
1701
|
});
|
|
1670
1702
|
e.forEach((r) => {
|
|
1671
1703
|
var s;
|
|
1672
|
-
(s = r.element) == null || s.dispatchEvent(new CustomEvent(
|
|
1704
|
+
(s = r.element) == null || s.dispatchEvent(new CustomEvent(Ge, { detail: r }));
|
|
1673
1705
|
});
|
|
1674
1706
|
}
|
|
1675
1707
|
updateLoop() {
|
|
@@ -1677,19 +1709,19 @@ const je = "orthographic", Uu = 1 / 0, _u = class _u extends I {
|
|
|
1677
1709
|
}
|
|
1678
1710
|
/** Render the 3D scene. Optional scene/camera overrides; defaults to the internal scene and camera. */
|
|
1679
1711
|
renderThree(u, e) {
|
|
1680
|
-
this.dispatchBeforeRender && this.dispatchEvent(new CustomEvent(
|
|
1712
|
+
this.dispatchBeforeRender && this.dispatchEvent(new CustomEvent(ze, {})), this.three.camera && (this.three.renderer.render(
|
|
1681
1713
|
u ?? this.three.scene,
|
|
1682
1714
|
e ?? this.three.camera
|
|
1683
|
-
), this.dispatchAfterRender && this.dispatchEvent(new CustomEvent(
|
|
1715
|
+
), this.dispatchAfterRender && this.dispatchEvent(new CustomEvent(Ve, {})));
|
|
1684
1716
|
}
|
|
1685
1717
|
render() {
|
|
1686
|
-
return
|
|
1718
|
+
return qu`
|
|
1687
1719
|
<slot @slotchange=${this.handleDefaultSlotChange}></slot>
|
|
1688
1720
|
${this.three.renderer.domElement}
|
|
1689
1721
|
`;
|
|
1690
1722
|
}
|
|
1691
1723
|
};
|
|
1692
|
-
|
|
1724
|
+
$u.styles = te`
|
|
1693
1725
|
:host {
|
|
1694
1726
|
width: 100%;
|
|
1695
1727
|
height: 100%;
|
|
@@ -1703,64 +1735,64 @@ _u.styles = se`
|
|
|
1703
1735
|
max-height: 100%;
|
|
1704
1736
|
}
|
|
1705
1737
|
`;
|
|
1706
|
-
let
|
|
1707
|
-
|
|
1738
|
+
let T = $u;
|
|
1739
|
+
Q([
|
|
1708
1740
|
G()
|
|
1709
|
-
],
|
|
1710
|
-
|
|
1741
|
+
], T.prototype, "background");
|
|
1742
|
+
Q([
|
|
1711
1743
|
G()
|
|
1712
|
-
],
|
|
1713
|
-
|
|
1744
|
+
], T.prototype, "dpr");
|
|
1745
|
+
Q([
|
|
1714
1746
|
G({
|
|
1715
1747
|
attribute: "manual-render",
|
|
1716
1748
|
type: Boolean
|
|
1717
1749
|
})
|
|
1718
|
-
],
|
|
1719
|
-
|
|
1750
|
+
], T.prototype, "manualRender");
|
|
1751
|
+
Q([
|
|
1720
1752
|
G({
|
|
1721
1753
|
attribute: "dispatch-before-render",
|
|
1722
1754
|
type: Boolean
|
|
1723
1755
|
})
|
|
1724
|
-
],
|
|
1725
|
-
|
|
1756
|
+
], T.prototype, "dispatchBeforeRender");
|
|
1757
|
+
Q([
|
|
1726
1758
|
G({
|
|
1727
1759
|
attribute: "dispatch-after-render",
|
|
1728
1760
|
type: Boolean
|
|
1729
1761
|
})
|
|
1730
|
-
],
|
|
1731
|
-
const
|
|
1762
|
+
], T.prototype, "dispatchAfterRender");
|
|
1763
|
+
const Je = ({
|
|
1732
1764
|
prependList: t = []
|
|
1733
1765
|
} = {}) => {
|
|
1734
|
-
customElements.get("three-lunchbox") || customElements.define("three-lunchbox",
|
|
1735
|
-
const e =
|
|
1766
|
+
customElements.get("three-lunchbox") || customElements.define("three-lunchbox", T), [...t, ...Iu].forEach((u) => {
|
|
1767
|
+
const e = ue(u);
|
|
1736
1768
|
if (customElements.get(e))
|
|
1737
1769
|
return;
|
|
1738
|
-
const r =
|
|
1770
|
+
const r = Xu(u);
|
|
1739
1771
|
r && customElements.define(e, r);
|
|
1740
1772
|
});
|
|
1741
|
-
},
|
|
1773
|
+
}, Ze = (t, u, e = window) => {
|
|
1742
1774
|
if (e.customElements.get(t)) {
|
|
1743
1775
|
console.log(`${t} already registered as a custom element. Try a different name if registering is still required.`);
|
|
1744
1776
|
return;
|
|
1745
1777
|
}
|
|
1746
|
-
const r =
|
|
1778
|
+
const r = Xu(u);
|
|
1747
1779
|
if (r)
|
|
1748
1780
|
e.customElements.define(t, r);
|
|
1749
1781
|
else
|
|
1750
1782
|
throw new Error(`Could not extend ${t}. The second paramater must be a class.`);
|
|
1751
|
-
},
|
|
1783
|
+
}, Ie = "threepointermove", je = "threemousemove", Ge = "threeclick", ze = "beforerender", Ve = "afterrender", ue = (t) => {
|
|
1752
1784
|
let u = t.split(/\.?(?=[A-Z])/).join("-").toLowerCase().replace(/-g-l-/, "-gl-");
|
|
1753
1785
|
return u.includes("-") || (u = `three-${u}`), u;
|
|
1754
|
-
},
|
|
1786
|
+
}, Ke = Iu.map(ue);
|
|
1755
1787
|
export {
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1788
|
+
Ve as AFTER_RENDER_EVENT_NAME,
|
|
1789
|
+
ze as BEFORE_RENDER_EVENT_NAME,
|
|
1790
|
+
Ge as THREE_CLICK_EVENT_NAME,
|
|
1791
|
+
je as THREE_MOUSE_MOVE_EVENT_NAME,
|
|
1792
|
+
Ie as THREE_POINTER_MOVE_EVENT_NAME,
|
|
1793
|
+
T as ThreeLunchbox,
|
|
1794
|
+
Iu as autoComponents,
|
|
1795
|
+
Ze as extend,
|
|
1796
|
+
Je as initLunchbox,
|
|
1797
|
+
Ke as webComponentNames
|
|
1766
1798
|
};
|