@mavonengine/editor 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,9 +18,10 @@ import lA from "@mavonengine/core/Prefab/Water/Water";
18
18
  import of from "@mavonengine/core/Prefab/Water/WaterManager";
19
19
  import iA from "@mavonengine/core/Renderer/AssetRenderer";
20
20
  import jT from "@mavonengine/core/Editor/EditorHelper";
21
- import { a as oA } from "./Editor-D7WM9ico.mjs";
21
+ import { a as oA } from "./Editor-CtUm05-U.mjs";
22
+ import { ENGINE_VERSION as sA } from "@mavonengine/core/BaseGame";
22
23
  /* empty css */
23
- const ax = { type: "change" }, l2 = { type: "start" }, VT = { type: "end" }, h_ = new $M(), lx = new y0(), sA = Math.cos(70 * WM.DEG2RAD), Sa = new ha(), ai = 2 * Math.PI, Ie = {
24
+ const ax = { type: "change" }, l2 = { type: "start" }, VT = { type: "end" }, h_ = new $M(), lx = new y0(), rA = Math.cos(70 * WM.DEG2RAD), Sa = new ha(), ai = 2 * Math.PI, Ie = {
24
25
  NONE: -1,
25
26
  ROTATE: 0,
26
27
  DOLLY: 1,
@@ -30,7 +31,7 @@ const ax = { type: "change" }, l2 = { type: "start" }, VT = { type: "end" }, h_
30
31
  TOUCH_DOLLY_PAN: 5,
31
32
  TOUCH_DOLLY_ROTATE: 6
32
33
  }, gw = 1e-6;
33
- class rA extends JM {
34
+ class uA extends JM {
34
35
  /**
35
36
  * Constructs a new controls instance.
36
37
  *
@@ -38,7 +39,7 @@ class rA extends JM {
38
39
  * @param {?HTMLDOMElement} domElement - The HTML element used for event listeners.
39
40
  */
40
41
  constructor(l, o = null) {
41
- super(l, o), this.state = Ie.NONE, this.target = new ha(), this.cursor = new ha(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: $m.ROTATE, MIDDLE: $m.DOLLY, RIGHT: $m.PAN }, this.touches = { ONE: Zm.ROTATE, TWO: Zm.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new ha(), this._lastQuaternion = new WC(), this._lastTargetPosition = new ha(), this._quat = new WC().setFromUnitVectors(l.up, new ha(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new FC(), this._sphericalDelta = new FC(), this._scale = 1, this._panOffset = new ha(), this._rotateStart = new ul(), this._rotateEnd = new ul(), this._rotateDelta = new ul(), this._panStart = new ul(), this._panEnd = new ul(), this._panDelta = new ul(), this._dollyStart = new ul(), this._dollyEnd = new ul(), this._dollyDelta = new ul(), this._dollyDirection = new ha(), this._mouse = new ul(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = cA.bind(this), this._onPointerDown = uA.bind(this), this._onPointerUp = fA.bind(this), this._onContextMenu = bA.bind(this), this._onMouseWheel = pA.bind(this), this._onKeyDown = mA.bind(this), this._onTouchStart = vA.bind(this), this._onTouchMove = gA.bind(this), this._onMouseDown = dA.bind(this), this._onMouseMove = hA.bind(this), this._interceptControlDown = yA.bind(this), this._interceptControlUp = _A.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
42
+ super(l, o), this.state = Ie.NONE, this.target = new ha(), this.cursor = new ha(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: $m.ROTATE, MIDDLE: $m.DOLLY, RIGHT: $m.PAN }, this.touches = { ONE: Zm.ROTATE, TWO: Zm.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new ha(), this._lastQuaternion = new WC(), this._lastTargetPosition = new ha(), this._quat = new WC().setFromUnitVectors(l.up, new ha(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new FC(), this._sphericalDelta = new FC(), this._scale = 1, this._panOffset = new ha(), this._rotateStart = new ul(), this._rotateEnd = new ul(), this._rotateDelta = new ul(), this._panStart = new ul(), this._panEnd = new ul(), this._panDelta = new ul(), this._dollyStart = new ul(), this._dollyEnd = new ul(), this._dollyDelta = new ul(), this._dollyDirection = new ha(), this._mouse = new ul(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = fA.bind(this), this._onPointerDown = cA.bind(this), this._onPointerUp = dA.bind(this), this._onContextMenu = yA.bind(this), this._onMouseWheel = mA.bind(this), this._onKeyDown = vA.bind(this), this._onTouchStart = gA.bind(this), this._onTouchMove = bA.bind(this), this._onMouseDown = hA.bind(this), this._onMouseMove = pA.bind(this), this._interceptControlDown = _A.bind(this), this._interceptControlUp = SA.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
42
43
  }
43
44
  connect(l) {
44
45
  super.connect(l), 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: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
@@ -129,7 +130,7 @@ class rA extends JM {
129
130
  x.unproject(this.object), this.object.position.sub(x).add(_), this.object.updateMatrixWorld(), S = Sa.length();
130
131
  } else
131
132
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
132
- S !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(S).add(this.object.position) : (h_.origin.copy(this.object.position), h_.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(h_.direction)) < sA ? this.object.lookAt(this.target) : (lx.setFromNormalAndCoplanarPoint(this.object.up, this.target), h_.intersectPlane(lx, this.target))));
133
+ S !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(S).add(this.object.position) : (h_.origin.copy(this.object.position), h_.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(h_.direction)) < rA ? this.object.lookAt(this.target) : (lx.setFromNormalAndCoplanarPoint(this.object.up, this.target), h_.intersectPlane(lx, this.target))));
133
134
  } else if (this.object.isOrthographicCamera) {
134
135
  const S = this.object.zoom;
135
136
  this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), S !== this.object.zoom && (this.object.updateProjectionMatrix(), b = !0);
@@ -326,13 +327,13 @@ class rA extends JM {
326
327
  return l.ctrlKey && !this._controlActive && (c.deltaY *= 10), c;
327
328
  }
328
329
  }
329
- function uA(s) {
330
+ function cA(s) {
330
331
  this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(s.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.domElement.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(s) && (this._addPointer(s), s.pointerType === "touch" ? this._onTouchStart(s) : this._onMouseDown(s)));
331
332
  }
332
- function cA(s) {
333
+ function fA(s) {
333
334
  this.enabled !== !1 && (s.pointerType === "touch" ? this._onTouchMove(s) : this._onMouseMove(s));
334
335
  }
335
- function fA(s) {
336
+ function dA(s) {
336
337
  switch (this._removePointer(s), this._pointers.length) {
337
338
  case 0:
338
339
  this.domElement.releasePointerCapture(s.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(VT), this.state = Ie.NONE;
@@ -343,7 +344,7 @@ function fA(s) {
343
344
  break;
344
345
  }
345
346
  }
346
- function dA(s) {
347
+ function hA(s) {
347
348
  let l;
348
349
  switch (s.button) {
349
350
  case 0:
@@ -386,7 +387,7 @@ function dA(s) {
386
387
  }
387
388
  this.state !== Ie.NONE && this.dispatchEvent(l2);
388
389
  }
389
- function hA(s) {
390
+ function pA(s) {
390
391
  switch (this.state) {
391
392
  case Ie.ROTATE:
392
393
  if (this.enableRotate === !1) return;
@@ -402,13 +403,13 @@ function hA(s) {
402
403
  break;
403
404
  }
404
405
  }
405
- function pA(s) {
406
+ function mA(s) {
406
407
  this.enabled === !1 || this.enableZoom === !1 || this.state !== Ie.NONE || (s.preventDefault(), this.dispatchEvent(l2), this._handleMouseWheel(this._customWheelEvent(s)), this.dispatchEvent(VT));
407
408
  }
408
- function mA(s) {
409
+ function vA(s) {
409
410
  this.enabled !== !1 && this._handleKeyDown(s);
410
411
  }
411
- function vA(s) {
412
+ function gA(s) {
412
413
  switch (this._trackPointer(s), this._pointers.length) {
413
414
  case 1:
414
415
  switch (this.touches.ONE) {
@@ -443,7 +444,7 @@ function vA(s) {
443
444
  }
444
445
  this.state !== Ie.NONE && this.dispatchEvent(l2);
445
446
  }
446
- function gA(s) {
447
+ function bA(s) {
447
448
  switch (this._trackPointer(s), this.state) {
448
449
  case Ie.TOUCH_ROTATE:
449
450
  if (this.enableRotate === !1) return;
@@ -465,16 +466,16 @@ function gA(s) {
465
466
  this.state = Ie.NONE;
466
467
  }
467
468
  }
468
- function bA(s) {
469
+ function yA(s) {
469
470
  this.enabled !== !1 && s.preventDefault();
470
471
  }
471
- function yA(s) {
472
+ function _A(s) {
472
473
  s.key === "Control" && (this._controlActive = !0, this.domElement.getRootNode().addEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
473
474
  }
474
- function _A(s) {
475
+ function SA(s) {
475
476
  s.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
476
477
  }
477
- function SA(s) {
478
+ function wA(s) {
478
479
  const l = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), c = s.clone();
479
480
  return GT(s, c, function(p, b) {
480
481
  l.set(b, p), o.set(p, b);
@@ -491,7 +492,7 @@ function GT(s, l, o) {
491
492
  for (let c = 0; c < s.children.length; c++)
492
493
  GT(s.children[c], l.children[c], o);
493
494
  }
494
- function wA(s) {
495
+ function EA(s) {
495
496
  return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
496
497
  }
497
498
  var p_ = { exports: {} }, r0 = {}, m_ = { exports: {} }, bw = {};
@@ -505,7 +506,7 @@ var p_ = { exports: {} }, r0 = {}, m_ = { exports: {} }, bw = {};
505
506
  * LICENSE file in the root directory of this source tree.
506
507
  */
507
508
  var ix;
508
- function EA() {
509
+ function CA() {
509
510
  return ix || (ix = 1, (function(s) {
510
511
  function l(H, lt) {
511
512
  var bt = H.length;
@@ -735,7 +736,7 @@ var yw = {};
735
736
  * LICENSE file in the root directory of this source tree.
736
737
  */
737
738
  var ox;
738
- function CA() {
739
+ function xA() {
739
740
  return ox || (ox = 1, (function(s) {
740
741
  process.env.NODE_ENV !== "production" && (function() {
741
742
  function l() {
@@ -959,7 +960,7 @@ function CA() {
959
960
  }
960
961
  var sx;
961
962
  function qT() {
962
- return sx || (sx = 1, process.env.NODE_ENV === "production" ? m_.exports = EA() : m_.exports = CA()), m_.exports;
963
+ return sx || (sx = 1, process.env.NODE_ENV === "production" ? m_.exports = CA() : m_.exports = xA()), m_.exports;
963
964
  }
964
965
  /**
965
966
  * @license React
@@ -971,7 +972,7 @@ function qT() {
971
972
  * LICENSE file in the root directory of this source tree.
972
973
  */
973
974
  var rx;
974
- function xA() {
975
+ function TA() {
975
976
  if (rx) return r0;
976
977
  rx = 1;
977
978
  var s = qT(), l = B_, o = j_;
@@ -10754,7 +10755,7 @@ var u0 = {};
10754
10755
  * LICENSE file in the root directory of this source tree.
10755
10756
  */
10756
10757
  var ux;
10757
- function TA() {
10758
+ function DA() {
10758
10759
  return ux || (ux = 1, process.env.NODE_ENV !== "production" && (function() {
10759
10760
  function s(t, e) {
10760
10761
  for (t = t.memoizedState; t !== null && 0 < e; )
@@ -27799,7 +27800,7 @@ You might need to use a local HTTP server (instead of file://): https://react.de
27799
27800
  })()), u0;
27800
27801
  }
27801
27802
  var cx;
27802
- function DA() {
27803
+ function zA() {
27803
27804
  if (cx) return p_.exports;
27804
27805
  cx = 1;
27805
27806
  function s() {
@@ -27813,24 +27814,24 @@ function DA() {
27813
27814
  }
27814
27815
  }
27815
27816
  }
27816
- return process.env.NODE_ENV === "production" ? (s(), p_.exports = xA()) : p_.exports = TA(), p_.exports;
27817
+ return process.env.NODE_ENV === "production" ? (s(), p_.exports = TA()) : p_.exports = DA(), p_.exports;
27817
27818
  }
27818
- var zA = DA();
27819
- function MA(s, l) {
27819
+ var MA = zA();
27820
+ function AA(s, l) {
27820
27821
  const o = getComputedStyle(s), c = parseFloat(o.fontSize);
27821
27822
  return l * c;
27822
27823
  }
27823
- function AA(s, l) {
27824
+ function RA(s, l) {
27824
27825
  const o = getComputedStyle(s.ownerDocument.body), c = parseFloat(o.fontSize);
27825
27826
  return l * c;
27826
27827
  }
27827
- function RA(s) {
27828
+ function OA(s) {
27828
27829
  return s / 100 * window.innerHeight;
27829
27830
  }
27830
- function OA(s) {
27831
+ function UA(s) {
27831
27832
  return s / 100 * window.innerWidth;
27832
27833
  }
27833
- function UA(s) {
27834
+ function NA(s) {
27834
27835
  switch (typeof s) {
27835
27836
  case "number":
27836
27837
  return [s, "px"];
@@ -27846,7 +27847,7 @@ function _0({
27846
27847
  styleProp: o
27847
27848
  }) {
27848
27849
  let c;
27849
- const [p, b] = UA(o);
27850
+ const [p, b] = NA(o);
27850
27851
  switch (b) {
27851
27852
  case "%": {
27852
27853
  c = p / 100 * s;
@@ -27857,19 +27858,19 @@ function _0({
27857
27858
  break;
27858
27859
  }
27859
27860
  case "rem": {
27860
- c = AA(l, p);
27861
+ c = RA(l, p);
27861
27862
  break;
27862
27863
  }
27863
27864
  case "em": {
27864
- c = MA(l, p);
27865
+ c = AA(l, p);
27865
27866
  break;
27866
27867
  }
27867
27868
  case "vh": {
27868
- c = RA(p);
27869
+ c = OA(p);
27869
27870
  break;
27870
27871
  }
27871
27872
  case "vw": {
27872
- c = OA(p);
27873
+ c = UA(p);
27873
27874
  break;
27874
27875
  }
27875
27876
  }
@@ -27951,14 +27952,14 @@ function Fe(s, l = "Assertion error") {
27951
27952
  }
27952
27953
  function Qw(s, l) {
27953
27954
  return Array.from(l).sort(
27954
- s === "horizontal" ? NA : LA
27955
+ s === "horizontal" ? LA : HA
27955
27956
  );
27956
27957
  }
27957
- function NA(s, l) {
27958
+ function LA(s, l) {
27958
27959
  const o = s.element.offsetLeft - l.element.offsetLeft;
27959
27960
  return o !== 0 ? o : s.element.offsetWidth - l.element.offsetWidth;
27960
27961
  }
27961
- function LA(s, l) {
27962
+ function HA(s, l) {
27962
27963
  const o = s.element.offsetTop - l.element.offsetTop;
27963
27964
  return o !== 0 ? o : s.element.offsetHeight - l.element.offsetHeight;
27964
27965
  }
@@ -27977,7 +27978,7 @@ function YT(s, l) {
27977
27978
  )
27978
27979
  };
27979
27980
  }
27980
- function HA({
27981
+ function BA({
27981
27982
  orientation: s,
27982
27983
  rects: l,
27983
27984
  targetRect: o
@@ -27994,7 +27995,7 @@ function HA({
27994
27995
  return Fe(p, "No rect found"), p;
27995
27996
  }
27996
27997
  let v_;
27997
- function BA() {
27998
+ function jA() {
27998
27999
  return v_ === void 0 && (typeof matchMedia == "function" ? v_ = !!matchMedia("(pointer:coarse)").matches : v_ = !1), v_;
27999
28000
  }
28000
28001
  function XT(s) {
@@ -28041,7 +28042,7 @@ function XT(s) {
28041
28042
  break;
28042
28043
  }
28043
28044
  case 1: {
28044
- const dt = N[0], R = HA({
28045
+ const dt = N[0], R = BA({
28045
28046
  orientation: o,
28046
28047
  rects: [j, F],
28047
28048
  targetRect: dt.element.getBoundingClientRect()
@@ -28073,7 +28074,7 @@ function XT(s) {
28073
28074
  ];
28074
28075
  for (const W of J) {
28075
28076
  let k = "width" in W ? W : W.element.getBoundingClientRect();
28076
- const dt = BA() ? s.resizeTargetMinimumSize.coarse : s.resizeTargetMinimumSize.fine;
28077
+ const dt = jA() ? s.resizeTargetMinimumSize.coarse : s.resizeTargetMinimumSize.fine;
28077
28078
  if (k.width < dt) {
28078
28079
  const B = dt - k.width;
28079
28080
  k = new DOMRect(
@@ -28160,7 +28161,7 @@ class PT {
28160
28161
  pf = new WeakMap();
28161
28162
  let lr = /* @__PURE__ */ new Map();
28162
28163
  const QT = new PT();
28163
- function jA(s) {
28164
+ function VA(s) {
28164
28165
  lr = new Map(lr), lr.delete(s);
28165
28166
  }
28166
28167
  function fx(s, l) {
@@ -28191,7 +28192,7 @@ function Eu(s, l) {
28191
28192
  next: l
28192
28193
  });
28193
28194
  }
28194
- function VA(s, l, o) {
28195
+ function GA(s, l, o) {
28195
28196
  let c, p = {
28196
28197
  x: 1 / 0,
28197
28198
  y: 1 / 0
@@ -28214,10 +28215,10 @@ function VA(s, l, o) {
28214
28215
  hitRegion: c
28215
28216
  } : void 0;
28216
28217
  }
28217
- function GA(s) {
28218
+ function qA(s) {
28218
28219
  return s !== null && typeof s == "object" && "nodeType" in s && s.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
28219
28220
  }
28220
- function qA(s, l) {
28221
+ function kA(s, l) {
28221
28222
  if (s === l) throw new Error("Cannot compare node with itself");
28222
28223
  const o = {
28223
28224
  a: px(s),
@@ -28248,20 +28249,20 @@ function qA(s, l) {
28248
28249
  }
28249
28250
  return Math.sign(p.a - p.b);
28250
28251
  }
28251
- const kA = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
28252
- function YA(s) {
28252
+ const YA = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
28253
+ function XA(s) {
28253
28254
  const l = getComputedStyle(KT(s) ?? s).display;
28254
28255
  return l === "flex" || l === "inline-flex";
28255
28256
  }
28256
- function XA(s) {
28257
+ function PA(s) {
28257
28258
  const l = getComputedStyle(s);
28258
- return !!(l.position === "fixed" || l.zIndex !== "auto" && (l.position !== "static" || YA(s)) || +l.opacity < 1 || "transform" in l && l.transform !== "none" || "webkitTransform" in l && l.webkitTransform !== "none" || "mixBlendMode" in l && l.mixBlendMode !== "normal" || "filter" in l && l.filter !== "none" || "webkitFilter" in l && l.webkitFilter !== "none" || "isolation" in l && l.isolation === "isolate" || kA.test(l.willChange) || l.webkitOverflowScrolling === "touch");
28259
+ return !!(l.position === "fixed" || l.zIndex !== "auto" && (l.position !== "static" || XA(s)) || +l.opacity < 1 || "transform" in l && l.transform !== "none" || "webkitTransform" in l && l.webkitTransform !== "none" || "mixBlendMode" in l && l.mixBlendMode !== "normal" || "filter" in l && l.filter !== "none" || "webkitFilter" in l && l.webkitFilter !== "none" || "isolation" in l && l.isolation === "isolate" || YA.test(l.willChange) || l.webkitOverflowScrolling === "touch");
28259
28260
  }
28260
28261
  function dx(s) {
28261
28262
  let l = s.length;
28262
28263
  for (; l--; ) {
28263
28264
  const o = s[l];
28264
- if (Fe(o, "Missing node"), XA(o)) return o;
28265
+ if (Fe(o, "Missing node"), PA(o)) return o;
28265
28266
  }
28266
28267
  return null;
28267
28268
  }
@@ -28276,24 +28277,24 @@ function px(s) {
28276
28277
  }
28277
28278
  function KT(s) {
28278
28279
  const { parentNode: l } = s;
28279
- return GA(l) ? l.host : l;
28280
+ return qA(l) ? l.host : l;
28280
28281
  }
28281
- function PA(s, l) {
28282
+ function QA(s, l) {
28282
28283
  return s.x < l.x + l.width && s.x + s.width > l.x && s.y < l.y + l.height && s.y + s.height > l.y;
28283
28284
  }
28284
- function QA({
28285
+ function ZA({
28285
28286
  groupElement: s,
28286
28287
  hitRegion: l,
28287
28288
  pointerEventTarget: o
28288
28289
  }) {
28289
28290
  if (!kT(o) || o.contains(s) || s.contains(o))
28290
28291
  return !0;
28291
- if (qA(o, s) > 0) {
28292
+ if (kA(o, s) > 0) {
28292
28293
  let c = o;
28293
28294
  for (; c; ) {
28294
28295
  if (c.contains(s))
28295
28296
  return !0;
28296
- if (PA(c.getBoundingClientRect(), l))
28297
+ if (QA(c.getBoundingClientRect(), l))
28297
28298
  return !1;
28298
28299
  c = c.parentElement;
28299
28300
  }
@@ -28305,18 +28306,18 @@ function i2(s, l) {
28305
28306
  return l.forEach((c, p) => {
28306
28307
  if (p.disabled)
28307
28308
  return;
28308
- const b = XT(p), S = VA(p.orientation, b, {
28309
+ const b = XT(p), S = GA(p.orientation, b, {
28309
28310
  x: s.clientX,
28310
28311
  y: s.clientY
28311
28312
  });
28312
- S && S.distance.x <= 0 && S.distance.y <= 0 && QA({
28313
+ S && S.distance.x <= 0 && S.distance.y <= 0 && ZA({
28313
28314
  groupElement: p.element,
28314
28315
  hitRegion: S.hitRegion.rect,
28315
28316
  pointerEventTarget: s.target
28316
28317
  }) && o.push(S.hitRegion);
28317
28318
  }), o;
28318
28319
  }
28319
- function ZA(s, l) {
28320
+ function KA(s, l) {
28320
28321
  if (s.length !== l.length)
28321
28322
  return !1;
28322
28323
  for (let o = 0; o < s.length; o++)
@@ -28474,7 +28475,7 @@ function o2({
28474
28475
  s < 0 ? O-- : O++;
28475
28476
  }
28476
28477
  }
28477
- if (ZA(C, x))
28478
+ if (KA(C, x))
28478
28479
  return p;
28479
28480
  {
28480
28481
  const O = s < 0 ? M : D, G = _[O];
@@ -28842,7 +28843,7 @@ const WT = new PT();
28842
28843
  function dh() {
28843
28844
  return Fm;
28844
28845
  }
28845
- function KA(s) {
28846
+ function JA(s) {
28846
28847
  const l = Fm, o = { ...Fm };
28847
28848
  o.cursorFlags = s, Fm = o, WT.emit("change", {
28848
28849
  prev: l,
@@ -28875,13 +28876,13 @@ function gx(s) {
28875
28876
  state: "active"
28876
28877
  }), o.length && s.preventDefault();
28877
28878
  }
28878
- const JA = (s) => s, _w = () => {
28879
+ const $A = (s) => s, _w = () => {
28879
28880
  }, FT = 1, IT = 2, tD = 4, eD = 8, bx = 3, yx = 12;
28880
28881
  let g_;
28881
28882
  function _x() {
28882
28883
  return g_ === void 0 && (g_ = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (g_ = !0)), g_;
28883
28884
  }
28884
- function $A({
28885
+ function WA({
28885
28886
  cursorFlags: s,
28886
28887
  groups: l,
28887
28888
  state: o
@@ -28934,7 +28935,7 @@ function s2(s) {
28934
28935
  switch (c.state) {
28935
28936
  case "active":
28936
28937
  case "hover": {
28937
- const p = $A({
28938
+ const p = WA({
28938
28939
  cursorFlags: c.cursorFlags,
28939
28940
  groups: c.hitRegions.map((S) => S.group),
28940
28941
  state: c.state
@@ -29010,7 +29011,7 @@ function nD({
29010
29011
  }
29011
29012
  });
29012
29013
  let C = 0;
29013
- l.movementX === 0 ? C |= S & bx : C |= _ & bx, l.movementY === 0 ? C |= S & yx : C |= _ & yx, KA(C), s2(s);
29014
+ l.movementX === 0 ? C |= S & bx : C |= _ & bx, l.movementY === 0 ? C |= S & yx : C |= _ & yx, JA(C), s2(s);
29014
29015
  }
29015
29016
  function wx(s) {
29016
29017
  const l = vh(), o = dh();
@@ -29119,7 +29120,7 @@ function Tx(s) {
29119
29120
  }
29120
29121
  return c;
29121
29122
  }
29122
- function WA(s, l, o) {
29123
+ function FA(s, l, o) {
29123
29124
  if (!o[0])
29124
29125
  return;
29125
29126
  const c = s.panels.find((C) => C.element === l);
@@ -29131,7 +29132,7 @@ function WA(s, l, o) {
29131
29132
  };
29132
29133
  c.mutableValues.prevSize = _, c.onResize(_, c.id, S);
29133
29134
  }
29134
- function FA(s, l) {
29135
+ function IA(s, l) {
29135
29136
  if (Object.keys(s).length !== Object.keys(l).length)
29136
29137
  return !1;
29137
29138
  for (const o in s)
@@ -29139,7 +29140,7 @@ function FA(s, l) {
29139
29140
  return !1;
29140
29141
  return !0;
29141
29142
  }
29142
- function IA({
29143
+ function tR({
29143
29144
  group: s,
29144
29145
  nextGroupSize: l,
29145
29146
  prevGroupSize: o,
@@ -29188,7 +29189,7 @@ function IA({
29188
29189
  }
29189
29190
  return D;
29190
29191
  }
29191
- function tR(s, l) {
29192
+ function eR(s, l) {
29192
29193
  const o = s.map((p) => p.id), c = Object.keys(l);
29193
29194
  if (o.length !== c.length)
29194
29195
  return !1;
@@ -29198,7 +29199,7 @@ function tR(s, l) {
29198
29199
  return !0;
29199
29200
  }
29200
29201
  const qm = /* @__PURE__ */ new Map();
29201
- function eR(s) {
29202
+ function nR(s) {
29202
29203
  let l = !0;
29203
29204
  Fe(
29204
29205
  s.element.ownerDocument.defaultView,
@@ -29215,7 +29216,7 @@ function eR(s) {
29215
29216
  const J = gf(s.id);
29216
29217
  if (!J)
29217
29218
  return;
29218
- const W = Pw(s), k = J.defaultLayoutDeferred ? Tx(W) : J.layout, dt = IA({
29219
+ const W = Pw(s), k = J.defaultLayoutDeferred ? Tx(W) : J.layout, dt = tR({
29219
29220
  group: s,
29220
29221
  nextGroupSize: F,
29221
29222
  prevGroupSize: J.groupSize,
@@ -29224,7 +29225,7 @@ function eR(s) {
29224
29225
  layout: dt,
29225
29226
  panelConstraints: W
29226
29227
  });
29227
- if (!J.defaultLayoutDeferred && fh(J.layout, R) && FA(
29228
+ if (!J.defaultLayoutDeferred && fh(J.layout, R) && IA(
29228
29229
  J.derivedPanelConstraints,
29229
29230
  W
29230
29231
  ) && J.groupSize === F)
@@ -29238,7 +29239,7 @@ function eR(s) {
29238
29239
  });
29239
29240
  }
29240
29241
  } else
29241
- WA(s, j, G);
29242
+ FA(s, j, G);
29242
29243
  }
29243
29244
  });
29244
29245
  b.observe(s.element), s.panels.forEach((L) => {
@@ -29249,7 +29250,7 @@ function eR(s) {
29249
29250
  });
29250
29251
  const S = nv({ group: s }), _ = Pw(s), C = s.panels.map(({ id: L }) => L).join(",");
29251
29252
  let x = s.mutableState.defaultLayout;
29252
- x && (tR(s.panels, x) || (x = void 0));
29253
+ x && (eR(s.panels, x) || (x = void 0));
29253
29254
  const D = s.mutableState.layouts[C] ?? x ?? Tx(_), M = w0({
29254
29255
  layout: D,
29255
29256
  panelConstraints: _
@@ -29276,7 +29277,7 @@ function eR(s) {
29276
29277
  l = !1, qm.set(
29277
29278
  A,
29278
29279
  Math.max(0, (qm.get(A) ?? 0) - 1)
29279
- ), jA(s), s.separators.forEach((L) => {
29280
+ ), VA(s), s.separators.forEach((L) => {
29280
29281
  L.element.removeEventListener("keydown", vx);
29281
29282
  }), qm.get(A) || (A.removeEventListener(
29282
29283
  "dblclick",
@@ -29289,7 +29290,7 @@ function eR(s) {
29289
29290
  ), A.removeEventListener("pointerleave", wx), A.removeEventListener("pointermove", Ex), A.removeEventListener("pointerout", Cx), A.removeEventListener("pointerup", xx, !0)), b.disconnect();
29290
29291
  };
29291
29292
  }
29292
- function nR() {
29293
+ function aR() {
29293
29294
  const [s, l] = Ae({}), o = or(() => l({}), []);
29294
29295
  return [s, o];
29295
29296
  }
@@ -29335,10 +29336,10 @@ function iD(s) {
29335
29336
  }, [s]), l.current;
29336
29337
  }
29337
29338
  const oD = QM(null);
29338
- function aR(s, l) {
29339
+ function lR(s, l) {
29339
29340
  const o = Ee({
29340
29341
  getLayout: () => ({}),
29341
- setLayout: JA
29342
+ setLayout: $A
29342
29343
  });
29343
29344
  RT(l, () => o.current, []), lv(() => {
29344
29345
  Object.assign(
@@ -29373,14 +29374,14 @@ function Zw({
29373
29374
  fh(L.current.onLayoutChange, pt) || (L.current.onLayoutChange = pt, C == null || C(pt));
29374
29375
  }), G = S0((pt) => {
29375
29376
  fh(L.current.onLayoutChanged, pt) || (L.current.onLayoutChanged = pt, x == null || x(pt));
29376
- }), j = aD(_), F = Ee(null), [J, W] = nR(), k = Ee({
29377
+ }), j = aD(_), F = Ee(null), [J, W] = aR(), k = Ee({
29377
29378
  lastExpandedPanelSizes: {},
29378
29379
  layouts: {},
29379
29380
  panels: [],
29380
29381
  resizeTargetMinimumSize: M,
29381
29382
  separators: []
29382
29383
  }), dt = lD(F, b);
29383
- aR(j, S);
29384
+ lR(j, S);
29384
29385
  const R = S0(
29385
29386
  (pt, U) => {
29386
29387
  const et = dh(), ht = fx(pt), xt = gf(pt);
@@ -29486,7 +29487,7 @@ function Zw({
29486
29487
  separators: U.separators
29487
29488
  };
29488
29489
  at.current = ht;
29489
- const xt = eR(ht), { defaultLayoutDeferred: H, derivedPanelConstraints: lt, layout: bt } = gf(ht.id, !0);
29490
+ const xt = nR(ht), { defaultLayoutDeferred: H, derivedPanelConstraints: lt, layout: bt } = gf(ht.id, !0);
29490
29491
  !H && lt.length > 0 && (O(bt), G(bt));
29491
29492
  const Dt = ZT(j, (tt) => {
29492
29493
  const { defaultLayoutDeferred: St, derivedPanelConstraints: zt, layout: Et } = tt.next;
@@ -29556,14 +29557,14 @@ Zw.displayName = "Group";
29556
29557
  function Sw(s, l) {
29557
29558
  return `react-resizable-panels:${[s, ...l].join(":")}`;
29558
29559
  }
29559
- function lR({
29560
+ function iR({
29560
29561
  debounceSaveMs: s = 100,
29561
29562
  panelIds: l,
29562
29563
  storage: o = localStorage,
29563
29564
  ...c
29564
29565
  }) {
29565
29566
  const p = l !== void 0, b = "id" in c ? c.id : c.groupId, S = Sw(b, l ?? []), _ = MT(
29566
- iR,
29567
+ oR,
29567
29568
  () => o.getItem(S),
29568
29569
  () => o.getItem(S)
29569
29570
  ), C = fs(
@@ -29613,7 +29614,7 @@ function lR({
29613
29614
  onLayoutChanged: M
29614
29615
  };
29615
29616
  }
29616
- function iR() {
29617
+ function oR() {
29617
29618
  return function() {
29618
29619
  };
29619
29620
  }
@@ -29624,7 +29625,7 @@ function sD() {
29624
29625
  "Group Context not found; did you render a Panel or Separator outside of a Group?"
29625
29626
  ), s;
29626
29627
  }
29627
- function oR(s, l) {
29628
+ function sR(s, l) {
29628
29629
  const { id: o } = sD(), c = Ee({
29629
29630
  collapse: _w,
29630
29631
  expand: _w,
@@ -29711,7 +29712,7 @@ function Jm({
29711
29712
  j
29712
29713
  ]), Bn(() => {
29713
29714
  B(G, !!b);
29714
- }, [b, G, B]), oR(G, A);
29715
+ }, [b, G, B]), sR(G, A);
29715
29716
  const pt = () => {
29716
29717
  const ht = W(k, G);
29717
29718
  if (ht)
@@ -29736,7 +29737,7 @@ function Jm({
29736
29737
  id: G,
29737
29738
  ref: J,
29738
29739
  style: {
29739
- ...sR,
29740
+ ...rR,
29740
29741
  display: "flex",
29741
29742
  flexBasis: 0,
29742
29743
  flexShrink: 1,
@@ -29766,7 +29767,7 @@ function Jm({
29766
29767
  );
29767
29768
  }
29768
29769
  Jm.displayName = "Panel";
29769
- const sR = {
29770
+ const rR = {
29770
29771
  minHeight: 0,
29771
29772
  maxHeight: "100%",
29772
29773
  height: "auto",
@@ -29777,20 +29778,20 @@ const sR = {
29777
29778
  borderWidth: 0,
29778
29779
  padding: 0,
29779
29780
  margin: 0
29780
- }, rR = "_activityBar_4dnwm_1", uR = "_icon_4dnwm_14", cR = "_active_4dnwm_29", ww = {
29781
- activityBar: rR,
29782
- icon: uR,
29783
- active: cR
29784
- }, fR = [
29781
+ }, uR = "_activityBar_4dnwm_1", cR = "_icon_4dnwm_14", fR = "_active_4dnwm_29", ww = {
29782
+ activityBar: uR,
29783
+ icon: cR,
29784
+ active: fR
29785
+ }, dR = [
29785
29786
  { id: "explorer", label: "Explorer", path: "M17.5 0h-9L7 1.5V6H2.5L1 7.5v13l1.5 1.5h13l1.5-1.5V16h4.5l1.5-1.5v-13L22 0h-4.5zM16 20.5H2.5V7.5H7v8L8.5 17h7.5v3.5zm5.5-6H8.5V1.5h9v4.5H22v8.5z" },
29786
29787
  { id: "search", label: "Search", path: "M15.25 0a8.25 8.25 0 0 0-6.18 13.72L1 21.79l1.42 1.42 8.07-8.07A8.25 8.25 0 1 0 15.25 0zm0 15a6.75 6.75 0 1 1 0-13.5 6.75 6.75 0 0 1 0 13.5z" },
29787
29788
  { id: "git", label: "Source Control", path: "M21.007 8.222A3.738 3.738 0 0 0 15.045 5.2a3.737 3.737 0 0 0 1.156 6.583 2.988 2.988 0 0 1-2.668 1.67h-2.99a4.456 4.456 0 0 0-2.989 1.165V7.4a3.737 3.737 0 1 0-1.494 0v9.117a3.776 3.776 0 1 0 1.816.099 2.99 2.99 0 0 1 2.668-1.667h2.99a4.484 4.484 0 0 0 4.223-3.039 3.736 3.736 0 0 0 3.25-3.687zM4.565 3.738a2.242 2.242 0 1 1 4.484 0 2.242 2.242 0 0 1-4.484 0zm4.484 16.441a2.242 2.242 0 1 1-4.484 0 2.242 2.242 0 0 1 4.484 0zm8.221-9.715a2.242 2.242 0 1 1 0-4.485 2.242 2.242 0 0 1 0 4.485z" },
29788
29789
  { id: "extensions", label: "Extensions", path: "M13.5 1.5L15 0h7.5L24 1.5V9l-1.5 1.5H15L13.5 9V1.5zm1.5 0V9h7.5V1.5H15zM0 15L1.5 13.5H9L10.5 15v7.5L9 24H1.5L0 22.5V15zm1.5 0v7.5H9V15H1.5zm6-13.5L9 0h7.5L18 1.5V9l-1.5 1.5H9L7.5 9V1.5zM9 1.5V9h7.5V1.5H9zM0 1.5L1.5 0H9l1.5 1.5V9L9 10.5H1.5L0 9V1.5zm1.5 0V9H9V1.5H1.5z" },
29789
29790
  { id: "settings", label: "Settings", path: "M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94L14.4.37A.49.49 0 0 0 13.92 0h-3.84a.49.49 0 0 0-.48.37l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96a.49.49 0 0 0-.59.22L2.72 6.87a.48.48 0 0 0 .12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94L2.84 12.52a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.37.48.37h3.84c.24 0 .44-.14.48-.37l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6A3.6 3.6 0 1 1 12 8.4a3.6 3.6 0 0 1 0 7.2z" }
29790
29791
  ];
29791
- function dR() {
29792
+ function hR() {
29792
29793
  const [s, l] = Ae("explorer");
29793
- return /* @__PURE__ */ $("div", { className: ww.activityBar, children: fR.map((o) => /* @__PURE__ */ $(
29794
+ return /* @__PURE__ */ $("div", { className: ww.activityBar, children: dR.map((o) => /* @__PURE__ */ $(
29794
29795
  "div",
29795
29796
  {
29796
29797
  title: o.label,
@@ -29811,7 +29812,7 @@ var c0 = { exports: {} }, Ew = {}, b_ = { exports: {} }, y_ = { exports: {} }, X
29811
29812
  * LICENSE file in the root directory of this source tree.
29812
29813
  */
29813
29814
  var Dx;
29814
- function hR() {
29815
+ function pR() {
29815
29816
  if (Dx) return Xe;
29816
29817
  Dx = 1;
29817
29818
  var s = typeof Symbol == "function" && Symbol.for, l = s ? Symbol.for("react.element") : 60103, o = s ? Symbol.for("react.portal") : 60106, c = s ? Symbol.for("react.fragment") : 60107, p = s ? Symbol.for("react.strict_mode") : 60108, b = s ? Symbol.for("react.profiler") : 60114, S = s ? Symbol.for("react.provider") : 60109, _ = s ? Symbol.for("react.context") : 60110, C = s ? Symbol.for("react.async_mode") : 60111, x = s ? Symbol.for("react.concurrent_mode") : 60111, D = s ? Symbol.for("react.forward_ref") : 60112, M = s ? Symbol.for("react.suspense") : 60113, A = s ? Symbol.for("react.suspense_list") : 60120, N = s ? Symbol.for("react.memo") : 60115, L = s ? Symbol.for("react.lazy") : 60116, O = s ? Symbol.for("react.block") : 60121, G = s ? Symbol.for("react.fundamental") : 60117, j = s ? Symbol.for("react.responder") : 60118, F = s ? Symbol.for("react.scope") : 60119;
@@ -29886,7 +29887,7 @@ var Pe = {};
29886
29887
  * LICENSE file in the root directory of this source tree.
29887
29888
  */
29888
29889
  var zx;
29889
- function pR() {
29890
+ function mR() {
29890
29891
  return zx || (zx = 1, process.env.NODE_ENV !== "production" && (function() {
29891
29892
  var s = typeof Symbol == "function" && Symbol.for, l = s ? Symbol.for("react.element") : 60103, o = s ? Symbol.for("react.portal") : 60106, c = s ? Symbol.for("react.fragment") : 60107, p = s ? Symbol.for("react.strict_mode") : 60108, b = s ? Symbol.for("react.profiler") : 60114, S = s ? Symbol.for("react.provider") : 60109, _ = s ? Symbol.for("react.context") : 60110, C = s ? Symbol.for("react.async_mode") : 60111, x = s ? Symbol.for("react.concurrent_mode") : 60111, D = s ? Symbol.for("react.forward_ref") : 60112, M = s ? Symbol.for("react.suspense") : 60113, A = s ? Symbol.for("react.suspense_list") : 60120, N = s ? Symbol.for("react.memo") : 60115, L = s ? Symbol.for("react.lazy") : 60116, O = s ? Symbol.for("react.block") : 60121, G = s ? Symbol.for("react.fundamental") : 60117, j = s ? Symbol.for("react.responder") : 60118, F = s ? Symbol.for("react.scope") : 60119;
29892
29893
  function J(Mt) {
@@ -29970,7 +29971,7 @@ function pR() {
29970
29971
  }
29971
29972
  var Mx;
29972
29973
  function rD() {
29973
- return Mx || (Mx = 1, process.env.NODE_ENV === "production" ? y_.exports = hR() : y_.exports = pR()), y_.exports;
29974
+ return Mx || (Mx = 1, process.env.NODE_ENV === "production" ? y_.exports = pR() : y_.exports = mR()), y_.exports;
29974
29975
  }
29975
29976
  /*
29976
29977
  object-assign
@@ -29978,7 +29979,7 @@ object-assign
29978
29979
  @license MIT
29979
29980
  */
29980
29981
  var Cw, Ax;
29981
- function mR() {
29982
+ function vR() {
29982
29983
  if (Ax) return Cw;
29983
29984
  Ax = 1;
29984
29985
  var s = Object.getOwnPropertySymbols, l = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
@@ -30035,7 +30036,7 @@ function uD() {
30035
30036
  return Ox || (Ox = 1, Tw = Function.call.bind(Object.prototype.hasOwnProperty)), Tw;
30036
30037
  }
30037
30038
  var Dw, Ux;
30038
- function vR() {
30039
+ function gR() {
30039
30040
  if (Ux) return Dw;
30040
30041
  Ux = 1;
30041
30042
  var s = function() {
@@ -30084,10 +30085,10 @@ function vR() {
30084
30085
  }, Dw = p, Dw;
30085
30086
  }
30086
30087
  var zw, Nx;
30087
- function gR() {
30088
+ function bR() {
30088
30089
  if (Nx) return zw;
30089
30090
  Nx = 1;
30090
- var s = rD(), l = mR(), o = /* @__PURE__ */ r2(), c = /* @__PURE__ */ uD(), p = /* @__PURE__ */ vR(), b = function() {
30091
+ var s = rD(), l = vR(), o = /* @__PURE__ */ r2(), c = /* @__PURE__ */ uD(), p = /* @__PURE__ */ gR(), b = function() {
30091
30092
  };
30092
30093
  process.env.NODE_ENV !== "production" && (b = function(_) {
30093
30094
  var C = "Warning: " + _;
@@ -30405,7 +30406,7 @@ Valid keys: ` + JSON.stringify(Object.keys(tt), null, " ")
30405
30406
  }, zw;
30406
30407
  }
30407
30408
  var Mw, Lx;
30408
- function bR() {
30409
+ function yR() {
30409
30410
  if (Lx) return Mw;
30410
30411
  Lx = 1;
30411
30412
  var s = /* @__PURE__ */ r2();
@@ -30457,13 +30458,13 @@ function cD() {
30457
30458
  if (Hx) return b_.exports;
30458
30459
  if (Hx = 1, process.env.NODE_ENV !== "production") {
30459
30460
  var s = rD(), l = !0;
30460
- b_.exports = /* @__PURE__ */ gR()(s.isElement, l);
30461
+ b_.exports = /* @__PURE__ */ bR()(s.isElement, l);
30461
30462
  } else
30462
- b_.exports = /* @__PURE__ */ bR()();
30463
+ b_.exports = /* @__PURE__ */ yR()();
30463
30464
  return b_.exports;
30464
30465
  }
30465
30466
  var __ = { exports: {} }, Bx;
30466
- function yR() {
30467
+ function _R() {
30467
30468
  if (Bx) return __.exports;
30468
30469
  Bx = 1;
30469
30470
  function s(o) {
@@ -30507,7 +30508,7 @@ function V_() {
30507
30508
  return sf;
30508
30509
  }
30509
30510
  var rf = {}, Vx;
30510
- function _R() {
30511
+ function SR() {
30511
30512
  if (Vx) return rf;
30512
30513
  Vx = 1, Object.defineProperty(rf, "__esModule", {
30513
30514
  value: !0
@@ -30543,7 +30544,7 @@ function u2() {
30543
30544
  Gx = 1, Object.defineProperty(Kn, "__esModule", {
30544
30545
  value: !0
30545
30546
  }), Kn.addClassName = k, Kn.addEvent = S, Kn.addUserSelectStyles = F, Kn.createCSSTransform = N, Kn.createSVGTransform = L, Kn.getTouch = G, Kn.getTouchIdentifier = j, Kn.getTranslation = O, Kn.innerHeight = D, Kn.innerWidth = M, Kn.matchesSelector = p, Kn.matchesSelectorAndParentsTo = b, Kn.offsetXYFromParent = A, Kn.outerHeight = C, Kn.outerWidth = x, Kn.removeClassName = dt, Kn.removeEvent = _, Kn.scheduleRemoveUserSelectStyles = J;
30546
- var s = V_(), l = o(_R());
30547
+ var s = V_(), l = o(SR());
30547
30548
  function o(R, B) {
30548
30549
  if (typeof WeakMap == "function") var rt = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap();
30549
30550
  return (o = function(pt, U) {
@@ -30784,7 +30785,7 @@ function dD() {
30784
30785
  return S_;
30785
30786
  }
30786
30787
  var Yx;
30787
- function SR() {
30788
+ function wR() {
30788
30789
  if (Yx) return f0;
30789
30790
  Yx = 1, Object.defineProperty(f0, "__esModule", {
30790
30791
  value: !0
@@ -31085,7 +31086,7 @@ function SR() {
31085
31086
  }), f0;
31086
31087
  }
31087
31088
  var Xx;
31088
- function wR() {
31089
+ function ER() {
31089
31090
  return Xx || (Xx = 1, (function(s) {
31090
31091
  Object.defineProperty(s, "__esModule", {
31091
31092
  value: !0
@@ -31095,7 +31096,7 @@ function wR() {
31095
31096
  return C.default;
31096
31097
  }
31097
31098
  }), s.default = void 0;
31098
- var l = M(B_), o = D(/* @__PURE__ */ cD()), c = D(j_), p = yR(), b = u2(), S = fD(), _ = V_(), C = D(SR()), x = D(dD());
31099
+ var l = M(B_), o = D(/* @__PURE__ */ cD()), c = D(j_), p = _R(), b = u2(), S = fD(), _ = V_(), C = D(wR()), x = D(dD());
31099
31100
  function D(j) {
31100
31101
  return j && j.__esModule ? j : { default: j };
31101
31102
  }
@@ -31399,17 +31400,17 @@ function wR() {
31399
31400
  })(Ew)), Ew;
31400
31401
  }
31401
31402
  var Px;
31402
- function ER() {
31403
+ function CR() {
31403
31404
  if (Px) return c0.exports;
31404
31405
  Px = 1;
31405
31406
  const {
31406
31407
  default: s,
31407
31408
  DraggableCore: l
31408
- } = wR();
31409
+ } = ER();
31409
31410
  return c0.exports = s, c0.exports.default = s, c0.exports.DraggableCore = l, c0.exports;
31410
31411
  }
31411
- var CR = ER();
31412
- const xR = /* @__PURE__ */ wA(CR);
31412
+ var xR = CR();
31413
+ const TR = /* @__PURE__ */ EA(xR);
31413
31414
  var da = function() {
31414
31415
  return da = Object.assign || function(s) {
31415
31416
  for (var l, o = 1, c = arguments.length; o < c; o++) {
@@ -31435,7 +31436,7 @@ var da = function() {
31435
31436
  height: "20px",
31436
31437
  position: "absolute",
31437
31438
  zIndex: 1
31438
- }, TR = {
31439
+ }, DR = {
31439
31440
  top: da(da({}, Qx), { top: "-5px" }),
31440
31441
  right: da(da({}, Zx), { left: void 0, right: "-5px" }),
31441
31442
  bottom: da(da({}, Qx), { top: void 0, bottom: "-5px" }),
@@ -31444,16 +31445,16 @@ var da = function() {
31444
31445
  bottomRight: da(da({}, w_), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
31445
31446
  bottomLeft: da(da({}, w_), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
31446
31447
  topLeft: da(da({}, w_), { left: "-10px", top: "-10px", cursor: "nw-resize" })
31447
- }, DR = OT(function(s) {
31448
+ }, zR = OT(function(s) {
31448
31449
  var l = s.onResizeStart, o = s.direction, c = s.children, p = s.replaceStyles, b = s.className, S = or(function(x) {
31449
31450
  l(x, o);
31450
31451
  }, [l, o]), _ = or(function(x) {
31451
31452
  l(x, o);
31452
31453
  }, [l, o]), C = fs(function() {
31453
- return da(da({ position: "absolute", userSelect: "none" }, TR[o]), p ?? {});
31454
+ return da(da({ position: "absolute", userSelect: "none" }, DR[o]), p ?? {});
31454
31455
  }, [p, o]);
31455
31456
  return $("div", { className: b || void 0, style: C, onMouseDown: S, onTouchStart: _, children: c });
31456
- }), zR = /* @__PURE__ */ (function() {
31457
+ }), MR = /* @__PURE__ */ (function() {
31457
31458
  var s = function(l, o) {
31458
31459
  return s = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, p) {
31459
31460
  c.__proto__ = p;
@@ -31478,7 +31479,7 @@ var da = function() {
31478
31479
  }
31479
31480
  return s;
31480
31481
  }, nr.apply(this, arguments);
31481
- }, MR = {
31482
+ }, AR = {
31482
31483
  width: "auto",
31483
31484
  height: "auto"
31484
31485
  }, E_ = function(s, l, o) {
@@ -31490,7 +31491,7 @@ var da = function() {
31490
31491
  return new RegExp(s, "i").test(l);
31491
31492
  }, C_ = function(s) {
31492
31493
  return !!(s.touches && s.touches.length);
31493
- }, AR = function(s) {
31494
+ }, RR = function(s) {
31494
31495
  return !!((s.clientX || s.clientX === 0) && (s.clientY || s.clientY === 0));
31495
31496
  }, Jx = function(s, l, o) {
31496
31497
  o === void 0 && (o = 0);
@@ -31518,16 +31519,16 @@ var da = function() {
31518
31519
  }
31519
31520
  }
31520
31521
  return s;
31521
- }, RR = function(s, l, o, c, p, b, S) {
31522
+ }, OR = function(s, l, o, c, p, b, S) {
31522
31523
  return c = x_(c, s.width, l, o), p = x_(p, s.height, l, o), b = x_(b, s.width, l, o), S = x_(S, s.height, l, o), {
31523
31524
  maxWidth: typeof c > "u" ? void 0 : Number(c),
31524
31525
  maxHeight: typeof p > "u" ? void 0 : Number(p),
31525
31526
  minWidth: typeof b > "u" ? void 0 : Number(b),
31526
31527
  minHeight: typeof S > "u" ? void 0 : Number(S)
31527
31528
  };
31528
- }, OR = function(s) {
31529
+ }, UR = function(s) {
31529
31530
  return Array.isArray(s) ? s : [s, s];
31530
- }, UR = [
31531
+ }, NR = [
31531
31532
  "as",
31532
31533
  "ref",
31533
31534
  "style",
@@ -31559,10 +31560,10 @@ var da = function() {
31559
31560
  "scale",
31560
31561
  "resizeRatio",
31561
31562
  "snapGap"
31562
- ], $x = "__resizable_base__", NR = (
31563
+ ], $x = "__resizable_base__", LR = (
31563
31564
  /** @class */
31564
31565
  (function(s) {
31565
- zR(l, s);
31566
+ MR(l, s);
31566
31567
  function l(o) {
31567
31568
  var c, p, b, S, _ = s.call(this, o) || this;
31568
31569
  return _.ratio = 1, _.resizable = null, _.parentLeft = 0, _.parentTop = 0, _.resizableLeft = 0, _.resizableRight = 0, _.resizableTop = 0, _.resizableBottom = 0, _.targetLeft = 0, _.targetTop = 0, _.delta = {
@@ -31620,7 +31621,7 @@ var da = function() {
31620
31621
  configurable: !0
31621
31622
  }), Object.defineProperty(l.prototype, "propsSize", {
31622
31623
  get: function() {
31623
- return this.props.size || this.props.defaultSize || MR;
31624
+ return this.props.size || this.props.defaultSize || AR;
31624
31625
  },
31625
31626
  enumerable: !1,
31626
31627
  configurable: !0
@@ -31695,7 +31696,7 @@ var da = function() {
31695
31696
  } else this.props.bounds === "window" ? this.window && (C = S ? this.resizableRight : this.window.innerWidth - this.resizableLeft, x = _ ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (C = S ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), x = _ ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop));
31696
31697
  return C && Number.isFinite(C) && (o = o && o < C ? o : C), x && Number.isFinite(x) && (c = c && c < x ? c : x), { maxWidth: o, maxHeight: c };
31697
31698
  }, l.prototype.calculateNewSizeFromDirection = function(o, c) {
31698
- var p = this.props.scale || 1, b = OR(this.props.resizeRatio || 1), S = b[0], _ = b[1], C = this.state, x = C.direction, D = C.original, M = this.props, A = M.lockAspectRatio, N = M.lockAspectRatioExtraHeight, L = M.lockAspectRatioExtraWidth, O = D.width, G = D.height, j = N || 0, F = L || 0;
31699
+ var p = this.props.scale || 1, b = UR(this.props.resizeRatio || 1), S = b[0], _ = b[1], C = this.state, x = C.direction, D = C.original, M = this.props, A = M.lockAspectRatio, N = M.lockAspectRatioExtraHeight, L = M.lockAspectRatioExtraWidth, O = D.width, G = D.height, j = N || 0, F = L || 0;
31699
31700
  return km("right", x) && (O = D.width + (o - D.x) * S / p, A && (G = (O - F) / this.ratio + j)), km("left", x) && (O = D.width - (o - D.x) * S / p, A && (G = (O - F) / this.ratio + j)), km("bottom", x) && (G = D.height + (c - D.y) * _ / p, A && (O = (G - j) * this.ratio + F)), km("top", x) && (G = D.height - (c - D.y) * _ / p, A && (O = (G - j) * this.ratio + F)), { newWidth: O, newHeight: G };
31700
31701
  }, l.prototype.calculateNewSizeFromAspectRatio = function(o, c, p, b) {
31701
31702
  var S = this.props, _ = S.lockAspectRatio, C = S.lockAspectRatioExtraHeight, x = S.lockAspectRatioExtraWidth, D = typeof b.width > "u" ? 10 : b.width, M = typeof p.width > "u" || p.width < 0 ? o : p.width, A = typeof b.height > "u" ? 10 : b.height, N = typeof p.height > "u" || p.height < 0 ? c : p.height, L = C || 0, O = x || 0;
@@ -31725,7 +31726,7 @@ var da = function() {
31725
31726
  }, l.prototype.onResizeStart = function(o, c) {
31726
31727
  if (!(!this.resizable || !this.window)) {
31727
31728
  var p = 0, b = 0;
31728
- if (o.nativeEvent && AR(o.nativeEvent) ? (p = o.nativeEvent.clientX, b = o.nativeEvent.clientY) : o.nativeEvent && C_(o.nativeEvent) && (p = o.nativeEvent.touches[0].clientX, b = o.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) {
31729
+ if (o.nativeEvent && RR(o.nativeEvent) ? (p = o.nativeEvent.clientX, b = o.nativeEvent.clientY) : o.nativeEvent && C_(o.nativeEvent) && (p = o.nativeEvent.touches[0].clientX, b = o.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) {
31729
31730
  var S = this.props.onResizeStart(o, c, this.resizable);
31730
31731
  if (S === !1)
31731
31732
  return;
@@ -31762,7 +31763,7 @@ var da = function() {
31762
31763
  o.preventDefault(), o.stopPropagation();
31763
31764
  } catch {
31764
31765
  }
31765
- var p = this.props, b = p.maxWidth, S = p.maxHeight, _ = p.minWidth, C = p.minHeight, x = C_(o) ? o.touches[0].clientX : o.clientX, D = C_(o) ? o.touches[0].clientY : o.clientY, M = this.state, A = M.direction, N = M.original, L = M.width, O = M.height, G = this.getParentSize(), j = RR(G, this.window.innerWidth, this.window.innerHeight, b, S, _, C);
31766
+ var p = this.props, b = p.maxWidth, S = p.maxHeight, _ = p.minWidth, C = p.minHeight, x = C_(o) ? o.touches[0].clientX : o.clientX, D = C_(o) ? o.touches[0].clientY : o.clientY, M = this.state, A = M.direction, N = M.original, L = M.width, O = M.height, G = this.getParentSize(), j = OR(G, this.window.innerWidth, this.window.innerHeight, b, S, _, C);
31766
31767
  b = j.maxWidth, S = j.maxHeight, _ = j.minWidth, C = j.minHeight;
31767
31768
  var F = this.calculateNewSizeFromDirection(x, D), J = F.newHeight, W = F.newWidth, k = this.calculateNewMaxFromBoundary(b, S);
31768
31769
  this.props.snap && this.props.snap.x && (W = Jx(W, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (J = Jx(J, this.props.snap.y, this.props.snapGap));
@@ -31823,12 +31824,12 @@ var da = function() {
31823
31824
  if (!p)
31824
31825
  return null;
31825
31826
  var D = Object.keys(p).map(function(M) {
31826
- return p[M] !== !1 ? $(DR, { direction: M, onResizeStart: o.onResizeStart, replaceStyles: b && b[M], className: S && S[M], children: x && x[M] ? x[M] : null }, M) : null;
31827
+ return p[M] !== !1 ? $(zR, { direction: M, onResizeStart: o.onResizeStart, replaceStyles: b && b[M], className: S && S[M], children: x && x[M] ? x[M] : null }, M) : null;
31827
31828
  });
31828
31829
  return $("div", { className: C, style: _, children: D });
31829
31830
  }, l.prototype.render = function() {
31830
31831
  var o = this, c = Object.keys(this.props).reduce(function(S, _) {
31831
- return UR.indexOf(_) !== -1 || (S[_] = o.props[_]), S;
31832
+ return NR.indexOf(_) !== -1 || (S[_] = o.props[_]), S;
31832
31833
  }, {}), p = nr(nr(nr({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 });
31833
31834
  this.state.flexBasis && (p.flexBasis = this.state.flexBasis);
31834
31835
  var b = this.props.as || "div";
@@ -31891,7 +31892,7 @@ var Kw = function(s, l) {
31891
31892
  for (var p in c) c.hasOwnProperty(p) && (o[p] = c[p]);
31892
31893
  }, Kw(s, l);
31893
31894
  };
31894
- function LR(s, l) {
31895
+ function HR(s, l) {
31895
31896
  Kw(s, l);
31896
31897
  function o() {
31897
31898
  this.constructor = s;
@@ -31907,7 +31908,7 @@ var wa = function() {
31907
31908
  return l;
31908
31909
  }, wa.apply(this, arguments);
31909
31910
  };
31910
- function HR(s, l) {
31911
+ function BR(s, l) {
31911
31912
  var o = {};
31912
31913
  for (var c in s) Object.prototype.hasOwnProperty.call(s, c) && l.indexOf(c) < 0 && (o[c] = s[c]);
31913
31914
  if (s != null && typeof Object.getOwnPropertySymbols == "function")
@@ -31915,14 +31916,14 @@ function HR(s, l) {
31915
31916
  l.indexOf(c[p]) < 0 && Object.prototype.propertyIsEnumerable.call(s, c[p]) && (o[c[p]] = s[c[p]]);
31916
31917
  return o;
31917
31918
  }
31918
- var BR = {
31919
+ var jR = {
31919
31920
  width: "auto",
31920
31921
  height: "auto",
31921
31922
  display: "inline-block",
31922
31923
  position: "absolute",
31923
31924
  top: 0,
31924
31925
  left: 0
31925
- }, jR = function(s) {
31926
+ }, VR = function(s) {
31926
31927
  return {
31927
31928
  bottom: s,
31928
31929
  bottomLeft: s,
@@ -31933,10 +31934,10 @@ var BR = {
31933
31934
  topLeft: s,
31934
31935
  topRight: s
31935
31936
  };
31936
- }, VR = (
31937
+ }, GR = (
31937
31938
  /** @class */
31938
31939
  (function(s) {
31939
- LR(l, s);
31940
+ HR(l, s);
31940
31941
  function l(o) {
31941
31942
  var c = s.call(this, o) || this;
31942
31943
  return c.resizingPosition = { x: 0, y: 0 }, c.offsetFromParent = { left: 0, top: 0 }, c.resizableElement = { current: null }, c.originalPosition = { x: 0, y: 0 }, c.state = {
@@ -32130,16 +32131,16 @@ var BR = {
32130
32131
  }, l.prototype.render = function() {
32131
32132
  var o = this, c = this.props, p = c.disableDragging, b = c.style, S = c.dragHandleClassName, _ = c.position, C = c.onMouseDown, x = c.onMouseUp, D = c.dragAxis, M = c.dragGrid, A = c.bounds, N = c.enableUserSelectHack, L = c.cancel, O = c.children;
32132
32133
  c.onResizeStart, c.onResize, c.onResizeStop, c.onDragStart, c.onDrag, c.onDragStop;
32133
- var G = c.resizeHandleStyles, j = c.resizeHandleClasses, F = c.resizeHandleComponent, J = c.enableResizing, W = c.resizeGrid, k = c.resizeHandleWrapperClass, dt = c.resizeHandleWrapperStyle, R = c.scale, B = c.allowAnyClick, rt = c.dragPositionOffset, at = HR(c, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick", "dragPositionOffset"]), pt = this.props.default ? wa({}, this.props.default) : void 0;
32134
+ var G = c.resizeHandleStyles, j = c.resizeHandleClasses, F = c.resizeHandleComponent, J = c.enableResizing, W = c.resizeGrid, k = c.resizeHandleWrapperClass, dt = c.resizeHandleWrapperStyle, R = c.scale, B = c.allowAnyClick, rt = c.dragPositionOffset, at = BR(c, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick", "dragPositionOffset"]), pt = this.props.default ? wa({}, this.props.default) : void 0;
32134
32135
  delete at.default;
32135
- var U = p || S ? { cursor: "auto" } : { cursor: "move" }, et = wa(wa(wa({}, BR), U), b), ht = this.offsetFromParent, xt = ht.left, H = ht.top, lt;
32136
+ var U = p || S ? { cursor: "auto" } : { cursor: "move" }, et = wa(wa(wa({}, jR), U), b), ht = this.offsetFromParent, xt = ht.left, H = ht.top, lt;
32136
32137
  _ && (lt = {
32137
32138
  x: _.x - xt,
32138
32139
  y: _.y - H
32139
32140
  });
32140
32141
  var bt = this.state.resizing ? void 0 : lt, Dt = this.state.resizing ? "both" : D;
32141
32142
  return Xw(
32142
- xR,
32143
+ TR,
32143
32144
  {
32144
32145
  ref: function(tt) {
32145
32146
  tt && (o.draggable = tt);
@@ -32164,9 +32165,9 @@ var BR = {
32164
32165
  nodeRef: this.resizableElement,
32165
32166
  positionOffset: rt
32166
32167
  },
32167
- Xw(NR, wa({}, at, { ref: function(tt) {
32168
+ Xw(LR, wa({}, at, { ref: function(tt) {
32168
32169
  tt && (o.resizable = tt, o.resizableElement.current = tt.resizable);
32169
- }, defaultSize: pt, size: this.props.size, enable: typeof J == "boolean" ? jR(J) : J, onResizeStart: this.onResizeStart, onResize: this.onResize, onResizeStop: this.onResizeStop, style: et, minWidth: this.props.minWidth, minHeight: this.props.minHeight, maxWidth: this.state.resizing ? this.state.maxWidth : this.props.maxWidth, maxHeight: this.state.resizing ? this.state.maxHeight : this.props.maxHeight, grid: W, handleWrapperClass: k, handleWrapperStyle: dt, lockAspectRatio: this.props.lockAspectRatio, lockAspectRatioExtraWidth: this.props.lockAspectRatioExtraWidth, lockAspectRatioExtraHeight: this.props.lockAspectRatioExtraHeight, handleStyles: G, handleClasses: j, handleComponent: F, scale: this.props.scale }), O)
32170
+ }, defaultSize: pt, size: this.props.size, enable: typeof J == "boolean" ? VR(J) : J, onResizeStart: this.onResizeStart, onResize: this.onResize, onResizeStop: this.onResizeStop, style: et, minWidth: this.props.minWidth, minHeight: this.props.minHeight, maxWidth: this.state.resizing ? this.state.maxWidth : this.props.maxWidth, maxHeight: this.state.resizing ? this.state.maxHeight : this.props.maxHeight, grid: W, handleWrapperClass: k, handleWrapperStyle: dt, lockAspectRatio: this.props.lockAspectRatio, lockAspectRatioExtraWidth: this.props.lockAspectRatioExtraWidth, lockAspectRatioExtraHeight: this.props.lockAspectRatioExtraHeight, handleStyles: G, handleClasses: j, handleComponent: F, scale: this.props.scale }), O)
32170
32171
  );
32171
32172
  }, l.defaultProps = {
32172
32173
  maxWidth: Number.MAX_SAFE_INTEGER,
@@ -32187,15 +32188,15 @@ var BR = {
32187
32188
  }, l;
32188
32189
  })(UT)
32189
32190
  );
32190
- const GR = "_window_ybolb_1", qR = "_handle_ybolb_15", kR = "_title_ybolb_33", YR = "_body_ybolb_44", XR = "_close_ybolb_51", Ym = {
32191
- window: GR,
32192
- handle: qR,
32193
- title: kR,
32194
- body: YR,
32195
- close: XR
32191
+ const qR = "_window_ybolb_1", kR = "_handle_ybolb_15", YR = "_title_ybolb_33", XR = "_body_ybolb_44", PR = "_close_ybolb_51", Ym = {
32192
+ window: qR,
32193
+ handle: kR,
32194
+ title: YR,
32195
+ body: XR,
32196
+ close: PR
32196
32197
  };
32197
32198
  let Wx = 1e3;
32198
- const PR = ({ title: s, children: l, defaultX: o, defaultY: c, defaultWidth: p = 400, defaultHeight: b = 300, minWidth: S = 280, minHeight: _ = 200, storageKey: C, onClose: x }) => {
32199
+ const QR = ({ title: s, children: l, defaultX: o, defaultY: c, defaultWidth: p = 400, defaultHeight: b = 300, minWidth: S = 280, minHeight: _ = 200, storageKey: C, onClose: x }) => {
32199
32200
  const [D, M] = Ae(() => ++Wx), A = C ? JSON.parse(localStorage.getItem(`window:${C}`) ?? "null") : null, N = (A == null ? void 0 : A.width) ?? p, L = (A == null ? void 0 : A.height) ?? b;
32200
32201
  function O() {
32201
32202
  M(++Wx);
@@ -32205,7 +32206,7 @@ const PR = ({ title: s, children: l, defaultX: o, defaultY: c, defaultWidth: p =
32205
32206
  }
32206
32207
  return KM(
32207
32208
  /* @__PURE__ */ Rt(
32208
- VR,
32209
+ GR,
32209
32210
  {
32210
32211
  onMouseDown: O,
32211
32212
  onResizeStop: G,
@@ -32232,17 +32233,17 @@ const PR = ({ title: s, children: l, defaultX: o, defaultY: c, defaultWidth: p =
32232
32233
  ),
32233
32234
  document.body
32234
32235
  );
32235
- }, QR = "_assetsPanel_5ux7f_1", ZR = "_toolbar_5ux7f_8", KR = "_searchWrapper_5ux7f_17", JR = "_search_5ux7f_17", $R = "_searchClear_5ux7f_46", WR = "_categorySelect_5ux7f_64", FR = "_assets_5ux7f_1", IR = "_assetRow_5ux7f_93", tO = "_texturePreview_5ux7f_122", eO = "_assetIcon_5ux7f_138", Oa = {
32236
- assetsPanel: QR,
32237
- toolbar: ZR,
32238
- searchWrapper: KR,
32239
- search: JR,
32240
- searchClear: $R,
32241
- categorySelect: WR,
32242
- assets: FR,
32243
- assetRow: IR,
32244
- texturePreview: tO,
32245
- assetIcon: eO
32236
+ }, ZR = "_assetsPanel_5ux7f_1", KR = "_toolbar_5ux7f_8", JR = "_searchWrapper_5ux7f_17", $R = "_search_5ux7f_17", WR = "_searchClear_5ux7f_46", FR = "_categorySelect_5ux7f_64", IR = "_assets_5ux7f_1", tO = "_assetRow_5ux7f_93", eO = "_texturePreview_5ux7f_122", nO = "_assetIcon_5ux7f_138", Oa = {
32237
+ assetsPanel: ZR,
32238
+ toolbar: KR,
32239
+ searchWrapper: JR,
32240
+ search: $R,
32241
+ searchClear: WR,
32242
+ categorySelect: FR,
32243
+ assets: IR,
32244
+ assetRow: tO,
32245
+ texturePreview: eO,
32246
+ assetIcon: nO
32246
32247
  };
32247
32248
  function Hl(s, l, o, c) {
32248
32249
  return new (o || (o = Promise))((function(p, b) {
@@ -32338,8 +32339,8 @@ function Fx(s, l, o) {
32338
32339
  const c = hD(s, l || {});
32339
32340
  return o == null || o.appendChild(c), c;
32340
32341
  }
32341
- var nO = Object.freeze({ __proto__: null, createElement: Fx, default: Fx });
32342
- const aO = { fetchBlob: function(s, l, o) {
32342
+ var aO = Object.freeze({ __proto__: null, createElement: Fx, default: Fx });
32343
+ const lO = { fetchBlob: function(s, l, o) {
32343
32344
  return Hl(this, void 0, void 0, (function* () {
32344
32345
  const c = yield fetch(s, o);
32345
32346
  if (c.status >= 400) throw new Error(`Failed to fetch ${s}: ${c.status} (${c.statusText})`);
@@ -32395,7 +32396,7 @@ function hf(s, l) {
32395
32396
  o && (o(), o = void 0), p.forEach(((b) => b()));
32396
32397
  };
32397
32398
  }
32398
- class lO extends A0 {
32399
+ class iO extends A0 {
32399
32400
  get isPlayingSignal() {
32400
32401
  return this._isPlaying;
32401
32402
  }
@@ -32528,11 +32529,11 @@ class lO extends A0 {
32528
32529
  return this.media.setSinkId(l);
32529
32530
  }
32530
32531
  }
32531
- function iO({ maxTop: s, maxBottom: l, halfHeight: o, vScale: c, barMinHeight: p = 0, barAlign: b }) {
32532
+ function oO({ maxTop: s, maxBottom: l, halfHeight: o, vScale: c, barMinHeight: p = 0, barAlign: b }) {
32532
32533
  let S = Math.round(s * o * c), _ = S + Math.round(l * o * c) || 1;
32533
32534
  return _ < p && (_ = p, b || (S = _ / 2)), { topHeight: S, totalHeight: _ };
32534
32535
  }
32535
- function oO({ barAlign: s, halfHeight: l, topHeight: o, totalHeight: c, canvasHeight: p }) {
32536
+ function sO({ barAlign: s, halfHeight: l, topHeight: o, totalHeight: c, canvasHeight: p }) {
32536
32537
  return s === "top" ? 0 : s === "bottom" ? p - c : l - o;
32537
32538
  }
32538
32539
  function Ix(s, l, o) {
@@ -32556,7 +32557,7 @@ function mD(s) {
32556
32557
  const l = s._cleanup;
32557
32558
  typeof l == "function" && l();
32558
32559
  }
32559
- function sO(s) {
32560
+ function rO(s) {
32560
32561
  const l = Jn({ scrollLeft: s.scrollLeft, scrollWidth: s.scrollWidth, clientWidth: s.clientWidth }), o = rh((() => (function(b) {
32561
32562
  const { scrollLeft: S, scrollWidth: _, clientWidth: C } = b;
32562
32563
  if (_ === 0) return { startX: 0, endX: 1 };
@@ -32571,7 +32572,7 @@ function sO(s) {
32571
32572
  s.removeEventListener("scroll", p), mD(l);
32572
32573
  } };
32573
32574
  }
32574
- class rO extends A0 {
32575
+ class uO extends A0 {
32575
32576
  constructor(l, o) {
32576
32577
  super(), this.timeouts = [], this.isScrollable = !1, this.audioData = null, this.resizeObserver = null, this.lastContainerWidth = 0, this.isDragging = !1, this.subscriptions = [], this.unsubscribeOnScroll = [], this.dragStream = null, this.scrollStream = null, this.subscriptions = [], this.options = l;
32577
32578
  const c = this.parentFromOptionsContainer(l.container);
@@ -32591,7 +32592,7 @@ class rO extends A0 {
32591
32592
  })), this.wrapper.addEventListener("dblclick", ((o) => {
32592
32593
  const c = this.wrapper.getBoundingClientRect(), [p, b] = Ix(c, o.clientX, o.clientY);
32593
32594
  this.emit("dblclick", p, b);
32594
- })), this.options.dragToSeek !== !0 && typeof this.options.dragToSeek != "object" || this.initDrag(), this.scrollStream = sO(this.scrollContainer);
32595
+ })), this.options.dragToSeek !== !0 && typeof this.options.dragToSeek != "object" || this.initDrag(), this.scrollStream = rO(this.scrollContainer);
32595
32596
  const l = hf((() => {
32596
32597
  const { startX: o, endX: c } = this.scrollStream.percentages.value, { left: p, right: b } = this.scrollStream.bounds.value;
32597
32598
  this.emit("scroll", o, c, p, b);
@@ -32808,7 +32809,7 @@ class rO extends A0 {
32808
32809
  for (let ht = 0; ht <= rt; ht++) {
32809
32810
  const xt = Math.round(ht * O);
32810
32811
  if (xt > pt) {
32811
- const { topHeight: bt, totalHeight: Dt } = iO({ maxTop: U, maxBottom: et, halfHeight: F, vScale: J, barMinHeight: dt, barAlign: k }), tt = oO({ barAlign: k, halfHeight: F, topHeight: bt, totalHeight: Dt, canvasHeight: W });
32812
+ const { topHeight: bt, totalHeight: Dt } = oO({ maxTop: U, maxBottom: et, halfHeight: F, vScale: J, barMinHeight: dt, barAlign: k }), tt = sO({ barAlign: k, halfHeight: F, topHeight: bt, totalHeight: Dt, canvasHeight: W });
32812
32813
  at.push({ x: pt * G, y: tt, width: j, height: Dt }), pt = xt, U = 0, et = 0;
32813
32814
  }
32814
32815
  const H = Math.abs(R[ht] || 0), lt = Math.abs(B[ht] || 0);
@@ -32985,7 +32986,7 @@ class rO extends A0 {
32985
32986
  }));
32986
32987
  }
32987
32988
  }
32988
- class uO extends A0 {
32989
+ class cO extends A0 {
32989
32990
  constructor() {
32990
32991
  super(...arguments), this.animationFrameId = null, this.isRunning = !1;
32991
32992
  }
@@ -33125,8 +33126,8 @@ class Rw extends A0 {
33125
33126
  }
33126
33127
  }
33127
33128
  }
33128
- const cO = { waveColor: "#999", progressColor: "#555", cursorWidth: 1, minPxPerSec: 0, fillParent: !0, interact: !0, dragToSeek: !1, autoScroll: !0, autoCenter: !0, sampleRate: 8e3 };
33129
- class E0 extends lO {
33129
+ const fO = { waveColor: "#999", progressColor: "#555", cursorWidth: 1, minPxPerSec: 0, fillParent: !0, interact: !0, dragToSeek: !1, autoScroll: !0, autoCenter: !0, sampleRate: 8e3 };
33130
+ class E0 extends iO {
33130
33131
  static create(l) {
33131
33132
  return new E0(l);
33132
33133
  }
@@ -33138,7 +33139,7 @@ class E0 extends lO {
33138
33139
  }
33139
33140
  constructor(l) {
33140
33141
  const o = l.media || (l.backend === "WebAudio" ? new Rw() : void 0);
33141
- super({ media: o, mediaControls: l.mediaControls, autoplay: l.autoplay, playbackRate: l.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this.reactiveCleanups = [], this.options = Object.assign({}, cO, l);
33142
+ super({ media: o, mediaControls: l.mediaControls, autoplay: l.autoplay, playbackRate: l.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this.reactiveCleanups = [], this.options = Object.assign({}, fO, l);
33142
33143
  const { state: c, actions: p } = (function(_) {
33143
33144
  var C, x, D, M, A, N;
33144
33145
  const L = (C = _ == null ? void 0 : _.currentTime) !== null && C !== void 0 ? C : Jn(0), O = (x = _ == null ? void 0 : _.duration) !== null && x !== void 0 ? x : Jn(0), G = (D = _ == null ? void 0 : _.isPlaying) !== null && D !== void 0 ? D : Jn(!1), j = (M = _ == null ? void 0 : _.isSeeking) !== null && M !== void 0 ? M : Jn(!1), F = (A = _ == null ? void 0 : _.volume) !== null && A !== void 0 ? A : Jn(1), J = (N = _ == null ? void 0 : _.playbackRate) !== null && N !== void 0 ? N : Jn(1), W = Jn(null), k = Jn(null), dt = Jn(""), R = Jn(0), B = Jn(0), rt = rh((() => !G.value), [G]), at = rh((() => W.value !== null), [W]), pt = rh((() => at.value && O.value > 0), [at, O]), U = rh((() => L.value), [L]), et = rh((() => O.value > 0 ? L.value / O.value : 0), [L, O]);
@@ -33169,9 +33170,9 @@ class E0 extends lO {
33169
33170
  B.set(Math.max(0, ht));
33170
33171
  } } };
33171
33172
  })({ isPlaying: this.isPlayingSignal, currentTime: this.currentTimeSignal, duration: this.durationSignal, volume: this.volumeSignal, playbackRate: this.playbackRateSignal, isSeeking: this.seekingSignal });
33172
- this.wavesurferState = c, this.wavesurferActions = p, this.timer = new uO();
33173
+ this.wavesurferState = c, this.wavesurferActions = p, this.timer = new cO();
33173
33174
  const b = o ? void 0 : this.getMediaElement();
33174
- this.renderer = new rO(this.options, b), this.initPlayerEvents(), this.initRendererEvents(), this.initTimerEvents(), this.initReactiveState(), this.initPlugins();
33175
+ this.renderer = new uO(this.options, b), this.initPlayerEvents(), this.initRendererEvents(), this.initTimerEvents(), this.initReactiveState(), this.initPlugins();
33175
33176
  const S = this.options.url || this.getSrc() || "";
33176
33177
  Promise.resolve().then((() => {
33177
33178
  this.emit("init");
@@ -33324,7 +33325,7 @@ class E0 extends lO {
33324
33325
  const _ = this.options.fetchParams || {};
33325
33326
  window.AbortController && !_.signal && (this.abortController = new AbortController(), _.signal = this.abortController.signal);
33326
33327
  const C = (D) => this.emit("loading", D);
33327
- o = yield aO.fetchBlob(l, C, _);
33328
+ o = yield lO.fetchBlob(l, C, _);
33328
33329
  const x = this.options.blobMimeType;
33329
33330
  x && (o = new Blob([o], { type: x }));
33330
33331
  }
@@ -33449,7 +33450,7 @@ E0.BasePlugin = class extends A0 {
33449
33450
  destroy() {
33450
33451
  this.emit("destroy"), this.subscriptions.forEach(((s) => s())), this.subscriptions = [], this.isDestroyed = !0, this.wavesurfer = void 0;
33451
33452
  }
33452
- }, E0.dom = nO;
33453
+ }, E0.dom = aO;
33453
33454
  /*! *****************************************************************************
33454
33455
  Copyright (c) Microsoft Corporation.
33455
33456
 
@@ -33483,8 +33484,8 @@ function gD(s, l) {
33483
33484
  };
33484
33485
  }), [s, l.plugins, ...b]), o;
33485
33486
  }
33486
- const bD = /^on([A-Z])/, fO = (s) => bD.test(s);
33487
- function dO(s, l) {
33487
+ const bD = /^on([A-Z])/, dO = (s) => bD.test(s);
33488
+ function hO(s, l) {
33488
33489
  const o = fs((() => Object.entries(l).flat()), [l]);
33489
33490
  Bn((() => {
33490
33491
  if (!s) return;
@@ -33503,13 +33504,13 @@ OT(((s) => {
33503
33504
  const l = Ee(null), [o, c] = (function(p) {
33504
33505
  return fs((() => {
33505
33506
  const b = Object.assign({}, p), S = Object.assign({}, p);
33506
- for (const _ in b) fO(_) ? delete b[_] : delete S[_];
33507
+ for (const _ in b) dO(_) ? delete b[_] : delete S[_];
33507
33508
  return [b, S];
33508
33509
  }), [p]);
33509
33510
  })(s);
33510
- return dO(gD(l, o), c), $("div", { ref: l });
33511
+ return hO(gD(l, o), c), $("div", { ref: l });
33511
33512
  }));
33512
- function hO(s) {
33513
+ function pO(s) {
33513
33514
  var { container: l } = s;
33514
33515
  const o = gD(l, vD(s, ["container"])), c = (function(p) {
33515
33516
  const [b, S] = Ae(!1), [_, C] = Ae(!1), [x, D] = Ae(!1), [M, A] = Ae(0);
@@ -33537,23 +33538,23 @@ function hO(s) {
33537
33538
  })(o);
33538
33539
  return fs((() => Object.assign(Object.assign({}, c), { wavesurfer: o })), [c, o]);
33539
33540
  }
33540
- const pO = "_stats_1gd9h_1", mO = "_stat_1gd9h_1", vO = "_label_1gd9h_18", gO = "_value_1gd9h_26", D_ = {
33541
- stats: pO,
33542
- stat: mO,
33543
- label: vO,
33544
- value: gO
33541
+ const mO = "_stats_1gd9h_1", vO = "_stat_1gd9h_1", gO = "_label_1gd9h_18", bO = "_value_1gd9h_26", D_ = {
33542
+ stats: mO,
33543
+ stat: vO,
33544
+ label: gO,
33545
+ value: bO
33545
33546
  }, c2 = ({ stats: s }) => /* @__PURE__ */ $("div", { className: D_.stats, children: s.map(({ label: l, value: o }) => /* @__PURE__ */ Rt("div", { className: D_.stat, children: [
33546
33547
  /* @__PURE__ */ $("span", { className: D_.label, children: l }),
33547
33548
  /* @__PURE__ */ $("span", { className: D_.value, children: o })
33548
- ] }, l)) }), bO = "_player_nqeb9_1", yO = "_main_nqeb9_8", _O = "_waveform_nqeb9_16", SO = "_controls_nqeb9_21", wO = "_playButton_nqeb9_28", EO = "_time_nqeb9_47", Xm = {
33549
- player: bO,
33550
- main: yO,
33551
- waveform: _O,
33552
- controls: SO,
33553
- playButton: wO,
33554
- time: EO
33549
+ ] }, l)) }), yO = "_player_nqeb9_1", _O = "_main_nqeb9_8", SO = "_waveform_nqeb9_16", wO = "_controls_nqeb9_21", EO = "_playButton_nqeb9_28", CO = "_time_nqeb9_47", Xm = {
33550
+ player: yO,
33551
+ main: _O,
33552
+ waveform: SO,
33553
+ controls: wO,
33554
+ playButton: EO,
33555
+ time: CO
33555
33556
  };
33556
- function CO(s) {
33557
+ function xO(s) {
33557
33558
  const l = s.numberOfChannels, o = s.sampleRate, c = s.length, p = 16, b = l * (p / 8), S = c * b, _ = new ArrayBuffer(44 + S), C = new DataView(_), x = (M, A) => {
33558
33559
  for (let N = 0; N < A.length; N++)
33559
33560
  C.setUint8(M + N, A.charCodeAt(N));
@@ -33571,10 +33572,10 @@ function Ow(s) {
33571
33572
  const l = Math.floor(s / 60), o = Math.floor(s % 60);
33572
33573
  return `${l}:${o.toString().padStart(2, "0")}`;
33573
33574
  }
33574
- const xO = ({ buffer: s }) => {
33575
- const l = Ee(null), o = fs(() => CO(s), [s]);
33575
+ const TO = ({ buffer: s }) => {
33576
+ const l = Ee(null), o = fs(() => xO(s), [s]);
33576
33577
  Bn(() => () => URL.revokeObjectURL(o), [o]);
33577
- const { wavesurfer: c, isPlaying: p, currentTime: b } = hO({
33578
+ const { wavesurfer: c, isPlaying: p, currentTime: b } = pO({
33578
33579
  container: l,
33579
33580
  url: o,
33580
33581
  waveColor: "#4a9eff",
@@ -33608,17 +33609,17 @@ const xO = ({ buffer: s }) => {
33608
33609
  }
33609
33610
  )
33610
33611
  ] });
33611
- }, TO = "_wrapper_65zj4_1", DO = "_canvas_65zj4_9", zO = "_toolbar_65zj4_15", MO = "_toolBtn_65zj4_26", AO = "_active_65zj4_46", RO = "_separator_65zj4_51", OO = "_overlayDropdown_65zj4_69", UO = "_overlaySection_65zj4_86", NO = "_overlayRow_65zj4_99", Fa = {
33612
- wrapper: TO,
33613
- canvas: DO,
33614
- toolbar: zO,
33615
- toolBtn: MO,
33616
- active: AO,
33617
- separator: RO,
33618
- overlayDropdown: OO,
33619
- overlaySection: UO,
33620
- overlayRow: NO
33621
- }, LO = [
33612
+ }, DO = "_wrapper_65zj4_1", zO = "_canvas_65zj4_9", MO = "_toolbar_65zj4_15", AO = "_toolBtn_65zj4_26", RO = "_active_65zj4_46", OO = "_separator_65zj4_51", UO = "_overlayDropdown_65zj4_69", NO = "_overlaySection_65zj4_86", LO = "_overlayRow_65zj4_99", Fa = {
33613
+ wrapper: DO,
33614
+ canvas: zO,
33615
+ toolbar: MO,
33616
+ toolBtn: AO,
33617
+ active: RO,
33618
+ separator: OO,
33619
+ overlayDropdown: UO,
33620
+ overlaySection: NO,
33621
+ overlayRow: LO
33622
+ }, HO = [
33622
33623
  {
33623
33624
  mode: "translate",
33624
33625
  label: "Translate",
@@ -33649,7 +33650,7 @@ const xO = ({ buffer: s }) => {
33649
33650
  "M3 21L10 14"
33650
33651
  ]
33651
33652
  }
33652
- ], HO = [
33653
+ ], BO = [
33653
33654
  {
33654
33655
  mode: "solid",
33655
33656
  label: "Solid",
@@ -33677,7 +33678,7 @@ const xO = ({ buffer: s }) => {
33677
33678
  ]
33678
33679
  }
33679
33680
  ];
33680
- function BO() {
33681
+ function jO() {
33681
33682
  const [s, l] = Ae("translate"), [o, c] = Ae("solid"), [p, b] = Ae(!1), [S, _] = Ae(!0), C = Ee(null), x = (A) => {
33682
33683
  var N;
33683
33684
  l(A), (N = window.Game.editor) == null || N.trigger("setTransformMode", A);
@@ -33694,7 +33695,7 @@ function BO() {
33694
33695
  }
33695
33696
  return document.addEventListener("pointerdown", A), () => document.removeEventListener("pointerdown", A);
33696
33697
  }, []), /* @__PURE__ */ Rt("div", { className: Fa.toolbar, children: [
33697
- LO.map(({ mode: A, label: N, paths: L }) => /* @__PURE__ */ $(
33698
+ HO.map(({ mode: A, label: N, paths: L }) => /* @__PURE__ */ $(
33698
33699
  "button",
33699
33700
  {
33700
33701
  title: N,
@@ -33747,7 +33748,7 @@ function BO() {
33747
33748
  ] });
33748
33749
  }
33749
33750
  function yD({ shadeMode: s, onChange: l, btnClass: o, activeClass: c, size: p = 18 }) {
33750
- return /* @__PURE__ */ $(df, { children: HO.map(({ mode: b, label: S, paths: _ }) => /* @__PURE__ */ $(
33751
+ return /* @__PURE__ */ $(df, { children: BO.map(({ mode: b, label: S, paths: _ }) => /* @__PURE__ */ $(
33751
33752
  "button",
33752
33753
  {
33753
33754
  title: S,
@@ -33758,19 +33759,19 @@ function yD({ shadeMode: s, onChange: l, btnClass: o, activeClass: c, size: p =
33758
33759
  b
33759
33760
  )) });
33760
33761
  }
33761
- const jO = "_viewer_8mn40_1", VO = "_canvasWrapper_8mn40_9", GO = "_toolbar_8mn40_16", qO = "_animBar_8mn40_29", kO = "_scrubber_8mn40_43", YO = "_animSelect_8mn40_89", XO = "_animLoopLabel_8mn40_104", _u = {
33762
- viewer: jO,
33763
- canvasWrapper: VO,
33764
- toolbar: GO,
33765
- animBar: qO,
33766
- scrubber: kO,
33767
- animSelect: YO,
33768
- animLoopLabel: XO
33762
+ const VO = "_viewer_8mn40_1", GO = "_canvasWrapper_8mn40_9", qO = "_toolbar_8mn40_16", kO = "_animBar_8mn40_29", YO = "_scrubber_8mn40_43", XO = "_animSelect_8mn40_89", PO = "_animLoopLabel_8mn40_104", _u = {
33763
+ viewer: VO,
33764
+ canvasWrapper: GO,
33765
+ toolbar: qO,
33766
+ animBar: kO,
33767
+ scrubber: YO,
33768
+ animSelect: XO,
33769
+ animLoopLabel: PO
33769
33770
  };
33770
33771
  function nT(s) {
33771
33772
  return s >= 1e3 ? `${(s / 1e3).toFixed(1)}k` : String(s);
33772
33773
  }
33773
- const PO = ({ model: s, animations: l }) => {
33774
+ const QO = ({ model: s, animations: l }) => {
33774
33775
  const o = Ee(null), c = Ee(null), p = Ee(null), b = Ee(null), S = Ee(null), _ = Ee(!0), [C, x] = Ae("solid"), [D, M] = Ae(null), [A, N] = Ae(!0), [L, O] = Ae(0), [G, j] = Ae(!0);
33775
33776
  function F() {
33776
33777
  _.current = !1, j(!1);
@@ -33799,7 +33800,7 @@ const PO = ({ model: s, animations: l }) => {
33799
33800
  const B = o.current;
33800
33801
  if (!B)
33801
33802
  return;
33802
- const rt = new LT(), at = SA(s);
33803
+ const rt = new LT(), at = wA(s);
33803
33804
  c.current = at, W.current.clear(), k.current.forEach((Nt) => Nt.dispose()), k.current.clear(), dt.current.clear(), rt.add(at);
33804
33805
  const pt = new IC(16777215, 3);
33805
33806
  pt.position.set(5, 5, 5), rt.add(pt);
@@ -33811,7 +33812,7 @@ const PO = ({ model: s, animations: l }) => {
33811
33812
  lt.position.set(0, 0, Dt * 1.5), lt.near = 0.1, lt.far = Dt + H * 2, lt.updateProjectionMatrix(), lt.lookAt(0, 0, 0);
33812
33813
  const tt = new BT({ canvas: B, antialias: !0 });
33813
33814
  tt.setPixelRatio(vf.instance().sizes.pixelRatio), tt.setClearColor("#181818");
33814
- const St = new rA(lt, B);
33815
+ const St = new uA(lt, B);
33815
33816
  St.target.set(0, 0, 0), St.enableDamping = !0, St.dampingFactor = 0.08, St.update();
33816
33817
  const zt = new tA(at);
33817
33818
  p.current = zt;
@@ -33910,7 +33911,7 @@ const PO = ({ model: s, animations: l }) => {
33910
33911
  /* @__PURE__ */ $(c2, { stats: R })
33911
33912
  ] });
33912
33913
  };
33913
- function QO(s, l) {
33914
+ function ZO(s, l) {
33914
33915
  const o = a2()[s];
33915
33916
  if (!o)
33916
33917
  return null;
@@ -33921,13 +33922,13 @@ function QO(s, l) {
33921
33922
  const b = o.create();
33922
33923
  return c.add = p, b;
33923
33924
  }
33924
- const ZO = ({ particleName: s }) => {
33925
+ const KO = ({ particleName: s }) => {
33925
33926
  const l = Ee(null);
33926
33927
  return Bn(() => {
33927
33928
  const o = l.current;
33928
33929
  if (!o)
33929
33930
  return;
33930
- const c = new LT(), p = QO(s, c);
33931
+ const c = new LT(), p = ZO(s, c);
33931
33932
  if (!p)
33932
33933
  return;
33933
33934
  const b = a2()[s], S = new HT(50, 1, 0.01, 200);
@@ -33946,17 +33947,17 @@ const ZO = ({ particleName: s }) => {
33946
33947
  vf.instance().unregisterOnUpdate(C), x.disconnect(), c.clear(), p.geometry.dispose(), p.material.dispose(), _.dispose();
33947
33948
  };
33948
33949
  }, [s]), /* @__PURE__ */ $("div", { className: _u.viewer, children: /* @__PURE__ */ $("div", { className: _u.canvasWrapper, children: /* @__PURE__ */ $("canvas", { ref: l, style: { width: "100%", height: "100%", display: "block" } }) }) });
33949
- }, KO = "_viewer_76hio_1", JO = "_imageWrapper_76hio_9", $O = "_zoomInner_76hio_25", WO = "_image_76hio_9", FO = "_zoomReset_76hio_42", IO = "_cubeCross_76hio_62", t3 = "_cubeFace_76hio_75", e3 = "_faceLabel_76hio_95", n3 = "_cubeEmpty_76hio_106", a3 = "_noPreview_76hio_110", er = {
33950
- viewer: KO,
33951
- imageWrapper: JO,
33952
- zoomInner: $O,
33953
- image: WO,
33954
- zoomReset: FO,
33955
- cubeCross: IO,
33956
- cubeFace: t3,
33957
- faceLabel: e3,
33958
- cubeEmpty: n3,
33959
- noPreview: a3
33950
+ }, JO = "_viewer_76hio_1", $O = "_imageWrapper_76hio_9", WO = "_zoomInner_76hio_25", FO = "_image_76hio_9", IO = "_zoomReset_76hio_42", t3 = "_cubeCross_76hio_62", e3 = "_cubeFace_76hio_75", n3 = "_faceLabel_76hio_95", a3 = "_cubeEmpty_76hio_106", l3 = "_noPreview_76hio_110", er = {
33951
+ viewer: JO,
33952
+ imageWrapper: $O,
33953
+ zoomInner: WO,
33954
+ image: FO,
33955
+ zoomReset: IO,
33956
+ cubeCross: t3,
33957
+ cubeFace: e3,
33958
+ faceLabel: n3,
33959
+ cubeEmpty: a3,
33960
+ noPreview: l3
33960
33961
  };
33961
33962
  function Jw(s) {
33962
33963
  var l;
@@ -33970,17 +33971,17 @@ function Jw(s) {
33970
33971
  }
33971
33972
  return "";
33972
33973
  }
33973
- function l3(s) {
33974
+ function i3(s) {
33974
33975
  const l = Array.isArray(s.image) ? s.image[0] : s.image;
33975
33976
  return l ? Jw(l) : "";
33976
33977
  }
33977
33978
  function aT(s) {
33978
33979
  return { 1e3: "Repeat", 1001: "Clamp", 1002: "Mirror" }[s] ?? String(s);
33979
33980
  }
33980
- function i3(s) {
33981
+ function o3(s) {
33981
33982
  return s === "srgb" ? "sRGB" : s === "" ? "Linear" : s;
33982
33983
  }
33983
- const o3 = [
33984
+ const s3 = [
33984
33985
  null,
33985
33986
  // [0,0]
33986
33987
  { label: "+Y", faceIndex: 2 },
@@ -34005,7 +34006,7 @@ const o3 = [
34005
34006
  // [2,2]
34006
34007
  null
34007
34008
  // [2,3]
34008
- ], s3 = ({ texture: s }) => {
34009
+ ], r3 = ({ texture: s }) => {
34009
34010
  const l = Array.isArray(s.image), o = l ? s.image[0] : s.image, c = (o == null ? void 0 : o.width) ?? 0, p = (o == null ? void 0 : o.height) ?? 0, b = l ? 6 : 1, S = c && p ? c * p * 4 * b / (1024 * 1024) : 0, _ = Ee(null), C = Ee(!1), x = Ee({ x: 0, y: 0 }), [D, M] = Ae({ scale: 1, x: 0, y: 0 });
34010
34011
  Bn(() => {
34011
34012
  const j = _.current;
@@ -34054,7 +34055,7 @@ const o3 = [
34054
34055
  {
34055
34056
  className: er.zoomInner,
34056
34057
  style: { transform: `translate(${D.x}px, ${D.y}px) scale(${D.scale})` },
34057
- children: l ? /* @__PURE__ */ $("div", { className: er.cubeCross, children: o3.map(
34058
+ children: l ? /* @__PURE__ */ $("div", { className: er.cubeCross, children: s3.map(
34058
34059
  (j, F) => j ? /* @__PURE__ */ Rt("div", { className: er.cubeFace, children: [
34059
34060
  /* @__PURE__ */ $("img", { src: Jw(s.image[j.faceIndex]), alt: j.label }),
34060
34061
  /* @__PURE__ */ $("span", { className: er.faceLabel, children: j.label })
@@ -34083,7 +34084,7 @@ const o3 = [
34083
34084
  stats: [
34084
34085
  { label: "Size", value: `${c} × ${p}` },
34085
34086
  { label: "Memory", value: S >= 0.1 ? `${S.toFixed(2)} MB` : `${(S * 1024).toFixed(2)} KB` },
34086
- { label: "Color Space", value: i3(s.colorSpace) },
34087
+ { label: "Color Space", value: o3(s.colorSpace) },
34087
34088
  { label: "Wrap S", value: aT(s.wrapS) },
34088
34089
  { label: "Wrap T", value: aT(s.wrapT) },
34089
34090
  ...l ? [{ label: "Type", value: "Cube" }] : []
@@ -34091,7 +34092,7 @@ const o3 = [
34091
34092
  }
34092
34093
  )
34093
34094
  ] });
34094
- }, r3 = () => {
34095
+ }, u3 = () => {
34095
34096
  const s = vf.instance().editor, l = "application/mavonengine-resource", o = "application/mavonengine-prefab", c = "application/mavonengine-particle", p = "application/mavonengine-primitive", b = "application/mavonengine-light", S = Object.keys(nx).map((U) => ({ name: U, label: U })), _ = Object.keys(ex).map((U) => ({ name: U, label: U })), C = [
34096
34097
  { name: "Water", label: "Water" },
34097
34098
  { name: "Grass", label: "Grass" }
@@ -34263,7 +34264,7 @@ const o3 = [
34263
34264
  A.map(({ id: U, title: et, item: ht }) => {
34264
34265
  const xt = U % 6 * 24;
34265
34266
  return /* @__PURE__ */ Rt(
34266
- PR,
34267
+ QR,
34267
34268
  {
34268
34269
  title: et,
34269
34270
  defaultX: (window.innerWidth - 400) / 2 + xt,
@@ -34271,10 +34272,10 @@ const o3 = [
34271
34272
  storageKey: ht instanceof AudioBuffer ? "audioViewer" : "scene" in ht ? "modelViewer" : ht instanceof d_ ? "textureViewer" : "particleName" in ht ? "particleViewer" : void 0,
34272
34273
  onClose: () => pt(U),
34273
34274
  children: [
34274
- ht instanceof AudioBuffer && /* @__PURE__ */ $(xO, { buffer: ht }),
34275
- "scene" in ht && /* @__PURE__ */ $(PO, { model: ht.scene, animations: ht.animations }),
34276
- ht instanceof d_ && /* @__PURE__ */ $(s3, { texture: ht }),
34277
- "particleName" in ht && /* @__PURE__ */ $(ZO, { particleName: ht.particleName })
34275
+ ht instanceof AudioBuffer && /* @__PURE__ */ $(TO, { buffer: ht }),
34276
+ "scene" in ht && /* @__PURE__ */ $(QO, { model: ht.scene, animations: ht.animations }),
34277
+ ht instanceof d_ && /* @__PURE__ */ $(r3, { texture: ht }),
34278
+ "particleName" in ht && /* @__PURE__ */ $(KO, { particleName: ht.particleName })
34278
34279
  ]
34279
34280
  },
34280
34281
  U
@@ -34419,7 +34420,7 @@ const o3 = [
34419
34420
  onDoubleClick: () => at(U, et),
34420
34421
  onDragStart: (ht) => j(ht, U),
34421
34422
  draggable: !0,
34422
- src: l3(et)
34423
+ src: i3(et)
34423
34424
  }
34424
34425
  ) : /* @__PURE__ */ $(
34425
34426
  "img",
@@ -34433,7 +34434,7 @@ const o3 = [
34433
34434
  ] }, U)) })
34434
34435
  ] })
34435
34436
  ] });
34436
- }, u3 = () => {
34437
+ }, c3 = () => {
34437
34438
  const s = Ee(null);
34438
34439
  return Bn(() => {
34439
34440
  var p;
@@ -34448,22 +34449,22 @@ const o3 = [
34448
34449
  const { clientWidth: o, clientHeight: c } = s.current;
34449
34450
  window.Game.sizes.setSize(o, c);
34450
34451
  }, children: /* @__PURE__ */ Rt("div", { className: Fa.wrapper, children: [
34451
- /* @__PURE__ */ $(BO, {}),
34452
+ /* @__PURE__ */ $(jO, {}),
34452
34453
  /* @__PURE__ */ $("div", { ref: s, className: Fa.canvas })
34453
34454
  ] }) });
34454
- }, c3 = "_root_ngf3k_1", f3 = "_main_ngf3k_8", d3 = "_editor_ngf3k_14", h3 = "_panel_ngf3k_20", p3 = "_panelContent_ngf3k_27", m3 = "_panelBody_ngf3k_34", v3 = "_middleGroup_ngf3k_40", ji = {
34455
- root: c3,
34456
- main: f3,
34457
- editor: d3,
34458
- panel: h3,
34459
- panelContent: p3,
34460
- panelBody: m3,
34461
- middleGroup: v3
34462
- }, g3 = "_panelHeader_25fch_1", b3 = {
34463
- panelHeader: g3
34455
+ }, f3 = "_root_ngf3k_1", d3 = "_main_ngf3k_8", h3 = "_editor_ngf3k_14", p3 = "_panel_ngf3k_20", m3 = "_panelContent_ngf3k_27", v3 = "_panelBody_ngf3k_34", g3 = "_middleGroup_ngf3k_40", ji = {
34456
+ root: f3,
34457
+ main: d3,
34458
+ editor: h3,
34459
+ panel: p3,
34460
+ panelContent: m3,
34461
+ panelBody: v3,
34462
+ middleGroup: g3
34463
+ }, b3 = "_panelHeader_25fch_1", y3 = {
34464
+ panelHeader: b3
34464
34465
  };
34465
34466
  function Uw({ title: s }) {
34466
- return /* @__PURE__ */ $("div", { className: b3.panelHeader, children: s });
34467
+ return /* @__PURE__ */ $("div", { className: y3.panelHeader, children: s });
34467
34468
  }
34468
34469
  /*! Tweakpane 4.0.5 (c) 2016 cocopon, licensed under the MIT license. */
34469
34470
  function cn(s) {
@@ -34475,7 +34476,7 @@ function f2(s) {
34475
34476
  function $w(s) {
34476
34477
  return s !== null && typeof s == "object";
34477
34478
  }
34478
- function y3(s, l) {
34479
+ function _3(s, l) {
34479
34480
  if (s.length !== l.length)
34480
34481
  return !1;
34481
34482
  for (let o = 0; o < s.length; o++)
@@ -34492,7 +34493,7 @@ function hh(s, l) {
34492
34493
  function d2(s) {
34493
34494
  return f2(s) ? "target" in s : !1;
34494
34495
  }
34495
- const _3 = {
34496
+ const S3 = {
34496
34497
  alreadydisposed: () => "View has been already disposed",
34497
34498
  invalidparams: (s) => `Invalid parameters for '${s.name}'`,
34498
34499
  nomatchingcontroller: (s) => `No matching controller for '${s.key}'`,
@@ -34532,7 +34533,7 @@ class Hn {
34532
34533
  }
34533
34534
  constructor(l) {
34534
34535
  var o;
34535
- this.message = (o = _3[l.type](l.context)) !== null && o !== void 0 ? o : "Unexpected error", this.name = this.constructor.name, this.stack = new Error(this.message).stack, this.type = l.type;
34536
+ this.message = (o = S3[l.type](l.context)) !== null && o !== void 0 ? o : "Unexpected error", this.name = this.constructor.name, this.stack = new Error(this.message).stack, this.type = l.type;
34536
34537
  }
34537
34538
  toString() {
34538
34539
  return this.message;
@@ -34583,7 +34584,7 @@ class pa {
34583
34584
  });
34584
34585
  }
34585
34586
  }
34586
- class S3 {
34587
+ class w3 {
34587
34588
  constructor(l, o) {
34588
34589
  var c;
34589
34590
  this.constraint_ = o == null ? void 0 : o.constraint, this.equals_ = (c = o == null ? void 0 : o.equals) !== null && c !== void 0 ? c : ((p, b) => p === b), this.emitter = new pa(), this.rawValue_ = l;
@@ -34615,7 +34616,7 @@ class S3 {
34615
34616
  }));
34616
34617
  }
34617
34618
  }
34618
- class w3 {
34619
+ class E3 {
34619
34620
  constructor(l) {
34620
34621
  this.emitter = new pa(), this.value_ = l;
34621
34622
  }
@@ -34643,7 +34644,7 @@ class w3 {
34643
34644
  }));
34644
34645
  }
34645
34646
  }
34646
- class E3 {
34647
+ class C3 {
34647
34648
  constructor(l) {
34648
34649
  this.emitter = new pa(), this.onValueBeforeChange_ = this.onValueBeforeChange_.bind(this), this.onValueChange_ = this.onValueChange_.bind(this), this.value_ = l, this.value_.emitter.on("beforechange", this.onValueBeforeChange_), this.value_.emitter.on("change", this.onValueChange_);
34649
34650
  }
@@ -34659,11 +34660,11 @@ class E3 {
34659
34660
  }
34660
34661
  function Sn(s, l) {
34661
34662
  const o = l == null ? void 0 : l.constraint, c = l == null ? void 0 : l.equals;
34662
- return !o && !c ? new w3(s) : new S3(s, l);
34663
+ return !o && !c ? new E3(s) : new w3(s, l);
34663
34664
  }
34664
- function C3(s) {
34665
+ function x3(s) {
34665
34666
  return [
34666
- new E3(s),
34667
+ new C3(s),
34667
34668
  (l, o) => {
34668
34669
  s.setRawValue(l, o);
34669
34670
  }
@@ -34711,7 +34712,7 @@ class R0 {
34711
34712
  return Math.min(Math.max(l, c), o);
34712
34713
  }
34713
34714
  }
34714
- class x3 {
34715
+ class T3 {
34715
34716
  constructor(l) {
34716
34717
  this.values = he.fromObject({
34717
34718
  max: l.max,
@@ -34724,7 +34725,7 @@ class x3 {
34724
34725
  return cn(c) || (p = Math.max(p, c)), cn(o) || (p = Math.min(p, o)), p;
34725
34726
  }
34726
34727
  }
34727
- class T3 {
34728
+ class D3 {
34728
34729
  constructor(l, o = 0) {
34729
34730
  this.step = l, this.origin = o;
34730
34731
  }
@@ -34733,7 +34734,7 @@ class T3 {
34733
34734
  return o + c * this.step;
34734
34735
  }
34735
34736
  }
34736
- class D3 {
34737
+ class z3 {
34737
34738
  constructor(l) {
34738
34739
  this.text = l;
34739
34740
  }
@@ -34744,7 +34745,7 @@ class D3 {
34744
34745
  return this.text;
34745
34746
  }
34746
34747
  }
34747
- const z3 = {
34748
+ const M3 = {
34748
34749
  "**": (s, l) => Math.pow(s, l),
34749
34750
  "*": (s, l) => s * l,
34750
34751
  "/": (s, l) => s / l,
@@ -34758,12 +34759,12 @@ const z3 = {
34758
34759
  "^": (s, l) => s ^ l,
34759
34760
  "|": (s, l) => s | l
34760
34761
  };
34761
- class M3 {
34762
+ class A3 {
34762
34763
  constructor(l, o, c) {
34763
34764
  this.left = o, this.operator = l, this.right = c;
34764
34765
  }
34765
34766
  evaluate() {
34766
- const l = z3[this.operator];
34767
+ const l = M3[this.operator];
34767
34768
  if (!l)
34768
34769
  throw new Error(`unexpected binary operator: '${this.operator}`);
34769
34770
  return l(this.left.evaluate(), this.right.evaluate());
@@ -34778,17 +34779,17 @@ class M3 {
34778
34779
  ].join(" ");
34779
34780
  }
34780
34781
  }
34781
- const A3 = {
34782
+ const R3 = {
34782
34783
  "+": (s) => s,
34783
34784
  "-": (s) => -s,
34784
34785
  "~": (s) => ~s
34785
34786
  };
34786
- class R3 {
34787
+ class O3 {
34787
34788
  constructor(l, o) {
34788
34789
  this.operator = l, this.expression = o;
34789
34790
  }
34790
34791
  evaluate() {
34791
- const l = A3[this.operator];
34792
+ const l = R3[this.operator];
34792
34793
  if (!l)
34793
34794
  throw new Error(`unexpected unary operator: '${this.operator}`);
34794
34795
  return l(this.expression.evaluate());
@@ -34812,7 +34813,7 @@ function C0(s, l) {
34812
34813
  const c = s.substr(l).match(/^\s+/);
34813
34814
  return (o = c && c[0]) !== null && o !== void 0 ? o : "";
34814
34815
  }
34815
- function O3(s, l) {
34816
+ function U3(s, l) {
34816
34817
  const o = s.substr(l, 1);
34817
34818
  return o.match(/^[1-9]$/) ? o : "";
34818
34819
  }
@@ -34821,7 +34822,7 @@ function x0(s, l) {
34821
34822
  const c = s.substr(l).match(/^[0-9]+/);
34822
34823
  return (o = c && c[0]) !== null && o !== void 0 ? o : "";
34823
34824
  }
34824
- function U3(s, l) {
34825
+ function N3(s, l) {
34825
34826
  const o = x0(s, l);
34826
34827
  if (o !== "")
34827
34828
  return o;
@@ -34835,17 +34836,17 @@ function p2(s, l) {
34835
34836
  const o = s.substr(l, 1);
34836
34837
  if (l += 1, o.toLowerCase() !== "e")
34837
34838
  return "";
34838
- const c = U3(s, l);
34839
+ const c = N3(s, l);
34839
34840
  return c === "" ? "" : o + c;
34840
34841
  }
34841
34842
  function _D(s, l) {
34842
34843
  const o = s.substr(l, 1);
34843
34844
  if (o === "0")
34844
34845
  return o;
34845
- const c = O3(s, l);
34846
+ const c = U3(s, l);
34846
34847
  return l += c.length, c === "" ? "" : c + x0(s, l);
34847
34848
  }
34848
- function N3(s, l) {
34849
+ function L3(s, l) {
34849
34850
  const o = _D(s, l);
34850
34851
  if (l += o.length, o === "")
34851
34852
  return "";
@@ -34855,74 +34856,74 @@ function N3(s, l) {
34855
34856
  const p = x0(s, l);
34856
34857
  return l += p.length, o + c + p + p2(s, l);
34857
34858
  }
34858
- function L3(s, l) {
34859
+ function H3(s, l) {
34859
34860
  const o = s.substr(l, 1);
34860
34861
  if (l += o.length, o !== ".")
34861
34862
  return "";
34862
34863
  const c = x0(s, l);
34863
34864
  return l += c.length, c === "" ? "" : o + c + p2(s, l);
34864
34865
  }
34865
- function H3(s, l) {
34866
+ function B3(s, l) {
34866
34867
  const o = _D(s, l);
34867
34868
  return l += o.length, o === "" ? "" : o + p2(s, l);
34868
34869
  }
34869
- const B3 = h2([
34870
- N3,
34870
+ const j3 = h2([
34871
34871
  L3,
34872
- H3
34872
+ H3,
34873
+ B3
34873
34874
  ]);
34874
- function j3(s, l) {
34875
+ function V3(s, l) {
34875
34876
  var o;
34876
34877
  const c = s.substr(l).match(/^[01]+/);
34877
34878
  return (o = c && c[0]) !== null && o !== void 0 ? o : "";
34878
34879
  }
34879
- function V3(s, l) {
34880
+ function G3(s, l) {
34880
34881
  const o = s.substr(l, 2);
34881
34882
  if (l += o.length, o.toLowerCase() !== "0b")
34882
34883
  return "";
34883
- const c = j3(s, l);
34884
+ const c = V3(s, l);
34884
34885
  return c === "" ? "" : o + c;
34885
34886
  }
34886
- function G3(s, l) {
34887
+ function q3(s, l) {
34887
34888
  var o;
34888
34889
  const c = s.substr(l).match(/^[0-7]+/);
34889
34890
  return (o = c && c[0]) !== null && o !== void 0 ? o : "";
34890
34891
  }
34891
- function q3(s, l) {
34892
+ function k3(s, l) {
34892
34893
  const o = s.substr(l, 2);
34893
34894
  if (l += o.length, o.toLowerCase() !== "0o")
34894
34895
  return "";
34895
- const c = G3(s, l);
34896
+ const c = q3(s, l);
34896
34897
  return c === "" ? "" : o + c;
34897
34898
  }
34898
- function k3(s, l) {
34899
+ function Y3(s, l) {
34899
34900
  var o;
34900
34901
  const c = s.substr(l).match(/^[0-9a-f]+/i);
34901
34902
  return (o = c && c[0]) !== null && o !== void 0 ? o : "";
34902
34903
  }
34903
- function Y3(s, l) {
34904
+ function X3(s, l) {
34904
34905
  const o = s.substr(l, 2);
34905
34906
  if (l += o.length, o.toLowerCase() !== "0x")
34906
34907
  return "";
34907
- const c = k3(s, l);
34908
+ const c = Y3(s, l);
34908
34909
  return c === "" ? "" : o + c;
34909
34910
  }
34910
- const X3 = h2([
34911
- V3,
34912
- q3,
34913
- Y3
34914
- ]), P3 = h2([
34915
- X3,
34916
- B3
34911
+ const P3 = h2([
34912
+ G3,
34913
+ k3,
34914
+ X3
34915
+ ]), Q3 = h2([
34916
+ P3,
34917
+ j3
34917
34918
  ]);
34918
- function Q3(s, l) {
34919
- const o = P3(s, l);
34919
+ function Z3(s, l) {
34920
+ const o = Q3(s, l);
34920
34921
  return l += o.length, o === "" ? null : {
34921
- evaluable: new D3(o),
34922
+ evaluable: new z3(o),
34922
34923
  cursor: l
34923
34924
  };
34924
34925
  }
34925
- function Z3(s, l) {
34926
+ function K3(s, l) {
34926
34927
  const o = s.substr(l, 1);
34927
34928
  if (l += o.length, o !== "(")
34928
34929
  return null;
@@ -34936,12 +34937,12 @@ function Z3(s, l) {
34936
34937
  cursor: l
34937
34938
  };
34938
34939
  }
34939
- function K3(s, l) {
34940
+ function J3(s, l) {
34940
34941
  var o;
34941
- return (o = Q3(s, l)) !== null && o !== void 0 ? o : Z3(s, l);
34942
+ return (o = Z3(s, l)) !== null && o !== void 0 ? o : K3(s, l);
34942
34943
  }
34943
34944
  function SD(s, l) {
34944
- const o = K3(s, l);
34945
+ const o = J3(s, l);
34945
34946
  if (o)
34946
34947
  return o;
34947
34948
  const c = s.substr(l, 1);
@@ -34950,10 +34951,10 @@ function SD(s, l) {
34950
34951
  const p = SD(s, l);
34951
34952
  return p ? (l = p.cursor, {
34952
34953
  cursor: l,
34953
- evaluable: new R3(c, p.evaluable)
34954
+ evaluable: new O3(c, p.evaluable)
34954
34955
  }) : null;
34955
34956
  }
34956
- function J3(s, l, o) {
34957
+ function $3(s, l, o) {
34957
34958
  o += C0(l, o).length;
34958
34959
  const c = s.filter((p) => l.startsWith(p, o))[0];
34959
34960
  return c ? (o += c.length, o += C0(l, o).length, {
@@ -34961,7 +34962,7 @@ function J3(s, l, o) {
34961
34962
  operator: c
34962
34963
  }) : null;
34963
34964
  }
34964
- function $3(s, l) {
34965
+ function W3(s, l) {
34965
34966
  return (o, c) => {
34966
34967
  const p = s(o, c);
34967
34968
  if (!p)
@@ -34969,14 +34970,14 @@ function $3(s, l) {
34969
34970
  c = p.cursor;
34970
34971
  let b = p.evaluable;
34971
34972
  for (; ; ) {
34972
- const S = J3(l, o, c);
34973
+ const S = $3(l, o, c);
34973
34974
  if (!S)
34974
34975
  break;
34975
34976
  c = S.cursor;
34976
34977
  const _ = s(o, c);
34977
34978
  if (!_)
34978
34979
  return null;
34979
- c = _.cursor, b = new M3(S.operator, b, _.evaluable);
34980
+ c = _.cursor, b = new A3(S.operator, b, _.evaluable);
34980
34981
  }
34981
34982
  return b ? {
34982
34983
  cursor: c,
@@ -34984,7 +34985,7 @@ function $3(s, l) {
34984
34985
  } : null;
34985
34986
  };
34986
34987
  }
34987
- const W3 = [
34988
+ const F3 = [
34988
34989
  ["**"],
34989
34990
  ["*", "/", "%"],
34990
34991
  ["+", "-"],
@@ -34992,17 +34993,17 @@ const W3 = [
34992
34993
  ["&"],
34993
34994
  ["^"],
34994
34995
  ["|"]
34995
- ].reduce((s, l) => $3(s, l), SD);
34996
+ ].reduce((s, l) => W3(s, l), SD);
34996
34997
  function wD(s, l) {
34997
- return l += C0(s, l).length, W3(s, l);
34998
+ return l += C0(s, l).length, F3(s, l);
34998
34999
  }
34999
- function F3(s) {
35000
+ function I3(s) {
35000
35001
  const l = wD(s, 0);
35001
35002
  return !l || l.cursor + C0(s, l.cursor).length !== s.length ? null : l.evaluable;
35002
35003
  }
35003
35004
  function Cu(s) {
35004
35005
  var l;
35005
- const o = F3(s);
35006
+ const o = I3(s);
35006
35007
  return (l = o == null ? void 0 : o.evaluate()) !== null && l !== void 0 ? l : null;
35007
35008
  }
35008
35009
  function ED(s) {
@@ -35015,7 +35016,7 @@ function ED(s) {
35015
35016
  }
35016
35017
  return 0;
35017
35018
  }
35018
- function I3(s) {
35019
+ function t4(s) {
35019
35020
  return String(s);
35020
35021
  }
35021
35022
  function oi(s) {
@@ -35034,7 +35035,7 @@ function Ea(s, l, o) {
35034
35035
  function CD(s, l) {
35035
35036
  return (s % l + l) % l;
35036
35037
  }
35037
- function t4(s, l) {
35038
+ function e4(s, l) {
35038
35039
  return cn(s.step) ? Math.max(lT(l), 2) : lT(s.step);
35039
35040
  }
35040
35041
  function xD(s) {
@@ -35047,13 +35048,13 @@ function TD(s, l) {
35047
35048
  return c === 0 ? 0.1 : Math.pow(10, Math.floor(Math.log10(c)) - 1);
35048
35049
  }
35049
35050
  function DD(s, l) {
35050
- return cn(s.step) ? null : new T3(s.step, l);
35051
+ return cn(s.step) ? null : new D3(s.step, l);
35051
35052
  }
35052
35053
  function zD(s) {
35053
35054
  return !cn(s.max) && !cn(s.min) ? new R0({
35054
35055
  max: s.max,
35055
35056
  min: s.min
35056
- }) : !cn(s.max) || !cn(s.min) ? new x3({
35057
+ }) : !cn(s.max) || !cn(s.min) ? new T3({
35057
35058
  max: s.max,
35058
35059
  min: s.min
35059
35060
  }) : null;
@@ -35061,7 +35062,7 @@ function zD(s) {
35061
35062
  function MD(s, l) {
35062
35063
  var o, c, p;
35063
35064
  return {
35064
- formatter: (o = s.format) !== null && o !== void 0 ? o : oi(t4(s, l)),
35065
+ formatter: (o = s.format) !== null && o !== void 0 ? o : oi(e4(s, l)),
35065
35066
  keyScale: (c = s.keyScale) !== null && c !== void 0 ? c : xD(s),
35066
35067
  pointerScale: (p = s.pointerScale) !== null && p !== void 0 ? p : TD(s, l)
35067
35068
  };
@@ -35121,17 +35122,17 @@ class O0 extends G_ {
35121
35122
  super(l), this.value = o, this.last = c ?? !0;
35122
35123
  }
35123
35124
  }
35124
- class e4 extends G_ {
35125
+ class n4 extends G_ {
35125
35126
  constructor(l, o) {
35126
35127
  super(l), this.expanded = o;
35127
35128
  }
35128
35129
  }
35129
- class n4 extends G_ {
35130
+ class a4 extends G_ {
35130
35131
  constructor(l, o) {
35131
35132
  super(l), this.index = o;
35132
35133
  }
35133
35134
  }
35134
- class a4 extends G_ {
35135
+ class l4 extends G_ {
35135
35136
  constructor(l, o) {
35136
35137
  super(l), this.native = o;
35137
35138
  }
@@ -35174,7 +35175,7 @@ class T0 extends gh {
35174
35175
  this.emitter_.emit("change", new O0(this, o.binding.target.read(), l.options.last));
35175
35176
  }
35176
35177
  }
35177
- class l4 {
35178
+ class i4 {
35178
35179
  constructor(l, o) {
35179
35180
  this.onValueBeforeChange_ = this.onValueBeforeChange_.bind(this), this.onValueChange_ = this.onValueChange_.bind(this), this.binding = o, this.value_ = l, this.value_.emitter.on("beforechange", this.onValueBeforeChange_), this.value_.emitter.on("change", this.onValueChange_), this.emitter = new pa();
35180
35181
  }
@@ -35200,13 +35201,13 @@ class l4 {
35200
35201
  this.push(), this.emitter.emit("change", Object.assign(Object.assign({}, l), { sender: this }));
35201
35202
  }
35202
35203
  }
35203
- function i4(s) {
35204
+ function o4(s) {
35204
35205
  if (!("binding" in s))
35205
35206
  return !1;
35206
35207
  const l = s.binding;
35207
35208
  return d2(l) && "read" in l && "write" in l;
35208
35209
  }
35209
- function o4(s, l) {
35210
+ function s4(s, l) {
35210
35211
  const c = Object.keys(l).reduce((p, b) => {
35211
35212
  if (p === void 0)
35212
35213
  return;
@@ -35215,7 +35216,7 @@ function o4(s, l) {
35215
35216
  }, {});
35216
35217
  return c;
35217
35218
  }
35218
- function s4(s, l) {
35219
+ function r4(s, l) {
35219
35220
  return s.reduce((o, c) => {
35220
35221
  if (o === void 0)
35221
35222
  return;
@@ -35224,7 +35225,7 @@ function s4(s, l) {
35224
35225
  return [...o, p.value];
35225
35226
  }, []);
35226
35227
  }
35227
- function r4(s) {
35228
+ function u4(s) {
35228
35229
  return s === null ? !1 : typeof s == "object";
35229
35230
  }
35230
35231
  function yu(s) {
@@ -35259,12 +35260,12 @@ function iT(s) {
35259
35260
  constant: (l) => yu((o) => o === l ? l : void 0)(s),
35260
35261
  raw: yu((l) => l)(s),
35261
35262
  object: (l) => yu((o) => {
35262
- if (r4(o))
35263
- return o4(o, l);
35263
+ if (u4(o))
35264
+ return s4(o, l);
35264
35265
  })(s),
35265
35266
  array: (l) => yu((o) => {
35266
35267
  if (Array.isArray(o))
35267
- return s4(o, l);
35268
+ return r4(o, l);
35268
35269
  })(s)
35269
35270
  };
35270
35271
  }
@@ -35299,33 +35300,33 @@ const ir = "http://www.w3.org/2000/svg";
35299
35300
  function U_(s) {
35300
35301
  s.offsetHeight;
35301
35302
  }
35302
- function u4(s, l) {
35303
+ function c4(s, l) {
35303
35304
  const o = s.style.transition;
35304
35305
  s.style.transition = "none", l(), s.style.transition = o;
35305
35306
  }
35306
35307
  function v2(s) {
35307
35308
  return s.ontouchstart !== void 0;
35308
35309
  }
35309
- function c4() {
35310
+ function f4() {
35310
35311
  return globalThis;
35311
35312
  }
35312
- function f4() {
35313
- return c4().document;
35313
+ function d4() {
35314
+ return f4().document;
35314
35315
  }
35315
- function d4(s) {
35316
+ function h4(s) {
35316
35317
  const l = s.ownerDocument.defaultView;
35317
35318
  return l && "document" in l ? s.getContext("2d", {
35318
35319
  willReadFrequently: !0
35319
35320
  }) : null;
35320
35321
  }
35321
- const h4 = {
35322
+ const p4 = {
35322
35323
  check: '<path d="M2 8l4 4l8 -8"/>',
35323
35324
  dropdown: '<path d="M5 7h6l-3 3 z"/>',
35324
35325
  p2dpad: '<path d="M8 4v8"/><path d="M4 8h8"/><circle cx="12" cy="12" r="1.2"/>'
35325
35326
  };
35326
35327
  function q_(s, l) {
35327
35328
  const o = s.createElementNS(ir, "svg");
35328
- return o.innerHTML = h4[l], o;
35329
+ return o.innerHTML = p4[l], o;
35329
35330
  }
35330
35331
  function OD(s, l, o) {
35331
35332
  s.insertBefore(l, s.children[o]);
@@ -35337,7 +35338,7 @@ function UD(s) {
35337
35338
  for (; s.children.length > 0; )
35338
35339
  s.removeChild(s.children[0]);
35339
35340
  }
35340
- function p4(s) {
35341
+ function m4(s) {
35341
35342
  for (; s.childNodes.length > 0; )
35342
35343
  s.removeChild(s.childNodes[0]);
35343
35344
  }
@@ -35352,10 +35353,10 @@ function wu(s, l) {
35352
35353
  function sr(s, l, o) {
35353
35354
  wu(s.value(l), o);
35354
35355
  }
35355
- const m4 = "tp";
35356
+ const v4 = "tp";
35356
35357
  function Re(s) {
35357
35358
  return (o, c) => [
35358
- m4,
35359
+ v4,
35359
35360
  "-",
35360
35361
  s,
35361
35362
  "v",
@@ -35364,7 +35365,7 @@ function Re(s) {
35364
35365
  ].join("");
35365
35366
  }
35366
35367
  const d0 = Re("lbl");
35367
- function v4(s, l) {
35368
+ function g4(s, l) {
35368
35369
  const o = s.createDocumentFragment();
35369
35370
  return l.split(`
35370
35371
  `).map((p) => s.createTextNode(p)).forEach((p, b) => {
@@ -35376,7 +35377,7 @@ class LD {
35376
35377
  this.element = l.createElement("div"), this.element.classList.add(d0()), o.viewProps.bindClassModifiers(this.element);
35377
35378
  const c = l.createElement("div");
35378
35379
  c.classList.add(d0("l")), sr(o.props, "label", (b) => {
35379
- cn(b) ? this.element.classList.add(d0(void 0, "nol")) : (this.element.classList.remove(d0(void 0, "nol")), p4(c), c.appendChild(v4(l, b)));
35380
+ cn(b) ? this.element.classList.add(d0(void 0, "nol")) : (this.element.classList.remove(d0(void 0, "nol")), m4(c), c.appendChild(g4(l, b)));
35380
35381
  }), this.element.appendChild(c), this.labelElement = c;
35381
35382
  const p = l.createElement("div");
35382
35383
  p.classList.add(d0("v")), this.element.appendChild(p), this.valueElement = p;
@@ -35400,7 +35401,7 @@ class HD {
35400
35401
  });
35401
35402
  }
35402
35403
  }
35403
- function g4() {
35404
+ function b4() {
35404
35405
  return ["veryfirst", "first", "last", "verylast"];
35405
35406
  }
35406
35407
  const oT = Re(""), sT = {
@@ -35414,7 +35415,7 @@ class k_ {
35414
35415
  this.parent_ = null, this.blade = l.blade, this.view = l.view, this.viewProps = l.viewProps;
35415
35416
  const o = this.view.element;
35416
35417
  this.blade.value("positions").emitter.on("change", () => {
35417
- g4().forEach((c) => {
35418
+ b4().forEach((c) => {
35418
35419
  o.classList.remove(oT(void 0, sT[c]));
35419
35420
  }), this.blade.get("positions").forEach((c) => {
35420
35421
  o.classList.add(oT(void 0, sT[c]));
@@ -35494,10 +35495,10 @@ class BD extends ph {
35494
35495
  });
35495
35496
  }
35496
35497
  }
35497
- function b4(s) {
35498
+ function y4(s) {
35498
35499
  return ch(s) && RD(s.value);
35499
35500
  }
35500
- class y4 extends BD {
35501
+ class _4 extends BD {
35501
35502
  importState(l) {
35502
35503
  return Vi(l, (o) => super.importState(o), (o) => ({
35503
35504
  binding: o.required.object({
@@ -35506,28 +35507,28 @@ class y4 extends BD {
35506
35507
  }), (o) => (this.value.binding.inject(o.binding.value), this.value.fetch(), !0));
35507
35508
  }
35508
35509
  }
35509
- function _4(s) {
35510
- return ch(s) && i4(s.value);
35510
+ function S4(s) {
35511
+ return ch(s) && o4(s.value);
35511
35512
  }
35512
35513
  function jD(s, l) {
35513
35514
  for (; s.length < l; )
35514
35515
  s.push(void 0);
35515
35516
  }
35516
- function S4(s) {
35517
+ function w4(s) {
35517
35518
  const l = [];
35518
35519
  return jD(l, s), l;
35519
35520
  }
35520
- function w4(s) {
35521
+ function E4(s) {
35521
35522
  const l = s.indexOf(void 0);
35522
35523
  return l < 0 ? s : s.slice(0, l);
35523
35524
  }
35524
- function E4(s, l) {
35525
- const o = [...w4(s), l];
35525
+ function C4(s, l) {
35526
+ const o = [...E4(s), l];
35526
35527
  return o.length > s.length ? o.splice(0, o.length - s.length) : jD(o, s.length), o;
35527
35528
  }
35528
- class C4 {
35529
+ class x4 {
35529
35530
  constructor(l) {
35530
- this.emitter = new pa(), this.onTick_ = this.onTick_.bind(this), this.onValueBeforeChange_ = this.onValueBeforeChange_.bind(this), this.onValueChange_ = this.onValueChange_.bind(this), this.binding = l.binding, this.value_ = Sn(S4(l.bufferSize)), this.value_.emitter.on("beforechange", this.onValueBeforeChange_), this.value_.emitter.on("change", this.onValueChange_), this.ticker = l.ticker, this.ticker.emitter.on("tick", this.onTick_), this.fetch();
35531
+ this.emitter = new pa(), this.onTick_ = this.onTick_.bind(this), this.onValueBeforeChange_ = this.onValueBeforeChange_.bind(this), this.onValueChange_ = this.onValueChange_.bind(this), this.binding = l.binding, this.value_ = Sn(w4(l.bufferSize)), this.value_.emitter.on("beforechange", this.onValueBeforeChange_), this.value_.emitter.on("change", this.onValueChange_), this.ticker = l.ticker, this.ticker.emitter.on("tick", this.onTick_), this.fetch();
35531
35532
  }
35532
35533
  get rawValue() {
35533
35534
  return this.value_.rawValue;
@@ -35539,7 +35540,7 @@ class C4 {
35539
35540
  this.value_.setRawValue(l, o);
35540
35541
  }
35541
35542
  fetch() {
35542
- this.value_.rawValue = E4(this.value_.rawValue, this.binding.read());
35543
+ this.value_.rawValue = C4(this.value_.rawValue, this.binding.read());
35543
35544
  }
35544
35545
  onTick_() {
35545
35546
  this.fetch();
@@ -35551,13 +35552,13 @@ class C4 {
35551
35552
  this.emitter.emit("change", Object.assign(Object.assign({}, l), { sender: this }));
35552
35553
  }
35553
35554
  }
35554
- function x4(s) {
35555
+ function T4(s) {
35555
35556
  if (!("binding" in s))
35556
35557
  return !1;
35557
35558
  const l = s.binding;
35558
35559
  return d2(l) && "read" in l && !("write" in l);
35559
35560
  }
35560
- class T4 extends BD {
35561
+ class D4 extends BD {
35561
35562
  exportState() {
35562
35563
  return Gi(() => super.exportState(), {
35563
35564
  binding: {
@@ -35566,10 +35567,10 @@ class T4 extends BD {
35566
35567
  });
35567
35568
  }
35568
35569
  }
35569
- function D4(s) {
35570
- return ch(s) && x4(s.value);
35570
+ function z4(s) {
35571
+ return ch(s) && T4(s.value);
35571
35572
  }
35572
- class z4 extends gh {
35573
+ class M4 extends gh {
35573
35574
  get label() {
35574
35575
  return this.controller.labelController.props.get("label");
35575
35576
  }
@@ -35586,19 +35587,19 @@ class z4 extends gh {
35586
35587
  on(l, o) {
35587
35588
  const c = o.bind(this);
35588
35589
  return this.controller.buttonController.emitter.on(l, (b) => {
35589
- c(new a4(this, b.nativeEvent));
35590
+ c(new l4(this, b.nativeEvent));
35590
35591
  }), this;
35591
35592
  }
35592
35593
  off(l, o) {
35593
35594
  return this.controller.buttonController.emitter.off(l, o), this;
35594
35595
  }
35595
35596
  }
35596
- function M4(s, l, o) {
35597
+ function A4(s, l, o) {
35597
35598
  o ? s.classList.add(l) : s.classList.remove(l);
35598
35599
  }
35599
35600
  function iv(s, l) {
35600
35601
  return (o) => {
35601
- M4(s, l, o);
35602
+ A4(s, l, o);
35602
35603
  };
35603
35604
  }
35604
35605
  function b2(s, l) {
@@ -35607,7 +35608,7 @@ function b2(s, l) {
35607
35608
  });
35608
35609
  }
35609
35610
  const Nw = Re("btn");
35610
- class A4 {
35611
+ class R4 {
35611
35612
  constructor(l, o) {
35612
35613
  this.element = l.createElement("div"), this.element.classList.add(Nw()), o.viewProps.bindClassModifiers(this.element);
35613
35614
  const c = l.createElement("button");
@@ -35616,9 +35617,9 @@ class A4 {
35616
35617
  p.classList.add(Nw("t")), b2(o.props.value("title"), p), this.buttonElement.appendChild(p);
35617
35618
  }
35618
35619
  }
35619
- class R4 {
35620
+ class O4 {
35620
35621
  constructor(l, o) {
35621
- this.emitter = new pa(), this.onClick_ = this.onClick_.bind(this), this.props = o.props, this.viewProps = o.viewProps, this.view = new A4(l, {
35622
+ this.emitter = new pa(), this.onClick_ = this.onClick_.bind(this), this.props = o.props, this.viewProps = o.viewProps, this.view = new R4(l, {
35622
35623
  props: this.props,
35623
35624
  viewProps: this.viewProps
35624
35625
  }), this.view.buttonElement.addEventListener("click", this.onClick_);
@@ -35642,7 +35643,7 @@ class R4 {
35642
35643
  }
35643
35644
  class uT extends k_ {
35644
35645
  constructor(l, o) {
35645
- const c = new R4(l, {
35646
+ const c = new O4(l, {
35646
35647
  props: o.buttonProps,
35647
35648
  viewProps: o.viewProps
35648
35649
  }), p = new HD(l, {
@@ -35677,7 +35678,7 @@ const ov = new VD("2.0.5");
35677
35678
  function jl(s) {
35678
35679
  return Object.assign({ core: ov }, s);
35679
35680
  }
35680
- const O4 = jl({
35681
+ const U4 = jl({
35681
35682
  id: "button",
35682
35683
  type: "blade",
35683
35684
  accept(s) {
@@ -35701,27 +35702,27 @@ const O4 = jl({
35701
35702
  });
35702
35703
  },
35703
35704
  api(s) {
35704
- return s.controller instanceof uT ? new z4(s.controller) : null;
35705
+ return s.controller instanceof uT ? new M4(s.controller) : null;
35705
35706
  }
35706
35707
  });
35707
- function U4(s, l) {
35708
+ function N4(s, l) {
35708
35709
  return s.addBlade(Object.assign(Object.assign({}, l), { view: "button" }));
35709
35710
  }
35710
- function N4(s, l) {
35711
+ function L4(s, l) {
35711
35712
  return s.addBlade(Object.assign(Object.assign({}, l), { view: "folder" }));
35712
35713
  }
35713
- function L4(s, l) {
35714
+ function H4(s, l) {
35714
35715
  return s.addBlade(Object.assign(Object.assign({}, l), { view: "tab" }));
35715
35716
  }
35716
- function H4(s) {
35717
+ function B4(s) {
35717
35718
  return f2(s) ? "refresh" in s && typeof s.refresh == "function" : !1;
35718
35719
  }
35719
- function B4(s, l) {
35720
+ function j4(s, l) {
35720
35721
  if (!O_.isBindable(s))
35721
35722
  throw Hn.notBindable();
35722
35723
  return new O_(s, l);
35723
35724
  }
35724
- class j4 {
35725
+ class V4 {
35725
35726
  constructor(l, o) {
35726
35727
  this.onRackValueChange_ = this.onRackValueChange_.bind(this), this.controller_ = l, this.emitter_ = new pa(), this.pool_ = o, this.controller_.rack.emitter.on("valuechange", this.onRackValueChange_);
35727
35728
  }
@@ -35729,17 +35730,17 @@ class j4 {
35729
35730
  return this.controller_.rack.children.map((l) => this.pool_.createApi(l));
35730
35731
  }
35731
35732
  addBinding(l, o, c) {
35732
- const p = c ?? {}, b = this.controller_.element.ownerDocument, S = this.pool_.createBinding(b, B4(l, o), p), _ = this.pool_.createBindingApi(S);
35733
+ const p = c ?? {}, b = this.controller_.element.ownerDocument, S = this.pool_.createBinding(b, j4(l, o), p), _ = this.pool_.createBindingApi(S);
35733
35734
  return this.add(_, p.index);
35734
35735
  }
35735
35736
  addFolder(l) {
35736
- return N4(this, l);
35737
+ return L4(this, l);
35737
35738
  }
35738
35739
  addButton(l) {
35739
- return U4(this, l);
35740
+ return N4(this, l);
35740
35741
  }
35741
35742
  addTab(l) {
35742
- return L4(this, l);
35743
+ return H4(this, l);
35743
35744
  }
35744
35745
  add(l, o) {
35745
35746
  const c = l.controller;
@@ -35765,7 +35766,7 @@ class j4 {
35765
35766
  }
35766
35767
  refresh() {
35767
35768
  this.children.forEach((l) => {
35768
- H4(l) && l.refresh();
35769
+ B4(l) && l.refresh();
35769
35770
  });
35770
35771
  }
35771
35772
  onRackValueChange_(l) {
@@ -35775,7 +35776,7 @@ class j4 {
35775
35776
  }
35776
35777
  class y2 extends gh {
35777
35778
  constructor(l, o) {
35778
- super(l), this.rackApi_ = new j4(l.rackController, o);
35779
+ super(l), this.rackApi_ = new V4(l.rackController, o);
35779
35780
  }
35780
35781
  refresh() {
35781
35782
  this.rackApi_.refresh();
@@ -35803,7 +35804,7 @@ class _2 extends k_ {
35803
35804
  function Fw(s) {
35804
35805
  return "rackController" in s;
35805
35806
  }
35806
- class V4 {
35807
+ class G4 {
35807
35808
  constructor(l) {
35808
35809
  this.emitter = new pa(), this.items_ = [], this.cache_ = /* @__PURE__ */ new Set(), this.onSubListAdd_ = this.onSubListAdd_.bind(this), this.onSubListRemove_ = this.onSubListRemove_.bind(this), this.extract_ = l;
35809
35810
  }
@@ -35869,7 +35870,7 @@ class V4 {
35869
35870
  });
35870
35871
  }
35871
35872
  }
35872
- function G4(s, l) {
35873
+ function q4(s, l) {
35873
35874
  for (let o = 0; o < s.length; o++) {
35874
35875
  const c = s[o];
35875
35876
  if (ch(c) && c.value === l)
@@ -35877,13 +35878,13 @@ function G4(s, l) {
35877
35878
  }
35878
35879
  return null;
35879
35880
  }
35880
- function q4(s) {
35881
+ function k4(s) {
35881
35882
  return Fw(s) ? s.rackController.rack.bcSet_ : null;
35882
35883
  }
35883
- class k4 {
35884
+ class Y4 {
35884
35885
  constructor(l) {
35885
35886
  var o, c;
35886
- this.emitter = new pa(), this.onBladePositionsChange_ = this.onBladePositionsChange_.bind(this), this.onSetAdd_ = this.onSetAdd_.bind(this), this.onSetRemove_ = this.onSetRemove_.bind(this), this.onChildDispose_ = this.onChildDispose_.bind(this), this.onChildPositionsChange_ = this.onChildPositionsChange_.bind(this), this.onChildValueChange_ = this.onChildValueChange_.bind(this), this.onChildViewPropsChange_ = this.onChildViewPropsChange_.bind(this), this.onRackLayout_ = this.onRackLayout_.bind(this), this.onRackValueChange_ = this.onRackValueChange_.bind(this), this.blade_ = (o = l.blade) !== null && o !== void 0 ? o : null, (c = this.blade_) === null || c === void 0 || c.value("positions").emitter.on("change", this.onBladePositionsChange_), this.viewProps = l.viewProps, this.bcSet_ = new V4(q4), this.bcSet_.emitter.on("add", this.onSetAdd_), this.bcSet_.emitter.on("remove", this.onSetRemove_);
35887
+ this.emitter = new pa(), this.onBladePositionsChange_ = this.onBladePositionsChange_.bind(this), this.onSetAdd_ = this.onSetAdd_.bind(this), this.onSetRemove_ = this.onSetRemove_.bind(this), this.onChildDispose_ = this.onChildDispose_.bind(this), this.onChildPositionsChange_ = this.onChildPositionsChange_.bind(this), this.onChildValueChange_ = this.onChildValueChange_.bind(this), this.onChildViewPropsChange_ = this.onChildViewPropsChange_.bind(this), this.onRackLayout_ = this.onRackLayout_.bind(this), this.onRackValueChange_ = this.onRackValueChange_.bind(this), this.blade_ = (o = l.blade) !== null && o !== void 0 ? o : null, (c = this.blade_) === null || c === void 0 || c.value("positions").emitter.on("change", this.onBladePositionsChange_), this.viewProps = l.viewProps, this.bcSet_ = new G4(k4), this.bcSet_.emitter.on("add", this.onSetAdd_), this.bcSet_.emitter.on("remove", this.onSetRemove_);
35887
35888
  }
35888
35889
  get children() {
35889
35890
  return this.bcSet_.items;
@@ -35962,7 +35963,7 @@ class k4 {
35962
35963
  });
35963
35964
  }
35964
35965
  onChildValueChange_(l) {
35965
- const o = G4(this.find(ch), l.sender);
35966
+ const o = q4(this.find(ch), l.sender);
35966
35967
  if (!o)
35967
35968
  throw Hn.alreadyDisposed();
35968
35969
  this.emitter.emit("valuechange", {
@@ -35990,7 +35991,7 @@ class k4 {
35990
35991
  class S2 {
35991
35992
  constructor(l) {
35992
35993
  this.onRackAdd_ = this.onRackAdd_.bind(this), this.onRackRemove_ = this.onRackRemove_.bind(this), this.element = l.element, this.viewProps = l.viewProps;
35993
- const o = new k4({
35994
+ const o = new Y4({
35994
35995
  blade: l.root ? void 0 : l.blade,
35995
35996
  viewProps: l.viewProps
35996
35997
  });
@@ -36009,7 +36010,7 @@ class S2 {
36009
36010
  function sv() {
36010
36011
  return new he({
36011
36012
  positions: Sn([], {
36012
- equals: y3
36013
+ equals: _3
36013
36014
  })
36014
36015
  });
36015
36016
  }
@@ -36047,9 +36048,9 @@ class U0 extends he {
36047
36048
  this.set("shouldFixHeight", !1), this.set("expandedHeight", null), this.set("completed", !0);
36048
36049
  }
36049
36050
  }
36050
- function Y4(s, l) {
36051
+ function X4(s, l) {
36051
36052
  let o = 0;
36052
- return u4(l, () => {
36053
+ return c4(l, () => {
36053
36054
  s.set("expandedHeight", null), s.set("temporaryExpanded", !0), U_(l), o = l.clientHeight, s.set("temporaryExpanded", null), U_(l);
36054
36055
  }), o;
36055
36056
  }
@@ -36059,7 +36060,7 @@ function cT(s, l) {
36059
36060
  function w2(s, l) {
36060
36061
  s.value("expanded").emitter.on("beforechange", () => {
36061
36062
  if (s.set("completed", !1), cn(s.get("expandedHeight"))) {
36062
- const o = Y4(s, l);
36063
+ const o = X4(s, l);
36063
36064
  o > 0 && s.set("expandedHeight", o);
36064
36065
  }
36065
36066
  s.set("shouldFixHeight", !0), U_(l);
@@ -36072,7 +36073,7 @@ function w2(s, l) {
36072
36073
  class GD extends y2 {
36073
36074
  constructor(l, o) {
36074
36075
  super(l, o), this.emitter_ = new pa(), this.controller.foldable.value("expanded").emitter.on("change", (c) => {
36075
- this.emitter_.emit("fold", new e4(this, c.sender.rawValue));
36076
+ this.emitter_.emit("fold", new n4(this, c.sender.rawValue));
36076
36077
  }), this.rackApi_.on("change", (c) => {
36077
36078
  this.emitter_.emit("change", c);
36078
36079
  });
@@ -36126,7 +36127,7 @@ class GD extends y2 {
36126
36127
  }
36127
36128
  }
36128
36129
  const qD = Re("cnt");
36129
- class X4 {
36130
+ class P4 {
36130
36131
  constructor(l, o) {
36131
36132
  var c;
36132
36133
  this.className_ = Re((c = o.viewName) !== null && c !== void 0 ? c : "fld"), this.element = l.createElement("div"), this.element.classList.add(this.className_(), qD()), o.viewProps.bindClassModifiers(this.element), this.foldable_ = o.foldable, this.foldable_.bindExpandedClass(this.element, this.className_(void 0, "expanded")), sr(this.foldable_, "completed", iv(this.element, this.className_(void 0, "cpl")));
@@ -36147,7 +36148,7 @@ class X4 {
36147
36148
  class Iw extends _2 {
36148
36149
  constructor(l, o) {
36149
36150
  var c;
36150
- const p = U0.create((c = o.expanded) !== null && c !== void 0 ? c : !0), b = new X4(l, {
36151
+ const p = U0.create((c = o.expanded) !== null && c !== void 0 ? c : !0), b = new P4(l, {
36151
36152
  foldable: p,
36152
36153
  props: o.props,
36153
36154
  viewName: o.root ? "rot" : void 0,
@@ -36183,7 +36184,7 @@ class Iw extends _2 {
36183
36184
  this.foldable.set("expanded", !this.foldable.get("expanded"));
36184
36185
  }
36185
36186
  }
36186
- const P4 = jl({
36187
+ const Q4 = jl({
36187
36188
  id: "folder",
36188
36189
  type: "blade",
36189
36190
  accept(s) {
@@ -36207,14 +36208,14 @@ const P4 = jl({
36207
36208
  api(s) {
36208
36209
  return s.controller instanceof Iw ? new GD(s.controller, s.pool) : null;
36209
36210
  }
36210
- }), Q4 = Re("");
36211
+ }), Z4 = Re("");
36211
36212
  function fT(s, l) {
36212
- return iv(s, Q4(void 0, l));
36213
+ return iv(s, Z4(void 0, l));
36213
36214
  }
36214
36215
  class Tu extends he {
36215
36216
  constructor(l) {
36216
36217
  var o;
36217
- super(l), this.onDisabledChange_ = this.onDisabledChange_.bind(this), this.onParentChange_ = this.onParentChange_.bind(this), this.onParentGlobalDisabledChange_ = this.onParentGlobalDisabledChange_.bind(this), [this.globalDisabled_, this.setGlobalDisabled_] = C3(Sn(this.getGlobalDisabled_())), this.value("disabled").emitter.on("change", this.onDisabledChange_), this.value("parent").emitter.on("change", this.onParentChange_), (o = this.get("parent")) === null || o === void 0 || o.globalDisabled.emitter.on("change", this.onParentGlobalDisabledChange_);
36218
+ super(l), this.onDisabledChange_ = this.onDisabledChange_.bind(this), this.onParentChange_ = this.onParentChange_.bind(this), this.onParentGlobalDisabledChange_ = this.onParentGlobalDisabledChange_.bind(this), [this.globalDisabled_, this.setGlobalDisabled_] = x3(Sn(this.getGlobalDisabled_())), this.value("disabled").emitter.on("change", this.onDisabledChange_), this.value("parent").emitter.on("change", this.onParentChange_), (o = this.get("parent")) === null || o === void 0 || o.globalDisabled.emitter.on("change", this.onParentGlobalDisabledChange_);
36218
36219
  }
36219
36220
  static create(l) {
36220
36221
  var o, c, p;
@@ -36276,7 +36277,7 @@ class Tu extends he {
36276
36277
  }
36277
36278
  }
36278
36279
  const dT = Re("tbp");
36279
- class Z4 {
36280
+ class K4 {
36280
36281
  constructor(l, o) {
36281
36282
  this.element = l.createElement("div"), this.element.classList.add(dT()), o.viewProps.bindClassModifiers(this.element);
36282
36283
  const c = l.createElement("div");
@@ -36284,7 +36285,7 @@ class Z4 {
36284
36285
  }
36285
36286
  }
36286
36287
  const h0 = Re("tbi");
36287
- class K4 {
36288
+ class J4 {
36288
36289
  constructor(l, o) {
36289
36290
  this.element = l.createElement("div"), this.element.classList.add(h0()), o.viewProps.bindClassModifiers(this.element), sr(o.props, "selected", (b) => {
36290
36291
  b ? this.element.classList.add(h0(void 0, "sel")) : this.element.classList.remove(h0(void 0, "sel"));
@@ -36295,9 +36296,9 @@ class K4 {
36295
36296
  p.classList.add(h0("t")), b2(o.props.value("title"), p), this.buttonElement.appendChild(p), this.titleElement = p;
36296
36297
  }
36297
36298
  }
36298
- class J4 {
36299
+ class $4 {
36299
36300
  constructor(l, o) {
36300
- this.emitter = new pa(), this.onClick_ = this.onClick_.bind(this), this.props = o.props, this.viewProps = o.viewProps, this.view = new K4(l, {
36301
+ this.emitter = new pa(), this.onClick_ = this.onClick_.bind(this), this.props = o.props, this.viewProps = o.viewProps, this.view = new J4(l, {
36301
36302
  props: o.props,
36302
36303
  viewProps: o.viewProps
36303
36304
  }), this.view.buttonElement.addEventListener("click", this.onClick_);
@@ -36310,14 +36311,14 @@ class J4 {
36310
36311
  }
36311
36312
  class t2 extends _2 {
36312
36313
  constructor(l, o) {
36313
- const c = new Z4(l, {
36314
+ const c = new K4(l, {
36314
36315
  viewProps: o.viewProps
36315
36316
  });
36316
36317
  super(Object.assign(Object.assign({}, o), { rackController: new S2({
36317
36318
  blade: o.blade,
36318
36319
  element: c.containerElement,
36319
36320
  viewProps: o.viewProps
36320
- }), view: c })), this.onItemClick_ = this.onItemClick_.bind(this), this.ic_ = new J4(l, {
36321
+ }), view: c })), this.onItemClick_ = this.onItemClick_.bind(this), this.ic_ = new $4(l, {
36321
36322
  props: o.itemProps,
36322
36323
  viewProps: Tu.create()
36323
36324
  }), this.ic_.emitter.on("click", this.onItemClick_), this.props = o.props, sr(this.props, "selected", (p) => {
@@ -36343,7 +36344,7 @@ class t2 extends _2 {
36343
36344
  this.props.set("selected", !0);
36344
36345
  }
36345
36346
  }
36346
- class $4 extends y2 {
36347
+ class W4 extends y2 {
36347
36348
  constructor(l, o) {
36348
36349
  super(l, o), this.emitter_ = new pa(), this.onSelect_ = this.onSelect_.bind(this), this.pool_ = o, this.rackApi_.on("change", (c) => {
36349
36350
  this.emitter_.emit("change", c);
@@ -36381,10 +36382,10 @@ class $4 extends y2 {
36381
36382
  return this.emitter_.off(l, o), this;
36382
36383
  }
36383
36384
  onSelect_(l) {
36384
- this.emitter_.emit("select", new n4(this, l.rawValue));
36385
+ this.emitter_.emit("select", new a4(this, l.rawValue));
36385
36386
  }
36386
36387
  }
36387
- class W4 extends y2 {
36388
+ class F4 extends y2 {
36388
36389
  get title() {
36389
36390
  var l;
36390
36391
  return (l = this.controller.itemController.props.get("title")) !== null && l !== void 0 ? l : "";
@@ -36424,7 +36425,7 @@ class W4 extends y2 {
36424
36425
  }
36425
36426
  }
36426
36427
  const hT = -1;
36427
- class F4 {
36428
+ class I4 {
36428
36429
  constructor() {
36429
36430
  this.onItemSelectedChange_ = this.onItemSelectedChange_.bind(this), this.empty = Sn(!0), this.selectedIndex = Sn(hT), this.items_ = [];
36430
36431
  }
@@ -36459,7 +36460,7 @@ class F4 {
36459
36460
  }
36460
36461
  }
36461
36462
  const p0 = Re("tab");
36462
- class I4 {
36463
+ class t5 {
36463
36464
  constructor(l, o) {
36464
36465
  this.element = l.createElement("div"), this.element.classList.add(p0(), qD()), o.viewProps.bindClassModifiers(this.element), wu(o.empty, iv(this.element, p0(void 0, "nop")));
36465
36466
  const c = l.createElement("div");
@@ -36472,7 +36473,7 @@ class I4 {
36472
36473
  }
36473
36474
  class pT extends _2 {
36474
36475
  constructor(l, o) {
36475
- const c = new F4(), p = new I4(l, {
36476
+ const c = new I4(), p = new t5(l, {
36476
36477
  empty: c.empty,
36477
36478
  viewProps: o.viewProps
36478
36479
  });
@@ -36538,10 +36539,10 @@ const kD = jl({
36538
36539
  }), l;
36539
36540
  },
36540
36541
  api(s) {
36541
- return s.controller instanceof pT ? new $4(s.controller, s.pool) : s.controller instanceof t2 ? new W4(s.controller, s.pool) : null;
36542
+ return s.controller instanceof pT ? new W4(s.controller, s.pool) : s.controller instanceof t2 ? new F4(s.controller, s.pool) : null;
36542
36543
  }
36543
36544
  });
36544
- function t5(s, l) {
36545
+ function e5(s, l) {
36545
36546
  const o = s.accept(l.params);
36546
36547
  if (!o)
36547
36548
  return null;
@@ -36567,7 +36568,7 @@ class E2 extends T0 {
36567
36568
  this.controller.valueController.props.set("options", l);
36568
36569
  }
36569
36570
  }
36570
- class e5 {
36571
+ class n5 {
36571
36572
  constructor() {
36572
36573
  this.disabled = !1, this.emitter = new pa();
36573
36574
  }
@@ -36579,7 +36580,7 @@ class e5 {
36579
36580
  });
36580
36581
  }
36581
36582
  }
36582
- class n5 {
36583
+ class a5 {
36583
36584
  constructor(l, o) {
36584
36585
  this.disabled_ = !1, this.timerId_ = null, this.onTick_ = this.onTick_.bind(this), this.doc_ = l, this.emitter = new pa(), this.interval_ = o, this.setTimer_();
36585
36586
  }
@@ -36664,7 +36665,7 @@ function x2(s) {
36664
36665
  return cn(s) ? null : new L0(C2(s));
36665
36666
  }
36666
36667
  const Lw = Re("lst");
36667
- class a5 {
36668
+ class l5 {
36668
36669
  constructor(l, o) {
36669
36670
  this.onValueChange_ = this.onValueChange_.bind(this), this.props_ = o.props, this.element = l.createElement("div"), this.element.classList.add(Lw()), o.viewProps.bindClassModifiers(this.element);
36670
36671
  const c = l.createElement("select");
@@ -36687,7 +36688,7 @@ class a5 {
36687
36688
  }
36688
36689
  class yf {
36689
36690
  constructor(l, o) {
36690
- this.onSelectChange_ = this.onSelectChange_.bind(this), this.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.view = new a5(l, {
36691
+ this.onSelectChange_ = this.onSelectChange_.bind(this), this.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.view = new l5(l, {
36691
36692
  props: this.props,
36692
36693
  value: this.value,
36693
36694
  viewProps: this.viewProps
@@ -36709,21 +36710,21 @@ class yf {
36709
36710
  }
36710
36711
  }
36711
36712
  const mT = Re("pop");
36712
- class l5 {
36713
+ class i5 {
36713
36714
  constructor(l, o) {
36714
36715
  this.element = l.createElement("div"), this.element.classList.add(mT()), o.viewProps.bindClassModifiers(this.element), wu(o.shows, iv(this.element, mT(void 0, "v")));
36715
36716
  }
36716
36717
  }
36717
36718
  class YD {
36718
36719
  constructor(l, o) {
36719
- this.shows = Sn(!1), this.viewProps = o.viewProps, this.view = new l5(l, {
36720
+ this.shows = Sn(!1), this.viewProps = o.viewProps, this.view = new i5(l, {
36720
36721
  shows: this.shows,
36721
36722
  viewProps: this.viewProps
36722
36723
  });
36723
36724
  }
36724
36725
  }
36725
36726
  const vT = Re("txt");
36726
- class i5 {
36727
+ class o5 {
36727
36728
  constructor(l, o) {
36728
36729
  this.onChange_ = this.onChange_.bind(this), this.element = l.createElement("div"), this.element.classList.add(vT()), o.viewProps.bindClassModifiers(this.element), this.props_ = o.props, this.props_.emitter.on("change", this.onChange_);
36729
36730
  const c = l.createElement("input");
@@ -36739,7 +36740,7 @@ class i5 {
36739
36740
  }
36740
36741
  class D0 {
36741
36742
  constructor(l, o) {
36742
- this.onInputChange_ = this.onInputChange_.bind(this), this.parser_ = o.parser, this.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.view = new i5(l, {
36743
+ this.onInputChange_ = this.onInputChange_.bind(this), this.parser_ = o.parser, this.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.view = new o5(l, {
36743
36744
  props: o.props,
36744
36745
  value: this.value,
36745
36746
  viewProps: this.viewProps
@@ -36750,21 +36751,21 @@ class D0 {
36750
36751
  cn(p) || (this.value.rawValue = p), this.view.refresh();
36751
36752
  }
36752
36753
  }
36753
- function o5(s) {
36754
+ function s5(s) {
36754
36755
  return String(s);
36755
36756
  }
36756
36757
  function XD(s) {
36757
36758
  return s === "false" ? !1 : !!s;
36758
36759
  }
36759
36760
  function gT(s) {
36760
- return o5(s);
36761
+ return s5(s);
36761
36762
  }
36762
- function s5(s) {
36763
+ function r5(s) {
36763
36764
  return (l) => s.reduce((o, c) => o !== null ? o : c(l), null);
36764
36765
  }
36765
- const r5 = oi(0);
36766
+ const u5 = oi(0);
36766
36767
  function L_(s) {
36767
- return r5(s) + "%";
36768
+ return u5(s) + "%";
36768
36769
  }
36769
36770
  function PD(s) {
36770
36771
  return String(s);
@@ -36814,11 +36815,11 @@ function xu(s) {
36814
36815
  upKey: s.key === "ArrowRight"
36815
36816
  };
36816
36817
  }
36817
- function u5(s) {
36818
+ function c5(s) {
36818
36819
  return s === "ArrowUp" || s === "ArrowDown";
36819
36820
  }
36820
36821
  function QD(s) {
36821
- return u5(s) || s === "ArrowLeft" || s === "ArrowRight";
36822
+ return c5(s) || s === "ArrowLeft" || s === "ArrowRight";
36822
36823
  }
36823
36824
  function Hw(s, l) {
36824
36825
  var o, c;
@@ -36917,7 +36918,7 @@ class bh {
36917
36918
  }
36918
36919
  }
36919
36920
  const Oo = Re("txt");
36920
- class c5 {
36921
+ class f5 {
36921
36922
  constructor(l, o) {
36922
36923
  this.onChange_ = this.onChange_.bind(this), this.props_ = o.props, this.props_.emitter.on("change", this.onChange_), this.element = l.createElement("div"), this.element.classList.add(Oo(), Oo(void 0, "num")), o.arrayPosition && this.element.classList.add(Oo(void 0, o.arrayPosition)), o.viewProps.bindClassModifiers(this.element);
36923
36924
  const c = l.createElement("input");
@@ -36955,7 +36956,7 @@ class c5 {
36955
36956
  class B0 {
36956
36957
  constructor(l, o) {
36957
36958
  var c;
36958
- this.originRawValue_ = 0, this.onInputChange_ = this.onInputChange_.bind(this), this.onInputKeyDown_ = this.onInputKeyDown_.bind(this), this.onInputKeyUp_ = this.onInputKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.parser_ = o.parser, this.props = o.props, this.sliderProps_ = (c = o.sliderProps) !== null && c !== void 0 ? c : null, this.value = o.value, this.viewProps = o.viewProps, this.dragging_ = Sn(null), this.view = new c5(l, {
36959
+ this.originRawValue_ = 0, this.onInputChange_ = this.onInputChange_.bind(this), this.onInputKeyDown_ = this.onInputKeyDown_.bind(this), this.onInputKeyUp_ = this.onInputKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.parser_ = o.parser, this.props = o.props, this.sliderProps_ = (c = o.sliderProps) !== null && c !== void 0 ? c : null, this.value = o.value, this.viewProps = o.viewProps, this.dragging_ = Sn(null), this.view = new f5(l, {
36959
36960
  arrayPosition: o.arrayPosition,
36960
36961
  dragging: this.dragging_,
36961
36962
  props: this.props,
@@ -37013,7 +37014,7 @@ class B0 {
37013
37014
  }
37014
37015
  }
37015
37016
  const Bw = Re("sld");
37016
- class f5 {
37017
+ class d5 {
37017
37018
  constructor(l, o) {
37018
37019
  this.onChange_ = this.onChange_.bind(this), this.props_ = o.props, this.props_.emitter.on("change", this.onChange_), this.element = l.createElement("div"), this.element.classList.add(Bw()), o.viewProps.bindClassModifiers(this.element);
37019
37020
  const c = l.createElement("div");
@@ -37029,9 +37030,9 @@ class f5 {
37029
37030
  this.update_();
37030
37031
  }
37031
37032
  }
37032
- class d5 {
37033
+ class h5 {
37033
37034
  constructor(l, o) {
37034
- this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDownOrMove_ = this.onPointerDownOrMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.props = o.props, this.view = new f5(l, {
37035
+ this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDownOrMove_ = this.onPointerDownOrMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.props = o.props, this.view = new d5(l, {
37035
37036
  props: this.props,
37036
37037
  value: this.value,
37037
37038
  viewProps: this.viewProps
@@ -37067,7 +37068,7 @@ class d5 {
37067
37068
  }
37068
37069
  }
37069
37070
  const jw = Re("sldtxt");
37070
- class h5 {
37071
+ class p5 {
37071
37072
  constructor(l, o) {
37072
37073
  this.element = l.createElement("div"), this.element.classList.add(jw());
37073
37074
  const c = l.createElement("div");
@@ -37078,7 +37079,7 @@ class h5 {
37078
37079
  }
37079
37080
  class H_ {
37080
37081
  constructor(l, o) {
37081
- this.value = o.value, this.viewProps = o.viewProps, this.sliderC_ = new d5(l, {
37082
+ this.value = o.value, this.viewProps = o.viewProps, this.sliderC_ = new h5(l, {
37082
37083
  props: o.sliderProps,
37083
37084
  value: o.value,
37084
37085
  viewProps: this.viewProps
@@ -37088,7 +37089,7 @@ class H_ {
37088
37089
  sliderProps: o.sliderProps,
37089
37090
  value: o.value,
37090
37091
  viewProps: o.viewProps
37091
- }), this.view = new h5(l, {
37092
+ }), this.view = new p5(l, {
37092
37093
  sliderView: this.sliderC_.view,
37093
37094
  textView: this.textC_.view
37094
37095
  });
@@ -37130,11 +37131,11 @@ function ZD(s) {
37130
37131
  })
37131
37132
  };
37132
37133
  }
37133
- const p5 = {
37134
+ const m5 = {
37134
37135
  containerUnitSize: "cnt-usz"
37135
37136
  };
37136
37137
  function KD(s) {
37137
- return `--${p5[s]}`;
37138
+ return `--${m5[s]}`;
37138
37139
  }
37139
37140
  function M0(s) {
37140
37141
  return AD(s);
@@ -37151,7 +37152,7 @@ function Su(s, l) {
37151
37152
  const p = zD(s);
37152
37153
  return p && o.push(p), new N0(o);
37153
37154
  }
37154
- function m5(s) {
37155
+ function v5(s) {
37155
37156
  return s ? s.major === ov.major : !1;
37156
37157
  }
37157
37158
  function JD(s) {
@@ -37162,7 +37163,7 @@ function j0(s, l) {
37162
37163
  s.write(l);
37163
37164
  }
37164
37165
  const z_ = Re("ckb");
37165
- class v5 {
37166
+ class g5 {
37166
37167
  constructor(l, o) {
37167
37168
  this.onValueChange_ = this.onValueChange_.bind(this), this.element = l.createElement("div"), this.element.classList.add(z_()), o.viewProps.bindClassModifiers(this.element);
37168
37169
  const c = l.createElement("label");
@@ -37181,9 +37182,9 @@ class v5 {
37181
37182
  this.update_();
37182
37183
  }
37183
37184
  }
37184
- class g5 {
37185
+ class b5 {
37185
37186
  constructor(l, o) {
37186
- this.onInputChange_ = this.onInputChange_.bind(this), this.onLabelMouseDown_ = this.onLabelMouseDown_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.view = new v5(l, {
37187
+ this.onInputChange_ = this.onInputChange_.bind(this), this.onLabelMouseDown_ = this.onLabelMouseDown_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.view = new g5(l, {
37187
37188
  value: this.value,
37188
37189
  viewProps: this.viewProps
37189
37190
  }), this.view.inputElement.addEventListener("change", this.onInputChange_), this.view.labelElement.addEventListener("mousedown", this.onLabelMouseDown_);
@@ -37196,11 +37197,11 @@ class g5 {
37196
37197
  l.preventDefault();
37197
37198
  }
37198
37199
  }
37199
- function b5(s) {
37200
+ function y5(s) {
37200
37201
  const l = [], o = x2(s.options);
37201
37202
  return o && l.push(o), new N0(l);
37202
37203
  }
37203
- const y5 = jl({
37204
+ const _5 = jl({
37204
37205
  id: "input-bool",
37205
37206
  type: "input",
37206
37207
  accept: (s, l) => {
@@ -37217,7 +37218,7 @@ const y5 = jl({
37217
37218
  },
37218
37219
  binding: {
37219
37220
  reader: (s) => XD,
37220
- constraint: (s) => b5(s.params),
37221
+ constraint: (s) => y5(s.params),
37221
37222
  writer: (s) => j0
37222
37223
  },
37223
37224
  controller: (s) => {
@@ -37228,7 +37229,7 @@ const y5 = jl({
37228
37229
  }),
37229
37230
  value: o,
37230
37231
  viewProps: s.viewProps
37231
- }) : new g5(l, {
37232
+ }) : new b5(l, {
37232
37233
  value: o,
37233
37234
  viewProps: s.viewProps
37234
37235
  });
@@ -37237,7 +37238,7 @@ const y5 = jl({
37237
37238
  return typeof s.controller.value.rawValue != "boolean" ? null : s.controller.valueController instanceof yf ? new E2(s.controller) : null;
37238
37239
  }
37239
37240
  }), sh = Re("col");
37240
- class _5 {
37241
+ class S5 {
37241
37242
  constructor(l, o) {
37242
37243
  this.element = l.createElement("div"), this.element.classList.add(sh()), o.foldable.bindExpandedClass(this.element, sh(void 0, "expanded")), sr(o.foldable, "completed", iv(this.element, sh(void 0, "cpl")));
37243
37244
  const c = l.createElement("div");
@@ -37252,18 +37253,18 @@ class _5 {
37252
37253
  this.pickerElement = null;
37253
37254
  }
37254
37255
  }
37255
- function S5(s, l, o) {
37256
+ function w5(s, l, o) {
37256
37257
  const c = Ea(s / 255, 0, 1), p = Ea(l / 255, 0, 1), b = Ea(o / 255, 0, 1), S = Math.max(c, p, b), _ = Math.min(c, p, b), C = S - _;
37257
37258
  let x = 0, D = 0;
37258
37259
  const M = (_ + S) / 2;
37259
37260
  return C !== 0 && (D = C / (1 - Math.abs(S + _ - 1)), c === S ? x = (p - b) / C : p === S ? x = 2 + (b - c) / C : x = 4 + (c - p) / C, x = x / 6 + (x < 0 ? 1 : 0)), [x * 360, D * 100, M * 100];
37260
37261
  }
37261
- function w5(s, l, o) {
37262
+ function E5(s, l, o) {
37262
37263
  const c = (s % 360 + 360) % 360, p = Ea(l / 100, 0, 1), b = Ea(o / 100, 0, 1), S = (1 - Math.abs(2 * b - 1)) * p, _ = S * (1 - Math.abs(c / 60 % 2 - 1)), C = b - S / 2;
37263
37264
  let x, D, M;
37264
37265
  return c >= 0 && c < 60 ? [x, D, M] = [S, _, 0] : c >= 60 && c < 120 ? [x, D, M] = [_, S, 0] : c >= 120 && c < 180 ? [x, D, M] = [0, S, _] : c >= 180 && c < 240 ? [x, D, M] = [0, _, S] : c >= 240 && c < 300 ? [x, D, M] = [_, 0, S] : [x, D, M] = [S, 0, _], [(x + C) * 255, (D + C) * 255, (M + C) * 255];
37265
37266
  }
37266
- function E5(s, l, o) {
37267
+ function C5(s, l, o) {
37267
37268
  const c = Ea(s / 255, 0, 1), p = Ea(l / 255, 0, 1), b = Ea(o / 255, 0, 1), S = Math.max(c, p, b), _ = Math.min(c, p, b), C = S - _;
37268
37269
  let x;
37269
37270
  C === 0 ? x = 0 : S === c ? x = 60 * (((p - b) / C % 6 + 6) % 6) : S === p ? x = 60 * ((b - c) / C + 2) : x = 60 * ((c - p) / C + 4);
@@ -37275,7 +37276,7 @@ function $D(s, l, o) {
37275
37276
  let x, D, M;
37276
37277
  return c >= 0 && c < 60 ? [x, D, M] = [S, _, 0] : c >= 60 && c < 120 ? [x, D, M] = [_, S, 0] : c >= 120 && c < 180 ? [x, D, M] = [0, S, _] : c >= 180 && c < 240 ? [x, D, M] = [0, _, S] : c >= 240 && c < 300 ? [x, D, M] = [_, 0, S] : [x, D, M] = [S, 0, _], [(x + C) * 255, (D + C) * 255, (M + C) * 255];
37277
37278
  }
37278
- function C5(s, l, o) {
37279
+ function x5(s, l, o) {
37279
37280
  const c = o + l * (100 - Math.abs(2 * o - 100)) / 200;
37280
37281
  return [
37281
37282
  s,
@@ -37283,7 +37284,7 @@ function C5(s, l, o) {
37283
37284
  o + l * (100 - Math.abs(2 * o - 100)) / 200
37284
37285
  ];
37285
37286
  }
37286
- function x5(s, l, o) {
37287
+ function T5(s, l, o) {
37287
37288
  const c = 100 - Math.abs(o * (200 - l) / 100 - 100);
37288
37289
  return [s, c !== 0 ? l * o / c : 0, o * (200 - l) / 200];
37289
37290
  }
@@ -37293,20 +37294,20 @@ function rr(s) {
37293
37294
  function Y_(s, l) {
37294
37295
  return [s[0], s[1], s[2], l];
37295
37296
  }
37296
- const T5 = {
37297
+ const D5 = {
37297
37298
  hsl: {
37298
37299
  hsl: (s, l, o) => [s, l, o],
37299
- hsv: C5,
37300
- rgb: w5
37300
+ hsv: x5,
37301
+ rgb: E5
37301
37302
  },
37302
37303
  hsv: {
37303
- hsl: x5,
37304
+ hsl: T5,
37304
37305
  hsv: (s, l, o) => [s, l, o],
37305
37306
  rgb: $D
37306
37307
  },
37307
37308
  rgb: {
37308
- hsl: S5,
37309
- hsv: E5,
37309
+ hsl: w5,
37310
+ hsv: C5,
37310
37311
  rgb: (s, l, o) => [s, l, o]
37311
37312
  }
37312
37313
  };
@@ -37317,14 +37318,14 @@ function av(s, l) {
37317
37318
  l === "float" ? 1 : s === "rgb" ? 255 : 100
37318
37319
  ];
37319
37320
  }
37320
- function D5(s, l) {
37321
+ function z5(s, l) {
37321
37322
  return s === l ? l : CD(s, l);
37322
37323
  }
37323
37324
  function WD(s, l, o) {
37324
37325
  var c;
37325
37326
  const p = av(l, o);
37326
37327
  return [
37327
- l === "rgb" ? Ea(s[0], 0, p[0]) : D5(s[0], p[0]),
37328
+ l === "rgb" ? Ea(s[0], 0, p[0]) : z5(s[0], p[0]),
37328
37329
  Ea(s[1], 0, p[1]),
37329
37330
  Ea(s[2], 0, p[2]),
37330
37331
  Ea((c = s[3]) !== null && c !== void 0 ? c : 1, 0, 1)
@@ -37335,7 +37336,7 @@ function bT(s, l, o, c) {
37335
37336
  return s.map((S, _) => S / p[_] * b[_]);
37336
37337
  }
37337
37338
  function FD(s, l, o) {
37338
- const c = bT(s, l.mode, l.type, "int"), p = T5[l.mode][o.mode](...c);
37339
+ const c = bT(s, l.mode, l.type, "int"), p = D5[l.mode][o.mode](...c);
37339
37340
  return bT(p, o.mode, "int", o.type);
37340
37341
  }
37341
37342
  class Be {
@@ -37359,7 +37360,7 @@ class Be {
37359
37360
  }
37360
37361
  }
37361
37362
  const uf = Re("colp");
37362
- class z5 {
37363
+ class M5 {
37363
37364
  constructor(l, o) {
37364
37365
  this.alphaViews_ = null, this.element = l.createElement("div"), this.element.classList.add(uf()), o.viewProps.bindClassModifiers(this.element);
37365
37366
  const c = l.createElement("div");
@@ -37392,14 +37393,14 @@ class z5 {
37392
37393
  return this.alphaViews_ && l.push(this.alphaViews_.palette.element, this.alphaViews_.text.inputElement), l;
37393
37394
  }
37394
37395
  }
37395
- function M5(s) {
37396
+ function A5(s) {
37396
37397
  return s === "int" ? "int" : s === "float" ? "float" : void 0;
37397
37398
  }
37398
37399
  function T2(s) {
37399
37400
  return Rn(s, (l) => ({
37400
37401
  color: l.optional.object({
37401
37402
  alpha: l.optional.boolean,
37402
- type: l.optional.custom(M5)
37403
+ type: l.optional.custom(A5)
37403
37404
  }),
37404
37405
  expanded: l.optional.boolean,
37405
37406
  picker: l.optional.custom(JD),
@@ -37430,20 +37431,20 @@ class D2 {
37430
37431
  };
37431
37432
  }
37432
37433
  }
37433
- const A5 = {
37434
+ const R5 = {
37434
37435
  int: (s, l) => new Be(s, l),
37435
37436
  float: (s, l) => new D2(s, l)
37436
37437
  };
37437
37438
  function z2(s, l, o) {
37438
- return A5[o](s, l);
37439
+ return R5[o](s, l);
37439
37440
  }
37440
- function R5(s) {
37441
+ function O5(s) {
37441
37442
  return s.type === "float";
37442
37443
  }
37443
- function O5(s) {
37444
+ function U5(s) {
37444
37445
  return s.type === "int";
37445
37446
  }
37446
- function U5(s) {
37447
+ function N5(s) {
37447
37448
  const l = s.getComponents(), o = av(s.mode, "int");
37448
37449
  return new Be([
37449
37450
  Math.round(Qe(l[0], 0, 1, 0, o[0])),
@@ -37452,7 +37453,7 @@ function U5(s) {
37452
37453
  l[3]
37453
37454
  ], s.mode);
37454
37455
  }
37455
- function N5(s) {
37456
+ function L5(s) {
37456
37457
  const l = s.getComponents(), o = av(s.mode, "int");
37457
37458
  return new D2([
37458
37459
  Qe(l[0], 0, o[0], 0, 1),
@@ -37464,20 +37465,20 @@ function N5(s) {
37464
37465
  function Bl(s, l) {
37465
37466
  if (s.type === l)
37466
37467
  return s;
37467
- if (O5(s) && l === "float")
37468
+ if (U5(s) && l === "float")
37469
+ return L5(s);
37470
+ if (O5(s) && l === "int")
37468
37471
  return N5(s);
37469
- if (R5(s) && l === "int")
37470
- return U5(s);
37471
37472
  throw Hn.shouldNeverHappen();
37472
37473
  }
37473
- function L5(s, l) {
37474
+ function H5(s, l) {
37474
37475
  return s.alpha === l.alpha && s.mode === l.mode && s.notation === l.notation && s.type === l.type;
37475
37476
  }
37476
37477
  function Uo(s, l) {
37477
37478
  const o = s.match(/^(.+)%$/);
37478
37479
  return Math.min(o ? parseFloat(o[1]) * 0.01 * l : parseFloat(s), l);
37479
37480
  }
37480
- const H5 = {
37481
+ const B5 = {
37481
37482
  deg: (s) => s,
37482
37483
  grad: (s) => s * 360 / 400,
37483
37484
  rad: (s) => s * 360 / (2 * Math.PI),
@@ -37488,7 +37489,7 @@ function tz(s) {
37488
37489
  if (!l)
37489
37490
  return parseFloat(s);
37490
37491
  const o = parseFloat(l[1]), c = l[2];
37491
- return H5[c](o);
37492
+ return B5[c](o);
37492
37493
  }
37493
37494
  function ez(s) {
37494
37495
  const l = s.match(/^rgb\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);
@@ -37501,7 +37502,7 @@ function ez(s) {
37501
37502
  ];
37502
37503
  return isNaN(o[0]) || isNaN(o[1]) || isNaN(o[2]) ? null : o;
37503
37504
  }
37504
- function B5(s) {
37505
+ function j5(s) {
37505
37506
  const l = ez(s);
37506
37507
  return l ? new Be(l, "rgb") : null;
37507
37508
  }
@@ -37517,7 +37518,7 @@ function nz(s) {
37517
37518
  ];
37518
37519
  return isNaN(o[0]) || isNaN(o[1]) || isNaN(o[2]) || isNaN(o[3]) ? null : o;
37519
37520
  }
37520
- function j5(s) {
37521
+ function V5(s) {
37521
37522
  const l = nz(s);
37522
37523
  return l ? new Be(l, "rgb") : null;
37523
37524
  }
@@ -37532,7 +37533,7 @@ function az(s) {
37532
37533
  ];
37533
37534
  return isNaN(o[0]) || isNaN(o[1]) || isNaN(o[2]) ? null : o;
37534
37535
  }
37535
- function V5(s) {
37536
+ function G5(s) {
37536
37537
  const l = az(s);
37537
37538
  return l ? new Be(l, "hsl") : null;
37538
37539
  }
@@ -37548,7 +37549,7 @@ function lz(s) {
37548
37549
  ];
37549
37550
  return isNaN(o[0]) || isNaN(o[1]) || isNaN(o[2]) || isNaN(o[3]) ? null : o;
37550
37551
  }
37551
- function G5(s) {
37552
+ function q5(s) {
37552
37553
  const l = lz(s);
37553
37554
  return l ? new Be(l, "hsl") : null;
37554
37555
  }
@@ -37567,7 +37568,7 @@ function iz(s) {
37567
37568
  parseInt(o[3], 16)
37568
37569
  ] : null;
37569
37570
  }
37570
- function q5(s) {
37571
+ function k5(s) {
37571
37572
  const l = iz(s);
37572
37573
  return l ? new Be(l, "rgb") : null;
37573
37574
  }
@@ -37588,7 +37589,7 @@ function oz(s) {
37588
37589
  Qe(parseInt(o[4], 16), 0, 255, 0, 1)
37589
37590
  ] : null;
37590
37591
  }
37591
- function k5(s) {
37592
+ function Y5(s) {
37592
37593
  const l = oz(s);
37593
37594
  return l ? new Be(l, "rgb") : null;
37594
37595
  }
@@ -37603,7 +37604,7 @@ function sz(s) {
37603
37604
  ];
37604
37605
  return isNaN(o[0]) || isNaN(o[1]) || isNaN(o[2]) ? null : o;
37605
37606
  }
37606
- function Y5(s) {
37607
+ function X5(s) {
37607
37608
  return (l) => {
37608
37609
  const o = sz(l);
37609
37610
  return o ? z2(o, "rgb", s) : null;
@@ -37621,13 +37622,13 @@ function rz(s) {
37621
37622
  ];
37622
37623
  return isNaN(o[0]) || isNaN(o[1]) || isNaN(o[2]) || isNaN(o[3]) ? null : o;
37623
37624
  }
37624
- function X5(s) {
37625
+ function P5(s) {
37625
37626
  return (l) => {
37626
37627
  const o = rz(l);
37627
37628
  return o ? z2(o, "rgb", s) : null;
37628
37629
  };
37629
37630
  }
37630
- const P5 = [
37631
+ const Q5 = [
37631
37632
  {
37632
37633
  parser: iz,
37633
37634
  result: {
@@ -37693,30 +37694,30 @@ const P5 = [
37693
37694
  }
37694
37695
  }
37695
37696
  ];
37696
- function Q5(s) {
37697
- return P5.reduce((l, { parser: o, result: c }) => l || (o(s) ? c : null), null);
37697
+ function Z5(s) {
37698
+ return Q5.reduce((l, { parser: o, result: c }) => l || (o(s) ? c : null), null);
37698
37699
  }
37699
- function Z5(s, l = "int") {
37700
- const o = Q5(s);
37700
+ function K5(s, l = "int") {
37701
+ const o = Z5(s);
37701
37702
  return o ? o.notation === "hex" && l !== "float" ? Object.assign(Object.assign({}, o), { type: "int" }) : o.notation === "func" ? Object.assign(Object.assign({}, o), { type: l }) : null : null;
37702
37703
  }
37703
37704
  function V0(s) {
37704
37705
  const l = [
37705
- q5,
37706
37706
  k5,
37707
- B5,
37707
+ Y5,
37708
37708
  j5,
37709
37709
  V5,
37710
- G5
37710
+ G5,
37711
+ q5
37711
37712
  ];
37712
- l.push(Y5("int"), X5("int"));
37713
- const o = s5(l);
37713
+ l.push(X5("int"), P5("int"));
37714
+ const o = r5(l);
37714
37715
  return (c) => {
37715
37716
  const p = o(c);
37716
37717
  return p ? Bl(p, s) : null;
37717
37718
  };
37718
37719
  }
37719
- function K5(s) {
37720
+ function J5(s) {
37720
37721
  const l = V0("int");
37721
37722
  if (typeof s != "string")
37722
37723
  return Be.black();
@@ -37743,7 +37744,7 @@ function A_(s) {
37743
37744
  const l = oi(2), o = oi(0);
37744
37745
  return `rgba(${Bl(s, "int").getComponents("rgb").map((b, S) => (S === 3 ? l : o)(b)).join(", ")})`;
37745
37746
  }
37746
- function J5(s) {
37747
+ function $5(s) {
37747
37748
  const l = [
37748
37749
  oi(0),
37749
37750
  L_,
@@ -37751,7 +37752,7 @@ function J5(s) {
37751
37752
  ], o = Bl(s, "int");
37752
37753
  return `hsl(${rr(o.getComponents("hsl")).map((p, b) => l[b](p)).join(", ")})`;
37753
37754
  }
37754
- function $5(s) {
37755
+ function W5(s) {
37755
37756
  const l = [
37756
37757
  oi(0),
37757
37758
  L_,
@@ -37764,7 +37765,7 @@ function fz(s, l) {
37764
37765
  const o = oi(l === "float" ? 2 : 0), c = ["r", "g", "b"], p = Bl(s, l);
37765
37766
  return `{${rr(p.getComponents("rgb")).map((S, _) => `${c[_]}: ${o(S)}`).join(", ")}}`;
37766
37767
  }
37767
- function W5(s) {
37768
+ function F5(s) {
37768
37769
  return (l) => fz(l, s);
37769
37770
  }
37770
37771
  function dz(s, l) {
@@ -37774,10 +37775,10 @@ function dz(s, l) {
37774
37775
  return `${p[C]}: ${x(_)}`;
37775
37776
  }).join(", ")}}`;
37776
37777
  }
37777
- function F5(s) {
37778
+ function I5(s) {
37778
37779
  return (l) => dz(l, s);
37779
37780
  }
37780
- const I5 = [
37781
+ const t6 = [
37781
37782
  {
37782
37783
  format: {
37783
37784
  alpha: !1,
@@ -37821,7 +37822,7 @@ const I5 = [
37821
37822
  notation: "func",
37822
37823
  type: "int"
37823
37824
  },
37824
- stringifier: J5
37825
+ stringifier: $5
37825
37826
  },
37826
37827
  {
37827
37828
  format: {
@@ -37830,7 +37831,7 @@ const I5 = [
37830
37831
  notation: "func",
37831
37832
  type: "int"
37832
37833
  },
37833
- stringifier: $5
37834
+ stringifier: W5
37834
37835
  },
37835
37836
  ...["int", "float"].reduce((s, l) => [
37836
37837
  ...s,
@@ -37841,7 +37842,7 @@ const I5 = [
37841
37842
  notation: "object",
37842
37843
  type: l
37843
37844
  },
37844
- stringifier: W5(l)
37845
+ stringifier: F5(l)
37845
37846
  },
37846
37847
  {
37847
37848
  format: {
@@ -37850,15 +37851,15 @@ const I5 = [
37850
37851
  notation: "object",
37851
37852
  type: l
37852
37853
  },
37853
- stringifier: F5(l)
37854
+ stringifier: I5(l)
37854
37855
  }
37855
37856
  ], [])
37856
37857
  ];
37857
37858
  function hz(s) {
37858
- return I5.reduce((l, o) => l || (L5(o.format, s) ? o.stringifier : null), null);
37859
+ return t6.reduce((l, o) => l || (H5(o.format, s) ? o.stringifier : null), null);
37859
37860
  }
37860
37861
  const m0 = Re("apl");
37861
- class t6 {
37862
+ class e6 {
37862
37863
  constructor(l, o) {
37863
37864
  this.onValueChange_ = this.onValueChange_.bind(this), this.value = o.value, this.value.emitter.on("change", this.onValueChange_), this.element = l.createElement("div"), this.element.classList.add(m0()), o.viewProps.bindClassModifiers(this.element), o.viewProps.bindTabIndex(this.element);
37864
37865
  const c = l.createElement("div");
@@ -37884,9 +37885,9 @@ class t6 {
37884
37885
  this.update_();
37885
37886
  }
37886
37887
  }
37887
- class e6 {
37888
+ class n6 {
37888
37889
  constructor(l, o) {
37889
- this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.view = new t6(l, {
37890
+ this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.view = new e6(l, {
37890
37891
  value: this.value,
37891
37892
  viewProps: this.viewProps
37892
37893
  }), this.ptHandler_ = new bh(this.view.element), this.ptHandler_.emitter.on("down", this.onPointerDown_), this.ptHandler_.emitter.on("move", this.onPointerMove_), this.ptHandler_.emitter.on("up", this.onPointerUp_), this.view.element.addEventListener("keydown", this.onKeyDown_), this.view.element.addEventListener("keyup", this.onKeyUp_);
@@ -37933,7 +37934,7 @@ class e6 {
37933
37934
  }
37934
37935
  }
37935
37936
  const Pm = Re("coltxt");
37936
- function n6(s) {
37937
+ function a6(s) {
37937
37938
  const l = s.createElement("select"), o = [
37938
37939
  { text: "RGB", value: "rgb" },
37939
37940
  { text: "HSL", value: "hsl" },
@@ -37945,11 +37946,11 @@ function n6(s) {
37945
37946
  return b.textContent = p.text, b.value = p.value, c.appendChild(b), c;
37946
37947
  }, s.createDocumentFragment())), l;
37947
37948
  }
37948
- class a6 {
37949
+ class l6 {
37949
37950
  constructor(l, o) {
37950
37951
  this.element = l.createElement("div"), this.element.classList.add(Pm()), o.viewProps.bindClassModifiers(this.element);
37951
37952
  const c = l.createElement("div");
37952
- c.classList.add(Pm("m")), this.modeElem_ = n6(l), this.modeElem_.classList.add(Pm("ms")), c.appendChild(this.modeSelectElement), o.viewProps.bindDisabled(this.modeElem_);
37953
+ c.classList.add(Pm("m")), this.modeElem_ = a6(l), this.modeElem_.classList.add(Pm("ms")), c.appendChild(this.modeSelectElement), o.viewProps.bindDisabled(this.modeElem_);
37953
37954
  const p = l.createElement("div");
37954
37955
  p.classList.add(Pm("mm")), p.appendChild(q_(l, "dropdown")), c.appendChild(p), this.element.appendChild(c);
37955
37956
  const b = l.createElement("div");
@@ -37975,32 +37976,32 @@ class a6 {
37975
37976
  });
37976
37977
  }
37977
37978
  }
37978
- function l6(s) {
37979
+ function i6(s) {
37979
37980
  return oi(s === "float" ? 2 : 0);
37980
37981
  }
37981
- function i6(s, l, o) {
37982
+ function o6(s, l, o) {
37982
37983
  const c = av(s, l)[o];
37983
37984
  return new R0({
37984
37985
  min: 0,
37985
37986
  max: c
37986
37987
  });
37987
37988
  }
37988
- function o6(s, l, o) {
37989
+ function s6(s, l, o) {
37989
37990
  return new B0(s, {
37990
37991
  arrayPosition: o === 0 ? "fst" : o === 2 ? "lst" : "mid",
37991
37992
  parser: l.parser,
37992
37993
  props: he.fromObject({
37993
- formatter: l6(l.colorType),
37994
+ formatter: i6(l.colorType),
37994
37995
  keyScale: mh(!1),
37995
37996
  pointerScale: l.colorType === "float" ? 0.01 : 1
37996
37997
  }),
37997
37998
  value: Sn(0, {
37998
- constraint: i6(l.colorMode, l.colorType, o)
37999
+ constraint: o6(l.colorMode, l.colorType, o)
37999
38000
  }),
38000
38001
  viewProps: l.viewProps
38001
38002
  });
38002
38003
  }
38003
- function s6(s, l) {
38004
+ function r6(s, l) {
38004
38005
  const o = {
38005
38006
  colorMode: l.colorMode,
38006
38007
  colorType: l.colorType,
@@ -38008,7 +38009,7 @@ function s6(s, l) {
38008
38009
  viewProps: l.viewProps
38009
38010
  };
38010
38011
  return [0, 1, 2].map((c) => {
38011
- const p = o6(s, o, c);
38012
+ const p = s6(s, o, c);
38012
38013
  return rv({
38013
38014
  primary: l.value,
38014
38015
  secondary: p.value,
@@ -38024,7 +38025,7 @@ function s6(s, l) {
38024
38025
  }), p;
38025
38026
  });
38026
38027
  }
38027
- function r6(s, l) {
38028
+ function u6(s, l) {
38028
38029
  const o = new D0(s, {
38029
38030
  parser: V0("int"),
38030
38031
  props: he.fromObject({
@@ -38040,12 +38041,12 @@ function r6(s, l) {
38040
38041
  backward: (c, p) => new Be(Y_(rr(p.getComponents(c.mode)), c.getComponents()[3]), c.mode)
38041
38042
  }), [o];
38042
38043
  }
38043
- function u6(s) {
38044
+ function c6(s) {
38044
38045
  return s !== "hex";
38045
38046
  }
38046
- class c6 {
38047
+ class f6 {
38047
38048
  constructor(l, o) {
38048
- this.onModeSelectChange_ = this.onModeSelectChange_.bind(this), this.colorType_ = o.colorType, this.value = o.value, this.viewProps = o.viewProps, this.colorMode = Sn(this.value.rawValue.mode), this.ccs_ = this.createComponentControllers_(l), this.view = new a6(l, {
38049
+ this.onModeSelectChange_ = this.onModeSelectChange_.bind(this), this.colorType_ = o.colorType, this.value = o.value, this.viewProps = o.viewProps, this.colorMode = Sn(this.value.rawValue.mode), this.ccs_ = this.createComponentControllers_(l), this.view = new l6(l, {
38049
38050
  mode: this.colorMode,
38050
38051
  inputViews: [this.ccs_[0].view, this.ccs_[1].view, this.ccs_[2].view],
38051
38052
  viewProps: this.viewProps
@@ -38053,12 +38054,12 @@ class c6 {
38053
38054
  }
38054
38055
  createComponentControllers_(l) {
38055
38056
  const o = this.colorMode.rawValue;
38056
- return u6(o) ? s6(l, {
38057
+ return c6(o) ? r6(l, {
38057
38058
  colorMode: o,
38058
38059
  colorType: this.colorType_,
38059
38060
  value: this.value,
38060
38061
  viewProps: this.viewProps
38061
- }) : r6(l, {
38062
+ }) : u6(l, {
38062
38063
  value: this.value,
38063
38064
  viewProps: this.viewProps
38064
38065
  });
@@ -38069,7 +38070,7 @@ class c6 {
38069
38070
  }
38070
38071
  }
38071
38072
  const Vw = Re("hpl");
38072
- class f6 {
38073
+ class d6 {
38073
38074
  constructor(l, o) {
38074
38075
  this.onValueChange_ = this.onValueChange_.bind(this), this.value = o.value, this.value.emitter.on("change", this.onValueChange_), this.element = l.createElement("div"), this.element.classList.add(Vw()), o.viewProps.bindClassModifiers(this.element), o.viewProps.bindTabIndex(this.element);
38075
38076
  const c = l.createElement("div");
@@ -38087,9 +38088,9 @@ class f6 {
38087
38088
  this.update_();
38088
38089
  }
38089
38090
  }
38090
- class d6 {
38091
+ class h6 {
38091
38092
  constructor(l, o) {
38092
- this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.view = new f6(l, {
38093
+ this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.view = new d6(l, {
38093
38094
  value: this.value,
38094
38095
  viewProps: this.viewProps
38095
38096
  }), this.ptHandler_ = new bh(this.view.element), this.ptHandler_.emitter.on("down", this.onPointerDown_), this.ptHandler_.emitter.on("move", this.onPointerMove_), this.ptHandler_.emitter.on("up", this.onPointerUp_), this.view.element.addEventListener("keydown", this.onKeyDown_), this.view.element.addEventListener("keyup", this.onKeyUp_);
@@ -38136,7 +38137,7 @@ class d6 {
38136
38137
  }
38137
38138
  }
38138
38139
  const Gw = Re("svp"), yT = 64;
38139
- class h6 {
38140
+ class p6 {
38140
38141
  constructor(l, o) {
38141
38142
  this.onValueChange_ = this.onValueChange_.bind(this), this.value = o.value, this.value.emitter.on("change", this.onValueChange_), this.element = l.createElement("div"), this.element.classList.add(Gw()), o.viewProps.bindClassModifiers(this.element), o.viewProps.bindTabIndex(this.element);
38142
38143
  const c = l.createElement("canvas");
@@ -38145,7 +38146,7 @@ class h6 {
38145
38146
  p.classList.add(Gw("m")), this.element.appendChild(p), this.markerElem_ = p, this.update_();
38146
38147
  }
38147
38148
  update_() {
38148
- const l = d4(this.canvasElement);
38149
+ const l = h4(this.canvasElement);
38149
38150
  if (!l)
38150
38151
  return;
38151
38152
  const c = this.value.rawValue.getComponents("hsv"), p = this.canvasElement.width, b = this.canvasElement.height, S = l.getImageData(0, 0, p, b), _ = S.data;
@@ -38164,9 +38165,9 @@ class h6 {
38164
38165
  this.update_();
38165
38166
  }
38166
38167
  }
38167
- class p6 {
38168
+ class m6 {
38168
38169
  constructor(l, o) {
38169
- this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.view = new h6(l, {
38170
+ this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.view = new p6(l, {
38170
38171
  value: this.value,
38171
38172
  viewProps: this.viewProps
38172
38173
  }), this.ptHandler_ = new bh(this.view.element), this.ptHandler_.emitter.on("down", this.onPointerDown_), this.ptHandler_.emitter.on("move", this.onPointerMove_), this.ptHandler_.emitter.on("up", this.onPointerUp_), this.view.element.addEventListener("keydown", this.onKeyDown_), this.view.element.addEventListener("keyup", this.onKeyUp_);
@@ -38211,16 +38212,16 @@ class p6 {
38211
38212
  });
38212
38213
  }
38213
38214
  }
38214
- class m6 {
38215
+ class v6 {
38215
38216
  constructor(l, o) {
38216
- this.value = o.value, this.viewProps = o.viewProps, this.hPaletteC_ = new d6(l, {
38217
+ this.value = o.value, this.viewProps = o.viewProps, this.hPaletteC_ = new h6(l, {
38217
38218
  value: this.value,
38218
38219
  viewProps: this.viewProps
38219
- }), this.svPaletteC_ = new p6(l, {
38220
+ }), this.svPaletteC_ = new m6(l, {
38220
38221
  value: this.value,
38221
38222
  viewProps: this.viewProps
38222
38223
  }), this.alphaIcs_ = o.supportsAlpha ? {
38223
- palette: new e6(l, {
38224
+ palette: new n6(l, {
38224
38225
  value: this.value,
38225
38226
  viewProps: this.viewProps
38226
38227
  }),
@@ -38244,11 +38245,11 @@ class m6 {
38244
38245
  const b = c.getComponents();
38245
38246
  return b[3] = p, new Be(b, c.mode);
38246
38247
  }
38247
- }), this.textsC_ = new c6(l, {
38248
+ }), this.textsC_ = new f6(l, {
38248
38249
  colorType: o.colorType,
38249
38250
  value: this.value,
38250
38251
  viewProps: this.viewProps
38251
- }), this.view = new z5(l, {
38252
+ }), this.view = new M5(l, {
38252
38253
  alphaViews: this.alphaIcs_ ? {
38253
38254
  palette: this.alphaIcs_.palette.view,
38254
38255
  text: this.alphaIcs_.text.view
@@ -38265,7 +38266,7 @@ class m6 {
38265
38266
  }
38266
38267
  }
38267
38268
  const qw = Re("colsw");
38268
- class v6 {
38269
+ class g6 {
38269
38270
  constructor(l, o) {
38270
38271
  this.onValueChange_ = this.onValueChange_.bind(this), o.value.emitter.on("change", this.onValueChange_), this.value = o.value, this.element = l.createElement("div"), this.element.classList.add(qw()), o.viewProps.bindClassModifiers(this.element);
38271
38272
  const c = l.createElement("div");
@@ -38281,9 +38282,9 @@ class v6 {
38281
38282
  this.update_();
38282
38283
  }
38283
38284
  }
38284
- class g6 {
38285
+ class b6 {
38285
38286
  constructor(l, o) {
38286
- this.value = o.value, this.viewProps = o.viewProps, this.view = new v6(l, {
38287
+ this.value = o.value, this.viewProps = o.viewProps, this.view = new g6(l, {
38287
38288
  value: this.value,
38288
38289
  viewProps: this.viewProps
38289
38290
  });
@@ -38291,7 +38292,7 @@ class g6 {
38291
38292
  }
38292
38293
  class R2 {
38293
38294
  constructor(l, o) {
38294
- this.onButtonBlur_ = this.onButtonBlur_.bind(this), this.onButtonClick_ = this.onButtonClick_.bind(this), this.onPopupChildBlur_ = this.onPopupChildBlur_.bind(this), this.onPopupChildKeydown_ = this.onPopupChildKeydown_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.foldable_ = U0.create(o.expanded), this.swatchC_ = new g6(l, {
38295
+ this.onButtonBlur_ = this.onButtonBlur_.bind(this), this.onButtonClick_ = this.onButtonClick_.bind(this), this.onPopupChildBlur_ = this.onPopupChildBlur_.bind(this), this.onPopupChildKeydown_ = this.onPopupChildKeydown_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.foldable_ = U0.create(o.expanded), this.swatchC_ = new b6(l, {
38295
38296
  value: this.value,
38296
38297
  viewProps: this.viewProps
38297
38298
  });
@@ -38303,13 +38304,13 @@ class R2 {
38303
38304
  }),
38304
38305
  value: this.value,
38305
38306
  viewProps: this.viewProps
38306
- }), this.view = new _5(l, {
38307
+ }), this.view = new S5(l, {
38307
38308
  foldable: this.foldable_,
38308
38309
  pickerLayout: o.pickerLayout
38309
38310
  }), this.view.swatchElement.appendChild(this.swatchC_.view.element), this.view.textElement.appendChild(this.textC_.view.element), this.popC_ = o.pickerLayout === "popup" ? new YD(l, {
38310
38311
  viewProps: this.viewProps
38311
38312
  }) : null;
38312
- const p = new m6(l, {
38313
+ const p = new v6(l, {
38313
38314
  colorType: o.colorType,
38314
38315
  supportsAlpha: o.supportsAlpha,
38315
38316
  value: this.value,
@@ -38346,19 +38347,19 @@ class R2 {
38346
38347
  this.popC_ ? l.key === "Escape" && (this.popC_.shows.rawValue = !1) : this.view.pickerElement && l.key === "Escape" && this.swatchC_.view.buttonElement.focus();
38347
38348
  }
38348
38349
  }
38349
- function b6(s) {
38350
+ function y6(s) {
38350
38351
  return rr(s.getComponents("rgb")).reduce((l, o) => l << 8 | Math.floor(o) & 255, 0);
38351
38352
  }
38352
- function y6(s) {
38353
+ function _6(s) {
38353
38354
  return s.getComponents("rgb").reduce((l, o, c) => {
38354
38355
  const p = Math.floor(c === 3 ? o * 255 : o) & 255;
38355
38356
  return l << 8 | p;
38356
38357
  }, 0) >>> 0;
38357
38358
  }
38358
- function _6(s) {
38359
+ function S6(s) {
38359
38360
  return new Be([s >> 16 & 255, s >> 8 & 255, s & 255], "rgb");
38360
38361
  }
38361
- function S6(s) {
38362
+ function w6(s) {
38362
38363
  return new Be([
38363
38364
  s >> 24 & 255,
38364
38365
  s >> 16 & 255,
@@ -38366,12 +38367,12 @@ function S6(s) {
38366
38367
  Qe(s & 255, 0, 255, 0, 1)
38367
38368
  ], "rgb");
38368
38369
  }
38369
- function w6(s) {
38370
- return typeof s != "number" ? Be.black() : _6(s);
38371
- }
38372
38370
  function E6(s) {
38373
38371
  return typeof s != "number" ? Be.black() : S6(s);
38374
38372
  }
38373
+ function C6(s) {
38374
+ return typeof s != "number" ? Be.black() : w6(s);
38375
+ }
38375
38376
  function R_(s, l) {
38376
38377
  return typeof s != "object" || cn(s) ? !1 : l in s && typeof s[l] == "number";
38377
38378
  }
@@ -38396,64 +38397,64 @@ function O2(s, l) {
38396
38397
  function _T(s) {
38397
38398
  return "a" in s ? [s.r, s.g, s.b, s.a] : [s.r, s.g, s.b];
38398
38399
  }
38399
- function C6(s) {
38400
+ function x6(s) {
38400
38401
  const l = hz(s);
38401
38402
  return l ? (o, c) => {
38402
38403
  j0(o, l(c));
38403
38404
  } : null;
38404
38405
  }
38405
- function x6(s) {
38406
- const l = s ? y6 : b6;
38406
+ function T6(s) {
38407
+ const l = s ? _6 : y6;
38407
38408
  return (o, c) => {
38408
38409
  j0(o, l(c));
38409
38410
  };
38410
38411
  }
38411
- function T6(s, l, o) {
38412
+ function D6(s, l, o) {
38412
38413
  const p = Bl(l, o).toRgbaObject();
38413
38414
  s.writeProperty("r", p.r), s.writeProperty("g", p.g), s.writeProperty("b", p.b), s.writeProperty("a", p.a);
38414
38415
  }
38415
- function D6(s, l, o) {
38416
+ function z6(s, l, o) {
38416
38417
  const p = Bl(l, o).toRgbaObject();
38417
38418
  s.writeProperty("r", p.r), s.writeProperty("g", p.g), s.writeProperty("b", p.b);
38418
38419
  }
38419
- function z6(s, l) {
38420
+ function M6(s, l) {
38420
38421
  return (o, c) => {
38421
- s ? T6(o, c, l) : D6(o, c, l);
38422
+ s ? D6(o, c, l) : z6(o, c, l);
38422
38423
  };
38423
38424
  }
38424
- function M6(s) {
38425
+ function A6(s) {
38425
38426
  var l;
38426
38427
  return !!(!((l = s == null ? void 0 : s.color) === null || l === void 0) && l.alpha);
38427
38428
  }
38428
- function A6(s) {
38429
+ function R6(s) {
38429
38430
  return s ? (l) => A2(l, "0x") : (l) => M2(l, "0x");
38430
38431
  }
38431
- function R6(s) {
38432
+ function O6(s) {
38432
38433
  return "color" in s || s.view === "color";
38433
38434
  }
38434
- const O6 = jl({
38435
+ const U6 = jl({
38435
38436
  id: "input-color-number",
38436
38437
  type: "input",
38437
38438
  accept: (s, l) => {
38438
- if (typeof s != "number" || !R6(l))
38439
+ if (typeof s != "number" || !O6(l))
38439
38440
  return null;
38440
38441
  const o = T2(l);
38441
38442
  return o ? {
38442
38443
  initialValue: s,
38443
- params: Object.assign(Object.assign({}, o), { supportsAlpha: M6(l) })
38444
+ params: Object.assign(Object.assign({}, o), { supportsAlpha: A6(l) })
38444
38445
  } : null;
38445
38446
  },
38446
38447
  binding: {
38447
- reader: (s) => s.params.supportsAlpha ? E6 : w6,
38448
+ reader: (s) => s.params.supportsAlpha ? C6 : E6,
38448
38449
  equals: O2,
38449
- writer: (s) => x6(s.params.supportsAlpha)
38450
+ writer: (s) => T6(s.params.supportsAlpha)
38450
38451
  },
38451
38452
  controller: (s) => {
38452
38453
  var l, o;
38453
38454
  return new R2(s.document, {
38454
38455
  colorType: "int",
38455
38456
  expanded: (l = s.params.expanded) !== null && l !== void 0 ? l : !1,
38456
- formatter: A6(s.params.supportsAlpha),
38457
+ formatter: R6(s.params.supportsAlpha),
38457
38458
  parser: V0("int"),
38458
38459
  pickerLayout: (o = s.params.picker) !== null && o !== void 0 ? o : "popup",
38459
38460
  supportsAlpha: s.params.supportsAlpha,
@@ -38462,7 +38463,7 @@ const O6 = jl({
38462
38463
  });
38463
38464
  }
38464
38465
  });
38465
- function U6(s, l) {
38466
+ function N6(s, l) {
38466
38467
  if (!vz(s))
38467
38468
  return Bl(Be.black(), l);
38468
38469
  if (l === "int") {
@@ -38475,19 +38476,19 @@ function U6(s, l) {
38475
38476
  }
38476
38477
  return Bl(Be.black(), "int");
38477
38478
  }
38478
- function N6(s) {
38479
+ function L6(s) {
38479
38480
  return mz(s);
38480
38481
  }
38481
- function L6(s) {
38482
+ function H6(s) {
38482
38483
  return (l) => {
38483
- const o = U6(l, s);
38484
+ const o = N6(l, s);
38484
38485
  return Bl(o, "int");
38485
38486
  };
38486
38487
  }
38487
- function H6(s, l) {
38488
+ function B6(s, l) {
38488
38489
  return (o) => s ? dz(o, l) : fz(o, l);
38489
38490
  }
38490
- const B6 = jl({
38491
+ const j6 = jl({
38491
38492
  id: "input-color-object",
38492
38493
  type: "input",
38493
38494
  accept: (s, l) => {
@@ -38501,9 +38502,9 @@ const B6 = jl({
38501
38502
  } : null;
38502
38503
  },
38503
38504
  binding: {
38504
- reader: (s) => L6(s.params.colorType),
38505
+ reader: (s) => H6(s.params.colorType),
38505
38506
  equals: O2,
38506
- writer: (s) => z6(N6(s.initialValue), s.params.colorType)
38507
+ writer: (s) => M6(L6(s.initialValue), s.params.colorType)
38507
38508
  },
38508
38509
  controller: (s) => {
38509
38510
  var l, o;
@@ -38511,7 +38512,7 @@ const B6 = jl({
38511
38512
  return new R2(s.document, {
38512
38513
  colorType: s.params.colorType,
38513
38514
  expanded: (l = s.params.expanded) !== null && l !== void 0 ? l : !1,
38514
- formatter: H6(c, s.params.colorType),
38515
+ formatter: B6(c, s.params.colorType),
38515
38516
  parser: V0("int"),
38516
38517
  pickerLayout: (o = s.params.picker) !== null && o !== void 0 ? o : "popup",
38517
38518
  supportsAlpha: c,
@@ -38519,13 +38520,13 @@ const B6 = jl({
38519
38520
  viewProps: s.viewProps
38520
38521
  });
38521
38522
  }
38522
- }), j6 = jl({
38523
+ }), V6 = jl({
38523
38524
  id: "input-color-string",
38524
38525
  type: "input",
38525
38526
  accept: (s, l) => {
38526
38527
  if (typeof s != "string" || l.view === "text")
38527
38528
  return null;
38528
- const o = Z5(s, ID(l));
38529
+ const o = K5(s, ID(l));
38529
38530
  if (!o)
38530
38531
  return null;
38531
38532
  const c = hz(o);
@@ -38538,10 +38539,10 @@ const B6 = jl({
38538
38539
  } : null;
38539
38540
  },
38540
38541
  binding: {
38541
- reader: () => K5,
38542
+ reader: () => J5,
38542
38543
  equals: O2,
38543
38544
  writer: (s) => {
38544
- const l = C6(s.params.format);
38545
+ const l = x6(s.params.format);
38545
38546
  if (!l)
38546
38547
  throw Hn.notBindable();
38547
38548
  return l;
@@ -38574,7 +38575,7 @@ class U2 {
38574
38575
  }
38575
38576
  }
38576
38577
  const ST = Re("pndtxt");
38577
- class V6 {
38578
+ class G6 {
38578
38579
  constructor(l, o) {
38579
38580
  this.textViews = o.textViews, this.element = l.createElement("div"), this.element.classList.add(ST()), this.textViews.forEach((c) => {
38580
38581
  const p = l.createElement("div");
@@ -38582,7 +38583,7 @@ class V6 {
38582
38583
  });
38583
38584
  }
38584
38585
  }
38585
- function G6(s, l, o) {
38586
+ function q6(s, l, o) {
38586
38587
  return new B0(s, {
38587
38588
  arrayPosition: o === 0 ? "fst" : o === l.axes.length - 1 ? "lst" : "mid",
38588
38589
  parser: l.parser,
@@ -38595,7 +38596,7 @@ function G6(s, l, o) {
38595
38596
  }
38596
38597
  class N2 {
38597
38598
  constructor(l, o) {
38598
- this.value = o.value, this.viewProps = o.viewProps, this.acs_ = o.axes.map((c, p) => G6(l, o, p)), this.acs_.forEach((c, p) => {
38599
+ this.value = o.value, this.viewProps = o.viewProps, this.acs_ = o.axes.map((c, p) => q6(l, o, p)), this.acs_.forEach((c, p) => {
38599
38600
  rv({
38600
38601
  primary: this.value,
38601
38602
  secondary: c.value,
@@ -38605,7 +38606,7 @@ class N2 {
38605
38606
  return _[p] = S, o.assembly.fromComponents(_);
38606
38607
  }
38607
38608
  });
38608
- }), this.view = new V6(l, {
38609
+ }), this.view = new G6(l, {
38609
38610
  textViews: this.acs_.map((c) => c.view)
38610
38611
  });
38611
38612
  }
@@ -38613,7 +38614,7 @@ class N2 {
38613
38614
  return this.acs_;
38614
38615
  }
38615
38616
  }
38616
- class q6 extends T0 {
38617
+ class k6 extends T0 {
38617
38618
  get max() {
38618
38619
  return this.controller.valueController.sliderController.props.get("max");
38619
38620
  }
@@ -38627,7 +38628,7 @@ class q6 extends T0 {
38627
38628
  this.controller.valueController.sliderController.props.set("min", l);
38628
38629
  }
38629
38630
  }
38630
- function k6(s, l) {
38631
+ function Y6(s, l) {
38631
38632
  const o = [], c = DD(s, l);
38632
38633
  c && o.push(c);
38633
38634
  const p = zD(s);
@@ -38635,7 +38636,7 @@ function k6(s, l) {
38635
38636
  const b = x2(s.options);
38636
38637
  return b && o.push(b), new N0(o);
38637
38638
  }
38638
- const Y6 = jl({
38639
+ const X6 = jl({
38639
38640
  id: "input-number",
38640
38641
  type: "input",
38641
38642
  accept: (s, l) => {
@@ -38649,7 +38650,7 @@ const Y6 = jl({
38649
38650
  },
38650
38651
  binding: {
38651
38652
  reader: (s) => ED,
38652
- constraint: (s) => k6(s.params, s.initialValue),
38653
+ constraint: (s) => Y6(s.params, s.initialValue),
38653
38654
  writer: (s) => j0
38654
38655
  },
38655
38656
  controller: (s) => {
@@ -38671,7 +38672,7 @@ const Y6 = jl({
38671
38672
  });
38672
38673
  },
38673
38674
  api(s) {
38674
- return typeof s.controller.value.rawValue != "number" ? null : s.controller.valueController instanceof H_ ? new q6(s.controller) : s.controller.valueController instanceof yf ? new E2(s.controller) : null;
38675
+ return typeof s.controller.value.rawValue != "number" ? null : s.controller.valueController instanceof H_ ? new k6(s.controller) : s.controller.valueController instanceof yf ? new E2(s.controller) : null;
38675
38676
  }
38676
38677
  });
38677
38678
  class bf {
@@ -38701,7 +38702,7 @@ const gz = {
38701
38702
  toComponents: (s) => s.getComponents(),
38702
38703
  fromComponents: (s) => new bf(...s)
38703
38704
  }, Qm = Re("p2d");
38704
- class X6 {
38705
+ class P6 {
38705
38706
  constructor(l, o) {
38706
38707
  this.element = l.createElement("div"), this.element.classList.add(Qm()), o.viewProps.bindClassModifiers(this.element), wu(o.expanded, iv(this.element, Qm(void 0, "expanded")));
38707
38708
  const c = l.createElement("div");
@@ -38717,7 +38718,7 @@ class X6 {
38717
38718
  }
38718
38719
  }
38719
38720
  const cf = Re("p2dp");
38720
- class P6 {
38721
+ class Q6 {
38721
38722
  constructor(l, o) {
38722
38723
  this.onFoldableChange_ = this.onFoldableChange_.bind(this), this.onPropsChange_ = this.onPropsChange_.bind(this), this.onValueChange_ = this.onValueChange_.bind(this), this.props_ = o.props, this.props_.emitter.on("change", this.onPropsChange_), this.element = l.createElement("div"), this.element.classList.add(cf()), o.layout === "popup" && this.element.classList.add(cf(void 0, "p")), o.viewProps.bindClassModifiers(this.element);
38723
38724
  const c = l.createElement("div");
@@ -38756,9 +38757,9 @@ function wT(s, l, o) {
38756
38757
  ii(l[1], z0(s)) * (o ? 1 : -1)
38757
38758
  ];
38758
38759
  }
38759
- class Q6 {
38760
+ class Z6 {
38760
38761
  constructor(l, o) {
38761
- this.onPadKeyDown_ = this.onPadKeyDown_.bind(this), this.onPadKeyUp_ = this.onPadKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.view = new P6(l, {
38762
+ this.onPadKeyDown_ = this.onPadKeyDown_.bind(this), this.onPadKeyUp_ = this.onPadKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.view = new Q6(l, {
38762
38763
  layout: o.layout,
38763
38764
  props: this.props,
38764
38765
  value: this.value,
@@ -38805,13 +38806,13 @@ class Q6 {
38805
38806
  });
38806
38807
  }
38807
38808
  }
38808
- class Z6 {
38809
+ class K6 {
38809
38810
  constructor(l, o) {
38810
38811
  var c, p;
38811
38812
  this.onPopupChildBlur_ = this.onPopupChildBlur_.bind(this), this.onPopupChildKeydown_ = this.onPopupChildKeydown_.bind(this), this.onPadButtonBlur_ = this.onPadButtonBlur_.bind(this), this.onPadButtonClick_ = this.onPadButtonClick_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.foldable_ = U0.create(o.expanded), this.popC_ = o.pickerLayout === "popup" ? new YD(l, {
38812
38813
  viewProps: this.viewProps
38813
38814
  }) : null;
38814
- const b = new Q6(l, {
38815
+ const b = new Z6(l, {
38815
38816
  layout: o.pickerLayout,
38816
38817
  props: new he({
38817
38818
  invertsY: Sn(o.invertsY),
@@ -38830,7 +38831,7 @@ class Z6 {
38830
38831
  parser: o.parser,
38831
38832
  value: this.value,
38832
38833
  viewProps: this.viewProps
38833
- }), this.view = new X6(l, {
38834
+ }), this.view = new P6(l, {
38834
38835
  expanded: this.foldable_.value("expanded"),
38835
38836
  pickerLayout: o.pickerLayout,
38836
38837
  viewProps: this.viewProps
@@ -38863,13 +38864,13 @@ class Z6 {
38863
38864
  this.popC_ ? l.key === "Escape" && (this.popC_.shows.rawValue = !1) : this.view.pickerElement && l.key === "Escape" && this.view.buttonElement.focus();
38864
38865
  }
38865
38866
  }
38866
- function K6(s) {
38867
+ function J6(s) {
38867
38868
  return bf.isObject(s) ? new bf(s.x, s.y) : new bf();
38868
38869
  }
38869
- function J6(s, l) {
38870
+ function $6(s, l) {
38870
38871
  s.writeProperty("x", l.x), s.writeProperty("y", l.y);
38871
38872
  }
38872
- function $6(s, l) {
38873
+ function W6(s, l) {
38873
38874
  return new U2({
38874
38875
  assembly: gz,
38875
38876
  components: [
@@ -38885,18 +38886,18 @@ function ET(s, l) {
38885
38886
  const p = xD(s);
38886
38887
  return Math.max(Math.abs(p) * 10, Math.abs(l) * 10);
38887
38888
  }
38888
- function W6(s, l) {
38889
+ function F6(s, l) {
38889
38890
  var o, c;
38890
38891
  const p = ET(hh(s, (o = s.x) !== null && o !== void 0 ? o : {}), l.x), b = ET(hh(s, (c = s.y) !== null && c !== void 0 ? c : {}), l.y);
38891
38892
  return Math.max(p, b);
38892
38893
  }
38893
- function F6(s) {
38894
+ function I6(s) {
38894
38895
  if (!("y" in s))
38895
38896
  return !1;
38896
38897
  const l = s.y;
38897
38898
  return l && "inverted" in l ? !!l.inverted : !1;
38898
38899
  }
38899
- const I6 = jl({
38900
+ const t8 = jl({
38900
38901
  id: "input-point2d",
38901
38902
  type: "input",
38902
38903
  accept: (s, l) => {
@@ -38909,15 +38910,15 @@ const I6 = jl({
38909
38910
  } : null;
38910
38911
  },
38911
38912
  binding: {
38912
- reader: () => K6,
38913
- constraint: (s) => $6(s.params, s.initialValue),
38913
+ reader: () => J6,
38914
+ constraint: (s) => W6(s.params, s.initialValue),
38914
38915
  equals: bf.equals,
38915
- writer: () => J6
38916
+ writer: () => $6
38916
38917
  },
38917
38918
  controller: (s) => {
38918
38919
  var l, o;
38919
38920
  const c = s.document, p = s.value, b = s.constraint, S = [s.params.x, s.params.y];
38920
- return new Z6(c, {
38921
+ return new K6(c, {
38921
38922
  axes: p.rawValue.getComponents().map((_, C) => {
38922
38923
  var x;
38923
38924
  return m2({
@@ -38927,8 +38928,8 @@ const I6 = jl({
38927
38928
  });
38928
38929
  }),
38929
38930
  expanded: (l = s.params.expanded) !== null && l !== void 0 ? l : !1,
38930
- invertsY: F6(s.params),
38931
- max: W6(s.params, p.rawValue),
38931
+ invertsY: I6(s.params),
38932
+ max: F6(s.params, p.rawValue),
38932
38933
  parser: Cu,
38933
38934
  pickerLayout: (o = s.params.picker) !== null && o !== void 0 ? o : "popup",
38934
38935
  value: p,
@@ -38964,13 +38965,13 @@ const bz = {
38964
38965
  toComponents: (s) => s.getComponents(),
38965
38966
  fromComponents: (s) => new tv(...s)
38966
38967
  };
38967
- function t8(s) {
38968
+ function e8(s) {
38968
38969
  return tv.isObject(s) ? new tv(s.x, s.y, s.z) : new tv();
38969
38970
  }
38970
- function e8(s, l) {
38971
+ function n8(s, l) {
38971
38972
  s.writeProperty("x", l.x), s.writeProperty("y", l.y), s.writeProperty("z", l.z);
38972
38973
  }
38973
- function n8(s, l) {
38974
+ function a8(s, l) {
38974
38975
  return new U2({
38975
38976
  assembly: bz,
38976
38977
  components: [
@@ -38980,7 +38981,7 @@ function n8(s, l) {
38980
38981
  ]
38981
38982
  });
38982
38983
  }
38983
- const a8 = jl({
38984
+ const l8 = jl({
38984
38985
  id: "input-point3d",
38985
38986
  type: "input",
38986
38987
  accept: (s, l) => {
@@ -38993,10 +38994,10 @@ const a8 = jl({
38993
38994
  } : null;
38994
38995
  },
38995
38996
  binding: {
38996
- reader: (s) => t8,
38997
- constraint: (s) => n8(s.params, s.initialValue),
38997
+ reader: (s) => e8,
38998
+ constraint: (s) => a8(s.params, s.initialValue),
38998
38999
  equals: tv.equals,
38999
- writer: (s) => e8
39000
+ writer: (s) => n8
39000
39001
  },
39001
39002
  controller: (s) => {
39002
39003
  const l = s.value, o = s.constraint, c = [s.params.x, s.params.y, s.params.z];
@@ -39045,13 +39046,13 @@ const yz = {
39045
39046
  toComponents: (s) => s.getComponents(),
39046
39047
  fromComponents: (s) => new ev(...s)
39047
39048
  };
39048
- function l8(s) {
39049
+ function i8(s) {
39049
39050
  return ev.isObject(s) ? new ev(s.x, s.y, s.z, s.w) : new ev();
39050
39051
  }
39051
- function i8(s, l) {
39052
+ function o8(s, l) {
39052
39053
  s.writeProperty("x", l.x), s.writeProperty("y", l.y), s.writeProperty("z", l.z), s.writeProperty("w", l.w);
39053
39054
  }
39054
- function o8(s, l) {
39055
+ function s8(s, l) {
39055
39056
  return new U2({
39056
39057
  assembly: yz,
39057
39058
  components: [
@@ -39062,7 +39063,7 @@ function o8(s, l) {
39062
39063
  ]
39063
39064
  });
39064
39065
  }
39065
- const s8 = jl({
39066
+ const r8 = jl({
39066
39067
  id: "input-point4d",
39067
39068
  type: "input",
39068
39069
  accept: (s, l) => {
@@ -39075,10 +39076,10 @@ const s8 = jl({
39075
39076
  } : null;
39076
39077
  },
39077
39078
  binding: {
39078
- reader: (s) => l8,
39079
- constraint: (s) => o8(s.params, s.initialValue),
39079
+ reader: (s) => i8,
39080
+ constraint: (s) => s8(s.params, s.initialValue),
39080
39081
  equals: ev.equals,
39081
- writer: (s) => i8
39082
+ writer: (s) => o8
39082
39083
  },
39083
39084
  controller: (s) => {
39084
39085
  const l = s.value, o = s.constraint, c = [
@@ -39103,11 +39104,11 @@ const s8 = jl({
39103
39104
  });
39104
39105
  }
39105
39106
  });
39106
- function r8(s) {
39107
+ function u8(s) {
39107
39108
  const l = [], o = x2(s.options);
39108
39109
  return o && l.push(o), new N0(l);
39109
39110
  }
39110
- const u8 = jl({
39111
+ const c8 = jl({
39111
39112
  id: "input-string",
39112
39113
  type: "input",
39113
39114
  accept: (s, l) => {
@@ -39124,7 +39125,7 @@ const u8 = jl({
39124
39125
  },
39125
39126
  binding: {
39126
39127
  reader: (s) => PD,
39127
- constraint: (s) => r8(s.params),
39128
+ constraint: (s) => u8(s.params),
39128
39129
  writer: (s) => j0
39129
39130
  },
39130
39131
  controller: (s) => {
@@ -39153,7 +39154,7 @@ const u8 = jl({
39153
39154
  defaultRows: 3
39154
39155
  }
39155
39156
  }, CT = Re("mll");
39156
- class c8 {
39157
+ class f8 {
39157
39158
  constructor(l, o) {
39158
39159
  this.onValueUpdate_ = this.onValueUpdate_.bind(this), this.formatter_ = o.formatter, this.element = l.createElement("div"), this.element.classList.add(CT()), o.viewProps.bindClassModifiers(this.element);
39159
39160
  const c = l.createElement("textarea");
@@ -39172,7 +39173,7 @@ class c8 {
39172
39173
  }
39173
39174
  class L2 {
39174
39175
  constructor(l, o) {
39175
- this.value = o.value, this.viewProps = o.viewProps, this.view = new c8(l, {
39176
+ this.value = o.value, this.viewProps = o.viewProps, this.view = new f8(l, {
39176
39177
  formatter: o.formatter,
39177
39178
  rows: o.rows,
39178
39179
  value: this.value,
@@ -39181,7 +39182,7 @@ class L2 {
39181
39182
  }
39182
39183
  }
39183
39184
  const xT = Re("sgl");
39184
- class f8 {
39185
+ class d8 {
39185
39186
  constructor(l, o) {
39186
39187
  this.onValueUpdate_ = this.onValueUpdate_.bind(this), this.formatter_ = o.formatter, this.element = l.createElement("div"), this.element.classList.add(xT()), o.viewProps.bindClassModifiers(this.element);
39187
39188
  const c = l.createElement("input");
@@ -39197,14 +39198,14 @@ class f8 {
39197
39198
  }
39198
39199
  class H2 {
39199
39200
  constructor(l, o) {
39200
- this.value = o.value, this.viewProps = o.viewProps, this.view = new f8(l, {
39201
+ this.value = o.value, this.viewProps = o.viewProps, this.view = new d8(l, {
39201
39202
  formatter: o.formatter,
39202
39203
  value: this.value,
39203
39204
  viewProps: this.viewProps
39204
39205
  });
39205
39206
  }
39206
39207
  }
39207
- const d8 = jl({
39208
+ const h8 = jl({
39208
39209
  id: "monitor-bool",
39209
39210
  type: "monitor",
39210
39211
  accept: (s, l) => {
@@ -39236,7 +39237,7 @@ const d8 = jl({
39236
39237
  });
39237
39238
  }
39238
39239
  });
39239
- class h8 extends T0 {
39240
+ class p8 extends T0 {
39240
39241
  get max() {
39241
39242
  return this.controller.valueController.props.get("max");
39242
39243
  }
@@ -39251,7 +39252,7 @@ class h8 extends T0 {
39251
39252
  }
39252
39253
  }
39253
39254
  const ff = Re("grl");
39254
- class p8 {
39255
+ class m8 {
39255
39256
  constructor(l, o) {
39256
39257
  this.onCursorChange_ = this.onCursorChange_.bind(this), this.onValueUpdate_ = this.onValueUpdate_.bind(this), this.element = l.createElement("div"), this.element.classList.add(ff()), o.viewProps.bindClassModifiers(this.element), this.formatter_ = o.formatter, this.props_ = o.props, this.cursor_ = o.cursor, this.cursor_.emitter.on("change", this.onCursorChange_);
39257
39258
  const c = l.createElementNS(ir, "svg");
@@ -39289,7 +39290,7 @@ class p8 {
39289
39290
  }
39290
39291
  class _z {
39291
39292
  constructor(l, o) {
39292
- if (this.onGraphMouseMove_ = this.onGraphMouseMove_.bind(this), this.onGraphMouseLeave_ = this.onGraphMouseLeave_.bind(this), this.onGraphPointerDown_ = this.onGraphPointerDown_.bind(this), this.onGraphPointerMove_ = this.onGraphPointerMove_.bind(this), this.onGraphPointerUp_ = this.onGraphPointerUp_.bind(this), this.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.cursor_ = Sn(-1), this.view = new p8(l, {
39293
+ if (this.onGraphMouseMove_ = this.onGraphMouseMove_.bind(this), this.onGraphMouseLeave_ = this.onGraphMouseLeave_.bind(this), this.onGraphPointerDown_ = this.onGraphPointerDown_.bind(this), this.onGraphPointerMove_ = this.onGraphPointerMove_.bind(this), this.onGraphPointerUp_ = this.onGraphPointerUp_.bind(this), this.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.cursor_ = Sn(-1), this.view = new m8(l, {
39293
39294
  cursor: this.cursor_,
39294
39295
  formatter: o.formatter,
39295
39296
  rows: o.rows,
@@ -39339,7 +39340,7 @@ class _z {
39339
39340
  function n2(s) {
39340
39341
  return cn(s.format) ? oi(2) : s.format;
39341
39342
  }
39342
- function m8(s) {
39343
+ function v8(s) {
39343
39344
  var l;
39344
39345
  return s.value.rawValue.length === 1 ? new H2(s.document, {
39345
39346
  formatter: n2(s.params),
@@ -39352,7 +39353,7 @@ function m8(s) {
39352
39353
  viewProps: s.viewProps
39353
39354
  });
39354
39355
  }
39355
- function v8(s) {
39356
+ function g8(s) {
39356
39357
  var l, o, c;
39357
39358
  return new _z(s.document, {
39358
39359
  formatter: n2(s.params),
@@ -39368,7 +39369,7 @@ function v8(s) {
39368
39369
  function TT(s) {
39369
39370
  return s.view === "graph";
39370
39371
  }
39371
- const g8 = jl({
39372
+ const b8 = jl({
39372
39373
  id: "monitor-number",
39373
39374
  type: "monitor",
39374
39375
  accept: (s, l) => {
@@ -39391,9 +39392,9 @@ const g8 = jl({
39391
39392
  defaultBufferSize: (s) => TT(s) ? 64 : 1,
39392
39393
  reader: (s) => ED
39393
39394
  },
39394
- controller: (s) => TT(s.params) ? v8(s) : m8(s),
39395
- api: (s) => s.controller.valueController instanceof _z ? new h8(s.controller) : null
39396
- }), b8 = jl({
39395
+ controller: (s) => TT(s.params) ? g8(s) : v8(s),
39396
+ api: (s) => s.controller.valueController instanceof _z ? new p8(s.controller) : null
39397
+ }), y8 = jl({
39397
39398
  id: "monitor-string",
39398
39399
  type: "monitor",
39399
39400
  accept: (s, l) => {
@@ -39427,7 +39428,7 @@ const g8 = jl({
39427
39428
  });
39428
39429
  }
39429
39430
  });
39430
- class y8 {
39431
+ class _8 {
39431
39432
  constructor() {
39432
39433
  this.map_ = /* @__PURE__ */ new Map();
39433
39434
  }
@@ -39444,7 +39445,7 @@ class y8 {
39444
39445
  }), o;
39445
39446
  }
39446
39447
  }
39447
- class _8 {
39448
+ class S8 {
39448
39449
  constructor(l) {
39449
39450
  this.target = l.target, this.reader_ = l.reader, this.writer_ = l.writer;
39450
39451
  }
@@ -39458,7 +39459,7 @@ class _8 {
39458
39459
  this.write(this.reader_(l));
39459
39460
  }
39460
39461
  }
39461
- function S8(s, l) {
39462
+ function w8(s, l) {
39462
39463
  var o;
39463
39464
  const c = s.accept(l.target.read(), l.params);
39464
39465
  if (cn(c))
@@ -39472,11 +39473,11 @@ function S8(s, l) {
39472
39473
  hidden: M.optional.boolean,
39473
39474
  label: M.optional.string,
39474
39475
  tag: M.optional.string
39475
- })), S = s.binding.reader(p), _ = s.binding.constraint ? s.binding.constraint(p) : void 0, C = new _8({
39476
+ })), S = s.binding.reader(p), _ = s.binding.constraint ? s.binding.constraint(p) : void 0, C = new S8({
39476
39477
  reader: S,
39477
39478
  target: l.target,
39478
39479
  writer: s.binding.writer(p)
39479
- }), x = new l4(Sn(S(c.initialValue), {
39480
+ }), x = new i4(Sn(S(c.initialValue), {
39480
39481
  constraint: _,
39481
39482
  equals: s.binding.equals
39482
39483
  }), C), D = s.controller({
@@ -39490,7 +39491,7 @@ function S8(s, l) {
39490
39491
  hidden: b == null ? void 0 : b.hidden
39491
39492
  })
39492
39493
  });
39493
- return new y4(l.document, {
39494
+ return new _4(l.document, {
39494
39495
  blade: sv(),
39495
39496
  props: he.fromObject({
39496
39497
  label: "label" in l.params ? (o = b == null ? void 0 : b.label) !== null && o !== void 0 ? o : null : l.target.key
@@ -39500,7 +39501,7 @@ function S8(s, l) {
39500
39501
  valueController: D
39501
39502
  });
39502
39503
  }
39503
- class w8 {
39504
+ class E8 {
39504
39505
  constructor(l) {
39505
39506
  this.target = l.target, this.reader_ = l.reader;
39506
39507
  }
@@ -39508,10 +39509,10 @@ class w8 {
39508
39509
  return this.reader_(this.target.read());
39509
39510
  }
39510
39511
  }
39511
- function E8(s, l) {
39512
- return l === 0 ? new e5() : new n5(s, l ?? G0.monitor.defaultInterval);
39513
- }
39514
39512
  function C8(s, l) {
39513
+ return l === 0 ? new n5() : new a5(s, l ?? G0.monitor.defaultInterval);
39514
+ }
39515
+ function x8(s, l) {
39515
39516
  var o, c, p;
39516
39517
  const b = s.accept(l.target.read(), l.params);
39517
39518
  if (cn(b))
@@ -39526,13 +39527,13 @@ function C8(s, l) {
39526
39527
  hidden: A.optional.boolean,
39527
39528
  interval: A.optional.number,
39528
39529
  label: A.optional.string
39529
- })), C = s.binding.reader(S), x = (c = (o = _ == null ? void 0 : _.bufferSize) !== null && o !== void 0 ? o : s.binding.defaultBufferSize && s.binding.defaultBufferSize(b.params)) !== null && c !== void 0 ? c : 1, D = new C4({
39530
- binding: new w8({
39530
+ })), C = s.binding.reader(S), x = (c = (o = _ == null ? void 0 : _.bufferSize) !== null && o !== void 0 ? o : s.binding.defaultBufferSize && s.binding.defaultBufferSize(b.params)) !== null && c !== void 0 ? c : 1, D = new x4({
39531
+ binding: new E8({
39531
39532
  reader: C,
39532
39533
  target: l.target
39533
39534
  }),
39534
39535
  bufferSize: x,
39535
- ticker: E8(l.document, _ == null ? void 0 : _.interval)
39536
+ ticker: C8(l.document, _ == null ? void 0 : _.interval)
39536
39537
  }), M = s.controller({
39537
39538
  document: l.document,
39538
39539
  params: b.params,
@@ -39544,7 +39545,7 @@ function C8(s, l) {
39544
39545
  });
39545
39546
  return M.viewProps.bindDisabled(D.ticker), M.viewProps.handleDispose(() => {
39546
39547
  D.ticker.dispose();
39547
- }), new T4(l.document, {
39548
+ }), new D4(l.document, {
39548
39549
  blade: sv(),
39549
39550
  props: he.fromObject({
39550
39551
  label: "label" in l.params ? (p = _ == null ? void 0 : _.label) !== null && p !== void 0 ? p : null : l.target.key
@@ -39553,7 +39554,7 @@ function C8(s, l) {
39553
39554
  valueController: M
39554
39555
  });
39555
39556
  }
39556
- class x8 {
39557
+ class T8 {
39557
39558
  constructor(l) {
39558
39559
  this.pluginsMap_ = {
39559
39560
  blades: [],
@@ -39569,19 +39570,19 @@ class x8 {
39569
39570
  ];
39570
39571
  }
39571
39572
  register(l, o) {
39572
- if (!m5(o.core))
39573
+ if (!v5(o.core))
39573
39574
  throw Hn.notCompatible(l, o.id);
39574
39575
  o.type === "blade" ? this.pluginsMap_.blades.unshift(o) : o.type === "input" ? this.pluginsMap_.inputs.unshift(o) : o.type === "monitor" && this.pluginsMap_.monitors.unshift(o);
39575
39576
  }
39576
39577
  createInput_(l, o, c) {
39577
- return this.pluginsMap_.inputs.reduce((p, b) => p ?? S8(b, {
39578
+ return this.pluginsMap_.inputs.reduce((p, b) => p ?? w8(b, {
39578
39579
  document: l,
39579
39580
  target: o,
39580
39581
  params: c
39581
39582
  }), null);
39582
39583
  }
39583
39584
  createMonitor_(l, o, c) {
39584
- return this.pluginsMap_.monitors.reduce((p, b) => p ?? C8(b, {
39585
+ return this.pluginsMap_.monitors.reduce((p, b) => p ?? x8(b, {
39585
39586
  document: l,
39586
39587
  params: c,
39587
39588
  target: o
@@ -39610,7 +39611,7 @@ class x8 {
39610
39611
  });
39611
39612
  }
39612
39613
  createBlade(l, o) {
39613
- const c = this.pluginsMap_.blades.reduce((p, b) => p ?? t5(b, {
39614
+ const c = this.pluginsMap_.blades.reduce((p, b) => p ?? e5(b, {
39614
39615
  document: l,
39615
39616
  params: o
39616
39617
  }), null);
@@ -39644,16 +39645,16 @@ class x8 {
39644
39645
  createBindingApi(l) {
39645
39646
  if (this.apiCache_.has(l))
39646
39647
  return this.apiCache_.get(l);
39647
- if (_4(l))
39648
+ if (S4(l))
39648
39649
  return this.createInputBindingApi_(l);
39649
- if (D4(l))
39650
+ if (z4(l))
39650
39651
  return this.createMonitorBindingApi_(l);
39651
39652
  throw Hn.shouldNeverHappen();
39652
39653
  }
39653
39654
  createApi(l) {
39654
39655
  if (this.apiCache_.has(l))
39655
39656
  return this.apiCache_.get(l);
39656
- if (b4(l))
39657
+ if (y4(l))
39657
39658
  return this.createBindingApi(l);
39658
39659
  const o = this.pluginsMap_.blades.reduce((c, p) => c ?? p.api({
39659
39660
  controller: l,
@@ -39664,30 +39665,30 @@ class x8 {
39664
39665
  return this.apiCache_.add(l, o);
39665
39666
  }
39666
39667
  }
39667
- const T8 = new y8();
39668
- function D8() {
39669
- const s = new x8(T8);
39668
+ const D8 = new _8();
39669
+ function z8() {
39670
+ const s = new T8(D8);
39670
39671
  return [
39671
- I6,
39672
- a8,
39673
- s8,
39674
- u8,
39675
- Y6,
39672
+ t8,
39673
+ l8,
39674
+ r8,
39675
+ c8,
39676
+ X6,
39677
+ V6,
39676
39678
  j6,
39677
- B6,
39678
- O6,
39679
- y5,
39680
- d8,
39679
+ U6,
39680
+ _5,
39681
+ h8,
39682
+ y8,
39681
39683
  b8,
39682
- g8,
39683
- O4,
39684
- P4,
39684
+ U4,
39685
+ Q4,
39685
39686
  kD
39686
39687
  ].forEach((l) => {
39687
39688
  s.register("core", l);
39688
39689
  }), s;
39689
39690
  }
39690
- class z8 extends gh {
39691
+ class M8 extends gh {
39691
39692
  /**
39692
39693
  * @hidden
39693
39694
  */
@@ -39726,9 +39727,9 @@ class z8 extends gh {
39726
39727
  return this.emitter_.off(l, o), this;
39727
39728
  }
39728
39729
  }
39729
- class M8 extends gh {
39730
- }
39731
39730
  class A8 extends gh {
39731
+ }
39732
+ class R8 extends gh {
39732
39733
  /**
39733
39734
  * @hidden
39734
39735
  */
@@ -39773,7 +39774,7 @@ class A8 extends gh {
39773
39774
  return this.emitter_.off(l, o), this;
39774
39775
  }
39775
39776
  }
39776
- class R8 extends gh {
39777
+ class O8 extends gh {
39777
39778
  /**
39778
39779
  * @hidden
39779
39780
  */
@@ -39812,7 +39813,7 @@ class R8 extends gh {
39812
39813
  return this.emitter_.off(l, o), this;
39813
39814
  }
39814
39815
  }
39815
- const O8 = /* @__PURE__ */ (function() {
39816
+ const U8 = /* @__PURE__ */ (function() {
39816
39817
  return {
39817
39818
  id: "list",
39818
39819
  type: "blade",
@@ -39846,11 +39847,11 @@ const O8 = /* @__PURE__ */ (function() {
39846
39847
  });
39847
39848
  },
39848
39849
  api(s) {
39849
- return !(s.controller instanceof ph) || !(s.controller.valueController instanceof yf) ? null : new z8(s.controller);
39850
+ return !(s.controller instanceof ph) || !(s.controller.valueController instanceof yf) ? null : new M8(s.controller);
39850
39851
  }
39851
39852
  };
39852
39853
  })();
39853
- class U8 extends GD {
39854
+ class N8 extends GD {
39854
39855
  /**
39855
39856
  * @hidden
39856
39857
  */
@@ -39861,7 +39862,7 @@ class U8 extends GD {
39861
39862
  return this.controller.view.element;
39862
39863
  }
39863
39864
  }
39864
- class N8 extends Iw {
39865
+ class L8 extends Iw {
39865
39866
  constructor(l, o) {
39866
39867
  super(l, {
39867
39868
  expanded: o.expanded,
@@ -39873,7 +39874,7 @@ class N8 extends Iw {
39873
39874
  }
39874
39875
  }
39875
39876
  const DT = Re("spr");
39876
- class L8 {
39877
+ class H8 {
39877
39878
  constructor(l, o) {
39878
39879
  this.element = l.createElement("div"), this.element.classList.add(DT()), o.viewProps.bindClassModifiers(this.element);
39879
39880
  const c = l.createElement("hr");
@@ -39885,12 +39886,12 @@ class zT extends k_ {
39885
39886
  * @hidden
39886
39887
  */
39887
39888
  constructor(l, o) {
39888
- super(Object.assign(Object.assign({}, o), { view: new L8(l, {
39889
+ super(Object.assign(Object.assign({}, o), { view: new H8(l, {
39889
39890
  viewProps: o.viewProps
39890
39891
  }) }));
39891
39892
  }
39892
39893
  }
39893
- const H8 = {
39894
+ const B8 = {
39894
39895
  id: "separator",
39895
39896
  type: "blade",
39896
39897
  core: ov,
@@ -39907,9 +39908,9 @@ const H8 = {
39907
39908
  });
39908
39909
  },
39909
39910
  api(s) {
39910
- return s.controller instanceof zT ? new M8(s.controller) : null;
39911
+ return s.controller instanceof zT ? new A8(s.controller) : null;
39911
39912
  }
39912
- }, B8 = {
39913
+ }, j8 = {
39913
39914
  id: "slider",
39914
39915
  type: "blade",
39915
39916
  core: ov,
@@ -39932,7 +39933,7 @@ const H8 = {
39932
39933
  }), b = Sn(c, {
39933
39934
  constraint: p
39934
39935
  }), S = new H_(s.document, Object.assign(Object.assign({}, ZD({
39935
- formatter: (o = s.params.format) !== null && o !== void 0 ? o : I3,
39936
+ formatter: (o = s.params.format) !== null && o !== void 0 ? o : t4,
39936
39937
  keyScale: Sn(1),
39937
39938
  max: p.values.value("max"),
39938
39939
  min: p.values.value("min"),
@@ -39948,9 +39949,9 @@ const H8 = {
39948
39949
  });
39949
39950
  },
39950
39951
  api(s) {
39951
- return !(s.controller instanceof ph) || !(s.controller.valueController instanceof H_) ? null : new A8(s.controller);
39952
+ return !(s.controller instanceof ph) || !(s.controller.valueController instanceof H_) ? null : new R8(s.controller);
39952
39953
  }
39953
- }, j8 = /* @__PURE__ */ (function() {
39954
+ }, V8 = /* @__PURE__ */ (function() {
39954
39955
  return {
39955
39956
  id: "text",
39956
39957
  type: "blade",
@@ -39985,24 +39986,24 @@ const H8 = {
39985
39986
  });
39986
39987
  },
39987
39988
  api(s) {
39988
- return !(s.controller instanceof ph) || !(s.controller.valueController instanceof D0) ? null : new R8(s.controller);
39989
+ return !(s.controller instanceof ph) || !(s.controller.valueController instanceof D0) ? null : new O8(s.controller);
39989
39990
  }
39990
39991
  };
39991
39992
  })();
39992
- function V8(s) {
39993
+ function G8(s) {
39993
39994
  const l = s.createElement("div");
39994
39995
  return l.classList.add(Re("dfw")()), s.body && s.body.appendChild(l), l;
39995
39996
  }
39996
- function G8(s, l, o) {
39997
+ function q8(s, l, o) {
39997
39998
  if (s.querySelector(`style[data-tp-style=${l}]`))
39998
39999
  return;
39999
40000
  const c = s.createElement("style");
40000
40001
  c.dataset.tpStyle = l, c.textContent = o, s.head.appendChild(c);
40001
40002
  }
40002
- class q8 extends U8 {
40003
+ class k8 extends N8 {
40003
40004
  constructor(l) {
40004
40005
  var o, c;
40005
- const p = l ?? {}, b = (o = p.document) !== null && o !== void 0 ? o : f4(), S = D8(), _ = new N8(b, {
40006
+ const p = l ?? {}, b = (o = p.document) !== null && o !== void 0 ? o : d4(), S = z8(), _ = new L8(b, {
40006
40007
  expanded: p.expanded,
40007
40008
  blade: sv(),
40008
40009
  props: he.fromObject({
@@ -40010,7 +40011,7 @@ class q8 extends U8 {
40010
40011
  }),
40011
40012
  viewProps: Tu.create()
40012
40013
  });
40013
- super(_, S), this.pool_ = S, this.containerElem_ = (c = p.container) !== null && c !== void 0 ? c : V8(b), this.containerElem_.appendChild(this.element), this.doc_ = b, this.usesDefaultWrapper_ = !p.container, this.setUpDefaultPlugins_();
40014
+ super(_, S), this.pool_ = S, this.containerElem_ = (c = p.container) !== null && c !== void 0 ? c : G8(b), this.containerElem_.appendChild(this.element), this.doc_ = b, this.usesDefaultWrapper_ = !p.container, this.setUpDefaultPlugins_();
40014
40015
  }
40015
40016
  get document() {
40016
40017
  if (!this.doc_)
@@ -40028,7 +40029,7 @@ class q8 extends U8 {
40028
40029
  this.containerElem_ = null, this.doc_ = null, super.dispose();
40029
40030
  }
40030
40031
  registerPlugin(l) {
40031
- l.css && G8(this.document, `plugin-${l.id}`, l.css), ("plugin" in l ? [l.plugin] : "plugins" in l ? l.plugins : []).forEach((c) => {
40032
+ l.css && q8(this.document, `plugin-${l.id}`, l.css), ("plugin" in l ? [l.plugin] : "plugins" in l ? l.plugins : []).forEach((c) => {
40032
40033
  this.pool_.register(l.id, c);
40033
40034
  });
40034
40035
  }
@@ -40038,43 +40039,43 @@ class q8 extends U8 {
40038
40039
  // NOTE: This string literal will be replaced with the default CSS by Rollup at the compilation time
40039
40040
  css: '.tp-tbiv_b,.tp-coltxtv_ms,.tp-colswv_b,.tp-ckbv_i,.tp-sglv_i,.tp-mllv_i,.tp-grlv_g,.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw,.tp-rotv_b,.tp-fldv_b,.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{background-color:var(--btn-bg);border-radius:var(--bld-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--cnt-usz);line-height:var(--cnt-usz);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-p2dv_b:hover,.tp-btnv_b:hover,.tp-lstv_s:hover{background-color:var(--btn-bg-h)}.tp-p2dv_b:focus,.tp-btnv_b:focus,.tp-lstv_s:focus{background-color:var(--btn-bg-f)}.tp-p2dv_b:active,.tp-btnv_b:active,.tp-lstv_s:active{background-color:var(--btn-bg-a)}.tp-p2dv_b:disabled,.tp-btnv_b:disabled,.tp-lstv_s:disabled{opacity:.5}.tp-rotv_c>.tp-cntv.tp-v-lst,.tp-tbpv_c>.tp-cntv.tp-v-lst,.tp-fldv_c>.tp-cntv.tp-v-lst{margin-bottom:calc(-1*var(--cnt-vp))}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-tbpv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_c{border-bottom-left-radius:0}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-tbpv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_b{border-bottom-left-radius:0}.tp-rotv_c>*:not(.tp-v-fst),.tp-tbpv_c>*:not(.tp-v-fst),.tp-fldv_c>*:not(.tp-v-fst){margin-top:var(--cnt-usp)}.tp-rotv_c>.tp-sprv:not(.tp-v-fst),.tp-tbpv_c>.tp-sprv:not(.tp-v-fst),.tp-fldv_c>.tp-sprv:not(.tp-v-fst),.tp-rotv_c>.tp-cntv:not(.tp-v-fst),.tp-tbpv_c>.tp-cntv:not(.tp-v-fst),.tp-fldv_c>.tp-cntv:not(.tp-v-fst){margin-top:var(--cnt-vp)}.tp-rotv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-tbpv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-rotv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-tbpv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-cntv+*:not(.tp-v-hidden){margin-top:var(--cnt-vp)}.tp-rotv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-tbpv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-fldv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-rotv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-tbpv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-fldv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv{margin-top:0}.tp-tbpv_c>.tp-cntv,.tp-fldv_c>.tp-cntv{margin-left:4px}.tp-tbpv_c>.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-fldv>.tp-fldv_b{border-top-left-radius:var(--bld-br);border-bottom-left-radius:var(--bld-br)}.tp-tbpv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b{border-bottom-left-radius:0}.tp-tbpv_c .tp-fldv>.tp-fldv_c,.tp-fldv_c .tp-fldv>.tp-fldv_c{border-bottom-left-radius:var(--bld-br)}.tp-tbpv_c>.tp-cntv+.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-cntv+.tp-fldv>.tp-fldv_b{border-top-left-radius:0}.tp-tbpv_c>.tp-cntv+.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-cntv+.tp-tabv>.tp-tabv_t{border-top-left-radius:0}.tp-tbpv_c>.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-tabv>.tp-tabv_t{border-top-left-radius:var(--bld-br)}.tp-tbpv_c .tp-tabv>.tp-tabv_c,.tp-fldv_c .tp-tabv>.tp-tabv_c{border-bottom-left-radius:var(--bld-br)}.tp-rotv_b,.tp-fldv_b{background-color:var(--cnt-bg);color:var(--cnt-fg);cursor:pointer;display:block;height:calc(var(--cnt-usz) + 4px);line-height:calc(var(--cnt-usz) + 4px);overflow:hidden;padding-left:var(--cnt-hp);padding-right:calc(4px + var(--cnt-usz) + var(--cnt-hp));position:relative;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%;transition:border-radius .2s ease-in-out .2s}.tp-rotv_b:hover,.tp-fldv_b:hover{background-color:var(--cnt-bg-h)}.tp-rotv_b:focus,.tp-fldv_b:focus{background-color:var(--cnt-bg-f)}.tp-rotv_b:active,.tp-fldv_b:active{background-color:var(--cnt-bg-a)}.tp-rotv_b:disabled,.tp-fldv_b:disabled{opacity:.5}.tp-rotv_m,.tp-fldv_m{background:linear-gradient(to left, var(--cnt-fg), var(--cnt-fg) 2px, transparent 2px, transparent 4px, var(--cnt-fg) 4px);border-radius:2px;bottom:0;content:"";display:block;height:6px;right:calc(var(--cnt-hp) + (var(--cnt-usz) + 4px - 6px)/2 - 2px);margin:auto;opacity:.5;position:absolute;top:0;transform:rotate(90deg);transition:transform .2s ease-in-out;width:6px}.tp-rotv.tp-rotv-expanded .tp-rotv_m,.tp-fldv.tp-fldv-expanded>.tp-fldv_b>.tp-fldv_m{transform:none}.tp-rotv_c,.tp-fldv_c{box-sizing:border-box;height:0;opacity:0;overflow:hidden;padding-bottom:0;padding-top:0;position:relative;transition:height .2s ease-in-out,opacity .2s linear,padding .2s ease-in-out}.tp-rotv.tp-rotv-cpl:not(.tp-rotv-expanded) .tp-rotv_c,.tp-fldv.tp-fldv-cpl:not(.tp-fldv-expanded)>.tp-fldv_c{display:none}.tp-rotv.tp-rotv-expanded .tp-rotv_c,.tp-fldv.tp-fldv-expanded>.tp-fldv_c{opacity:1;padding-bottom:var(--cnt-vp);padding-top:var(--cnt-vp);transform:none;overflow:visible;transition:height .2s ease-in-out,opacity .2s linear .2s,padding .2s ease-in-out}.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw{background-color:var(--in-bg);border-radius:var(--bld-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--cnt-usz);line-height:var(--cnt-usz);min-width:0;width:100%}.tp-txtv_i:hover,.tp-p2dpv_p:hover,.tp-colswv_sw:hover{background-color:var(--in-bg-h)}.tp-txtv_i:focus,.tp-p2dpv_p:focus,.tp-colswv_sw:focus{background-color:var(--in-bg-f)}.tp-txtv_i:active,.tp-p2dpv_p:active,.tp-colswv_sw:active{background-color:var(--in-bg-a)}.tp-txtv_i:disabled,.tp-p2dpv_p:disabled,.tp-colswv_sw:disabled{opacity:.5}.tp-lstv,.tp-coltxtv_m{position:relative}.tp-lstv_s{padding:0 20px 0 4px;width:100%}.tp-lstv_m,.tp-coltxtv_mm{bottom:0;margin:auto;pointer-events:none;position:absolute;right:2px;top:0}.tp-lstv_m svg,.tp-coltxtv_mm svg{bottom:0;height:16px;margin:auto;position:absolute;right:0;top:0;width:16px}.tp-lstv_m svg path,.tp-coltxtv_mm svg path{fill:currentColor}.tp-sglv_i,.tp-mllv_i,.tp-grlv_g{background-color:var(--mo-bg);border-radius:var(--bld-br);box-sizing:border-box;color:var(--mo-fg);height:var(--cnt-usz);scrollbar-color:currentColor rgba(0,0,0,0);scrollbar-width:thin;width:100%}.tp-sglv_i::-webkit-scrollbar,.tp-mllv_i::-webkit-scrollbar,.tp-grlv_g::-webkit-scrollbar{height:8px;width:8px}.tp-sglv_i::-webkit-scrollbar-corner,.tp-mllv_i::-webkit-scrollbar-corner,.tp-grlv_g::-webkit-scrollbar-corner{background-color:rgba(0,0,0,0)}.tp-sglv_i::-webkit-scrollbar-thumb,.tp-mllv_i::-webkit-scrollbar-thumb,.tp-grlv_g::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:currentColor;border:rgba(0,0,0,0) solid 2px;border-radius:4px}.tp-pndtxtv,.tp-coltxtv_w{display:flex}.tp-pndtxtv_a,.tp-coltxtv_c{width:100%}.tp-pndtxtv_a+.tp-pndtxtv_a,.tp-coltxtv_c+.tp-pndtxtv_a,.tp-pndtxtv_a+.tp-coltxtv_c,.tp-coltxtv_c+.tp-coltxtv_c{margin-left:2px}.tp-rotv{--bs-bg: var(--tp-base-background-color, hsl(230, 7%, 17%));--bs-br: var(--tp-base-border-radius, 6px);--bs-ff: var(--tp-base-font-family, Roboto Mono, Source Code Pro, Menlo, Courier, monospace);--bs-sh: var(--tp-base-shadow-color, rgba(0, 0, 0, 0.2));--bld-br: var(--tp-blade-border-radius, 2px);--bld-hp: var(--tp-blade-horizontal-padding, 4px);--bld-vw: var(--tp-blade-value-width, 160px);--btn-bg: var(--tp-button-background-color, hsl(230, 7%, 70%));--btn-bg-a: var(--tp-button-background-color-active, #d6d7db);--btn-bg-f: var(--tp-button-background-color-focus, #c8cad0);--btn-bg-h: var(--tp-button-background-color-hover, #bbbcc4);--btn-fg: var(--tp-button-foreground-color, hsl(230, 7%, 17%));--cnt-bg: var(--tp-container-background-color, rgba(187, 188, 196, 0.1));--cnt-bg-a: var(--tp-container-background-color-active, rgba(187, 188, 196, 0.25));--cnt-bg-f: var(--tp-container-background-color-focus, rgba(187, 188, 196, 0.2));--cnt-bg-h: var(--tp-container-background-color-hover, rgba(187, 188, 196, 0.15));--cnt-fg: var(--tp-container-foreground-color, hsl(230, 7%, 75%));--cnt-hp: var(--tp-container-horizontal-padding, 4px);--cnt-vp: var(--tp-container-vertical-padding, 4px);--cnt-usp: var(--tp-container-unit-spacing, 4px);--cnt-usz: var(--tp-container-unit-size, 20px);--in-bg: var(--tp-input-background-color, rgba(187, 188, 196, 0.1));--in-bg-a: var(--tp-input-background-color-active, rgba(187, 188, 196, 0.25));--in-bg-f: var(--tp-input-background-color-focus, rgba(187, 188, 196, 0.2));--in-bg-h: var(--tp-input-background-color-hover, rgba(187, 188, 196, 0.15));--in-fg: var(--tp-input-foreground-color, hsl(230, 7%, 75%));--lbl-fg: var(--tp-label-foreground-color, rgba(187, 188, 196, 0.7));--mo-bg: var(--tp-monitor-background-color, rgba(0, 0, 0, 0.2));--mo-fg: var(--tp-monitor-foreground-color, rgba(187, 188, 196, 0.7));--grv-fg: var(--tp-groove-foreground-color, rgba(187, 188, 196, 0.1))}.tp-btnv_b{width:100%}.tp-btnv_t{text-align:center}.tp-ckbv_l{display:block;position:relative}.tp-ckbv_i{left:0;opacity:0;position:absolute;top:0}.tp-ckbv_w{background-color:var(--in-bg);border-radius:var(--bld-br);cursor:pointer;display:block;height:var(--cnt-usz);position:relative;width:var(--cnt-usz)}.tp-ckbv_w svg{display:block;height:16px;inset:0;margin:auto;opacity:0;position:absolute;width:16px}.tp-ckbv_w svg path{fill:none;stroke:var(--in-fg);stroke-width:2}.tp-ckbv_i:hover+.tp-ckbv_w{background-color:var(--in-bg-h)}.tp-ckbv_i:focus+.tp-ckbv_w{background-color:var(--in-bg-f)}.tp-ckbv_i:active+.tp-ckbv_w{background-color:var(--in-bg-a)}.tp-ckbv_i:checked+.tp-ckbv_w svg{opacity:1}.tp-ckbv.tp-v-disabled .tp-ckbv_w{opacity:.5}.tp-colv{position:relative}.tp-colv_h{display:flex}.tp-colv_s{flex-grow:0;flex-shrink:0;width:var(--cnt-usz)}.tp-colv_t{flex:1;margin-left:4px}.tp-colv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-colv.tp-colv-expanded.tp-colv-cpl .tp-colv_p{overflow:visible}.tp-colv.tp-colv-expanded .tp-colv_p{margin-top:var(--cnt-usp);opacity:1}.tp-colv .tp-popv{left:calc(-1*var(--cnt-hp));right:calc(-1*var(--cnt-hp));top:var(--cnt-usz)}.tp-colpv_h,.tp-colpv_ap{margin-left:6px;margin-right:6px}.tp-colpv_h{margin-top:var(--cnt-usp)}.tp-colpv_rgb{display:flex;margin-top:var(--cnt-usp);width:100%}.tp-colpv_a{display:flex;margin-top:var(--cnt-vp);padding-top:calc(var(--cnt-vp) + 2px);position:relative}.tp-colpv_a::before{background-color:var(--grv-fg);content:"";height:2px;left:calc(-1*var(--cnt-hp));position:absolute;right:calc(-1*var(--cnt-hp));top:0}.tp-colpv.tp-v-disabled .tp-colpv_a::before{opacity:.5}.tp-colpv_ap{align-items:center;display:flex;flex:3}.tp-colpv_at{flex:1;margin-left:4px}.tp-svpv{border-radius:var(--bld-br);outline:none;overflow:hidden;position:relative}.tp-svpv.tp-v-disabled{opacity:.5}.tp-svpv_c{cursor:crosshair;display:block;height:calc(var(--cnt-usz)*4);width:100%}.tp-svpv_m{border-radius:100%;border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;filter:drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));height:12px;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;width:12px}.tp-svpv:focus .tp-svpv_m{border-color:#fff}.tp-hplv{cursor:pointer;height:var(--cnt-usz);outline:none;position:relative}.tp-hplv.tp-v-disabled{opacity:.5}.tp-hplv_c{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAQ0lEQVQoU2P8z8Dwn0GCgQEDi2OK/RBgYHjBgIpfovFh8j8YBIgzFGQxuqEgPhaDOT5gOhPkdCxOZeBg+IDFZZiGAgCaSSMYtcRHLgAAAABJRU5ErkJggg==);background-position:left top;background-repeat:no-repeat;background-size:100% 100%;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;position:absolute;top:50%;width:100%}.tp-hplv_m{border-radius:var(--bld-br);border:rgba(255,255,255,.75) solid 2px;box-shadow:0 0 2px rgba(0,0,0,.1);box-sizing:border-box;height:12px;left:50%;margin-left:-6px;margin-top:-6px;position:absolute;top:50%;width:12px}.tp-hplv:focus .tp-hplv_m{border-color:#fff}.tp-aplv{cursor:pointer;height:var(--cnt-usz);outline:none;position:relative;width:100%}.tp-aplv.tp-v-disabled{opacity:.5}.tp-aplv_b{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:4px 4px;background-position:0 0,2px 2px;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;overflow:hidden;position:absolute;top:50%;width:100%}.tp-aplv_c{inset:0;position:absolute}.tp-aplv_m{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:12px 12px;background-position:0 0,6px 6px;border-radius:var(--bld-br);box-shadow:0 0 2px rgba(0,0,0,.1);height:12px;left:50%;margin-left:-6px;margin-top:-6px;overflow:hidden;position:absolute;top:50%;width:12px}.tp-aplv_p{border-radius:var(--bld-br);border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;inset:0;position:absolute}.tp-aplv:focus .tp-aplv_p{border-color:#fff}.tp-colswv{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:10px 10px;background-position:0 0,5px 5px;border-radius:var(--bld-br);overflow:hidden}.tp-colswv.tp-v-disabled{opacity:.5}.tp-colswv_sw{border-radius:0}.tp-colswv_b{cursor:pointer;display:block;height:var(--cnt-usz);left:0;position:absolute;top:0;width:var(--cnt-usz)}.tp-colswv_b:focus::after{border:rgba(255,255,255,.75) solid 2px;border-radius:var(--bld-br);content:"";display:block;inset:0;position:absolute}.tp-coltxtv{display:flex;width:100%}.tp-coltxtv_m{margin-right:4px}.tp-coltxtv_ms{border-radius:var(--bld-br);color:var(--lbl-fg);cursor:pointer;height:var(--cnt-usz);line-height:var(--cnt-usz);padding:0 18px 0 4px}.tp-coltxtv_ms:hover{background-color:var(--in-bg-h)}.tp-coltxtv_ms:focus{background-color:var(--in-bg-f)}.tp-coltxtv_ms:active{background-color:var(--in-bg-a)}.tp-coltxtv_mm{color:var(--lbl-fg)}.tp-coltxtv.tp-v-disabled .tp-coltxtv_mm{opacity:.5}.tp-coltxtv_w{flex:1}.tp-dfwv{position:absolute;top:8px;right:8px;width:256px}.tp-fldv{position:relative}.tp-fldv_t{padding-left:4px}.tp-fldv_b:disabled .tp-fldv_m{display:none}.tp-fldv_c{padding-left:4px}.tp-fldv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--cnt-usz) + 4px);width:max(var(--bs-br),4px)}.tp-fldv_i::before{background-color:currentColor;bottom:0;content:"";left:0;position:absolute;top:0;width:4px}.tp-fldv_b:hover+.tp-fldv_i{color:var(--cnt-bg-h)}.tp-fldv_b:focus+.tp-fldv_i{color:var(--cnt-bg-f)}.tp-fldv_b:active+.tp-fldv_i{color:var(--cnt-bg-a)}.tp-fldv.tp-v-disabled>.tp-fldv_i{opacity:.5}.tp-grlv{position:relative}.tp-grlv_g{display:block;height:calc(var(--cnt-usz)*3)}.tp-grlv_g polyline{fill:none;stroke:var(--mo-fg);stroke-linejoin:round}.tp-grlv_t{margin-top:-4px;transition:left .05s,top .05s;visibility:hidden}.tp-grlv_t.tp-grlv_t-a{visibility:visible}.tp-grlv_t.tp-grlv_t-in{transition:none}.tp-grlv.tp-v-disabled .tp-grlv_g{opacity:.5}.tp-grlv .tp-ttv{background-color:var(--mo-fg)}.tp-grlv .tp-ttv::before{border-top-color:var(--mo-fg)}.tp-lblv{align-items:center;display:flex;line-height:1.3;padding-left:var(--cnt-hp);padding-right:var(--cnt-hp)}.tp-lblv.tp-lblv-nol{display:block}.tp-lblv_l{color:var(--lbl-fg);flex:1;-webkit-hyphens:auto;hyphens:auto;overflow:hidden;padding-left:4px;padding-right:16px}.tp-lblv.tp-v-disabled .tp-lblv_l{opacity:.5}.tp-lblv.tp-lblv-nol .tp-lblv_l{display:none}.tp-lblv_v{align-self:flex-start;flex-grow:0;flex-shrink:0;width:var(--bld-vw)}.tp-lblv.tp-lblv-nol .tp-lblv_v{width:100%}.tp-lstv_s{padding:0 20px 0 var(--bld-hp);width:100%}.tp-lstv_m{color:var(--btn-fg)}.tp-sglv_i{padding-left:var(--bld-hp);padding-right:var(--bld-hp)}.tp-sglv.tp-v-disabled .tp-sglv_i{opacity:.5}.tp-mllv_i{display:block;height:calc(var(--cnt-usz)*3);line-height:var(--cnt-usz);padding-left:var(--bld-hp);padding-right:var(--bld-hp);resize:none;white-space:pre}.tp-mllv.tp-v-disabled .tp-mllv_i{opacity:.5}.tp-p2dv{position:relative}.tp-p2dv_h{display:flex}.tp-p2dv_b{height:var(--cnt-usz);margin-right:4px;position:relative;width:var(--cnt-usz)}.tp-p2dv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-p2dv_b svg path{stroke:currentColor;stroke-width:2}.tp-p2dv_b svg circle{fill:currentColor}.tp-p2dv_t{flex:1}.tp-p2dv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-p2dv.tp-p2dv-expanded .tp-p2dv_p{margin-top:var(--cnt-usp);opacity:1}.tp-p2dv .tp-popv{left:calc(-1*var(--cnt-hp));right:calc(-1*var(--cnt-hp));top:var(--cnt-usz)}.tp-p2dpv{padding-left:calc(var(--cnt-usz) + 4px)}.tp-p2dpv_p{cursor:crosshair;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-p2dpv.tp-v-disabled .tp-p2dpv_p{opacity:.5}.tp-p2dpv_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-p2dpv_ax{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_l{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_m{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;position:absolute;width:4px}.tp-p2dpv_p:focus .tp-p2dpv_m{background-color:var(--in-fg);border-width:0}.tp-popv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);display:none;max-width:var(--bld-vw);padding:var(--cnt-vp) var(--cnt-hp);position:absolute;visibility:hidden;z-index:1000}.tp-popv.tp-popv-v{display:block;visibility:visible}.tp-sldv.tp-v-disabled{opacity:.5}.tp-sldv_t{box-sizing:border-box;cursor:pointer;height:var(--cnt-usz);margin:0 6px;outline:none;position:relative}.tp-sldv_t::before{background-color:var(--in-bg);border-radius:1px;content:"";display:block;height:2px;inset:0;margin:auto;position:absolute}.tp-sldv_k{height:100%;left:0;position:absolute;top:0}.tp-sldv_k::before{background-color:var(--in-fg);border-radius:1px;content:"";display:block;height:2px;inset:0;margin-bottom:auto;margin-top:auto;position:absolute}.tp-sldv_k::after{background-color:var(--btn-bg);border-radius:var(--bld-br);bottom:0;content:"";display:block;height:12px;margin-bottom:auto;margin-top:auto;position:absolute;right:-6px;top:0;width:12px}.tp-sldv_t:hover .tp-sldv_k::after{background-color:var(--btn-bg-h)}.tp-sldv_t:focus .tp-sldv_k::after{background-color:var(--btn-bg-f)}.tp-sldv_t:active .tp-sldv_k::after{background-color:var(--btn-bg-a)}.tp-sldtxtv{display:flex}.tp-sldtxtv_s{flex:2}.tp-sldtxtv_t{flex:1;margin-left:4px}.tp-tabv{position:relative}.tp-tabv_t{align-items:flex-end;color:var(--cnt-bg);display:flex;overflow:hidden;position:relative}.tp-tabv_t:hover{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus){color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active){color:var(--cnt-bg-a)}.tp-tabv_t::before{background-color:currentColor;bottom:0;content:"";height:2px;left:0;pointer-events:none;position:absolute;right:0}.tp-tabv.tp-v-disabled .tp-tabv_t::before{opacity:.5}.tp-tabv.tp-tabv-nop .tp-tabv_t{height:calc(var(--cnt-usz) + 4px);position:relative}.tp-tabv.tp-tabv-nop .tp-tabv_t::before{background-color:var(--cnt-bg);bottom:0;content:"";height:2px;left:0;position:absolute;right:0}.tp-tabv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--cnt-usz) + 4px);width:max(var(--bs-br),4px)}.tp-tabv_i::before{background-color:currentColor;bottom:0;content:"";left:0;position:absolute;top:0;width:4px}.tp-tabv_t:hover+.tp-tabv_i{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus)+.tp-tabv_i{color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active)+.tp-tabv_i{color:var(--cnt-bg-a)}.tp-tabv.tp-v-disabled>.tp-tabv_i{opacity:.5}.tp-tbiv{flex:1;min-width:0;position:relative}.tp-tbiv+.tp-tbiv{margin-left:2px}.tp-tbiv+.tp-tbiv.tp-v-disabled::before{opacity:.5}.tp-tbiv_b{display:block;padding-left:calc(var(--cnt-hp) + 4px);padding-right:calc(var(--cnt-hp) + 4px);position:relative;width:100%}.tp-tbiv_b:disabled{opacity:.5}.tp-tbiv_b::before{background-color:var(--cnt-bg);content:"";inset:0 0 2px;pointer-events:none;position:absolute}.tp-tbiv_b:hover::before{background-color:var(--cnt-bg-h)}.tp-tbiv_b:focus::before{background-color:var(--cnt-bg-f)}.tp-tbiv_b:active::before{background-color:var(--cnt-bg-a)}.tp-tbiv_t{color:var(--cnt-fg);height:calc(var(--cnt-usz) + 4px);line-height:calc(var(--cnt-usz) + 4px);opacity:.5;overflow:hidden;position:relative;text-overflow:ellipsis}.tp-tbiv.tp-tbiv-sel .tp-tbiv_t{opacity:1}.tp-tbpv_c{padding-bottom:var(--cnt-vp);padding-left:4px;padding-top:var(--cnt-vp)}.tp-txtv{position:relative}.tp-txtv_i{padding-left:var(--bld-hp);padding-right:var(--bld-hp)}.tp-txtv.tp-txtv-fst .tp-txtv_i{border-bottom-right-radius:0;border-top-right-radius:0}.tp-txtv.tp-txtv-mid .tp-txtv_i{border-radius:0}.tp-txtv.tp-txtv-lst .tp-txtv_i{border-bottom-left-radius:0;border-top-left-radius:0}.tp-txtv.tp-txtv-num .tp-txtv_i{text-align:right}.tp-txtv.tp-txtv-drg .tp-txtv_i{opacity:.3}.tp-txtv_k{cursor:pointer;height:100%;left:calc(var(--bld-hp) - 5px);position:absolute;top:0;width:12px}.tp-txtv_k::before{background-color:var(--in-fg);border-radius:1px;bottom:0;content:"";height:calc(var(--cnt-usz) - 4px);left:50%;margin-bottom:auto;margin-left:-1px;margin-top:auto;opacity:.1;position:absolute;top:0;transition:border-radius .1s,height .1s,transform .1s,width .1s;width:2px}.tp-txtv_k:hover::before,.tp-txtv.tp-txtv-drg .tp-txtv_k::before{opacity:1}.tp-txtv.tp-txtv-drg .tp-txtv_k::before{border-radius:50%;height:4px;transform:translateX(-1px);width:4px}.tp-txtv_g{bottom:0;display:block;height:8px;left:50%;margin:auto;overflow:visible;pointer-events:none;position:absolute;top:0;visibility:hidden;width:100%}.tp-txtv.tp-txtv-drg .tp-txtv_g{visibility:visible}.tp-txtv_gb{fill:none;stroke:var(--in-fg);stroke-dasharray:1}.tp-txtv_gh{fill:none;stroke:var(--in-fg)}.tp-txtv .tp-ttv{margin-left:6px;visibility:hidden}.tp-txtv.tp-txtv-drg .tp-ttv{visibility:visible}.tp-ttv{background-color:var(--in-fg);border-radius:var(--bld-br);color:var(--bs-bg);padding:2px 4px;pointer-events:none;position:absolute;transform:translate(-50%, -100%)}.tp-ttv::before{border-color:var(--in-fg) rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);border-style:solid;border-width:2px;box-sizing:border-box;content:"";font-size:.9em;height:4px;left:50%;margin-left:-2px;position:absolute;top:100%;width:4px}.tp-rotv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);font-family:var(--bs-ff);font-size:11px;font-weight:500;line-height:1;text-align:left}.tp-rotv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br);border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br);padding-left:calc(4px + var(--cnt-usz) + var(--cnt-hp));text-align:center}.tp-rotv.tp-rotv-expanded .tp-rotv_b{border-bottom-left-radius:0;border-bottom-right-radius:0;transition-delay:0s;transition-duration:0s}.tp-rotv.tp-rotv-not>.tp-rotv_b{display:none}.tp-rotv_b:disabled .tp-rotv_m{display:none}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst.tp-fldv-expanded>.tp-fldv_b{transition-delay:0s;transition-duration:0s}.tp-rotv_c .tp-fldv.tp-v-vlst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-right-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst{margin-top:calc(-1*var(--cnt-vp))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst>.tp-fldv_b{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst{margin-top:calc(-1*var(--cnt-vp))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst>.tp-tabv_t{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv.tp-v-disabled,.tp-rotv .tp-v-disabled{pointer-events:none}.tp-rotv.tp-v-hidden,.tp-rotv .tp-v-hidden{display:none}.tp-sprv_r{background-color:var(--grv-fg);border-width:0;display:block;height:2px;margin:0;width:100%}.tp-sprv.tp-v-disabled .tp-sprv_r{opacity:.5}',
40040
40041
  plugins: [
40041
- O8,
40042
- H8,
40042
+ U8,
40043
40043
  B8,
40044
+ j8,
40044
40045
  kD,
40045
- j8
40046
+ V8
40046
40047
  ]
40047
40048
  });
40048
40049
  }
40049
40050
  }
40050
40051
  new VD("4.0.5");
40051
- const k8 = "_container_1jjbp_1", Y8 = "_nameRow_1jjbp_8", X8 = "_nameIcon_1jjbp_18", P8 = "_nameText_1jjbp_24", Q8 = "_sectionHeader_1jjbp_32", Z8 = "_sectionArrow_1jjbp_46", K8 = "_collapsed_1jjbp_54", J8 = "_sectionTitle_1jjbp_58", $8 = "_divider_1jjbp_66", W8 = "_propertyRow3_1jjbp_73", F8 = "_propertyLabel_1jjbp_81", I8 = "_checkboxRow_1jjbp_108", tU = "_checkbox_1jjbp_108", eU = "_checkboxLabel_1jjbp_124", nU = "_propertyRow_1jjbp_73", aU = "_propertyLabelWide_1jjbp_140", lU = "_valueDisplay_1jjbp_148", iU = "_sliderRow_1jjbp_184", oU = "_sliderTrack_1jjbp_192", sU = "_sliderFill_1jjbp_202", rU = "_sliderThumb_1jjbp_212", uU = "_sliderInput_1jjbp_224", cU = "_draggableInput_1jjbp_244", fU = "_empty_1jjbp_265", dU = "_colorInput_1jjbp_274", hU = "_prefabSection_1jjbp_286", Ce = {
40052
- container: k8,
40053
- nameRow: Y8,
40054
- nameIcon: X8,
40055
- nameText: P8,
40056
- sectionHeader: Q8,
40057
- sectionArrow: Z8,
40058
- collapsed: K8,
40059
- sectionTitle: J8,
40060
- divider: $8,
40061
- propertyRow3: W8,
40062
- propertyLabel: F8,
40063
- checkboxRow: I8,
40064
- checkbox: tU,
40065
- checkboxLabel: eU,
40066
- propertyRow: nU,
40067
- propertyLabelWide: aU,
40068
- valueDisplay: lU,
40069
- sliderRow: iU,
40070
- sliderTrack: oU,
40071
- sliderFill: sU,
40072
- sliderThumb: rU,
40073
- sliderInput: uU,
40074
- draggableInput: cU,
40075
- empty: fU,
40076
- colorInput: dU,
40077
- prefabSection: hU
40052
+ const Y8 = "_container_1jjbp_1", X8 = "_nameRow_1jjbp_8", P8 = "_nameIcon_1jjbp_18", Q8 = "_nameText_1jjbp_24", Z8 = "_sectionHeader_1jjbp_32", K8 = "_sectionArrow_1jjbp_46", J8 = "_collapsed_1jjbp_54", $8 = "_sectionTitle_1jjbp_58", W8 = "_divider_1jjbp_66", F8 = "_propertyRow3_1jjbp_73", I8 = "_propertyLabel_1jjbp_81", tU = "_checkboxRow_1jjbp_108", eU = "_checkbox_1jjbp_108", nU = "_checkboxLabel_1jjbp_124", aU = "_propertyRow_1jjbp_73", lU = "_propertyLabelWide_1jjbp_140", iU = "_valueDisplay_1jjbp_148", oU = "_sliderRow_1jjbp_184", sU = "_sliderTrack_1jjbp_192", rU = "_sliderFill_1jjbp_202", uU = "_sliderThumb_1jjbp_212", cU = "_sliderInput_1jjbp_224", fU = "_draggableInput_1jjbp_244", dU = "_empty_1jjbp_265", hU = "_colorInput_1jjbp_274", pU = "_prefabSection_1jjbp_286", Ce = {
40053
+ container: Y8,
40054
+ nameRow: X8,
40055
+ nameIcon: P8,
40056
+ nameText: Q8,
40057
+ sectionHeader: Z8,
40058
+ sectionArrow: K8,
40059
+ collapsed: J8,
40060
+ sectionTitle: $8,
40061
+ divider: W8,
40062
+ propertyRow3: F8,
40063
+ propertyLabel: I8,
40064
+ checkboxRow: tU,
40065
+ checkbox: eU,
40066
+ checkboxLabel: nU,
40067
+ propertyRow: aU,
40068
+ propertyLabelWide: lU,
40069
+ valueDisplay: iU,
40070
+ sliderRow: oU,
40071
+ sliderTrack: sU,
40072
+ sliderFill: rU,
40073
+ sliderThumb: uU,
40074
+ sliderInput: cU,
40075
+ draggableInput: fU,
40076
+ empty: dU,
40077
+ colorInput: hU,
40078
+ prefabSection: pU
40078
40079
  };
40079
40080
  function kw({ value: s, onChange: l, speed: o, className: c }) {
40080
40081
  const p = Ee(null), b = Ee(null), S = (D) => Number.parseFloat(D.toFixed(2)).toString(), _ = o ?? 0.01, C = (D) => {
@@ -40135,7 +40136,7 @@ function g0({ label: s, checked: l, onChange: o }) {
40135
40136
  /* @__PURE__ */ $("label", { htmlFor: c, className: Ce.checkboxLabel, children: s })
40136
40137
  ] });
40137
40138
  }
40138
- function pU({ label: s, value: l, onChange: o }) {
40139
+ function mU({ label: s, value: l, onChange: o }) {
40139
40140
  return /* @__PURE__ */ Rt("div", { className: Ce.propertyRow, children: [
40140
40141
  /* @__PURE__ */ $("span", { className: Ce.propertyLabelWide, children: s }),
40141
40142
  /* @__PURE__ */ $(
@@ -40150,7 +40151,7 @@ function pU({ label: s, value: l, onChange: o }) {
40150
40151
  )
40151
40152
  ] });
40152
40153
  }
40153
- function mU({ label: s, value: l }) {
40154
+ function vU({ label: s, value: l }) {
40154
40155
  return /* @__PURE__ */ Rt("div", { className: Ce.propertyRow, children: [
40155
40156
  /* @__PURE__ */ $("span", { className: Ce.propertyLabelWide, children: s }),
40156
40157
  /* @__PURE__ */ $("span", { className: Ce.valueDisplay, children: l })
@@ -40193,16 +40194,16 @@ function b0({ label: s, value: l, min: o, max: c, step: p, onChange: b }) {
40193
40194
  )
40194
40195
  ] });
40195
40196
  }
40196
- function vU({ config: s }) {
40197
+ function gU({ config: s }) {
40197
40198
  const l = Ee(null);
40198
40199
  return Bn(() => {
40199
40200
  if (!l.current)
40200
40201
  return;
40201
- const o = new q8({ container: l.current, title: s.label });
40202
+ const o = new k8({ container: l.current, title: s.label });
40202
40203
  return s.addBindings(o), () => o.dispose();
40203
40204
  }, [s]), /* @__PURE__ */ $("div", { className: Ce.prefabSection, ref: l });
40204
40205
  }
40205
- function gU() {
40206
+ function bU() {
40206
40207
  var k, dt;
40207
40208
  const [s, l] = Ae(null), [, o] = Ae(0), [c, p] = Ae(/* @__PURE__ */ new Map()), b = or(() => o((R) => R + 1), []), [S, _] = Ae(!0), [C, x] = Ae(!0), [D, M] = Ae(!0), [A, N] = Ae(!0), [L, O] = Ae(!0);
40208
40209
  Bn(() => {
@@ -40320,7 +40321,7 @@ function gU() {
40320
40321
  }
40321
40322
  }
40322
40323
  ),
40323
- /* @__PURE__ */ $(mU, { label: "uuid", value: s.uuid })
40324
+ /* @__PURE__ */ $(vU, { label: "uuid", value: s.uuid })
40324
40325
  ] }),
40325
40326
  j && /* @__PURE__ */ Rt(df, { children: [
40326
40327
  /* @__PURE__ */ $("div", { className: Ce.divider }),
@@ -40404,7 +40405,7 @@ function gU() {
40404
40405
  /* @__PURE__ */ $("div", { className: Ce.divider }),
40405
40406
  /* @__PURE__ */ $(v0, { title: "Properties", expanded: L, onToggle: () => O((R) => !R) }),
40406
40407
  L && W.map((R) => R.type === "color" ? /* @__PURE__ */ $(
40407
- pU,
40408
+ mU,
40408
40409
  {
40409
40410
  label: R.label,
40410
40411
  value: R.getValue(),
@@ -40438,17 +40439,17 @@ function gU() {
40438
40439
  R.label
40439
40440
  ) : null)
40440
40441
  ] }),
40441
- [...c.values()].map((R) => /* @__PURE__ */ $(vU, { config: R }, R.label))
40442
+ [...c.values()].map((R) => /* @__PURE__ */ $(gU, { config: R }, R.label))
40442
40443
  ] });
40443
40444
  }
40444
- const bU = "_container_1n3qk_1", yU = "_row_1n3qk_8", _U = "_selected_1n3qk_22", SU = "_arrow_1n3qk_30", wU = "_typeIcon_1n3qk_39", EU = "_name_1n3qk_53", CU = "_empty_1n3qk_61", uh = {
40445
- container: bU,
40446
- row: yU,
40447
- selected: _U,
40448
- arrow: SU,
40449
- typeIcon: wU,
40450
- name: EU,
40451
- empty: CU
40445
+ const yU = "_container_1n3qk_1", _U = "_row_1n3qk_8", SU = "_selected_1n3qk_22", wU = "_arrow_1n3qk_30", EU = "_typeIcon_1n3qk_39", CU = "_name_1n3qk_53", xU = "_empty_1n3qk_61", uh = {
40446
+ container: yU,
40447
+ row: _U,
40448
+ selected: SU,
40449
+ arrow: wU,
40450
+ typeIcon: EU,
40451
+ name: CU,
40452
+ empty: xU
40452
40453
  };
40453
40454
  function Sz(s) {
40454
40455
  return {
@@ -40461,7 +40462,7 @@ function Sz(s) {
40461
40462
  }).map((l) => Sz(l))
40462
40463
  };
40463
40464
  }
40464
- function xU(s) {
40465
+ function TU(s) {
40465
40466
  return s.includes("Light") ? {
40466
40467
  paths: ["M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"],
40467
40468
  color: "var(--accent-yellow)"
@@ -40480,7 +40481,7 @@ function xU(s) {
40480
40481
  };
40481
40482
  }
40482
40483
  function wz({ item: s, selectedUuid: l, depth: o, onSelect: c }) {
40483
- const [p, b] = Ae(!0), S = s.children.length > 0, _ = s.uuid === l, C = Ee(null), x = xU(s.type);
40484
+ const [p, b] = Ae(!0), S = s.children.length > 0, _ = s.uuid === l, C = Ee(null), x = TU(s.type);
40484
40485
  return Bn(() => {
40485
40486
  var D;
40486
40487
  _ && ((D = C.current) == null || D.scrollIntoView({ block: "nearest" }));
@@ -40521,7 +40522,7 @@ function wz({ item: s, selectedUuid: l, depth: o, onSelect: c }) {
40521
40522
  ))
40522
40523
  ] });
40523
40524
  }
40524
- function TU() {
40525
+ function DU() {
40525
40526
  const [s, l] = Ae([]), [o, c] = Ae(null), p = or(() => {
40526
40527
  var C;
40527
40528
  const S = (C = window.Game) == null ? void 0 : C.scene;
@@ -40578,15 +40579,15 @@ function TU() {
40578
40579
  S.uuid
40579
40580
  )) });
40580
40581
  }
40581
- const DU = "_statusBar_1ffi6_1", zU = "_section_1ffi6_13", MU = "_stat_1ffi6_1", AU = "_statLabel_1ffi6_25", RU = "_branch_1ffi6_30", OU = "_engineName_1ffi6_35", Wa = {
40582
- statusBar: DU,
40583
- section: zU,
40584
- stat: MU,
40585
- statLabel: AU,
40586
- branch: RU,
40587
- engineName: OU
40588
- };
40589
- function UU(s = 500) {
40582
+ const zU = "_statusBar_1ffi6_1", MU = "_section_1ffi6_13", AU = "_stat_1ffi6_1", RU = "_statLabel_1ffi6_25", OU = "_branch_1ffi6_30", UU = "_engineName_1ffi6_35", Wa = {
40583
+ statusBar: zU,
40584
+ section: MU,
40585
+ stat: AU,
40586
+ statLabel: RU,
40587
+ branch: OU,
40588
+ engineName: UU
40589
+ }, NU = "0.0.6";
40590
+ function LU(s = 500) {
40590
40591
  const [l, o] = Ae({
40591
40592
  fps: 0,
40592
40593
  triangles: 0,
@@ -40617,8 +40618,8 @@ function UU(s = 500) {
40617
40618
  return () => clearInterval(c);
40618
40619
  }, [s]), l;
40619
40620
  }
40620
- function NU() {
40621
- const s = UU();
40621
+ function HU() {
40622
+ const s = LU();
40622
40623
  return /* @__PURE__ */ Rt("div", { className: Wa.statusBar, children: [
40623
40624
  /* @__PURE__ */ Rt("div", { className: Wa.section, children: [
40624
40625
  /* @__PURE__ */ $("span", { className: Wa.branch, children: "main" }),
@@ -40648,43 +40649,48 @@ function NU() {
40648
40649
  /* @__PURE__ */ $("span", { className: Wa.statLabel, children: "Textures" }),
40649
40650
  s.textures
40650
40651
  ] }),
40651
- /* @__PURE__ */ $("span", { className: Wa.engineName, children: "Mavon Engine" })
40652
+ /* @__PURE__ */ Rt("span", { className: Wa.engineName, children: [
40653
+ "Editor v",
40654
+ NU,
40655
+ " | MavonEngine v",
40656
+ sA
40657
+ ] })
40652
40658
  ] })
40653
40659
  ] });
40654
40660
  }
40655
- function LU() {
40656
- const { defaultLayout: s, onLayoutChanged: l } = lR({
40661
+ function BU() {
40662
+ const { defaultLayout: s, onLayoutChanged: l } = iR({
40657
40663
  id: "editor-layout",
40658
40664
  storage: localStorage
40659
40665
  });
40660
40666
  return /* @__PURE__ */ Rt("div", { className: ji.root, children: [
40661
40667
  /* @__PURE__ */ Rt("div", { className: ji.main, children: [
40662
- /* @__PURE__ */ $(dR, {}),
40668
+ /* @__PURE__ */ $(hR, {}),
40663
40669
  /* @__PURE__ */ Rt(Zw, { defaultLayout: s, onLayoutChange: l, orientation: "horizontal", className: ji.editor, children: [
40664
40670
  /* @__PURE__ */ $(Jm, { id: "left", collapsible: !0, minSize: 140, defaultSize: 14, "data-separator": "active", className: ji.panel, children: /* @__PURE__ */ Rt("div", { className: ji.panelContent, children: [
40665
40671
  /* @__PURE__ */ $(Uw, { title: "Explorer" }),
40666
- /* @__PURE__ */ $("div", { className: ji.panelBody, children: /* @__PURE__ */ $(TU, {}) })
40672
+ /* @__PURE__ */ $("div", { className: ji.panelBody, children: /* @__PURE__ */ $(DU, {}) })
40667
40673
  ] }) }),
40668
40674
  /* @__PURE__ */ $(Jm, { id: "middle", children: /* @__PURE__ */ $("div", { className: ji.panelContent, children: /* @__PURE__ */ Rt(Zw, { orientation: "vertical", className: ji.middleGroup, children: [
40669
- /* @__PURE__ */ $(u3, {}),
40675
+ /* @__PURE__ */ $(c3, {}),
40670
40676
  /* @__PURE__ */ $(Jm, { id: "horizontal", className: ji.panel, children: /* @__PURE__ */ Rt("div", { className: ji.panelContent, children: [
40671
40677
  /* @__PURE__ */ $(Uw, { title: "Assets" }),
40672
- /* @__PURE__ */ $(r3, {})
40678
+ /* @__PURE__ */ $(u3, {})
40673
40679
  ] }) })
40674
40680
  ] }) }) }),
40675
40681
  /* @__PURE__ */ $(Jm, { collapsible: !0, id: "right", minSize: 180, defaultSize: 19, className: ji.panel, children: /* @__PURE__ */ Rt("div", { className: ji.panelContent, children: [
40676
40682
  /* @__PURE__ */ $(Uw, { title: "Properties" }),
40677
- /* @__PURE__ */ $("div", { className: ji.panelBody, children: /* @__PURE__ */ $(gU, {}) })
40683
+ /* @__PURE__ */ $("div", { className: ji.panelBody, children: /* @__PURE__ */ $(bU, {}) })
40678
40684
  ] }) })
40679
40685
  ] })
40680
40686
  ] }),
40681
- /* @__PURE__ */ $(NU, {})
40687
+ /* @__PURE__ */ $(HU, {})
40682
40688
  ] });
40683
40689
  }
40684
- function eN(s) {
40685
- const l = zA.createRoot(s);
40686
- return l.render(Xw(LU)), l;
40690
+ function lN(s) {
40691
+ const l = MA.createRoot(s);
40692
+ return l.render(Xw(BU)), l;
40687
40693
  }
40688
40694
  export {
40689
- eN as mountEditorUI
40695
+ lN as mountEditorUI
40690
40696
  };