1import { cV as n, c8 as l, br as e, cW as s } from "./DmbwLpud.js"; 2let t = null, o = null, u = null; 3const i = new s(), c = new l(), a = new n(), f = new e(new s(0, 0, 1), 0); 4let r = null; 5function d(n2, l2) { 6 t = n2, o = l2, null !== u && (w(u), u = null), r && (y(r), r = null); 7} 8function p() { 9 t = null, o = null, u = null, r = null; 10} 11function w(n2, l2) { 12 t && (n2 ? (t.setVisible(true), t.warmup?.()) : t.setVisible(false, l2)); 13} 14function h(n2, l2) { 15 t ? w(n2, l2) : u = n2; 16} 17function k(n2) { 18 t?.fadeOut ? t.fadeOut(n2) : h(false, { instant: true }); 19} 20function y(n2) { 21 if (!n2 || n2.width < 2 || n2.height < 2) return; 22 if (!t || !o) return void (r = n2); 23 const l2 = (function(n3, l3) { 24 const e2 = n3.left + n3.width / 2, s2 = n3.top + n3.height / 2; 25 return a.x = e2 / window.innerWidth * 2 - 1, a.y = -s2 / window.innerHeight * 2 + 1, c.setFromCamera(a, l3), null === c.ray.intersectPlane(f, i) && i.set(0, 0, 0), i.clone(); 26 })(n2, o); 27 t.setGroupPosition(l2); 28} 29let b = null, m = [], B = null, g = null; 30async function q(n2) { 31 if (b = { async ensureBlock(l2, e2) { 32 await n2.ensureBlock(l2, e2); 33 }, hideAll() { 34 n2.hideAll(); 35 }, playSequence(l2, e2) { 36 n2.playSequence(l2, e2); 37 }, fadeBlocks(l2, e2) { 38 n2.fadeBlocks(l2, e2); 39 } }, m.length) { 40 const l2 = m; 41 m = [], await Promise.all(l2.map(({ id: l3, config: e2 }) => n2.ensureBlock(l3, e2))); 42 } 43 if (B) { 44 const l2 = B; 45 B = null, n2.playSequence(l2.blocks, l2.opts); 46 } 47 if (g) { 48 const l2 = g; 49 g = null, n2.fadeBlocks(l2.blocks, l2.opts); 50 } 51} 52function S() { 53 b = null, m = [], B = null, g = null; 54} 55async function P(n2, l2) { 56 b ? await b.ensureBlock(n2, l2) : m.some((l3) => l3.id === n2) || m.push({ id: n2, config: l2 }); 57} 58function V(n2, l2) { 59 b ? b.playSequence(n2, l2) : B = { blocks: n2, opts: l2 }; 60} 61function x(n2, l2) { 62 b ? b.fadeBlocks(n2, l2) : g = { blocks: n2, opts: l2 }; 63} 64export { 65 k as a, 66 q as b, 67 y as c, 68 S as d, 69 P as e, 70 x as f, 71 V as p, 72 d as r, 73 h as s, 74 p as u 75};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.