@roomle/web-sdk 3.6.0 → 3.7.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/lib/{BufferGeometry-DLEagG41.mjs → BufferGeometry-C696z6r3.mjs} +2 -2
  2. package/lib/{BufferGeometry-DLEagG41.mjs.map → BufferGeometry-C696z6r3.mjs.map} +1 -1
  3. package/lib/ConfiguratorKernel.js +54 -73
  4. package/lib/ConfiguratorKernel.wasm +0 -0
  5. package/lib/{GLTFExporter-D8qsdwDK.mjs → GLTFExporter-AfQIvZAD.mjs} +141 -141
  6. package/lib/{GLTFExporter-D8qsdwDK.mjs.map → GLTFExporter-AfQIvZAD.mjs.map} +1 -1
  7. package/lib/{Object3D-DSjIOhON.mjs → Object3D-C3wqWk6O.mjs} +1 -1
  8. package/lib/{Object3D-DSjIOhON.mjs.map → Object3D-C3wqWk6O.mjs.map} +1 -1
  9. package/lib/{PointLightHelper-BnjxGaOG.mjs → PointLightHelper-wVSmrAnD.mjs} +4 -4
  10. package/lib/{PointLightHelper-BnjxGaOG.mjs.map → PointLightHelper-wVSmrAnD.mjs.map} +1 -1
  11. package/lib/RoomleCore.js +59 -79
  12. package/lib/RoomleCore.wasm +0 -0
  13. package/lib/RoomleToolsCore.js +54 -74
  14. package/lib/RoomleToolsCore.wasm +0 -0
  15. package/lib/{SpotLightHelper-DqsfqCrs.mjs → SpotLightHelper-C7J95t4f.mjs} +3 -3
  16. package/lib/{SpotLightHelper-DqsfqCrs.mjs.map → SpotLightHelper-C7J95t4f.mjs.map} +1 -1
  17. package/lib/{USDZExporter-DxIqi8St.mjs → USDZExporter-BBk0APeK.mjs} +3 -3
  18. package/lib/{USDZExporter-DxIqi8St.mjs.map → USDZExporter-BBk0APeK.mjs.map} +1 -1
  19. package/lib/{Vector4-DGmBYfpK.mjs → Vector4-DUqY3Egg.mjs} +2 -2
  20. package/lib/{Vector4-DGmBYfpK.mjs.map → Vector4-DUqY3Egg.mjs.map} +1 -1
  21. package/lib/{api-xDJ-Uyom.mjs → api-oYzhcs_W.mjs} +2 -2
  22. package/lib/{api-xDJ-Uyom.mjs.map → api-oYzhcs_W.mjs.map} +1 -1
  23. package/lib/asset-loader.worker-A7nEeQB4.mjs +6 -0
  24. package/lib/asset-loader.worker-A7nEeQB4.mjs.map +1 -0
  25. package/lib/{banana-for-scale-C_iNmlCT.mjs → banana-for-scale-D8t2dmc7.mjs} +4 -4
  26. package/lib/banana-for-scale-D8t2dmc7.mjs.map +1 -0
  27. package/lib/budgeteer.sw-CQWYbQSc.mjs +6 -0
  28. package/lib/budgeteer.sw-CQWYbQSc.mjs.map +1 -0
  29. package/lib/{common-utils-DMSTohiS.mjs → common-utils-qErzZAiR.mjs} +2 -2
  30. package/lib/common-utils-qErzZAiR.mjs.map +1 -0
  31. package/lib/{component-dimensioning-CvRmUja4.mjs → component-dimensioning-DlB7-9Om.mjs} +49 -49
  32. package/lib/{component-dimensioning-CvRmUja4.mjs.map → component-dimensioning-DlB7-9Om.mjs.map} +1 -1
  33. package/lib/{component-raycast-helper-CEp7wy9c.mjs → component-raycast-helper-C6ptEb0K.mjs} +27 -32
  34. package/lib/component-raycast-helper-C6ptEb0K.mjs.map +1 -0
  35. package/lib/component-raycast-helper-LrhRpeDD.mjs +2 -0
  36. package/lib/configurator-CRMunIq7.mjs +45 -0
  37. package/lib/{configurator-CmuhFgC9.mjs.map → configurator-CRMunIq7.mjs.map} +1 -1
  38. package/lib/configurator-DqiW717d.mjs +2 -0
  39. package/lib/{continuous-drawing-helper-v_5UAM9A.mjs → continuous-drawing-helper-BwulJHKj.mjs} +12 -12
  40. package/lib/continuous-drawing-helper-BwulJHKj.mjs.map +1 -0
  41. package/lib/dat.gui.module-CZHqOVGq.mjs +1500 -0
  42. package/lib/dat.gui.module-CZHqOVGq.mjs.map +1 -0
  43. package/lib/{decorate-C1QnXPYw.mjs → decorate-BAtqSPNS.mjs} +3 -3
  44. package/lib/decorate-BAtqSPNS.mjs.map +1 -0
  45. package/lib/{dimensioning-helper-Fwpt1HTT.mjs → dimensioning-helper--Y0Y-Wr1.mjs} +42 -42
  46. package/lib/{dimensioning-helper-Fwpt1HTT.mjs.map → dimensioning-helper--Y0Y-Wr1.mjs.map} +1 -1
  47. package/lib/dimensioning-helper-BpUreWo2.mjs +2 -0
  48. package/lib/{fflate.module-dFNj5UPI.mjs → fflate.module-CBz7CLOg.mjs} +1 -1
  49. package/lib/{fflate.module-dFNj5UPI.mjs.map → fflate.module-CBz7CLOg.mjs.map} +1 -1
  50. package/lib/{glb-viewer-BzNA9-zH.mjs → glb-viewer-CXEoIw1b.mjs} +48 -48
  51. package/lib/glb-viewer-CXEoIw1b.mjs.map +1 -0
  52. package/lib/glb-viewer-IDXgmONx.mjs +2 -0
  53. package/lib/{homag-intelligence-BwGjJEws.mjs → homag-intelligence-gb9MqBrz.mjs} +6 -3
  54. package/lib/{homag-intelligence-BwGjJEws.mjs.map → homag-intelligence-gb9MqBrz.mjs.map} +1 -1
  55. package/lib/{imos-ix-poc-export-helper-CQh94HsO.mjs → imos-ix-poc-export-helper-CW7QZhhn.mjs} +5 -4
  56. package/lib/imos-ix-poc-export-helper-CW7QZhhn.mjs.map +1 -0
  57. package/lib/{kernel-BAQSG9r5.mjs → kernel-C7YDLxq8.mjs} +3 -2
  58. package/lib/kernel-C7YDLxq8.mjs.map +1 -0
  59. package/lib/{kernel-utils-H74uNY1h.mjs → kernel-utils-DCnHzW4n.mjs} +15 -15
  60. package/lib/kernel-utils-DCnHzW4n.mjs.map +1 -0
  61. package/lib/{layer-C_JtkhdO.mjs → layer-CFAr2mK_.mjs} +1 -1
  62. package/lib/{layer-C_JtkhdO.mjs.map → layer-CFAr2mK_.mjs.map} +1 -1
  63. package/lib/{main-CtVIB52l.mjs → main-BJZ9-cDk.mjs} +14470 -14187
  64. package/lib/main-BJZ9-cDk.mjs.map +1 -0
  65. package/lib/{material-viewer-Bq4smZ6f.mjs → material-viewer-D8Nmpwg0.mjs} +41 -41
  66. package/lib/material-viewer-D8Nmpwg0.mjs.map +1 -0
  67. package/lib/packages-Uv53SHfb.mjs +4 -0
  68. package/lib/planner-5VarJrpy.mjs +44 -0
  69. package/lib/{planner-CVw_xzGh.mjs.map → planner-5VarJrpy.mjs.map} +1 -1
  70. package/lib/planner-DJcn-iih.mjs +2 -0
  71. package/lib/{plugin-system-D9K46xJk.mjs → plugin-system-DInww4H_.mjs} +3 -3
  72. package/lib/{plugin-system-D9K46xJk.mjs.map → plugin-system-DInww4H_.mjs.map} +1 -1
  73. package/lib/rolldown-runtime-DgwB9i60.mjs +13 -0
  74. package/lib/roomle-headless-setup-LoBO7UJe.mjs +1150 -0
  75. package/lib/roomle-headless-setup-LoBO7UJe.mjs.map +1 -0
  76. package/lib/roomle-headless.d.ts +9910 -0
  77. package/lib/roomle-headless.js +321 -0
  78. package/lib/roomle-headless.js.map +1 -0
  79. package/lib/roomle-renderer-DVlJsHYn.mjs +49 -0
  80. package/lib/roomle-renderer-DVlJsHYn.mjs.map +1 -0
  81. package/lib/roomle-sdk.d.ts +466 -1129
  82. package/lib/roomle-sdk.js +8 -7
  83. package/lib/roomle-webgpu-renderer-CVxBRv6o.mjs +217 -0
  84. package/lib/roomle-webgpu-renderer-CVxBRv6o.mjs.map +1 -0
  85. package/lib/{scene-renderer-D8HkTFeZ.mjs → scene-renderer-BHZrQYAH.mjs} +501 -518
  86. package/lib/scene-renderer-BHZrQYAH.mjs.map +1 -0
  87. package/lib/script-loader-gpkcl1h-.mjs +86 -0
  88. package/lib/script-loader-gpkcl1h-.mjs.map +1 -0
  89. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
  90. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCallback.d.ts +3 -3
  91. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCallback.js +3 -3
  92. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCallback.js.map +1 -1
  93. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +5 -3
  94. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js +1 -1
  95. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js.map +1 -1
  96. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreCallback.d.ts +1 -0
  97. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreCallback.js +3 -0
  98. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreCallback.js.map +1 -1
  99. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts +4 -3
  100. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +1 -1
  101. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationLoader.d.ts +3 -2
  102. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationLoader.js +31 -9
  103. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationLoader.js.map +1 -1
  104. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationManager.js +8 -1
  105. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationManager.js.map +1 -1
  106. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js +54 -73
  107. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
  108. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js +59 -79
  109. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  110. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.js +54 -74
  111. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  112. package/lib/{stats-helper-HM0TaIM5.mjs → stats-helper-Cv5SoEWT.mjs} +4 -3
  113. package/lib/{stats-helper-HM0TaIM5.mjs.map → stats-helper-Cv5SoEWT.mjs.map} +1 -1
  114. package/lib/{three.core-CLIofecG.mjs → three.core-mM-jZdgg.mjs} +926 -926
  115. package/lib/{three.core-CLIofecG.mjs.map → three.core-mM-jZdgg.mjs.map} +1 -1
  116. package/lib/{three.module-C4Q1skJQ.mjs → three.module-Bmy3sVQ-.mjs} +1210 -1210
  117. package/lib/{three.module-C4Q1skJQ.mjs.map → three.module-Bmy3sVQ-.mjs.map} +1 -1
  118. package/lib/{three.webgpu-dFspy2yF.mjs → three.webgpu-BbVYfCDp.mjs} +5360 -2940
  119. package/lib/{three.webgpu-dFspy2yF.mjs.map → three.webgpu-BbVYfCDp.mjs.map} +1 -1
  120. package/lib/three.webgpu-Bnp8Whu8.mjs +3 -0
  121. package/lib/threejs-utils-Bq4pVWBA.mjs +753 -0
  122. package/lib/threejs-utils-Bq4pVWBA.mjs.map +1 -0
  123. package/lib/{tools-core-Bf9WsK5v.mjs → tools-core-DqnhFefF.mjs} +6 -6
  124. package/lib/{tools-core-Bf9WsK5v.mjs.map → tools-core-DqnhFefF.mjs.map} +1 -1
  125. package/lib/workers-BJYv3y38.mjs +6 -0
  126. package/lib/workers-BJYv3y38.mjs.map +1 -0
  127. package/package.json +20 -5
  128. package/lib/banana-for-scale-C_iNmlCT.mjs.map +0 -1
  129. package/lib/common-utils-DMSTohiS.mjs.map +0 -1
  130. package/lib/component-raycast-helper-CEp7wy9c.mjs.map +0 -1
  131. package/lib/configurator-BaUt4_LF.mjs +0 -2
  132. package/lib/configurator-CmuhFgC9.mjs +0 -45
  133. package/lib/continuous-drawing-helper-v_5UAM9A.mjs.map +0 -1
  134. package/lib/decorate-C1QnXPYw.mjs.map +0 -1
  135. package/lib/dimensioning-helper-DTcW85Oq.mjs +0 -2
  136. package/lib/glb-viewer-BzNA9-zH.mjs.map +0 -1
  137. package/lib/glb-viewer-DOxBD5k-.mjs +0 -2
  138. package/lib/imos-ix-poc-export-helper-CQh94HsO.mjs.map +0 -1
  139. package/lib/kernel-BAQSG9r5.mjs.map +0 -1
  140. package/lib/kernel-utils-H74uNY1h.mjs.map +0 -1
  141. package/lib/main-CtVIB52l.mjs.map +0 -1
  142. package/lib/material-viewer-Bq4smZ6f.mjs.map +0 -1
  143. package/lib/planner-CVw_xzGh.mjs +0 -44
  144. package/lib/planner-si70gWA2.mjs +0 -2
  145. package/lib/scene-renderer-D8HkTFeZ.mjs.map +0 -1
  146. package/lib/script-loader-D8xCRzTr.mjs +0 -45
  147. package/lib/script-loader-D8xCRzTr.mjs.map +0 -1
  148. package/lib/threejs-utils-jEzvlJF1.mjs +0 -2233
  149. package/lib/threejs-utils-jEzvlJF1.mjs.map +0 -1
@@ -0,0 +1,1500 @@
1
+ //#region ../../node_modules/dat.gui/build/dat.gui.module.js
2
+ function e(e) {
3
+ if (e && !(typeof window > "u")) {
4
+ var t = document.createElement("style");
5
+ return t.setAttribute("type", "text/css"), t.innerHTML = e, document.head.appendChild(t), e;
6
+ }
7
+ }
8
+ function t(e, t) {
9
+ var n = e.__state.conversionName.toString(), r = Math.round(e.r), i = Math.round(e.g), a = Math.round(e.b), o = e.a, s = Math.round(e.h), c = e.s.toFixed(1), l = e.v.toFixed(1);
10
+ if (t || n === "THREE_CHAR_HEX" || n === "SIX_CHAR_HEX") {
11
+ for (var u = e.hex.toString(16); u.length < 6;) u = "0" + u;
12
+ return "#" + u;
13
+ } else if (n === "CSS_RGB") return "rgb(" + r + "," + i + "," + a + ")";
14
+ else if (n === "CSS_RGBA") return "rgba(" + r + "," + i + "," + a + "," + o + ")";
15
+ else if (n === "HEX") return "0x" + e.hex.toString(16);
16
+ else if (n === "RGB_ARRAY") return "[" + r + "," + i + "," + a + "]";
17
+ else if (n === "RGBA_ARRAY") return "[" + r + "," + i + "," + a + "," + o + "]";
18
+ else if (n === "RGB_OBJ") return "{r:" + r + ",g:" + i + ",b:" + a + "}";
19
+ else if (n === "RGBA_OBJ") return "{r:" + r + ",g:" + i + ",b:" + a + ",a:" + o + "}";
20
+ else if (n === "HSV_OBJ") return "{h:" + s + ",s:" + c + ",v:" + l + "}";
21
+ else if (n === "HSVA_OBJ") return "{h:" + s + ",s:" + c + ",v:" + l + ",a:" + o + "}";
22
+ return "unknown format";
23
+ }
24
+ var n = Array.prototype.forEach, r = Array.prototype.slice, i = {
25
+ BREAK: {},
26
+ extend: function(e) {
27
+ return this.each(r.call(arguments, 1), function(t) {
28
+ (this.isObject(t) ? Object.keys(t) : []).forEach(function(n) {
29
+ this.isUndefined(t[n]) || (e[n] = t[n]);
30
+ }.bind(this));
31
+ }, this), e;
32
+ },
33
+ defaults: function(e) {
34
+ return this.each(r.call(arguments, 1), function(t) {
35
+ (this.isObject(t) ? Object.keys(t) : []).forEach(function(n) {
36
+ this.isUndefined(e[n]) && (e[n] = t[n]);
37
+ }.bind(this));
38
+ }, this), e;
39
+ },
40
+ compose: function() {
41
+ var e = r.call(arguments);
42
+ return function() {
43
+ for (var t = r.call(arguments), n = e.length - 1; n >= 0; n--) t = [e[n].apply(this, t)];
44
+ return t[0];
45
+ };
46
+ },
47
+ each: function(e, t, r) {
48
+ if (e) {
49
+ if (n && e.forEach && e.forEach === n) e.forEach(t, r);
50
+ else if (e.length === e.length + 0) {
51
+ var i = void 0, a = void 0;
52
+ for (i = 0, a = e.length; i < a; i++) if (i in e && t.call(r, e[i], i) === this.BREAK) return;
53
+ } else for (var o in e) if (t.call(r, e[o], o) === this.BREAK) return;
54
+ }
55
+ },
56
+ defer: function(e) {
57
+ setTimeout(e, 0);
58
+ },
59
+ debounce: function(e, t, n) {
60
+ var r = void 0;
61
+ return function() {
62
+ var i = this, a = arguments;
63
+ function o() {
64
+ r = null, n || e.apply(i, a);
65
+ }
66
+ var s = n || !r;
67
+ clearTimeout(r), r = setTimeout(o, t), s && e.apply(i, a);
68
+ };
69
+ },
70
+ toArray: function(e) {
71
+ return e.toArray ? e.toArray() : r.call(e);
72
+ },
73
+ isUndefined: function(e) {
74
+ return e === void 0;
75
+ },
76
+ isNull: function(e) {
77
+ return e === null;
78
+ },
79
+ isNaN: function(e) {
80
+ function t(t) {
81
+ return e.apply(this, arguments);
82
+ }
83
+ return t.toString = function() {
84
+ return e.toString();
85
+ }, t;
86
+ }(function(e) {
87
+ return isNaN(e);
88
+ }),
89
+ isArray: Array.isArray || function(e) {
90
+ return e.constructor === Array;
91
+ },
92
+ isObject: function(e) {
93
+ return e === Object(e);
94
+ },
95
+ isNumber: function(e) {
96
+ return e === e + 0;
97
+ },
98
+ isString: function(e) {
99
+ return e === e + "";
100
+ },
101
+ isBoolean: function(e) {
102
+ return e === !1 || e === !0;
103
+ },
104
+ isFunction: function(e) {
105
+ return e instanceof Function;
106
+ }
107
+ }, a = [
108
+ {
109
+ litmus: i.isString,
110
+ conversions: {
111
+ THREE_CHAR_HEX: {
112
+ read: function(e) {
113
+ var t = e.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);
114
+ return t === null ? !1 : {
115
+ space: "HEX",
116
+ hex: parseInt("0x" + t[1].toString() + t[1].toString() + t[2].toString() + t[2].toString() + t[3].toString() + t[3].toString(), 0)
117
+ };
118
+ },
119
+ write: t
120
+ },
121
+ SIX_CHAR_HEX: {
122
+ read: function(e) {
123
+ var t = e.match(/^#([A-F0-9]{6})$/i);
124
+ return t === null ? !1 : {
125
+ space: "HEX",
126
+ hex: parseInt("0x" + t[1].toString(), 0)
127
+ };
128
+ },
129
+ write: t
130
+ },
131
+ CSS_RGB: {
132
+ read: function(e) {
133
+ var t = e.match(/^rgb\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
134
+ return t === null ? !1 : {
135
+ space: "RGB",
136
+ r: parseFloat(t[1]),
137
+ g: parseFloat(t[2]),
138
+ b: parseFloat(t[3])
139
+ };
140
+ },
141
+ write: t
142
+ },
143
+ CSS_RGBA: {
144
+ read: function(e) {
145
+ var t = e.match(/^rgba\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
146
+ return t === null ? !1 : {
147
+ space: "RGB",
148
+ r: parseFloat(t[1]),
149
+ g: parseFloat(t[2]),
150
+ b: parseFloat(t[3]),
151
+ a: parseFloat(t[4])
152
+ };
153
+ },
154
+ write: t
155
+ }
156
+ }
157
+ },
158
+ {
159
+ litmus: i.isNumber,
160
+ conversions: { HEX: {
161
+ read: function(e) {
162
+ return {
163
+ space: "HEX",
164
+ hex: e,
165
+ conversionName: "HEX"
166
+ };
167
+ },
168
+ write: function(e) {
169
+ return e.hex;
170
+ }
171
+ } }
172
+ },
173
+ {
174
+ litmus: i.isArray,
175
+ conversions: {
176
+ RGB_ARRAY: {
177
+ read: function(e) {
178
+ return e.length === 3 ? {
179
+ space: "RGB",
180
+ r: e[0],
181
+ g: e[1],
182
+ b: e[2]
183
+ } : !1;
184
+ },
185
+ write: function(e) {
186
+ return [
187
+ e.r,
188
+ e.g,
189
+ e.b
190
+ ];
191
+ }
192
+ },
193
+ RGBA_ARRAY: {
194
+ read: function(e) {
195
+ return e.length === 4 ? {
196
+ space: "RGB",
197
+ r: e[0],
198
+ g: e[1],
199
+ b: e[2],
200
+ a: e[3]
201
+ } : !1;
202
+ },
203
+ write: function(e) {
204
+ return [
205
+ e.r,
206
+ e.g,
207
+ e.b,
208
+ e.a
209
+ ];
210
+ }
211
+ }
212
+ }
213
+ },
214
+ {
215
+ litmus: i.isObject,
216
+ conversions: {
217
+ RGBA_OBJ: {
218
+ read: function(e) {
219
+ return i.isNumber(e.r) && i.isNumber(e.g) && i.isNumber(e.b) && i.isNumber(e.a) ? {
220
+ space: "RGB",
221
+ r: e.r,
222
+ g: e.g,
223
+ b: e.b,
224
+ a: e.a
225
+ } : !1;
226
+ },
227
+ write: function(e) {
228
+ return {
229
+ r: e.r,
230
+ g: e.g,
231
+ b: e.b,
232
+ a: e.a
233
+ };
234
+ }
235
+ },
236
+ RGB_OBJ: {
237
+ read: function(e) {
238
+ return i.isNumber(e.r) && i.isNumber(e.g) && i.isNumber(e.b) ? {
239
+ space: "RGB",
240
+ r: e.r,
241
+ g: e.g,
242
+ b: e.b
243
+ } : !1;
244
+ },
245
+ write: function(e) {
246
+ return {
247
+ r: e.r,
248
+ g: e.g,
249
+ b: e.b
250
+ };
251
+ }
252
+ },
253
+ HSVA_OBJ: {
254
+ read: function(e) {
255
+ return i.isNumber(e.h) && i.isNumber(e.s) && i.isNumber(e.v) && i.isNumber(e.a) ? {
256
+ space: "HSV",
257
+ h: e.h,
258
+ s: e.s,
259
+ v: e.v,
260
+ a: e.a
261
+ } : !1;
262
+ },
263
+ write: function(e) {
264
+ return {
265
+ h: e.h,
266
+ s: e.s,
267
+ v: e.v,
268
+ a: e.a
269
+ };
270
+ }
271
+ },
272
+ HSV_OBJ: {
273
+ read: function(e) {
274
+ return i.isNumber(e.h) && i.isNumber(e.s) && i.isNumber(e.v) ? {
275
+ space: "HSV",
276
+ h: e.h,
277
+ s: e.s,
278
+ v: e.v
279
+ } : !1;
280
+ },
281
+ write: function(e) {
282
+ return {
283
+ h: e.h,
284
+ s: e.s,
285
+ v: e.v
286
+ };
287
+ }
288
+ }
289
+ }
290
+ }
291
+ ], o = void 0, s = void 0, c = function() {
292
+ s = !1;
293
+ var e = arguments.length > 1 ? i.toArray(arguments) : arguments[0];
294
+ return i.each(a, function(t) {
295
+ if (t.litmus(e)) return i.each(t.conversions, function(t, n) {
296
+ if (o = t.read(e), s === !1 && o !== !1) return s = o, o.conversionName = n, o.conversion = t, i.BREAK;
297
+ }), i.BREAK;
298
+ }), s;
299
+ }, l = void 0, u = {
300
+ hsv_to_rgb: function(e, t, n) {
301
+ var r = Math.floor(e / 60) % 6, i = e / 60 - Math.floor(e / 60), a = n * (1 - t), o = n * (1 - i * t), s = n * (1 - (1 - i) * t), c = [
302
+ [
303
+ n,
304
+ s,
305
+ a
306
+ ],
307
+ [
308
+ o,
309
+ n,
310
+ a
311
+ ],
312
+ [
313
+ a,
314
+ n,
315
+ s
316
+ ],
317
+ [
318
+ a,
319
+ o,
320
+ n
321
+ ],
322
+ [
323
+ s,
324
+ a,
325
+ n
326
+ ],
327
+ [
328
+ n,
329
+ a,
330
+ o
331
+ ]
332
+ ][r];
333
+ return {
334
+ r: c[0] * 255,
335
+ g: c[1] * 255,
336
+ b: c[2] * 255
337
+ };
338
+ },
339
+ rgb_to_hsv: function(e, t, n) {
340
+ var r = Math.min(e, t, n), i = Math.max(e, t, n), a = i - r, o = void 0, s = void 0;
341
+ if (i !== 0) s = a / i;
342
+ else return {
343
+ h: NaN,
344
+ s: 0,
345
+ v: 0
346
+ };
347
+ return o = e === i ? (t - n) / a : t === i ? 2 + (n - e) / a : 4 + (e - t) / a, o /= 6, o < 0 && (o += 1), {
348
+ h: o * 360,
349
+ s,
350
+ v: i / 255
351
+ };
352
+ },
353
+ rgb_to_hex: function(e, t, n) {
354
+ var r = this.hex_with_component(0, 2, e);
355
+ return r = this.hex_with_component(r, 1, t), r = this.hex_with_component(r, 0, n), r;
356
+ },
357
+ component_from_hex: function(e, t) {
358
+ return e >> t * 8 & 255;
359
+ },
360
+ hex_with_component: function(e, t, n) {
361
+ return n << (l = t * 8) | e & ~(255 << l);
362
+ }
363
+ }, d = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
364
+ return typeof e;
365
+ } : function(e) {
366
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
367
+ }, f = function(e, t) {
368
+ if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
369
+ }, p = function() {
370
+ function e(e, t) {
371
+ for (var n = 0; n < t.length; n++) {
372
+ var r = t[n];
373
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
374
+ }
375
+ }
376
+ return function(t, n, r) {
377
+ return n && e(t.prototype, n), r && e(t, r), t;
378
+ };
379
+ }(), m = function e(t, n, r) {
380
+ t === null && (t = Function.prototype);
381
+ var i = Object.getOwnPropertyDescriptor(t, n);
382
+ if (i === void 0) {
383
+ var a = Object.getPrototypeOf(t);
384
+ return a === null ? void 0 : e(a, n, r);
385
+ } else if ("value" in i) return i.value;
386
+ else {
387
+ var o = i.get;
388
+ return o === void 0 ? void 0 : o.call(r);
389
+ }
390
+ }, h = function(e, t) {
391
+ if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
392
+ e.prototype = Object.create(t && t.prototype, { constructor: {
393
+ value: e,
394
+ enumerable: !1,
395
+ writable: !0,
396
+ configurable: !0
397
+ } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
398
+ }, g = function(e, t) {
399
+ if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
400
+ return t && (typeof t == "object" || typeof t == "function") ? t : e;
401
+ }, _ = function() {
402
+ function e() {
403
+ if (f(this, e), this.__state = c.apply(this, arguments), this.__state === !1) throw Error("Failed to interpret color arguments");
404
+ this.__state.a = this.__state.a || 1;
405
+ }
406
+ return p(e, [
407
+ {
408
+ key: "toString",
409
+ value: function() {
410
+ return t(this);
411
+ }
412
+ },
413
+ {
414
+ key: "toHexString",
415
+ value: function() {
416
+ return t(this, !0);
417
+ }
418
+ },
419
+ {
420
+ key: "toOriginal",
421
+ value: function() {
422
+ return this.__state.conversion.write(this);
423
+ }
424
+ }
425
+ ]), e;
426
+ }();
427
+ function v(e, t, n) {
428
+ Object.defineProperty(e, t, {
429
+ get: function() {
430
+ return this.__state.space === "RGB" || _.recalculateRGB(this, t, n), this.__state[t];
431
+ },
432
+ set: function(e) {
433
+ this.__state.space !== "RGB" && (_.recalculateRGB(this, t, n), this.__state.space = "RGB"), this.__state[t] = e;
434
+ }
435
+ });
436
+ }
437
+ function y(e, t) {
438
+ Object.defineProperty(e, t, {
439
+ get: function() {
440
+ return this.__state.space === "HSV" || _.recalculateHSV(this), this.__state[t];
441
+ },
442
+ set: function(e) {
443
+ this.__state.space !== "HSV" && (_.recalculateHSV(this), this.__state.space = "HSV"), this.__state[t] = e;
444
+ }
445
+ });
446
+ }
447
+ _.recalculateRGB = function(e, t, n) {
448
+ if (e.__state.space === "HEX") e.__state[t] = u.component_from_hex(e.__state.hex, n);
449
+ else if (e.__state.space === "HSV") i.extend(e.__state, u.hsv_to_rgb(e.__state.h, e.__state.s, e.__state.v));
450
+ else throw Error("Corrupted color state");
451
+ }, _.recalculateHSV = function(e) {
452
+ var t = u.rgb_to_hsv(e.r, e.g, e.b);
453
+ i.extend(e.__state, {
454
+ s: t.s,
455
+ v: t.v
456
+ }), i.isNaN(t.h) ? i.isUndefined(e.__state.h) && (e.__state.h = 0) : e.__state.h = t.h;
457
+ }, _.COMPONENTS = [
458
+ "r",
459
+ "g",
460
+ "b",
461
+ "h",
462
+ "s",
463
+ "v",
464
+ "hex",
465
+ "a"
466
+ ], v(_.prototype, "r", 2), v(_.prototype, "g", 1), v(_.prototype, "b", 0), y(_.prototype, "h"), y(_.prototype, "s"), y(_.prototype, "v"), Object.defineProperty(_.prototype, "a", {
467
+ get: function() {
468
+ return this.__state.a;
469
+ },
470
+ set: function(e) {
471
+ this.__state.a = e;
472
+ }
473
+ }), Object.defineProperty(_.prototype, "hex", {
474
+ get: function() {
475
+ return this.__state.space !== "HEX" && (this.__state.hex = u.rgb_to_hex(this.r, this.g, this.b), this.__state.space = "HEX"), this.__state.hex;
476
+ },
477
+ set: function(e) {
478
+ this.__state.space = "HEX", this.__state.hex = e;
479
+ }
480
+ });
481
+ var b = function() {
482
+ function e(t, n) {
483
+ f(this, e), this.initialValue = t[n], this.domElement = document.createElement("div"), this.object = t, this.property = n, this.__onChange = void 0, this.__onFinishChange = void 0;
484
+ }
485
+ return p(e, [
486
+ {
487
+ key: "onChange",
488
+ value: function(e) {
489
+ return this.__onChange = e, this;
490
+ }
491
+ },
492
+ {
493
+ key: "onFinishChange",
494
+ value: function(e) {
495
+ return this.__onFinishChange = e, this;
496
+ }
497
+ },
498
+ {
499
+ key: "setValue",
500
+ value: function(e) {
501
+ return this.object[this.property] = e, this.__onChange && this.__onChange.call(this, e), this.updateDisplay(), this;
502
+ }
503
+ },
504
+ {
505
+ key: "getValue",
506
+ value: function() {
507
+ return this.object[this.property];
508
+ }
509
+ },
510
+ {
511
+ key: "updateDisplay",
512
+ value: function() {
513
+ return this;
514
+ }
515
+ },
516
+ {
517
+ key: "isModified",
518
+ value: function() {
519
+ return this.initialValue !== this.getValue();
520
+ }
521
+ }
522
+ ]), e;
523
+ }(), ee = {
524
+ HTMLEvents: ["change"],
525
+ MouseEvents: [
526
+ "click",
527
+ "mousemove",
528
+ "mousedown",
529
+ "mouseup",
530
+ "mouseover"
531
+ ],
532
+ KeyboardEvents: ["keydown"]
533
+ }, x = {};
534
+ i.each(ee, function(e, t) {
535
+ i.each(e, function(e) {
536
+ x[e] = t;
537
+ });
538
+ });
539
+ var te = /(\d+(\.\d+)?)px/;
540
+ function S(e) {
541
+ if (e === "0" || i.isUndefined(e)) return 0;
542
+ var t = e.match(te);
543
+ return i.isNull(t) ? 0 : parseFloat(t[1]);
544
+ }
545
+ var C = {
546
+ makeSelectable: function(e, t) {
547
+ e === void 0 || e.style === void 0 || (e.onselectstart = t ? function() {
548
+ return !1;
549
+ } : function() {}, e.style.MozUserSelect = t ? "auto" : "none", e.style.KhtmlUserSelect = t ? "auto" : "none", e.unselectable = t ? "on" : "off");
550
+ },
551
+ makeFullscreen: function(e, t, n) {
552
+ var r = n, a = t;
553
+ i.isUndefined(a) && (a = !0), i.isUndefined(r) && (r = !0), e.style.position = "absolute", a && (e.style.left = 0, e.style.right = 0), r && (e.style.top = 0, e.style.bottom = 0);
554
+ },
555
+ fakeEvent: function(e, t, n, r) {
556
+ var a = n || {}, o = x[t];
557
+ if (!o) throw Error("Event type " + t + " not supported.");
558
+ var s = document.createEvent(o);
559
+ switch (o) {
560
+ case "MouseEvents":
561
+ var c = a.x || a.clientX || 0, l = a.y || a.clientY || 0;
562
+ s.initMouseEvent(t, a.bubbles || !1, a.cancelable || !0, window, a.clickCount || 1, 0, 0, c, l, !1, !1, !1, !1, 0, null);
563
+ break;
564
+ case "KeyboardEvents":
565
+ var u = s.initKeyboardEvent || s.initKeyEvent;
566
+ i.defaults(a, {
567
+ cancelable: !0,
568
+ ctrlKey: !1,
569
+ altKey: !1,
570
+ shiftKey: !1,
571
+ metaKey: !1,
572
+ keyCode: void 0,
573
+ charCode: void 0
574
+ }), u(t, a.bubbles || !1, a.cancelable, window, a.ctrlKey, a.altKey, a.shiftKey, a.metaKey, a.keyCode, a.charCode);
575
+ break;
576
+ default:
577
+ s.initEvent(t, a.bubbles || !1, a.cancelable || !0);
578
+ break;
579
+ }
580
+ i.defaults(s, r), e.dispatchEvent(s);
581
+ },
582
+ bind: function(e, t, n, r) {
583
+ var i = r || !1;
584
+ return e.addEventListener ? e.addEventListener(t, n, i) : e.attachEvent && e.attachEvent("on" + t, n), C;
585
+ },
586
+ unbind: function(e, t, n, r) {
587
+ var i = r || !1;
588
+ return e.removeEventListener ? e.removeEventListener(t, n, i) : e.detachEvent && e.detachEvent("on" + t, n), C;
589
+ },
590
+ addClass: function(e, t) {
591
+ if (e.className === void 0) e.className = t;
592
+ else if (e.className !== t) {
593
+ var n = e.className.split(/ +/);
594
+ n.indexOf(t) === -1 && (n.push(t), e.className = n.join(" ").replace(/^\s+/, "").replace(/\s+$/, ""));
595
+ }
596
+ return C;
597
+ },
598
+ removeClass: function(e, t) {
599
+ if (t) if (e.className === t) e.removeAttribute("class");
600
+ else {
601
+ var n = e.className.split(/ +/), r = n.indexOf(t);
602
+ r !== -1 && (n.splice(r, 1), e.className = n.join(" "));
603
+ }
604
+ else e.className = void 0;
605
+ return C;
606
+ },
607
+ hasClass: function(e, t) {
608
+ return RegExp("(?:^|\\s+)" + t + "(?:\\s+|$)").test(e.className) || !1;
609
+ },
610
+ getWidth: function(e) {
611
+ var t = getComputedStyle(e);
612
+ return S(t["border-left-width"]) + S(t["border-right-width"]) + S(t["padding-left"]) + S(t["padding-right"]) + S(t.width);
613
+ },
614
+ getHeight: function(e) {
615
+ var t = getComputedStyle(e);
616
+ return S(t["border-top-width"]) + S(t["border-bottom-width"]) + S(t["padding-top"]) + S(t["padding-bottom"]) + S(t.height);
617
+ },
618
+ getOffset: function(e) {
619
+ var t = e, n = {
620
+ left: 0,
621
+ top: 0
622
+ };
623
+ if (t.offsetParent) do
624
+ n.left += t.offsetLeft, n.top += t.offsetTop, t = t.offsetParent;
625
+ while (t);
626
+ return n;
627
+ },
628
+ isActive: function(e) {
629
+ return e === document.activeElement && (e.type || e.href);
630
+ }
631
+ }, w = function(e) {
632
+ h(t, e);
633
+ function t(e, n) {
634
+ f(this, t);
635
+ var r = g(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)), i = r;
636
+ r.__prev = r.getValue(), r.__checkbox = document.createElement("input"), r.__checkbox.setAttribute("type", "checkbox");
637
+ function a() {
638
+ i.setValue(!i.__prev);
639
+ }
640
+ return C.bind(r.__checkbox, "change", a, !1), r.domElement.appendChild(r.__checkbox), r.updateDisplay(), r;
641
+ }
642
+ return p(t, [{
643
+ key: "setValue",
644
+ value: function(e) {
645
+ var n = m(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setValue", this).call(this, e);
646
+ return this.__onFinishChange && this.__onFinishChange.call(this, this.getValue()), this.__prev = this.getValue(), n;
647
+ }
648
+ }, {
649
+ key: "updateDisplay",
650
+ value: function() {
651
+ return this.getValue() === !0 ? (this.__checkbox.setAttribute("checked", "checked"), this.__checkbox.checked = !0, this.__prev = !0) : (this.__checkbox.checked = !1, this.__prev = !1), m(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "updateDisplay", this).call(this);
652
+ }
653
+ }]), t;
654
+ }(b), ne = function(e) {
655
+ h(t, e);
656
+ function t(e, n, r) {
657
+ f(this, t);
658
+ var a = g(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)), o = r, s = a;
659
+ if (a.__select = document.createElement("select"), i.isArray(o)) {
660
+ var c = {};
661
+ i.each(o, function(e) {
662
+ c[e] = e;
663
+ }), o = c;
664
+ }
665
+ return i.each(o, function(e, t) {
666
+ var n = document.createElement("option");
667
+ n.innerHTML = t, n.setAttribute("value", e), s.__select.appendChild(n);
668
+ }), a.updateDisplay(), C.bind(a.__select, "change", function() {
669
+ var e = this.options[this.selectedIndex].value;
670
+ s.setValue(e);
671
+ }), a.domElement.appendChild(a.__select), a;
672
+ }
673
+ return p(t, [{
674
+ key: "setValue",
675
+ value: function(e) {
676
+ var n = m(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setValue", this).call(this, e);
677
+ return this.__onFinishChange && this.__onFinishChange.call(this, this.getValue()), n;
678
+ }
679
+ }, {
680
+ key: "updateDisplay",
681
+ value: function() {
682
+ return C.isActive(this.__select) ? this : (this.__select.value = this.getValue(), m(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "updateDisplay", this).call(this));
683
+ }
684
+ }]), t;
685
+ }(b), re = function(e) {
686
+ h(t, e);
687
+ function t(e, n) {
688
+ f(this, t);
689
+ var r = g(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)), i = r;
690
+ function a() {
691
+ i.setValue(i.__input.value);
692
+ }
693
+ function o() {
694
+ i.__onFinishChange && i.__onFinishChange.call(i, i.getValue());
695
+ }
696
+ return r.__input = document.createElement("input"), r.__input.setAttribute("type", "text"), C.bind(r.__input, "keyup", a), C.bind(r.__input, "change", a), C.bind(r.__input, "blur", o), C.bind(r.__input, "keydown", function(e) {
697
+ e.keyCode === 13 && this.blur();
698
+ }), r.updateDisplay(), r.domElement.appendChild(r.__input), r;
699
+ }
700
+ return p(t, [{
701
+ key: "updateDisplay",
702
+ value: function() {
703
+ return C.isActive(this.__input) || (this.__input.value = this.getValue()), m(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "updateDisplay", this).call(this);
704
+ }
705
+ }]), t;
706
+ }(b);
707
+ function T(e) {
708
+ var t = e.toString();
709
+ return t.indexOf(".") > -1 ? t.length - t.indexOf(".") - 1 : 0;
710
+ }
711
+ var E = function(e) {
712
+ h(t, e);
713
+ function t(e, n, r) {
714
+ f(this, t);
715
+ var a = g(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)), o = r || {};
716
+ return a.__min = o.min, a.__max = o.max, a.__step = o.step, i.isUndefined(a.__step) ? a.initialValue === 0 ? a.__impliedStep = 1 : a.__impliedStep = 10 ** Math.floor(Math.log(Math.abs(a.initialValue)) / Math.LN10) / 10 : a.__impliedStep = a.__step, a.__precision = T(a.__impliedStep), a;
717
+ }
718
+ return p(t, [
719
+ {
720
+ key: "setValue",
721
+ value: function(e) {
722
+ var n = e;
723
+ return this.__min !== void 0 && n < this.__min ? n = this.__min : this.__max !== void 0 && n > this.__max && (n = this.__max), this.__step !== void 0 && n % this.__step !== 0 && (n = Math.round(n / this.__step) * this.__step), m(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setValue", this).call(this, n);
724
+ }
725
+ },
726
+ {
727
+ key: "min",
728
+ value: function(e) {
729
+ return this.__min = e, this;
730
+ }
731
+ },
732
+ {
733
+ key: "max",
734
+ value: function(e) {
735
+ return this.__max = e, this;
736
+ }
737
+ },
738
+ {
739
+ key: "step",
740
+ value: function(e) {
741
+ return this.__step = e, this.__impliedStep = e, this.__precision = T(e), this;
742
+ }
743
+ }
744
+ ]), t;
745
+ }(b);
746
+ function ie(e, t) {
747
+ var n = 10 ** t;
748
+ return Math.round(e * n) / n;
749
+ }
750
+ var D = function(e) {
751
+ h(t, e);
752
+ function t(e, n, r) {
753
+ f(this, t);
754
+ var a = g(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n, r));
755
+ a.__truncationSuspended = !1;
756
+ var o = a, s = void 0;
757
+ function c() {
758
+ var e = parseFloat(o.__input.value);
759
+ i.isNaN(e) || o.setValue(e);
760
+ }
761
+ function l() {
762
+ o.__onFinishChange && o.__onFinishChange.call(o, o.getValue());
763
+ }
764
+ function u() {
765
+ l();
766
+ }
767
+ function d(e) {
768
+ var t = s - e.clientY;
769
+ o.setValue(o.getValue() + t * o.__impliedStep), s = e.clientY;
770
+ }
771
+ function p() {
772
+ C.unbind(window, "mousemove", d), C.unbind(window, "mouseup", p), l();
773
+ }
774
+ function m(e) {
775
+ C.bind(window, "mousemove", d), C.bind(window, "mouseup", p), s = e.clientY;
776
+ }
777
+ return a.__input = document.createElement("input"), a.__input.setAttribute("type", "text"), C.bind(a.__input, "change", c), C.bind(a.__input, "blur", u), C.bind(a.__input, "mousedown", m), C.bind(a.__input, "keydown", function(e) {
778
+ e.keyCode === 13 && (o.__truncationSuspended = !0, this.blur(), o.__truncationSuspended = !1, l());
779
+ }), a.updateDisplay(), a.domElement.appendChild(a.__input), a;
780
+ }
781
+ return p(t, [{
782
+ key: "updateDisplay",
783
+ value: function() {
784
+ return this.__input.value = this.__truncationSuspended ? this.getValue() : ie(this.getValue(), this.__precision), m(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "updateDisplay", this).call(this);
785
+ }
786
+ }]), t;
787
+ }(E);
788
+ function O(e, t, n, r, i) {
789
+ return r + (i - r) * ((e - t) / (n - t));
790
+ }
791
+ var k = function(e) {
792
+ h(t, e);
793
+ function t(e, n, r, i, a) {
794
+ f(this, t);
795
+ var o = g(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n, {
796
+ min: r,
797
+ max: i,
798
+ step: a
799
+ })), s = o;
800
+ o.__background = document.createElement("div"), o.__foreground = document.createElement("div"), C.bind(o.__background, "mousedown", c), C.bind(o.__background, "touchstart", d), C.addClass(o.__background, "slider"), C.addClass(o.__foreground, "slider-fg");
801
+ function c(e) {
802
+ document.activeElement.blur(), C.bind(window, "mousemove", l), C.bind(window, "mouseup", u), l(e);
803
+ }
804
+ function l(e) {
805
+ e.preventDefault();
806
+ var t = s.__background.getBoundingClientRect();
807
+ return s.setValue(O(e.clientX, t.left, t.right, s.__min, s.__max)), !1;
808
+ }
809
+ function u() {
810
+ C.unbind(window, "mousemove", l), C.unbind(window, "mouseup", u), s.__onFinishChange && s.__onFinishChange.call(s, s.getValue());
811
+ }
812
+ function d(e) {
813
+ e.touches.length === 1 && (C.bind(window, "touchmove", p), C.bind(window, "touchend", m), p(e));
814
+ }
815
+ function p(e) {
816
+ var t = e.touches[0].clientX, n = s.__background.getBoundingClientRect();
817
+ s.setValue(O(t, n.left, n.right, s.__min, s.__max));
818
+ }
819
+ function m() {
820
+ C.unbind(window, "touchmove", p), C.unbind(window, "touchend", m), s.__onFinishChange && s.__onFinishChange.call(s, s.getValue());
821
+ }
822
+ return o.updateDisplay(), o.__background.appendChild(o.__foreground), o.domElement.appendChild(o.__background), o;
823
+ }
824
+ return p(t, [{
825
+ key: "updateDisplay",
826
+ value: function() {
827
+ var e = (this.getValue() - this.__min) / (this.__max - this.__min);
828
+ return this.__foreground.style.width = e * 100 + "%", m(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "updateDisplay", this).call(this);
829
+ }
830
+ }]), t;
831
+ }(E), A = function(e) {
832
+ h(t, e);
833
+ function t(e, n, r) {
834
+ f(this, t);
835
+ var i = g(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)), a = i;
836
+ return i.__button = document.createElement("div"), i.__button.innerHTML = r === void 0 ? "Fire" : r, C.bind(i.__button, "click", function(e) {
837
+ return e.preventDefault(), a.fire(), !1;
838
+ }), C.addClass(i.__button, "button"), i.domElement.appendChild(i.__button), i;
839
+ }
840
+ return p(t, [{
841
+ key: "fire",
842
+ value: function() {
843
+ this.__onChange && this.__onChange.call(this), this.getValue().call(this.object), this.__onFinishChange && this.__onFinishChange.call(this, this.getValue());
844
+ }
845
+ }]), t;
846
+ }(b), j = function(e) {
847
+ h(t, e);
848
+ function t(e, n) {
849
+ f(this, t);
850
+ var r = g(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n));
851
+ r.__color = new _(r.getValue()), r.__temp = new _(0);
852
+ var a = r;
853
+ r.domElement = document.createElement("div"), C.makeSelectable(r.domElement, !1), r.__selector = document.createElement("div"), r.__selector.className = "selector", r.__saturation_field = document.createElement("div"), r.__saturation_field.className = "saturation-field", r.__field_knob = document.createElement("div"), r.__field_knob.className = "field-knob", r.__field_knob_border = "2px solid ", r.__hue_knob = document.createElement("div"), r.__hue_knob.className = "hue-knob", r.__hue_field = document.createElement("div"), r.__hue_field.className = "hue-field", r.__input = document.createElement("input"), r.__input.type = "text", r.__input_textShadow = "0 1px 1px ", C.bind(r.__input, "keydown", function(e) {
854
+ e.keyCode === 13 && p.call(this);
855
+ }), C.bind(r.__input, "blur", p), C.bind(r.__selector, "mousedown", function() {
856
+ C.addClass(this, "drag").bind(window, "mouseup", function() {
857
+ C.removeClass(a.__selector, "drag");
858
+ });
859
+ }), C.bind(r.__selector, "touchstart", function() {
860
+ C.addClass(this, "drag").bind(window, "touchend", function() {
861
+ C.removeClass(a.__selector, "drag");
862
+ });
863
+ });
864
+ var o = document.createElement("div");
865
+ i.extend(r.__selector.style, {
866
+ width: "122px",
867
+ height: "102px",
868
+ padding: "3px",
869
+ backgroundColor: "#222",
870
+ boxShadow: "0px 1px 3px rgba(0,0,0,0.3)"
871
+ }), i.extend(r.__field_knob.style, {
872
+ position: "absolute",
873
+ width: "12px",
874
+ height: "12px",
875
+ border: r.__field_knob_border + (r.__color.v < .5 ? "#fff" : "#000"),
876
+ boxShadow: "0px 1px 3px rgba(0,0,0,0.5)",
877
+ borderRadius: "12px",
878
+ zIndex: 1
879
+ }), i.extend(r.__hue_knob.style, {
880
+ position: "absolute",
881
+ width: "15px",
882
+ height: "2px",
883
+ borderRight: "4px solid #fff",
884
+ zIndex: 1
885
+ }), i.extend(r.__saturation_field.style, {
886
+ width: "100px",
887
+ height: "100px",
888
+ border: "1px solid #555",
889
+ marginRight: "3px",
890
+ display: "inline-block",
891
+ cursor: "pointer"
892
+ }), i.extend(o.style, {
893
+ width: "100%",
894
+ height: "100%",
895
+ background: "none"
896
+ }), M(o, "top", "rgba(0,0,0,0)", "#000"), i.extend(r.__hue_field.style, {
897
+ width: "15px",
898
+ height: "100px",
899
+ border: "1px solid #555",
900
+ cursor: "ns-resize",
901
+ position: "absolute",
902
+ top: "3px",
903
+ right: "3px"
904
+ }), oe(r.__hue_field), i.extend(r.__input.style, {
905
+ outline: "none",
906
+ textAlign: "center",
907
+ color: "#fff",
908
+ border: 0,
909
+ fontWeight: "bold",
910
+ textShadow: r.__input_textShadow + "rgba(0,0,0,0.7)"
911
+ }), C.bind(r.__saturation_field, "mousedown", s), C.bind(r.__saturation_field, "touchstart", s), C.bind(r.__field_knob, "mousedown", s), C.bind(r.__field_knob, "touchstart", s), C.bind(r.__hue_field, "mousedown", l), C.bind(r.__hue_field, "touchstart", l);
912
+ function s(e) {
913
+ h(e), C.bind(window, "mousemove", h), C.bind(window, "touchmove", h), C.bind(window, "mouseup", u), C.bind(window, "touchend", u);
914
+ }
915
+ function l(e) {
916
+ v(e), C.bind(window, "mousemove", v), C.bind(window, "touchmove", v), C.bind(window, "mouseup", d), C.bind(window, "touchend", d);
917
+ }
918
+ function u() {
919
+ C.unbind(window, "mousemove", h), C.unbind(window, "touchmove", h), C.unbind(window, "mouseup", u), C.unbind(window, "touchend", u), m();
920
+ }
921
+ function d() {
922
+ C.unbind(window, "mousemove", v), C.unbind(window, "touchmove", v), C.unbind(window, "mouseup", d), C.unbind(window, "touchend", d), m();
923
+ }
924
+ function p() {
925
+ var e = c(this.value);
926
+ e === !1 ? this.value = a.__color.toString() : (a.__color.__state = e, a.setValue(a.__color.toOriginal()));
927
+ }
928
+ function m() {
929
+ a.__onFinishChange && a.__onFinishChange.call(a, a.__color.toOriginal());
930
+ }
931
+ r.__saturation_field.appendChild(o), r.__selector.appendChild(r.__field_knob), r.__selector.appendChild(r.__saturation_field), r.__selector.appendChild(r.__hue_field), r.__hue_field.appendChild(r.__hue_knob), r.domElement.appendChild(r.__input), r.domElement.appendChild(r.__selector), r.updateDisplay();
932
+ function h(e) {
933
+ e.type.indexOf("touch") === -1 && e.preventDefault();
934
+ var t = a.__saturation_field.getBoundingClientRect(), n = e.touches && e.touches[0] || e, r = n.clientX, i = n.clientY, o = (r - t.left) / (t.right - t.left), s = 1 - (i - t.top) / (t.bottom - t.top);
935
+ return s > 1 ? s = 1 : s < 0 && (s = 0), o > 1 ? o = 1 : o < 0 && (o = 0), a.__color.v = s, a.__color.s = o, a.setValue(a.__color.toOriginal()), !1;
936
+ }
937
+ function v(e) {
938
+ e.type.indexOf("touch") === -1 && e.preventDefault();
939
+ var t = a.__hue_field.getBoundingClientRect(), n = 1 - ((e.touches && e.touches[0] || e).clientY - t.top) / (t.bottom - t.top);
940
+ return n > 1 ? n = 1 : n < 0 && (n = 0), a.__color.h = n * 360, a.setValue(a.__color.toOriginal()), !1;
941
+ }
942
+ return r;
943
+ }
944
+ return p(t, [{
945
+ key: "updateDisplay",
946
+ value: function() {
947
+ var e = c(this.getValue());
948
+ if (e !== !1) {
949
+ var t = !1;
950
+ i.each(_.COMPONENTS, function(n) {
951
+ if (!i.isUndefined(e[n]) && !i.isUndefined(this.__color.__state[n]) && e[n] !== this.__color.__state[n]) return t = !0, {};
952
+ }, this), t && i.extend(this.__color.__state, e);
953
+ }
954
+ i.extend(this.__temp.__state, this.__color.__state), this.__temp.a = 1;
955
+ var n = this.__color.v < .5 || this.__color.s > .5 ? 255 : 0, r = 255 - n;
956
+ i.extend(this.__field_knob.style, {
957
+ marginLeft: 100 * this.__color.s - 7 + "px",
958
+ marginTop: 100 * (1 - this.__color.v) - 7 + "px",
959
+ backgroundColor: this.__temp.toHexString(),
960
+ border: this.__field_knob_border + "rgb(" + n + "," + n + "," + n + ")"
961
+ }), this.__hue_knob.style.marginTop = (1 - this.__color.h / 360) * 100 + "px", this.__temp.s = 1, this.__temp.v = 1, M(this.__saturation_field, "left", "#fff", this.__temp.toHexString()), this.__input.value = this.__color.toString(), i.extend(this.__input.style, {
962
+ backgroundColor: this.__color.toHexString(),
963
+ color: "rgb(" + n + "," + n + "," + n + ")",
964
+ textShadow: this.__input_textShadow + "rgba(" + r + "," + r + "," + r + ",.7)"
965
+ });
966
+ }
967
+ }]), t;
968
+ }(b), ae = [
969
+ "-moz-",
970
+ "-o-",
971
+ "-webkit-",
972
+ "-ms-",
973
+ ""
974
+ ];
975
+ function M(e, t, n, r) {
976
+ e.style.background = "", i.each(ae, function(i) {
977
+ e.style.cssText += "background: " + i + "linear-gradient(" + t + ", " + n + " 0%, " + r + " 100%); ";
978
+ });
979
+ }
980
+ function oe(e) {
981
+ e.style.background = "", e.style.cssText += "background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);", e.style.cssText += "background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", e.style.cssText += "background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", e.style.cssText += "background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", e.style.cssText += "background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);";
982
+ }
983
+ var se = {
984
+ load: function(e, t) {
985
+ var n = t || document, r = n.createElement("link");
986
+ r.type = "text/css", r.rel = "stylesheet", r.href = e, n.getElementsByTagName("head")[0].appendChild(r);
987
+ },
988
+ inject: function(e, t) {
989
+ var n = t || document, r = document.createElement("style");
990
+ r.type = "text/css", r.innerHTML = e;
991
+ var i = n.getElementsByTagName("head")[0];
992
+ try {
993
+ i.appendChild(r);
994
+ } catch {}
995
+ }
996
+ }, ce = "<div id=\"dg-save\" class=\"dg dialogue\">\n\n Here's the new load parameter for your <code>GUI</code>'s constructor:\n\n <textarea id=\"dg-new-constructor\"></textarea>\n\n <div id=\"dg-save-locally\">\n\n <input id=\"dg-local-storage\" type=\"checkbox\"/> Automatically save\n values to <code>localStorage</code> on exit.\n\n <div id=\"dg-local-explain\">The values saved to <code>localStorage</code> will\n override those passed to <code>dat.GUI</code>'s constructor. This makes it\n easier to work incrementally, but <code>localStorage</code> is fragile,\n and your friends may not see the same values you do.\n\n </div>\n\n </div>\n\n</div>", le = function(e, t) {
997
+ var n = e[t];
998
+ return i.isArray(arguments[2]) || i.isObject(arguments[2]) ? new ne(e, t, arguments[2]) : i.isNumber(n) ? i.isNumber(arguments[2]) && i.isNumber(arguments[3]) ? i.isNumber(arguments[4]) ? new k(e, t, arguments[2], arguments[3], arguments[4]) : new k(e, t, arguments[2], arguments[3]) : i.isNumber(arguments[4]) ? new D(e, t, {
999
+ min: arguments[2],
1000
+ max: arguments[3],
1001
+ step: arguments[4]
1002
+ }) : new D(e, t, {
1003
+ min: arguments[2],
1004
+ max: arguments[3]
1005
+ }) : i.isString(n) ? new re(e, t) : i.isFunction(n) ? new A(e, t, "") : i.isBoolean(n) ? new w(e, t) : null;
1006
+ };
1007
+ function ue(e) {
1008
+ setTimeout(e, 1e3 / 60);
1009
+ }
1010
+ var de = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || ue, fe = function() {
1011
+ function e() {
1012
+ f(this, e), this.backgroundElement = document.createElement("div"), i.extend(this.backgroundElement.style, {
1013
+ backgroundColor: "rgba(0,0,0,0.8)",
1014
+ top: 0,
1015
+ left: 0,
1016
+ display: "none",
1017
+ zIndex: "1000",
1018
+ opacity: 0,
1019
+ WebkitTransition: "opacity 0.2s linear",
1020
+ transition: "opacity 0.2s linear"
1021
+ }), C.makeFullscreen(this.backgroundElement), this.backgroundElement.style.position = "fixed", this.domElement = document.createElement("div"), i.extend(this.domElement.style, {
1022
+ position: "fixed",
1023
+ display: "none",
1024
+ zIndex: "1001",
1025
+ opacity: 0,
1026
+ WebkitTransition: "-webkit-transform 0.2s ease-out, opacity 0.2s linear",
1027
+ transition: "transform 0.2s ease-out, opacity 0.2s linear"
1028
+ }), document.body.appendChild(this.backgroundElement), document.body.appendChild(this.domElement);
1029
+ var t = this;
1030
+ C.bind(this.backgroundElement, "click", function() {
1031
+ t.hide();
1032
+ });
1033
+ }
1034
+ return p(e, [
1035
+ {
1036
+ key: "show",
1037
+ value: function() {
1038
+ var e = this;
1039
+ this.backgroundElement.style.display = "block", this.domElement.style.display = "block", this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)", this.layout(), i.defer(function() {
1040
+ e.backgroundElement.style.opacity = 1, e.domElement.style.opacity = 1, e.domElement.style.webkitTransform = "scale(1)";
1041
+ });
1042
+ }
1043
+ },
1044
+ {
1045
+ key: "hide",
1046
+ value: function() {
1047
+ var e = this, t = function t() {
1048
+ e.domElement.style.display = "none", e.backgroundElement.style.display = "none", C.unbind(e.domElement, "webkitTransitionEnd", t), C.unbind(e.domElement, "transitionend", t), C.unbind(e.domElement, "oTransitionEnd", t);
1049
+ };
1050
+ C.bind(this.domElement, "webkitTransitionEnd", t), C.bind(this.domElement, "transitionend", t), C.bind(this.domElement, "oTransitionEnd", t), this.backgroundElement.style.opacity = 0, this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)";
1051
+ }
1052
+ },
1053
+ {
1054
+ key: "layout",
1055
+ value: function() {
1056
+ this.domElement.style.left = window.innerWidth / 2 - C.getWidth(this.domElement) / 2 + "px", this.domElement.style.top = window.innerHeight / 2 - C.getHeight(this.domElement) / 2 + "px";
1057
+ }
1058
+ }
1059
+ ]), e;
1060
+ }(), pe = e(".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1 !important}.dg.main:hover .close-button,.dg.main .close-button.drag{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear;border:0;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button.close-top{position:relative}.dg.main .close-button.close-bottom{position:absolute}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-y:visible}.dg.a.has-save>ul.close-top{margin-top:0}.dg.a.has-save>ul.close-bottom{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{top:0;z-index:1002}.dg.a .save-row.close-top{position:relative}.dg.a .save-row.close-bottom{position:fixed}.dg li{-webkit-transition:height .1s ease-out;-o-transition:height .1s ease-out;-moz-transition:height .1s ease-out;transition:height .1s ease-out;-webkit-transition:overflow .1s linear;-o-transition:overflow .1s linear;-moz-transition:overflow .1s linear;transition:overflow .1s linear}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid rgba(0,0,0,0)}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px;overflow:hidden}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .cr.function .property-name{width:100%}.dg .c{float:left;width:60%;position:relative}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:7px}.dg .c select{margin-top:5px}.dg .cr.function,.dg .cr.function .property-name,.dg .cr.function *,.dg .cr.boolean,.dg .cr.boolean *{cursor:pointer}.dg .cr.color{overflow:visible}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0px 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco, monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:12px 0;display:block;width:440px;overflow-y:scroll;height:100px;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;font:11px 'Lucida Grande', sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:108px}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px 4px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:16px;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid rgba(255,255,255,0.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2FA1D6}.dg .cr.number input[type=text]{color:#2FA1D6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.function:hover,.dg .cr.boolean:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:none}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2FA1D6;max-width:100%}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}\n");
1061
+ se.inject(pe);
1062
+ var N = "dg", P = 72, F = 20, I = "Default", L = function() {
1063
+ try {
1064
+ return !!window.localStorage;
1065
+ } catch {
1066
+ return !1;
1067
+ }
1068
+ }(), R = void 0, me = !0, z = void 0, B = !1, V = [], H = function e(t) {
1069
+ var n = this, r = t || {};
1070
+ this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul), C.addClass(this.domElement, N), this.__folders = {}, this.__controllers = [], this.__rememberedObjects = [], this.__rememberedObjectIndecesToControllers = [], this.__listening = [], r = i.defaults(r, {
1071
+ closeOnTop: !1,
1072
+ autoPlace: !0,
1073
+ width: e.DEFAULT_WIDTH
1074
+ }), r = i.defaults(r, {
1075
+ resizable: r.autoPlace,
1076
+ hideable: r.autoPlace
1077
+ }), i.isUndefined(r.load) ? r.load = { preset: I } : r.preset && (r.load.preset = r.preset), i.isUndefined(r.parent) && r.hideable && V.push(this), r.resizable = i.isUndefined(r.parent) && r.resizable, r.autoPlace && i.isUndefined(r.scrollable) && (r.scrollable = !0);
1078
+ var a = L && localStorage.getItem(J(this, "isLocal")) === "true", o = void 0, s = void 0;
1079
+ if (Object.defineProperties(this, {
1080
+ parent: { get: function() {
1081
+ return r.parent;
1082
+ } },
1083
+ scrollable: { get: function() {
1084
+ return r.scrollable;
1085
+ } },
1086
+ autoPlace: { get: function() {
1087
+ return r.autoPlace;
1088
+ } },
1089
+ closeOnTop: { get: function() {
1090
+ return r.closeOnTop;
1091
+ } },
1092
+ preset: {
1093
+ get: function() {
1094
+ return n.parent ? n.getRoot().preset : r.load.preset;
1095
+ },
1096
+ set: function(e) {
1097
+ n.parent ? n.getRoot().preset = e : r.load.preset = e, ve(this), n.revert();
1098
+ }
1099
+ },
1100
+ width: {
1101
+ get: function() {
1102
+ return r.width;
1103
+ },
1104
+ set: function(e) {
1105
+ r.width = e, Z(n, e);
1106
+ }
1107
+ },
1108
+ name: {
1109
+ get: function() {
1110
+ return r.name;
1111
+ },
1112
+ set: function(e) {
1113
+ r.name = e, s && (s.innerHTML = r.name);
1114
+ }
1115
+ },
1116
+ closed: {
1117
+ get: function() {
1118
+ return r.closed;
1119
+ },
1120
+ set: function(t) {
1121
+ r.closed = t, r.closed ? C.addClass(n.__ul, e.CLASS_CLOSED) : C.removeClass(n.__ul, e.CLASS_CLOSED), this.onResize(), n.__closeButton && (n.__closeButton.innerHTML = t ? e.TEXT_OPEN : e.TEXT_CLOSED);
1122
+ }
1123
+ },
1124
+ load: { get: function() {
1125
+ return r.load;
1126
+ } },
1127
+ useLocalStorage: {
1128
+ get: function() {
1129
+ return a;
1130
+ },
1131
+ set: function(e) {
1132
+ L && (a = e, e ? C.bind(window, "unload", o) : C.unbind(window, "unload", o), localStorage.setItem(J(n, "isLocal"), e));
1133
+ }
1134
+ }
1135
+ }), i.isUndefined(r.parent)) {
1136
+ if (this.closed = r.closed || !1, C.addClass(this.domElement, e.CLASS_MAIN), C.makeSelectable(this.domElement, !1), L && a) {
1137
+ n.useLocalStorage = !0;
1138
+ var c = localStorage.getItem(J(this, "gui"));
1139
+ c && (r.load = JSON.parse(c));
1140
+ }
1141
+ this.__closeButton = document.createElement("div"), this.__closeButton.innerHTML = e.TEXT_CLOSED, C.addClass(this.__closeButton, e.CLASS_CLOSE_BUTTON), r.closeOnTop ? (C.addClass(this.__closeButton, e.CLASS_CLOSE_TOP), this.domElement.insertBefore(this.__closeButton, this.domElement.childNodes[0])) : (C.addClass(this.__closeButton, e.CLASS_CLOSE_BOTTOM), this.domElement.appendChild(this.__closeButton)), C.bind(this.__closeButton, "click", function() {
1142
+ n.closed = !n.closed;
1143
+ });
1144
+ } else {
1145
+ r.closed === void 0 && (r.closed = !0);
1146
+ var l = document.createTextNode(r.name);
1147
+ C.addClass(l, "controller-name"), s = U(n, l), C.addClass(this.__ul, e.CLASS_CLOSED), C.addClass(s, "title"), C.bind(s, "click", function(e) {
1148
+ return e.preventDefault(), n.closed = !n.closed, !1;
1149
+ }), r.closed || (this.closed = !1);
1150
+ }
1151
+ r.autoPlace && (i.isUndefined(r.parent) && (me &&= (z = document.createElement("div"), C.addClass(z, N), C.addClass(z, e.CLASS_AUTO_PLACE_CONTAINER), document.body.appendChild(z), !1), z.appendChild(this.domElement), C.addClass(this.domElement, e.CLASS_AUTO_PLACE)), this.parent || Z(n, r.width)), this.__resizeHandler = function() {
1152
+ n.onResizeDebounced();
1153
+ }, C.bind(window, "resize", this.__resizeHandler), C.bind(this.__ul, "webkitTransitionEnd", this.__resizeHandler), C.bind(this.__ul, "transitionend", this.__resizeHandler), C.bind(this.__ul, "oTransitionEnd", this.__resizeHandler), this.onResize(), r.resizable && _e(this), o = function() {
1154
+ L && localStorage.getItem(J(n, "isLocal")) === "true" && localStorage.setItem(J(n, "gui"), JSON.stringify(n.getSaveObject()));
1155
+ }, this.saveToLocalStorageIfPossible = o;
1156
+ function u() {
1157
+ var e = n.getRoot();
1158
+ e.width += 1, i.defer(function() {
1159
+ --e.width;
1160
+ });
1161
+ }
1162
+ r.parent || u();
1163
+ };
1164
+ H.toggleHide = function() {
1165
+ B = !B, i.each(V, function(e) {
1166
+ e.domElement.style.display = B ? "none" : "";
1167
+ });
1168
+ }, H.CLASS_AUTO_PLACE = "a", H.CLASS_AUTO_PLACE_CONTAINER = "ac", H.CLASS_MAIN = "main", H.CLASS_CONTROLLER_ROW = "cr", H.CLASS_TOO_TALL = "taller-than-window", H.CLASS_CLOSED = "closed", H.CLASS_CLOSE_BUTTON = "close-button", H.CLASS_CLOSE_TOP = "close-top", H.CLASS_CLOSE_BOTTOM = "close-bottom", H.CLASS_DRAG = "drag", H.DEFAULT_WIDTH = 245, H.TEXT_CLOSED = "Close Controls", H.TEXT_OPEN = "Open Controls", H._keydownHandler = function(e) {
1169
+ document.activeElement.type !== "text" && (e.which === P || e.keyCode === P) && H.toggleHide();
1170
+ }, C.bind(window, "keydown", H._keydownHandler, !1), i.extend(H.prototype, {
1171
+ add: function(e, t) {
1172
+ return q(this, e, t, { factoryArgs: Array.prototype.slice.call(arguments, 2) });
1173
+ },
1174
+ addColor: function(e, t) {
1175
+ return q(this, e, t, { color: !0 });
1176
+ },
1177
+ remove: function(e) {
1178
+ this.__ul.removeChild(e.__li), this.__controllers.splice(this.__controllers.indexOf(e), 1);
1179
+ var t = this;
1180
+ i.defer(function() {
1181
+ t.onResize();
1182
+ });
1183
+ },
1184
+ destroy: function() {
1185
+ if (this.parent) throw Error("Only the root GUI should be removed with .destroy(). For subfolders, use gui.removeFolder(folder) instead.");
1186
+ this.autoPlace && z.removeChild(this.domElement);
1187
+ var e = this;
1188
+ i.each(this.__folders, function(t) {
1189
+ e.removeFolder(t);
1190
+ }), C.unbind(window, "keydown", H._keydownHandler, !1), W(this);
1191
+ },
1192
+ addFolder: function(e) {
1193
+ if (this.__folders[e] !== void 0) throw Error("You already have a folder in this GUI by the name \"" + e + "\"");
1194
+ var t = {
1195
+ name: e,
1196
+ parent: this
1197
+ };
1198
+ t.autoPlace = this.autoPlace, this.load && this.load.folders && this.load.folders[e] && (t.closed = this.load.folders[e].closed, t.load = this.load.folders[e]);
1199
+ var n = new H(t);
1200
+ this.__folders[e] = n;
1201
+ var r = U(this, n.domElement);
1202
+ return C.addClass(r, "folder"), n;
1203
+ },
1204
+ removeFolder: function(e) {
1205
+ this.__ul.removeChild(e.domElement.parentElement), delete this.__folders[e.name], this.load && this.load.folders && this.load.folders[e.name] && delete this.load.folders[e.name], W(e);
1206
+ var t = this;
1207
+ i.each(e.__folders, function(t) {
1208
+ e.removeFolder(t);
1209
+ }), i.defer(function() {
1210
+ t.onResize();
1211
+ });
1212
+ },
1213
+ open: function() {
1214
+ this.closed = !1;
1215
+ },
1216
+ close: function() {
1217
+ this.closed = !0;
1218
+ },
1219
+ hide: function() {
1220
+ this.domElement.style.display = "none";
1221
+ },
1222
+ show: function() {
1223
+ this.domElement.style.display = "";
1224
+ },
1225
+ onResize: function() {
1226
+ var e = this.getRoot();
1227
+ if (e.scrollable) {
1228
+ var t = C.getOffset(e.__ul).top, n = 0;
1229
+ i.each(e.__ul.childNodes, function(t) {
1230
+ e.autoPlace && t === e.__save_row || (n += C.getHeight(t));
1231
+ }), window.innerHeight - t - F < n ? (C.addClass(e.domElement, H.CLASS_TOO_TALL), e.__ul.style.height = window.innerHeight - t - F + "px") : (C.removeClass(e.domElement, H.CLASS_TOO_TALL), e.__ul.style.height = "auto");
1232
+ }
1233
+ e.__resize_handle && i.defer(function() {
1234
+ e.__resize_handle.style.height = e.__ul.offsetHeight + "px";
1235
+ }), e.__closeButton && (e.__closeButton.style.width = e.width + "px");
1236
+ },
1237
+ onResizeDebounced: i.debounce(function() {
1238
+ this.onResize();
1239
+ }, 50),
1240
+ remember: function() {
1241
+ if (i.isUndefined(R) && (R = new fe(), R.domElement.innerHTML = ce), this.parent) throw Error("You can only call remember on a top level GUI.");
1242
+ var e = this;
1243
+ i.each(Array.prototype.slice.call(arguments), function(t) {
1244
+ e.__rememberedObjects.length === 0 && ge(e), e.__rememberedObjects.indexOf(t) === -1 && e.__rememberedObjects.push(t);
1245
+ }), this.autoPlace && Z(this, this.width);
1246
+ },
1247
+ getRoot: function() {
1248
+ for (var e = this; e.parent;) e = e.parent;
1249
+ return e;
1250
+ },
1251
+ getSaveObject: function() {
1252
+ var e = this.load;
1253
+ return e.closed = this.closed, this.__rememberedObjects.length > 0 && (e.preset = this.preset, e.remembered ||= {}, e.remembered[this.preset] = Q(this)), e.folders = {}, i.each(this.__folders, function(t, n) {
1254
+ e.folders[n] = t.getSaveObject();
1255
+ }), e;
1256
+ },
1257
+ save: function() {
1258
+ this.load.remembered || (this.load.remembered = {}), this.load.remembered[this.preset] = Q(this), G(this, !1), this.saveToLocalStorageIfPossible();
1259
+ },
1260
+ saveAs: function(e) {
1261
+ this.load.remembered || (this.load.remembered = {}, this.load.remembered[I] = Q(this, !0)), this.load.remembered[e] = Q(this), this.preset = e, Y(this, e, !0), this.saveToLocalStorageIfPossible();
1262
+ },
1263
+ revert: function(e) {
1264
+ i.each(this.__controllers, function(t) {
1265
+ this.getRoot().load.remembered ? K(e || this.getRoot(), t) : t.setValue(t.initialValue), t.__onFinishChange && t.__onFinishChange.call(t, t.getValue());
1266
+ }, this), i.each(this.__folders, function(e) {
1267
+ e.revert(e);
1268
+ }), e || G(this.getRoot(), !1);
1269
+ },
1270
+ listen: function(e) {
1271
+ var t = this.__listening.length === 0;
1272
+ this.__listening.push(e), t && $(this.__listening);
1273
+ },
1274
+ updateDisplay: function() {
1275
+ i.each(this.__controllers, function(e) {
1276
+ e.updateDisplay();
1277
+ }), i.each(this.__folders, function(e) {
1278
+ e.updateDisplay();
1279
+ });
1280
+ }
1281
+ });
1282
+ function U(e, t, n) {
1283
+ var r = document.createElement("li");
1284
+ return t && r.appendChild(t), n ? e.__ul.insertBefore(r, n) : e.__ul.appendChild(r), e.onResize(), r;
1285
+ }
1286
+ function W(e) {
1287
+ C.unbind(window, "resize", e.__resizeHandler), e.saveToLocalStorageIfPossible && C.unbind(window, "unload", e.saveToLocalStorageIfPossible);
1288
+ }
1289
+ function G(e, t) {
1290
+ var n = e.__preset_select[e.__preset_select.selectedIndex];
1291
+ t ? n.innerHTML = n.value + "*" : n.innerHTML = n.value;
1292
+ }
1293
+ function he(e, t, n) {
1294
+ if (n.__li = t, n.__gui = e, i.extend(n, {
1295
+ options: function(t) {
1296
+ if (arguments.length > 1) {
1297
+ var r = n.__li.nextElementSibling;
1298
+ return n.remove(), q(e, n.object, n.property, {
1299
+ before: r,
1300
+ factoryArgs: [i.toArray(arguments)]
1301
+ });
1302
+ }
1303
+ if (i.isArray(t) || i.isObject(t)) {
1304
+ var a = n.__li.nextElementSibling;
1305
+ return n.remove(), q(e, n.object, n.property, {
1306
+ before: a,
1307
+ factoryArgs: [t]
1308
+ });
1309
+ }
1310
+ },
1311
+ name: function(e) {
1312
+ return n.__li.firstElementChild.firstElementChild.innerHTML = e, n;
1313
+ },
1314
+ listen: function() {
1315
+ return n.__gui.listen(n), n;
1316
+ },
1317
+ remove: function() {
1318
+ return n.__gui.remove(n), n;
1319
+ }
1320
+ }), n instanceof k) {
1321
+ var r = new D(n.object, n.property, {
1322
+ min: n.__min,
1323
+ max: n.__max,
1324
+ step: n.__step
1325
+ });
1326
+ i.each([
1327
+ "updateDisplay",
1328
+ "onChange",
1329
+ "onFinishChange",
1330
+ "step",
1331
+ "min",
1332
+ "max"
1333
+ ], function(e) {
1334
+ var t = n[e], i = r[e];
1335
+ n[e] = r[e] = function() {
1336
+ var e = Array.prototype.slice.call(arguments);
1337
+ return i.apply(r, e), t.apply(n, e);
1338
+ };
1339
+ }), C.addClass(t, "has-slider"), n.domElement.insertBefore(r.domElement, n.domElement.firstElementChild);
1340
+ } else if (n instanceof D) {
1341
+ var a = function(t) {
1342
+ if (i.isNumber(n.__min) && i.isNumber(n.__max)) {
1343
+ var r = n.__li.firstElementChild.firstElementChild.innerHTML, a = n.__gui.__listening.indexOf(n) > -1;
1344
+ n.remove();
1345
+ var o = q(e, n.object, n.property, {
1346
+ before: n.__li.nextElementSibling,
1347
+ factoryArgs: [
1348
+ n.__min,
1349
+ n.__max,
1350
+ n.__step
1351
+ ]
1352
+ });
1353
+ return o.name(r), a && o.listen(), o;
1354
+ }
1355
+ return t;
1356
+ };
1357
+ n.min = i.compose(a, n.min), n.max = i.compose(a, n.max);
1358
+ } else n instanceof w ? (C.bind(t, "click", function() {
1359
+ C.fakeEvent(n.__checkbox, "click");
1360
+ }), C.bind(n.__checkbox, "click", function(e) {
1361
+ e.stopPropagation();
1362
+ })) : n instanceof A ? (C.bind(t, "click", function() {
1363
+ C.fakeEvent(n.__button, "click");
1364
+ }), C.bind(t, "mouseover", function() {
1365
+ C.addClass(n.__button, "hover");
1366
+ }), C.bind(t, "mouseout", function() {
1367
+ C.removeClass(n.__button, "hover");
1368
+ })) : n instanceof j && (C.addClass(t, "color"), n.updateDisplay = i.compose(function(e) {
1369
+ return t.style.borderLeftColor = n.__color.toString(), e;
1370
+ }, n.updateDisplay), n.updateDisplay());
1371
+ n.setValue = i.compose(function(t) {
1372
+ return e.getRoot().__preset_select && n.isModified() && G(e.getRoot(), !0), t;
1373
+ }, n.setValue);
1374
+ }
1375
+ function K(e, t) {
1376
+ var n = e.getRoot(), r = n.__rememberedObjects.indexOf(t.object);
1377
+ if (r !== -1) {
1378
+ var i = n.__rememberedObjectIndecesToControllers[r];
1379
+ if (i === void 0 && (i = {}, n.__rememberedObjectIndecesToControllers[r] = i), i[t.property] = t, n.load && n.load.remembered) {
1380
+ var a = n.load.remembered, o = void 0;
1381
+ if (a[e.preset]) o = a[e.preset];
1382
+ else if (a[I]) o = a[I];
1383
+ else return;
1384
+ if (o[r] && o[r][t.property] !== void 0) {
1385
+ var s = o[r][t.property];
1386
+ t.initialValue = s, t.setValue(s);
1387
+ }
1388
+ }
1389
+ }
1390
+ }
1391
+ function q(e, t, n, r) {
1392
+ if (t[n] === void 0) throw Error("Object \"" + t + "\" has no property \"" + n + "\"");
1393
+ var i = void 0;
1394
+ if (r.color) i = new j(t, n);
1395
+ else {
1396
+ var a = [t, n].concat(r.factoryArgs);
1397
+ i = le.apply(e, a);
1398
+ }
1399
+ r.before instanceof b && (r.before = r.before.__li), K(e, i), C.addClass(i.domElement, "c");
1400
+ var o = document.createElement("span");
1401
+ C.addClass(o, "property-name"), o.innerHTML = i.property;
1402
+ var s = document.createElement("div");
1403
+ s.appendChild(o), s.appendChild(i.domElement);
1404
+ var c = U(e, s, r.before);
1405
+ return C.addClass(c, H.CLASS_CONTROLLER_ROW), i instanceof j ? C.addClass(c, "color") : C.addClass(c, d(i.getValue())), he(e, c, i), e.__controllers.push(i), i;
1406
+ }
1407
+ function J(e, t) {
1408
+ return document.location.href + "." + t;
1409
+ }
1410
+ function Y(e, t, n) {
1411
+ var r = document.createElement("option");
1412
+ r.innerHTML = t, r.value = t, e.__preset_select.appendChild(r), n && (e.__preset_select.selectedIndex = e.__preset_select.length - 1);
1413
+ }
1414
+ function X(e, t) {
1415
+ t.style.display = e.useLocalStorage ? "block" : "none";
1416
+ }
1417
+ function ge(e) {
1418
+ var t = e.__save_row = document.createElement("li");
1419
+ C.addClass(e.domElement, "has-save"), e.__ul.insertBefore(t, e.__ul.firstChild), C.addClass(t, "save-row");
1420
+ var n = document.createElement("span");
1421
+ n.innerHTML = "&nbsp;", C.addClass(n, "button gears");
1422
+ var r = document.createElement("span");
1423
+ r.innerHTML = "Save", C.addClass(r, "button"), C.addClass(r, "save");
1424
+ var a = document.createElement("span");
1425
+ a.innerHTML = "New", C.addClass(a, "button"), C.addClass(a, "save-as");
1426
+ var o = document.createElement("span");
1427
+ o.innerHTML = "Revert", C.addClass(o, "button"), C.addClass(o, "revert");
1428
+ var s = e.__preset_select = document.createElement("select");
1429
+ if (e.load && e.load.remembered ? i.each(e.load.remembered, function(t, n) {
1430
+ Y(e, n, n === e.preset);
1431
+ }) : Y(e, I, !1), C.bind(s, "change", function() {
1432
+ for (var t = 0; t < e.__preset_select.length; t++) e.__preset_select[t].innerHTML = e.__preset_select[t].value;
1433
+ e.preset = this.value;
1434
+ }), t.appendChild(s), t.appendChild(n), t.appendChild(r), t.appendChild(a), t.appendChild(o), L) {
1435
+ var c = document.getElementById("dg-local-explain"), l = document.getElementById("dg-local-storage"), u = document.getElementById("dg-save-locally");
1436
+ u.style.display = "block", localStorage.getItem(J(e, "isLocal")) === "true" && l.setAttribute("checked", "checked"), X(e, c), C.bind(l, "change", function() {
1437
+ e.useLocalStorage = !e.useLocalStorage, X(e, c);
1438
+ });
1439
+ }
1440
+ var d = document.getElementById("dg-new-constructor");
1441
+ C.bind(d, "keydown", function(e) {
1442
+ e.metaKey && (e.which === 67 || e.keyCode === 67) && R.hide();
1443
+ }), C.bind(n, "click", function() {
1444
+ d.innerHTML = JSON.stringify(e.getSaveObject(), void 0, 2), R.show(), d.focus(), d.select();
1445
+ }), C.bind(r, "click", function() {
1446
+ e.save();
1447
+ }), C.bind(a, "click", function() {
1448
+ var t = prompt("Enter a new preset name.");
1449
+ t && e.saveAs(t);
1450
+ }), C.bind(o, "click", function() {
1451
+ e.revert();
1452
+ });
1453
+ }
1454
+ function _e(e) {
1455
+ var t = void 0;
1456
+ e.__resize_handle = document.createElement("div"), i.extend(e.__resize_handle.style, {
1457
+ width: "6px",
1458
+ marginLeft: "-3px",
1459
+ height: "200px",
1460
+ cursor: "ew-resize",
1461
+ position: "absolute"
1462
+ });
1463
+ function n(n) {
1464
+ return n.preventDefault(), e.width += t - n.clientX, e.onResize(), t = n.clientX, !1;
1465
+ }
1466
+ function r() {
1467
+ C.removeClass(e.__closeButton, H.CLASS_DRAG), C.unbind(window, "mousemove", n), C.unbind(window, "mouseup", r);
1468
+ }
1469
+ function a(i) {
1470
+ return i.preventDefault(), t = i.clientX, C.addClass(e.__closeButton, H.CLASS_DRAG), C.bind(window, "mousemove", n), C.bind(window, "mouseup", r), !1;
1471
+ }
1472
+ C.bind(e.__resize_handle, "mousedown", a), C.bind(e.__closeButton, "mousedown", a), e.domElement.insertBefore(e.__resize_handle, e.domElement.firstElementChild);
1473
+ }
1474
+ function Z(e, t) {
1475
+ e.domElement.style.width = t + "px", e.__save_row && e.autoPlace && (e.__save_row.style.width = t + "px"), e.__closeButton && (e.__closeButton.style.width = t + "px");
1476
+ }
1477
+ function Q(e, t) {
1478
+ var n = {};
1479
+ return i.each(e.__rememberedObjects, function(r, a) {
1480
+ var o = {}, s = e.__rememberedObjectIndecesToControllers[a];
1481
+ i.each(s, function(e, n) {
1482
+ o[n] = t ? e.initialValue : e.getValue();
1483
+ }), n[a] = o;
1484
+ }), n;
1485
+ }
1486
+ function ve(e) {
1487
+ for (var t = 0; t < e.__preset_select.length; t++) e.__preset_select[t].value === e.preset && (e.__preset_select.selectedIndex = t);
1488
+ }
1489
+ function $(e) {
1490
+ e.length !== 0 && de.call(window, function() {
1491
+ $(e);
1492
+ }), i.each(e, function(e) {
1493
+ e.updateDisplay();
1494
+ });
1495
+ }
1496
+ var ye = H;
1497
+ //#endregion
1498
+ export { ye as GUI };
1499
+
1500
+ //# sourceMappingURL=dat.gui.module-CZHqOVGq.mjs.map