iobroker.mywebui 1.76.0 → 1.78.0

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 (235) hide show
  1. package/default-controls/controls/gauges/setpoint-gauge.control +1 -0
  2. package/dist/backend/3d-editor-integration.js +1 -1
  3. package/dist/backend/ImportmapCreator.js +1 -1
  4. package/dist/backend/UploadHelper.js +1 -1
  5. package/dist/backend/main.js +1 -1
  6. package/io-package.json +1 -1
  7. package/package.json +1 -1
  8. package/www/3d-editor/js/Animation.js +1 -1
  9. package/www/3d-editor/js/AnimationResizer.js +1 -1
  10. package/www/3d-editor/js/Command.js +1 -1
  11. package/www/3d-editor/js/Config.js +1 -1
  12. package/www/3d-editor/js/Editor.js +1 -1
  13. package/www/3d-editor/js/EditorControls.js +1 -1
  14. package/www/3d-editor/js/GLTFImportDialog.js +1 -1
  15. package/www/3d-editor/js/History.js +1 -1
  16. package/www/3d-editor/js/Loader.js +1 -1
  17. package/www/3d-editor/js/LoaderUtils.js +1 -1
  18. package/www/3d-editor/js/Menubar.Add.js +1 -1
  19. package/www/3d-editor/js/Menubar.Edit.js +1 -1
  20. package/www/3d-editor/js/Menubar.File.js +1 -1
  21. package/www/3d-editor/js/Menubar.Help.js +1 -1
  22. package/www/3d-editor/js/Menubar.Render.js +1 -1
  23. package/www/3d-editor/js/Menubar.Status.js +1 -1
  24. package/www/3d-editor/js/Menubar.View.js +1 -1
  25. package/www/3d-editor/js/Menubar.js +1 -1
  26. package/www/3d-editor/js/Player.js +1 -1
  27. package/www/3d-editor/js/Resizer.js +1 -1
  28. package/www/3d-editor/js/Script.js +1 -1
  29. package/www/3d-editor/js/Selector.js +1 -1
  30. package/www/3d-editor/js/Sidebar.Geometry.BoxGeometry.js +1 -1
  31. package/www/3d-editor/js/Sidebar.Geometry.BufferGeometry.js +1 -1
  32. package/www/3d-editor/js/Sidebar.Geometry.CapsuleGeometry.js +1 -1
  33. package/www/3d-editor/js/Sidebar.Geometry.CircleGeometry.js +1 -1
  34. package/www/3d-editor/js/Sidebar.Geometry.CylinderGeometry.js +1 -1
  35. package/www/3d-editor/js/Sidebar.Geometry.DodecahedronGeometry.js +1 -1
  36. package/www/3d-editor/js/Sidebar.Geometry.ExtrudeGeometry.js +1 -1
  37. package/www/3d-editor/js/Sidebar.Geometry.IcosahedronGeometry.js +1 -1
  38. package/www/3d-editor/js/Sidebar.Geometry.LatheGeometry.js +1 -1
  39. package/www/3d-editor/js/Sidebar.Geometry.Modifiers.js +1 -1
  40. package/www/3d-editor/js/Sidebar.Geometry.OctahedronGeometry.js +1 -1
  41. package/www/3d-editor/js/Sidebar.Geometry.PlaneGeometry.js +1 -1
  42. package/www/3d-editor/js/Sidebar.Geometry.RingGeometry.js +1 -1
  43. package/www/3d-editor/js/Sidebar.Geometry.ShapeGeometry.js +1 -1
  44. package/www/3d-editor/js/Sidebar.Geometry.SphereGeometry.js +1 -1
  45. package/www/3d-editor/js/Sidebar.Geometry.TetrahedronGeometry.js +1 -1
  46. package/www/3d-editor/js/Sidebar.Geometry.TextGeometry.js +1 -1
  47. package/www/3d-editor/js/Sidebar.Geometry.TorusGeometry.js +1 -1
  48. package/www/3d-editor/js/Sidebar.Geometry.TorusKnotGeometry.js +1 -1
  49. package/www/3d-editor/js/Sidebar.Geometry.TubeGeometry.js +1 -1
  50. package/www/3d-editor/js/Sidebar.Geometry.js +1 -1
  51. package/www/3d-editor/js/Sidebar.Material.BooleanProperty.js +1 -1
  52. package/www/3d-editor/js/Sidebar.Material.ColorProperty.js +1 -1
  53. package/www/3d-editor/js/Sidebar.Material.ConstantProperty.js +1 -1
  54. package/www/3d-editor/js/Sidebar.Material.MapProperty.js +1 -1
  55. package/www/3d-editor/js/Sidebar.Material.NumberProperty.js +1 -1
  56. package/www/3d-editor/js/Sidebar.Material.Program.js +1 -1
  57. package/www/3d-editor/js/Sidebar.Material.RangeValueProperty.js +1 -1
  58. package/www/3d-editor/js/Sidebar.Material.js +1 -1
  59. package/www/3d-editor/js/Sidebar.Object.js +1 -1
  60. package/www/3d-editor/js/Sidebar.Project.App.js +1 -1
  61. package/www/3d-editor/js/Sidebar.Project.Materials.js +1 -1
  62. package/www/3d-editor/js/Sidebar.Project.Renderer.js +1 -1
  63. package/www/3d-editor/js/Sidebar.Project.Resources.js +1 -1
  64. package/www/3d-editor/js/Sidebar.Project.js +1 -1
  65. package/www/3d-editor/js/Sidebar.Properties.js +1 -1
  66. package/www/3d-editor/js/Sidebar.Scene.js +1 -1
  67. package/www/3d-editor/js/Sidebar.Script.js +1 -1
  68. package/www/3d-editor/js/Sidebar.Settings.History.js +1 -1
  69. package/www/3d-editor/js/Sidebar.Settings.Shortcuts.js +1 -1
  70. package/www/3d-editor/js/Sidebar.Settings.js +1 -1
  71. package/www/3d-editor/js/Sidebar.js +1 -1
  72. package/www/3d-editor/js/Storage.js +1 -1
  73. package/www/3d-editor/js/Strings.js +1 -1
  74. package/www/3d-editor/js/TextureParametersDialog.js +1 -1
  75. package/www/3d-editor/js/Toolbar.js +1 -1
  76. package/www/3d-editor/js/Viewport.Controls.js +1 -1
  77. package/www/3d-editor/js/Viewport.Info.js +1 -1
  78. package/www/3d-editor/js/Viewport.Pathtracer.js +1 -1
  79. package/www/3d-editor/js/Viewport.ViewHelper.js +1 -1
  80. package/www/3d-editor/js/Viewport.XR.js +1 -1
  81. package/www/3d-editor/js/Viewport.js +1 -1
  82. package/www/3d-editor/js/commands/AddObjectCommand.js +1 -1
  83. package/www/3d-editor/js/commands/AddScriptCommand.js +1 -1
  84. package/www/3d-editor/js/commands/Commands.js +1 -1
  85. package/www/3d-editor/js/commands/MoveObjectCommand.js +1 -1
  86. package/www/3d-editor/js/commands/MultiCmdsCommand.js +1 -1
  87. package/www/3d-editor/js/commands/RemoveObjectCommand.js +1 -1
  88. package/www/3d-editor/js/commands/RemoveScriptCommand.js +1 -1
  89. package/www/3d-editor/js/commands/SetColorCommand.js +1 -1
  90. package/www/3d-editor/js/commands/SetGeometryCommand.js +1 -1
  91. package/www/3d-editor/js/commands/SetGeometryValueCommand.js +1 -1
  92. package/www/3d-editor/js/commands/SetMaterialColorCommand.js +1 -1
  93. package/www/3d-editor/js/commands/SetMaterialCommand.js +1 -1
  94. package/www/3d-editor/js/commands/SetMaterialMapCommand.js +1 -1
  95. package/www/3d-editor/js/commands/SetMaterialRangeCommand.js +1 -1
  96. package/www/3d-editor/js/commands/SetMaterialValueCommand.js +1 -1
  97. package/www/3d-editor/js/commands/SetMaterialVectorCommand.js +1 -1
  98. package/www/3d-editor/js/commands/SetPositionCommand.js +1 -1
  99. package/www/3d-editor/js/commands/SetRotationCommand.js +1 -1
  100. package/www/3d-editor/js/commands/SetScaleCommand.js +1 -1
  101. package/www/3d-editor/js/commands/SetSceneCommand.js +1 -1
  102. package/www/3d-editor/js/commands/SetScriptValueCommand.js +1 -1
  103. package/www/3d-editor/js/commands/SetShadowValueCommand.js +1 -1
  104. package/www/3d-editor/js/commands/SetTextureParametersCommand.js +1 -1
  105. package/www/3d-editor/js/commands/SetUuidCommand.js +1 -1
  106. package/www/3d-editor/js/commands/SetValueCommand.js +1 -1
  107. package/www/dist/frontend/bundle/chunk-3C6XC7RW.js +1 -1
  108. package/www/dist/frontend/bundle/chunk-3WGNLIWJ.js +3 -3
  109. package/www/dist/frontend/bundle/chunk-3YK3Y2SJ.js +1 -1
  110. package/www/dist/frontend/bundle/chunk-43HEBO5G.js +2 -2
  111. package/www/dist/frontend/bundle/chunk-5MUGMRXU.js +1 -1
  112. package/www/dist/frontend/bundle/chunk-5UBRCTRX.js +3 -3
  113. package/www/dist/frontend/bundle/chunk-65A3PNMG.js +1 -1
  114. package/www/dist/frontend/bundle/chunk-7CWDQGAG.js +3 -3
  115. package/www/dist/frontend/bundle/chunk-7PT7IGUJ.js +3 -3
  116. package/www/dist/frontend/bundle/chunk-AI5PDLDE.js +2 -2
  117. package/www/dist/frontend/bundle/chunk-AWKVUUKN.js +3 -3
  118. package/www/dist/frontend/bundle/chunk-B6NXWGSB.js +1 -1
  119. package/www/dist/frontend/bundle/chunk-BHSHNRXW.js +1 -1
  120. package/www/dist/frontend/bundle/chunk-BVONDEOL.js +3 -3
  121. package/www/dist/frontend/bundle/chunk-CHDKROX5.js +3 -3
  122. package/www/dist/frontend/bundle/chunk-DNCD2F6X.js +3 -3
  123. package/www/dist/frontend/bundle/chunk-FHF6DL5U.js +1 -1
  124. package/www/dist/frontend/bundle/chunk-FO56TEZH.js +3 -3
  125. package/www/dist/frontend/bundle/chunk-FSRRPQMX.js +3 -3
  126. package/www/dist/frontend/bundle/chunk-GLQNGCFL.js +1 -1
  127. package/www/dist/frontend/bundle/chunk-JBDSDK2C.js +3 -3
  128. package/www/dist/frontend/bundle/chunk-JSC66ZLQ.js +1 -1
  129. package/www/dist/frontend/bundle/chunk-K6IV7LKW.js +1 -1
  130. package/www/dist/frontend/bundle/chunk-KY73TL6O.js +2 -2
  131. package/www/dist/frontend/bundle/chunk-M6VVTDVX.js +3 -3
  132. package/www/dist/frontend/bundle/chunk-MECWXZRN.js +1 -1
  133. package/www/dist/frontend/bundle/chunk-N2YIZTB2.js +1 -1
  134. package/www/dist/frontend/bundle/chunk-NQ7L7KNT.js +3 -3
  135. package/www/dist/frontend/bundle/chunk-P7EOR36H.js +1 -1
  136. package/www/dist/frontend/bundle/chunk-PJYK24KZ.js +1 -1
  137. package/www/dist/frontend/bundle/chunk-PYLAW6UA.js +3 -3
  138. package/www/dist/frontend/bundle/chunk-QJJGP23I.js +1 -1
  139. package/www/dist/frontend/bundle/chunk-QV4IBWXA.js +1 -1
  140. package/www/dist/frontend/bundle/chunk-R6IQDPAP.js +3 -3
  141. package/www/dist/frontend/bundle/chunk-RTTBZOQU.js +3 -3
  142. package/www/dist/frontend/bundle/chunk-S4TLNW5D.js +1 -1
  143. package/www/dist/frontend/bundle/chunk-SE6N4ZEN.js +1 -1
  144. package/www/dist/frontend/bundle/chunk-SQHXO2IT.js +3 -3
  145. package/www/dist/frontend/bundle/chunk-T4AIQBBH.js +3 -3
  146. package/www/dist/frontend/bundle/chunk-U5Q332OH.js +1 -1
  147. package/www/dist/frontend/bundle/chunk-UIP324PP.js +1 -1
  148. package/www/dist/frontend/bundle/chunk-V27IRYSL.js +1 -1
  149. package/www/dist/frontend/bundle/chunk-V4C5FGJL.js +2 -2
  150. package/www/dist/frontend/bundle/chunk-WED7CGWA.js +2 -2
  151. package/www/dist/frontend/bundle/chunk-WQ5H5LTG.js +3 -3
  152. package/www/dist/frontend/bundle/chunk-WU54NCEU.js +1 -1
  153. package/www/dist/frontend/bundle/chunk-XFO5FUCN.js +1 -1
  154. package/www/dist/frontend/bundle/chunk-XWAQ2BWM.js +3 -3
  155. package/www/dist/frontend/bundle/chunk-YTQCHNRQ.js +3 -3
  156. package/www/dist/frontend/bundle/chunk-YUSK4FN3.js +3 -3
  157. package/www/dist/frontend/bundle/chunk-Z34BSG5O.js +3 -3
  158. package/www/dist/frontend/bundle/common/IobrokerHandler.js +1 -1
  159. package/www/dist/frontend/bundle/runtime/CustomControls.js +1 -1
  160. package/www/dist/frontend/bundle/runtime/ScreenViewer.js +1 -1
  161. package/www/dist/frontend/bundle/runtime/controls.js +4 -4
  162. package/www/dist/frontend/bundle/runtime/init.js +2 -2
  163. package/www/dist/frontend/common/Common.globals.js +1 -1
  164. package/www/dist/frontend/common/IobrokerHandler.js +1 -1
  165. package/www/dist/frontend/common/Runtime.js +1 -1
  166. package/www/dist/frontend/config/CommandHandling.js +1 -1
  167. package/www/dist/frontend/config/ConfigureWebcomponentDesigner.js +1 -1
  168. package/www/dist/frontend/config/DockHelper.js +1 -1
  169. package/www/dist/frontend/config/IobrokerWebui3DDriveEngine.js +1 -1
  170. package/www/dist/frontend/config/IobrokerWebui3DScreenEditor.js +3 -3
  171. package/www/dist/frontend/config/IobrokerWebui3DScreenPropertiesPanel.js +3 -3
  172. package/www/dist/frontend/config/IobrokerWebui3DScreenViewer.js +2 -2
  173. package/www/dist/frontend/config/IobrokerWebuiAppShell.js +3 -3
  174. package/www/dist/frontend/config/IobrokerWebuiBindingsEditor.js +1 -1
  175. package/www/dist/frontend/config/IobrokerWebuiConfirmationWrapper.js +3 -3
  176. package/www/dist/frontend/config/IobrokerWebuiControlPropertiesEditor.js +3 -3
  177. package/www/dist/frontend/config/IobrokerWebuiDynamicPropsEditor.js +1 -1
  178. package/www/dist/frontend/config/IobrokerWebuiEventAssignment.js +1 -1
  179. package/www/dist/frontend/config/IobrokerWebuiIconsView.js +2 -2
  180. package/www/dist/frontend/config/IobrokerWebuiMonacoEditor.js +2 -2
  181. package/www/dist/frontend/config/IobrokerWebuiPropertyGrid.js +1 -1
  182. package/www/dist/frontend/config/IobrokerWebuiScreenEditor.js +1 -1
  183. package/www/dist/frontend/config/IobrokerWebuiScreensView.js +3 -3
  184. package/www/dist/frontend/config/IobrokerWebuiSignalPropertyEditor.js +1 -1
  185. package/www/dist/frontend/config/IobrokerWebuiSolutionExplorer.js +3 -3
  186. package/www/dist/frontend/config/IobrokerWebuiTranslationEditor.js +1 -1
  187. package/www/dist/frontend/config/IobrokerWebuiWidgetGallery.js +3 -3
  188. package/www/dist/frontend/helper/DialogHelper.js +2 -2
  189. package/www/dist/frontend/helper/EsprimaHelper.js +1 -1
  190. package/www/dist/frontend/helper/Helper.js +1 -1
  191. package/www/dist/frontend/helper/LayoutHelper.js +1 -1
  192. package/www/dist/frontend/helper/XmlHelper.js +1 -1
  193. package/www/dist/frontend/helper/ZipHelper.js +1 -1
  194. package/www/dist/frontend/runtime/AnimationService.js +1 -1
  195. package/www/dist/frontend/runtime/CustomControls.js +1 -1
  196. package/www/dist/frontend/runtime/DynamicElementProperties.js +1 -1
  197. package/www/dist/frontend/runtime/HabPanelLikeMenu.js +3 -3
  198. package/www/dist/frontend/runtime/NavigationShell.js +1 -1
  199. package/www/dist/frontend/runtime/ScreenViewer.js +3 -3
  200. package/www/dist/frontend/runtime/TranslateableText.js +2 -2
  201. package/www/dist/frontend/runtime/VisibilityService.js +1 -1
  202. package/www/dist/frontend/runtime/controls.js +1 -1
  203. package/www/dist/frontend/runtime/init.js +1 -1
  204. package/www/dist/frontend/scripting/IobrokerWebuiScriptSystem.js +1 -1
  205. package/www/dist/frontend/scripting/blockly/OpenScreen.js +1 -1
  206. package/www/dist/frontend/scripting/blockly/webuiBlocklyToolbox.js +1 -1
  207. package/www/dist/frontend/services/DynamicPropertiesHelper.js +1 -1
  208. package/www/dist/frontend/services/IobrokerWebuiBindableLocalObjectsService.js +1 -1
  209. package/www/dist/frontend/services/IobrokerWebuiBindableObjectDragDropService.js +1 -1
  210. package/www/dist/frontend/services/IobrokerWebuiBindableObjectsForPropertiesService.js +1 -1
  211. package/www/dist/frontend/services/IobrokerWebuiBindableObjectsService.js +1 -1
  212. package/www/dist/frontend/services/IobrokerWebuiConfigButtonProvider.js +1 -1
  213. package/www/dist/frontend/services/IobrokerWebuiCopyPasteService.js +1 -1
  214. package/www/dist/frontend/services/IobrokerWebuiCustomControlEventsService.js +1 -1
  215. package/www/dist/frontend/services/IobrokerWebuiCustomElementContextMenu.js +1 -1
  216. package/www/dist/frontend/services/IobrokerWebuiDemoProviderService.js +1 -1
  217. package/www/dist/frontend/services/IobrokerWebuiDynamicPropertiesService.js +1 -1
  218. package/www/dist/frontend/services/IobrokerWebuiEventsService.js +1 -1
  219. package/www/dist/frontend/services/IobrokerWebuiExternalDragDropService.js +1 -1
  220. package/www/dist/frontend/services/IobrokerWebuiLitPropertiesService.js +1 -1
  221. package/www/dist/frontend/services/IobrokerWebuiPropertiesService.js +1 -1
  222. package/www/dist/frontend/services/IobrokerWebuiPropertyGroupsService.js +1 -1
  223. package/www/dist/frontend/services/IobrokerWebuiRefactorService.js +1 -1
  224. package/www/dist/frontend/services/IobrokerWebuiScreenContextMenu.js +1 -1
  225. package/www/dist/frontend/services/IobrokerWebuiSpecialPropertiesService.js +1 -1
  226. package/www/dist/frontend/services/IobrokerWebuiSpectrumEditorService.js +1 -1
  227. package/www/dist/frontend/services/IobrokerWebuiVisibilityPropertiesService.js +1 -1
  228. package/www/dist/frontend/services/LayoutComponentsPropertiesService.js +1 -1
  229. package/www/dist/frontend/widgets/OrthoFlowLineTool.js +1 -1
  230. package/www/dist/frontend/widgets/customElementsObserver.js +1 -1
  231. package/www/dist/frontend/widgets/importWidgetFiles.js +1 -1
  232. package/www/dist/frontend/widgets/importWidgetFilesRuntime.js +1 -1
  233. package/www/dist/frontend/widgets/layout-components.js +1 -1
  234. package/www/dist/frontend/widgets/layout-placement-services.js +1 -1
  235. package/www/dist/frontend/widgets/testElement.js +1 -1
@@ -1 +1 @@
1
- (function(c,d){const p=b,e=c();while(!![]){try{const f=-parseInt(p(0x16e))/0x1*(-parseInt(p(0x179))/0x2)+-parseInt(p(0x16f))/0x3+-parseInt(p(0x180))/0x4*(parseInt(p(0x176))/0x5)+parseInt(p(0x181))/0x6+parseInt(p(0x178))/0x7+parseInt(p(0x175))/0x8*(-parseInt(p(0x177))/0x9)+parseInt(p(0x183))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x721a5));function b(c,d){c=c-0x16b;const e=a();let f=e[c];return f;}import{Box3,Vector3}from'three';import{clone}from'three/addons/utils/SkeletonUtils.js';import{UIPanel,UIRow,UIHorizontalRule,UIText}from'./libs/ui.js';import{AddObjectCommand}from'./commands/AddObjectCommand.js';import{MultiCmdsCommand}from'./commands/MultiCmdsCommand.js';function a(){const w=['option','496YcbWso','21145EFdxEe','88119sBplcl','2669653VrYGvG','348bwixjX','setClass','length','getKey','target','inactive','DEL','676qNHJPE','3790386lbBgGR','isDirectionalLight','9883960uPAeZy','undo','add','onClick','selected','redos','CTRL+SHIFT+Z','1010hNSuwD','1164414ASxCDv','key','menubar/edit/delete','setTextContent','execute'];a=function(){return w;};return a();}import{RemoveObjectCommand}from'./commands/RemoveObjectCommand.js';import{SetPositionCommand}from'./commands/SetPositionCommand.js';function MenubarEdit(c){const q=b,d=c['strings'],e=new UIPanel();e['setClass']('menu');const f=new UIPanel();f[q(0x17a)]('title'),f['setTextContent'](d['getKey']('menubar/edit')),e[q(0x185)](f);const g=new UIPanel();g['setClass']('options'),e['add'](g);const h=new UIRow();h['setClass']('option'),h[q(0x172)](d['getKey']('menubar/edit/undo')),h['add'](new UIText('CTRL+Z')['setClass']('key')),h['onClick'](function(){const r=q;c[r(0x184)]();}),g[q(0x185)](h);const i=new UIRow();i['setClass'](q(0x174)),i['setTextContent'](d[q(0x17c)]('menubar/edit/redo')),i['add'](new UIText(q(0x16d))[q(0x17a)](q(0x170))),i[q(0x186)](function(){c['redo']();}),g['add'](i);function j(){const s=q,l=c['history'];h['setClass']('option'),i[s(0x17a)](s(0x174)),l['undos']['length']==0x0&&h['setClass'](s(0x17e)),l[s(0x16c)][s(0x17b)]==0x0&&i[s(0x17a)](s(0x17e));}c['signals']['historyChanged']['add'](j),j(),g['add'](new UIHorizontalRule());let k=new UIRow();return k['setClass']('option'),k[q(0x172)](d[q(0x17c)]('menubar/edit/center')),k[q(0x186)](function(){const t=q,l=c[t(0x16b)];if(l===null||l['parent']===null)return;const m=new Box3()['setFromObject'](l),n=m['getCenter'](new Vector3()),o=new Vector3();o['x']=l['position']['x']-n['x'],o['y']=l['position']['y']-n['y'],o['z']=l['position']['z']-n['z'],c['execute'](new SetPositionCommand(c,l,o));}),g[q(0x185)](k),k=new UIRow(),k[q(0x17a)](q(0x174)),k[q(0x172)](d['getKey']('menubar/edit/clone')),k[q(0x186)](function(){const u=q;let l=c['selected'];if(l===null||l['parent']===null)return;l=clone(l),c[u(0x173)](new AddObjectCommand(c,l));}),g['add'](k),k=new UIRow(),k[q(0x17a)](q(0x174)),k[q(0x172)](d['getKey'](q(0x171))),k['add'](new UIText(q(0x17f))[q(0x17a)](q(0x170))),k[q(0x186)](function(){const v=q,l=c['selected'];if(l===null||l['parent']===null)return;l['isSpotLight']||l[v(0x182)]?c[v(0x173)](new MultiCmdsCommand(c,[new RemoveObjectCommand(c,l),new RemoveObjectCommand(c,l[v(0x17d)])])):c['execute'](new RemoveObjectCommand(c,l));}),g['add'](k),e;}export{MenubarEdit};
1
+ (function(c,d){const p=b,e=c();while(!![]){try{const f=-parseInt(p(0xb8))/0x1*(parseInt(p(0xb5))/0x2)+-parseInt(p(0xa6))/0x3+parseInt(p(0xab))/0x4+-parseInt(p(0xae))/0x5*(-parseInt(p(0xb6))/0x6)+-parseInt(p(0xb1))/0x7+parseInt(p(0x9c))/0x8*(-parseInt(p(0xa8))/0x9)+parseInt(p(0xba))/0xa*(parseInt(p(0xac))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x222ba));import{Box3,Vector3}from'three';import{clone}from'three/addons/utils/SkeletonUtils.js';function b(c,d){c=c-0x9b;const e=a();let f=e[c];return f;}import{UIPanel,UIRow,UIHorizontalRule,UIText}from'./libs/ui.js';import{AddObjectCommand}from'./commands/AddObjectCommand.js';import{MultiCmdsCommand}from'./commands/MultiCmdsCommand.js';import{RemoveObjectCommand}from'./commands/RemoveObjectCommand.js';import{SetPositionCommand}from'./commands/SetPositionCommand.js';function MenubarEdit(c){const q=b,d=c['strings'],e=new UIPanel();e[q(0x9d)]('menu');const f=new UIPanel();f[q(0x9d)]('title'),f[q(0x9b)](d['getKey'](q(0xa5))),e[q(0xb2)](f);const g=new UIPanel();g['setClass'](q(0xa1)),e['add'](g);const h=new UIRow();h['setClass'](q(0xb3)),h['setTextContent'](d['getKey']('menubar/edit/undo')),h['add'](new UIText(q(0x9f))['setClass']('key')),h[q(0xa9)](function(){const r=q;c[r(0xad)]();}),g[q(0xb2)](h);const i=new UIRow();i['setClass'](q(0xb3)),i[q(0x9b)](d[q(0xaa)]('menubar/edit/redo')),i[q(0xb2)](new UIText(q(0xb9))[q(0x9d)]('key')),i[q(0xa9)](function(){const s=q;c[s(0xb0)]();}),g[q(0xb2)](i);function j(){const t=q,l=c['history'];h['setClass']('option'),i[t(0x9d)](t(0xb3)),l[t(0xa0)]['length']==0x0&&h[t(0x9d)](t(0xb7)),l['redos']['length']==0x0&&i[t(0x9d)]('inactive');}c[q(0xa4)]['historyChanged'][q(0xb2)](j),j(),g['add'](new UIHorizontalRule());let k=new UIRow();return k[q(0x9d)]('option'),k['setTextContent'](d[q(0xaa)]('menubar/edit/center')),k[q(0xa9)](function(){const u=q,l=c['selected'];if(l===null||l['parent']===null)return;const m=new Box3()[u(0xb4)](l),n=m['getCenter'](new Vector3()),o=new Vector3();o['x']=l[u(0x9e)]['x']-n['x'],o['y']=l[u(0x9e)]['y']-n['y'],o['z']=l[u(0x9e)]['z']-n['z'],c[u(0xa3)](new SetPositionCommand(c,l,o));}),g[q(0xb2)](k),k=new UIRow(),k[q(0x9d)](q(0xb3)),k['setTextContent'](d['getKey']('menubar/edit/clone')),k[q(0xa9)](function(){const v=q;let l=c[v(0xa7)];if(l===null||l[v(0xaf)]===null)return;l=clone(l),c[v(0xa3)](new AddObjectCommand(c,l));}),g[q(0xb2)](k),k=new UIRow(),k[q(0x9d)](q(0xb3)),k[q(0x9b)](d[q(0xaa)]('menubar/edit/delete')),k[q(0xb2)](new UIText(q(0xa2))['setClass']('key')),k[q(0xa9)](function(){const w=q,l=c[w(0xa7)];if(l===null||l['parent']===null)return;l['isSpotLight']||l['isDirectionalLight']?c[w(0xa3)](new MultiCmdsCommand(c,[new RemoveObjectCommand(c,l),new RemoveObjectCommand(c,l['target'])])):c['execute'](new RemoveObjectCommand(c,l));}),g['add'](k),e;}function a(){const x=['DEL','execute','signals','menubar/edit','471969mwKKWl','selected','576tqWNvU','onClick','getKey','838600hrWvnJ','770814oyHAAr','undo','5HeDljp','parent','redo','87199AMshdm','add','option','setFromObject','46iVbcCX','981966hrQmmM','inactive','4591sbYBph','CTRL+SHIFT+Z','40nJBMRM','setTextContent','29784INKGPH','setClass','position','CTRL+Z','undos','options'];a=function(){return x;};return a();}export{MenubarEdit};
@@ -1 +1 @@
1
- function a(){const ae=['addClass','model-binary.ply','input','submenu-title','option','menubar/file/export','526498rauECb','menubar/file/new/empty','dom','files','setPosition','file','getKey','saveArrayBuffer','stringify','title','traverse','clear','utils','parse','pong.app.json','PLY','three/addons/exporters/OBJExporter.js','prompt/file/failedToOpenProject','particles.app.json','style','setTop','sceneGraphChanged','4360336BfzGwr','setTextContent','4790628bSbNxX','30039xAOBiT','length','loader','editorCleared','three/addons/exporters/USDZExporter.js','clone','createElement','GLTF','menubar/file/save','add','3670nQYPYg','menubar/file','examples/','model.obj','accept','scene','menubar/file/open','appendChild','setDisplay','getBoundingClientRect','form','setClass','onClick','block','push','camera.app.json','remove','three/addons/exporters/DRACOExporter.js','color','setLeft','options','parseTrackName','three/addons/exporters/GLTFExporter.js','GLB','save','model.stl','signals','change','36koZSlF','prompt/file/export/duplicateNames','multiple','name','DRC','prompt/file/open','optimize','tracks','three/addons/exporters/STLExporter.js','scene.gltf','click','model.usdz','377469SaCLKd','reset','menubar/file/new','selected','isMesh','128HuRmlw','body','408250SsKANR','dispatch','fixed','none','shaders.app.json','menubar/file/new/Particles','36837FWRRjf','STL\x20(BINARY)','MESH_EDGEBREAKER_ENCODING'];a=function(){return ae;};return a();}function b(c,d){c=c-0x9f;const e=a();let f=e[c];return f;}(function(c,d){const I=b,e=c();while(!![]){try{const f=parseInt(I(0xb9))/0x1+parseInt(I(0xad))/0x2*(parseInt(I(0xe8))/0x3)+-parseInt(I(0xe5))/0x4+parseInt(I(0xc0))/0x5+parseInt(I(0xe7))/0x6+-parseInt(I(0xcf))/0x7*(parseInt(I(0xbe))/0x8)+-parseInt(I(0xc6))/0x9*(-parseInt(I(0xf2))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x9dd0e));import{UIPanel,UIRow,UIHorizontalRule}from'./libs/ui.js';import{FileLoader,PropertyBinding}from'three';function MenubarFile(c){const J=b,d=c['strings'],e=c[J(0xdb)][J(0xd6)],f=c[J(0xdb)]['saveString'],g=new UIPanel();g['setClass']('menu');const h=new UIPanel();h['setClass']('title'),h['setTextContent'](d['getKey'](J(0xf3))),g[J(0xf1)](h);const j=new UIPanel();j['setClass'](J(0xa5)),g[J(0xf1)](j);const k=new UIRow()['setTextContent'](d[J(0xd5)](J(0xbb)))[J(0xc9)]('option')[J(0xc9)](J(0xcc));k['onMouseOver'](function(){const K=J,{top:y,right:z}=this[K(0xd1)]['getBoundingClientRect'](),{paddingTop:A}=getComputedStyle(this[K(0xd1)]);l[K(0xa4)](z+'px'),l['setTop'](y-parseFloat(A)+'px'),l[K(0xfa)](K(0xff));}),k['onMouseOut'](function(){l['setDisplay']('none');}),j[J(0xf1)](k);const l=new UIPanel()['setPosition'](J(0xc2))['addClass']('options')['setDisplay'](J(0xc3));k[J(0xf1)](l);let m=new UIRow()[J(0xe6)](d['getKey'](J(0xd0)))[J(0xfd)]('option');m['onClick'](function(){const L=J;confirm(d['getKey']('prompt/file/open'))&&c[L(0xda)]();}),l[J(0xf1)](m),l['add'](new UIHorizontalRule());const n=[{'title':'menubar/file/new/Arkanoid','file':'arkanoid.app.json'},{'title':'menubar/file/new/Camera','file':J(0xa0)},{'title':J(0xc5),'file':J(0xe1)},{'title':'menubar/file/new/Pong','file':J(0xdd)},{'title':'menubar/file/new/Shaders','file':J(0xc4)}],o=new FileLoader();for(let y=0x0;y<n[J(0xe9)];y++){(function(z){const M=J,A=n[z],B=new UIRow();B[M(0xfd)]('option'),B[M(0xe6)](d[M(0xd5)](A[M(0xd8)])),B[M(0xfe)](function(){const N=M;confirm(d[N(0xd5)]('prompt/file/open'))&&o['load'](N(0xf4)+A[N(0xd4)],function(C){const O=N;c[O(0xda)](),c['fromJSON'](JSON[O(0xdc)](C));});}),l[M(0xf1)](B);}(y));}const p=document[J(0xee)]('form');p[J(0xe2)]['display']=J(0xc3),document[J(0xbf)]['appendChild'](p);const q=document[J(0xee)](J(0xcb));q[J(0xaf)]=![],q['type']='file',q[J(0xf6)]='.json',q['addEventListener']('change',async function(){const P=J,z=q[P(0xd2)][0x0];if(z===undefined)return;try{const A=JSON['parse'](await z['text']());async function B(){const Q=P;await c['fromJSON'](A),c[Q(0xab)]['editorCleared'][Q(0xa1)](B);}c[P(0xab)][P(0xeb)][P(0xf1)](B),c['clear']();}catch(C){alert(d[P(0xd5)](P(0xe0))),console['error'](C);}finally{r['reset']();}}),p['appendChild'](q),m=new UIRow()['addClass'](J(0xcd))['setTextContent'](d['getKey'](J(0xf8)))[J(0xfe)](function(){const R=J;confirm(d[R(0xd5)](R(0xb2)))&&q[R(0xb7)]();}),j['add'](m),m=new UIRow()[J(0xc9)](J(0xcd))[J(0xe6)](d[J(0xd5)](J(0xf0)))[J(0xfe)](function(){const S=J,z=c['toJSON'](),A=new Blob([JSON['stringify'](z)],{'type':'application/json'});c[S(0xdb)][S(0xa9)](A,'project.json');}),j[J(0xf1)](m),j[J(0xf1)](new UIHorizontalRule());const r=document['createElement'](J(0xfc));r[J(0xe2)]['display']='none',document['body'][J(0xf9)](r);const s=document['createElement']('input');s[J(0xaf)]=!![],s['type']=J(0xd4),s['addEventListener'](J(0xac),function(){const T=J;c[T(0xea)]['loadFiles'](s[T(0xd2)]),r[T(0xba)]();}),r['appendChild'](s),m=new UIRow(),m['setClass'](J(0xcd)),m[J(0xe6)](d['getKey']('menubar/file/import')),m[J(0xfe)](function(){s['click']();}),j['add'](m);const t=new UIRow()[J(0xe6)](d['getKey'](J(0xce)))['addClass'](J(0xcd))['addClass'](J(0xcc));t['onMouseOver'](function(){const U=J,{top:z,right:A}=this[U(0xd1)][U(0xfb)](),{paddingTop:B}=getComputedStyle(this['dom']);u['setLeft'](A+'px'),u[U(0xe3)](z-parseFloat(B)+'px'),u['setDisplay']('block');}),t['onMouseOut'](function(){const V=J;u['setDisplay'](V(0xc3));}),j[J(0xf1)](t);const u=new UIPanel()[J(0xd3)]('fixed')['addClass'](J(0xa5))[J(0xfa)](J(0xc3));t[J(0xf1)](u),m=new UIRow(),m[J(0xfd)](J(0xcd)),m['setTextContent'](J(0xb1)),m[J(0xfe)](async function(){const W=J,z=c[W(0xbc)];if(z===null||z[W(0xbd)]===undefined){alert(d['getKey']('prompt/file/export/noMeshSelected'));return;}const {DRACOExporter:A}=await import(W(0xa2)),B=new A(),C={'decodeSpeed':0x5,'encodeSpeed':0x5,'encoderMethod':A[W(0xc8)],'quantization':[0x10,0x8,0x8,0x8,0x8],'exportUvs':!![],'exportNormals':!![],'exportColor':z['geometry']['hasAttribute'](W(0xa3))},D=B['parse'](z,C);e(D,'model.drc');}),u[J(0xf1)](m),m=new UIRow(),m['setClass'](J(0xcd)),m[J(0xe6)](J(0xa8)),m['onClick'](async function(){const X=J,z=c['scene'];if(w(z)){if(confirm(d[X(0xd5)](X(0xae)))===![])return;x(z);}const A=v(z),B=[];for(const E of A){B[X(0x9f)](E[X(0xed)]()[X(0xb3)]());}const {GLTFExporter:C}=await import(X(0xa7)),D=new C();D[X(0xdc)](z,function(F){e(F,'scene.glb');},undefined,{'binary':!![],'animations':B});}),u['add'](m),m=new UIRow(),m['setClass']('option'),m[J(0xe6)](J(0xef)),m['onClick'](async function(){const Y=J,z=c[Y(0xf7)];if(w(z)){if(confirm(d[Y(0xd5)]('prompt/file/export/duplicateNames'))===![])return;x(z);}const A=v(z),B=[];for(const E of A){B['push'](E['clone']()[Y(0xb3)]());}const {GLTFExporter:C}=await import('three/addons/exporters/GLTFExporter.js'),D=new C();D['parse'](z,function(F){const Z=Y;f(JSON[Z(0xd7)](F,null,0x2),Z(0xb6));},undefined,{'animations':B});}),u['add'](m),m=new UIRow(),m['setClass'](J(0xcd)),m['setTextContent']('OBJ'),m['onClick'](async function(){const a0=J,z=c[a0(0xbc)];if(z===null){alert(d['getKey']('prompt/file/export/noObjectSelected'));return;}const {OBJExporter:A}=await import(a0(0xdf)),B=new A();f(B[a0(0xdc)](z),a0(0xf5));}),u['add'](m),m=new UIRow(),m[J(0xfd)]('option'),m[J(0xe6)](J(0xde)),m[J(0xfe)](async function(){const a1=J,{PLYExporter:z}=await import('three/addons/exporters/PLYExporter.js'),A=new z();A['parse'](c[a1(0xf7)],function(B){e(B,'model.ply');});}),u['add'](m),m=new UIRow(),m[J(0xfd)](J(0xcd)),m[J(0xe6)]('PLY\x20(BINARY)'),m[J(0xfe)](async function(){const a2=J,{PLYExporter:z}=await import('three/addons/exporters/PLYExporter.js'),A=new z();A[a2(0xdc)](c['scene'],function(B){const a3=a2;e(B,a3(0xca));},{'binary':!![]});}),u['add'](m),m=new UIRow(),m[J(0xfd)](J(0xcd)),m[J(0xe6)]('STL'),m[J(0xfe)](async function(){const a4=J,{STLExporter:z}=await import(a4(0xb5)),A=new z();f(A[a4(0xdc)](c['scene']),a4(0xaa));}),u['add'](m),m=new UIRow(),m[J(0xfd)](J(0xcd)),m['setTextContent'](J(0xc7)),m['onClick'](async function(){const a5=J,{STLExporter:z}=await import(a5(0xb5)),A=new z();e(A['parse'](c['scene'],{'binary':!![]}),'model-binary.stl');}),u['add'](m),m=new UIRow(),m['setClass']('option'),m['setTextContent']('USDZ'),m['onClick'](async function(){const a6=J,{USDZExporter:z}=await import(a6(0xec)),A=new z();e(await A['parseAsync'](c[a6(0xf7)]),a6(0xb8));}),u[J(0xf1)](m);function v(z){const a7=J,A=[];return z[a7(0xd9)](function(B){const a8=a7;A[a8(0x9f)](...B['animations']);}),A;}function w(z){const a9=J,A=new Set();let B=![],C=![];return z[a9(0xd9)](function(D){const aa=a9;if(D['animations'][aa(0xe9)]>0x0)C=!![];if(D[aa(0xb0)]==='')return;if(A['has'](D['name']))B=!![];A['add'](D['name']);}),B&&C;}function x(z){const ab=J,A=[];z[ab(0xd9)](function(D){const ac=ab;for(const E of D['animations']){for(const F of E[ac(0xb4)]){const G=PropertyBinding[ac(0xa6)](F['name'])['nodeName'],H=PropertyBinding['findNode'](D,G);H!==null&&H[ac(0xb0)]===G&&A['push']({'track':F,'target':H,'nodeName':G});}}});let B=![];const C=new Set();z['traverse'](function(D){const ad=ab;if(D['name']==='')return;if(C['has'](D['name'])){let E=0x1,F;do{F=D['name']+'_'+E++;}while(C['has'](F));D['name']=F,B=!![];}C[ad(0xf1)](D[ad(0xb0)]);});if(B===![])return;for(const {track:D,target:E,nodeName:F}of A){E['name']!==F&&(D[ab(0xb0)]=E['name']+D[ab(0xb0)]['slice'](F['length']));}c[ab(0xab)][ab(0xe4)][ab(0xc1)]();}return g;}export{MenubarFile};
1
+ (function(c,d){const I=b,e=c();while(!![]){try{const f=parseInt(I(0x236))/0x1*(-parseInt(I(0x1e5))/0x2)+parseInt(I(0x241))/0x3+-parseInt(I(0x20a))/0x4*(-parseInt(I(0x23d))/0x5)+parseInt(I(0x216))/0x6*(-parseInt(I(0x21c))/0x7)+-parseInt(I(0x238))/0x8*(parseInt(I(0x24b))/0x9)+-parseInt(I(0x22c))/0xa*(-parseInt(I(0x244))/0xb)+-parseInt(I(0x249))/0xc*(-parseInt(I(0x23b))/0xd);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x9ab82));import{UIPanel,UIRow,UIHorizontalRule}from'./libs/ui.js';function a(){const ae=['prompt/file/export/duplicateNames','setTop','495980SyzVho','dom','appendChild','three/addons/exporters/USDZExporter.js','has','model.obj','camera.app.json','optimize','getKey','tracks','project.json','style','108PGfHDC','three/addons/exporters/DRACOExporter.js','setClass','addClass','getBoundingClientRect','isMesh','357854SsvjOp','PLY','fixed','reset','prompt/file/open','name','toJSON','prompt/file/failedToOpenProject','setPosition','STL','display','signals','scene','setTextContent','remove','setDisplay','140AmoMvL','add','slice','none','menu','shaders.app.json','type','pong.app.json','onMouseOver','setLeft','1ghwLjn','menubar/file/new/Shaders','144RtBStH','parse','editorCleared','6149yPmkLv','createElement','25aEGRup','model.drc','menubar/file/new/Pong','utils','1467825suLaut','color','OBJ','152185NsBppg','animations','parseTrackName','parseAsync','menubar/file/new/empty','39684rEaUCH','input','331605dCsgRl','three/addons/exporters/OBJExporter.js','push','clone','strings','1300030drGwFh','saveArrayBuffer','menubar/file/save','onClick','scene.glb','three/addons/exporters/GLTFExporter.js','stringify','option','MESH_EDGEBREAKER_ENCODING','DRC','prompt/file/export/noMeshSelected','three/addons/exporters/STLExporter.js','model.stl','.json','title','GLTF','length','selected','multiple','menubar/file/open','traverse','block','body','text','menubar/file/new/Particles','form','accept','examples/','dispatch','model-binary.ply','save','sceneGraphChanged','addEventListener','GLB','loadFiles'];a=function(){return ae;};return a();}import{FileLoader,PropertyBinding}from'three';function b(c,d){c=c-0x1e3;const e=a();let f=e[c];return f;}function MenubarFile(c){const J=b,d=c[J(0x1e4)],e=c[J(0x240)][J(0x1e6)],f=c[J(0x240)]['saveString'],g=new UIPanel();g['setClass'](J(0x230));const h=new UIPanel();h[J(0x218)](J(0x1f3)),h['setTextContent'](d[J(0x212)]('menubar/file')),g['add'](h);const j=new UIPanel();j[J(0x218)]('options'),g[J(0x22d)](j);const k=new UIRow()['setTextContent'](d[J(0x212)]('menubar/file/new'))[J(0x219)](J(0x1ec))[J(0x219)]('submenu-title');k[J(0x234)](function(){const K=J,{top:y,right:z}=this['dom'][K(0x21a)](),{paddingTop:A}=getComputedStyle(this[K(0x20b)]);l[K(0x235)](z+'px'),l[K(0x209)](y-parseFloat(A)+'px'),l[K(0x22b)]('block');}),k['onMouseOut'](function(){const L=J;l[L(0x22b)](L(0x22f));}),j[J(0x22d)](k);const l=new UIPanel()[J(0x224)](J(0x21e))['addClass']('options')['setDisplay'](J(0x22f));k[J(0x22d)](l);let m=new UIRow()[J(0x229)](d[J(0x212)](J(0x248)))[J(0x218)](J(0x1ec));m['onClick'](function(){const M=J;confirm(d[M(0x212)](M(0x220)))&&c['clear']();}),l['add'](m),l['add'](new UIHorizontalRule());const n=[{'title':'menubar/file/new/Arkanoid','file':'arkanoid.app.json'},{'title':'menubar/file/new/Camera','file':J(0x210)},{'title':J(0x1fd),'file':'particles.app.json'},{'title':J(0x23f),'file':J(0x233)},{'title':J(0x237),'file':J(0x231)}],o=new FileLoader();for(let y=0x0;y<n[J(0x1f5)];y++){(function(z){const N=J,A=n[z],B=new UIRow();B[N(0x218)](N(0x1ec)),B['setTextContent'](d[N(0x212)](A['title'])),B[N(0x1e8)](function(){const O=N;confirm(d['getKey'](O(0x220)))&&o['load'](O(0x200)+A['file'],function(C){c['clear'](),c['fromJSON'](JSON['parse'](C));});}),l['add'](B);}(y));}const p=document[J(0x23c)](J(0x1fe));p[J(0x215)]['display']=J(0x22f),document[J(0x1fb)][J(0x20c)](p);const q=document['createElement']('input');q[J(0x1f7)]=![],q[J(0x232)]='file',q[J(0x1ff)]=J(0x1f2),q[J(0x205)]('change',async function(){const P=J,z=q['files'][0x0];if(z===undefined)return;try{const A=JSON[P(0x239)](await z[P(0x1fc)]());async function B(){const Q=P;await c['fromJSON'](A),c[Q(0x227)][Q(0x23a)][Q(0x22a)](B);}c[P(0x227)]['editorCleared'][P(0x22d)](B),c['clear']();}catch(C){alert(d['getKey'](P(0x223))),console['error'](C);}finally{r[P(0x21f)]();}}),p[J(0x20c)](q),m=new UIRow()[J(0x219)](J(0x1ec))[J(0x229)](d[J(0x212)](J(0x1f8)))[J(0x1e8)](function(){const R=J;confirm(d[R(0x212)](R(0x220)))&&q['click']();}),j[J(0x22d)](m),m=new UIRow()['addClass']('option')[J(0x229)](d[J(0x212)](J(0x1e7)))['onClick'](function(){const S=J,z=c[S(0x222)](),A=new Blob([JSON['stringify'](z)],{'type':'application/json'});c['utils'][S(0x203)](A,S(0x214));}),j['add'](m),j[J(0x22d)](new UIHorizontalRule());const r=document[J(0x23c)](J(0x1fe));r['style'][J(0x226)]='none',document['body']['appendChild'](r);const s=document[J(0x23c)](J(0x24a));s[J(0x1f7)]=!![],s['type']='file',s['addEventListener']('change',function(){const T=J;c['loader'][T(0x207)](s['files']),r['reset']();}),r['appendChild'](s),m=new UIRow(),m[J(0x218)]('option'),m['setTextContent'](d['getKey']('menubar/file/import')),m[J(0x1e8)](function(){s['click']();}),j['add'](m);const t=new UIRow()[J(0x229)](d[J(0x212)]('menubar/file/export'))['addClass'](J(0x1ec))[J(0x219)]('submenu-title');t[J(0x234)](function(){const U=J,{top:z,right:A}=this[U(0x20b)][U(0x21a)](),{paddingTop:B}=getComputedStyle(this['dom']);u[U(0x235)](A+'px'),u['setTop'](z-parseFloat(B)+'px'),u[U(0x22b)](U(0x1fa));}),t['onMouseOut'](function(){const V=J;u[V(0x22b)](V(0x22f));}),j[J(0x22d)](t);const u=new UIPanel()[J(0x224)](J(0x21e))[J(0x219)]('options')['setDisplay'](J(0x22f));t[J(0x22d)](u),m=new UIRow(),m['setClass']('option'),m['setTextContent'](J(0x1ee)),m[J(0x1e8)](async function(){const W=J,z=c[W(0x1f6)];if(z===null||z[W(0x21b)]===undefined){alert(d[W(0x212)](W(0x1ef)));return;}const {DRACOExporter:A}=await import(W(0x217)),B=new A(),C={'decodeSpeed':0x5,'encodeSpeed':0x5,'encoderMethod':A[W(0x1ed)],'quantization':[0x10,0x8,0x8,0x8,0x8],'exportUvs':!![],'exportNormals':!![],'exportColor':z['geometry']['hasAttribute'](W(0x242))},D=B[W(0x239)](z,C);e(D,W(0x23e));}),u[J(0x22d)](m),m=new UIRow(),m[J(0x218)]('option'),m[J(0x229)](J(0x206)),m['onClick'](async function(){const X=J,z=c[X(0x228)];if(w(z)){if(confirm(d['getKey'](X(0x208)))===![])return;x(z);}const A=v(z),B=[];for(const E of A){B[X(0x24d)](E['clone']()['optimize']());}const {GLTFExporter:C}=await import(X(0x1ea)),D=new C();D['parse'](z,function(F){const Y=X;e(F,Y(0x1e9));},undefined,{'binary':!![],'animations':B});}),u['add'](m),m=new UIRow(),m[J(0x218)]('option'),m['setTextContent'](J(0x1f4)),m['onClick'](async function(){const Z=J,z=c['scene'];if(w(z)){if(confirm(d[Z(0x212)]('prompt/file/export/duplicateNames'))===![])return;x(z);}const A=v(z),B=[];for(const E of A){B[Z(0x24d)](E[Z(0x1e3)]()[Z(0x211)]());}const {GLTFExporter:C}=await import(Z(0x1ea)),D=new C();D[Z(0x239)](z,function(F){const a0=Z;f(JSON[a0(0x1eb)](F,null,0x2),'scene.gltf');},undefined,{'animations':B});}),u[J(0x22d)](m),m=new UIRow(),m[J(0x218)]('option'),m[J(0x229)](J(0x243)),m[J(0x1e8)](async function(){const a1=J,z=c[a1(0x1f6)];if(z===null){alert(d[a1(0x212)]('prompt/file/export/noObjectSelected'));return;}const {OBJExporter:A}=await import(a1(0x24c)),B=new A();f(B['parse'](z),a1(0x20f));}),u[J(0x22d)](m),m=new UIRow(),m['setClass']('option'),m[J(0x229)](J(0x21d)),m['onClick'](async function(){const a2=J,{PLYExporter:z}=await import('three/addons/exporters/PLYExporter.js'),A=new z();A[a2(0x239)](c[a2(0x228)],function(B){e(B,'model.ply');});}),u['add'](m),m=new UIRow(),m[J(0x218)]('option'),m['setTextContent']('PLY\x20(BINARY)'),m[J(0x1e8)](async function(){const a3=J,{PLYExporter:z}=await import('three/addons/exporters/PLYExporter.js'),A=new z();A[a3(0x239)](c[a3(0x228)],function(B){const a4=a3;e(B,a4(0x202));},{'binary':!![]});}),u[J(0x22d)](m),m=new UIRow(),m['setClass'](J(0x1ec)),m[J(0x229)](J(0x225)),m['onClick'](async function(){const a5=J,{STLExporter:z}=await import(a5(0x1f0)),A=new z();f(A[a5(0x239)](c['scene']),a5(0x1f1));}),u[J(0x22d)](m),m=new UIRow(),m['setClass'](J(0x1ec)),m['setTextContent']('STL\x20(BINARY)'),m[J(0x1e8)](async function(){const a6=J,{STLExporter:z}=await import(a6(0x1f0)),A=new z();e(A['parse'](c[a6(0x228)],{'binary':!![]}),'model-binary.stl');}),u['add'](m),m=new UIRow(),m[J(0x218)]('option'),m[J(0x229)]('USDZ'),m[J(0x1e8)](async function(){const a7=J,{USDZExporter:z}=await import(a7(0x20d)),A=new z();e(await A[a7(0x247)](c['scene']),'model.usdz');}),u['add'](m);function v(z){const A=[];return z['traverse'](function(B){const a8=b;A[a8(0x24d)](...B['animations']);}),A;}function w(z){const a9=J,A=new Set();let B=![],C=![];return z[a9(0x1f9)](function(D){const aa=a9;if(D[aa(0x245)]['length']>0x0)C=!![];if(D[aa(0x221)]==='')return;if(A[aa(0x20e)](D['name']))B=!![];A[aa(0x22d)](D['name']);}),B&&C;}function x(z){const ac=J,A=[];z['traverse'](function(D){const ab=b;for(const E of D[ab(0x245)]){for(const F of E[ab(0x213)]){const G=PropertyBinding[ab(0x246)](F[ab(0x221)])['nodeName'],H=PropertyBinding['findNode'](D,G);H!==null&&H['name']===G&&A['push']({'track':F,'target':H,'nodeName':G});}}});let B=![];const C=new Set();z[ac(0x1f9)](function(D){const ad=ac;if(D[ad(0x221)]==='')return;if(C[ad(0x20e)](D[ad(0x221)])){let E=0x1,F;do{F=D['name']+'_'+E++;}while(C[ad(0x20e)](F));D[ad(0x221)]=F,B=!![];}C['add'](D['name']);});if(B===![])return;for(const {track:D,target:E,nodeName:F}of A){E[ac(0x221)]!==F&&(D[ac(0x221)]=E['name']+D['name'][ac(0x22e)](F['length']));}c['signals'][ac(0x204)][ac(0x201)]();}return g;}export{MenubarFile};
@@ -1 +1 @@
1
- (function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0xb8))/0x1+parseInt(i(0xbb))/0x2+parseInt(i(0xb2))/0x3+parseInt(i(0xbc))/0x4*(parseInt(i(0xc1))/0x5)+parseInt(i(0xbe))/0x6+parseInt(i(0xb0))/0x7+-parseInt(i(0xb6))/0x8*(parseInt(i(0xb5))/0x9);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x72061));import{UIPanel,UIRow}from'./libs/ui.js';function b(c,d){c=c-0xb0;const e=a();let f=e[c];return f;}function a(){const n=['setClass','menu','2703960DqfWzd','option','55716YABANo','https://github.com/mrdoob/three.js/tree/master/editor','https://github.com/mrdoob/three.js/wiki/Editor-Manual','162rKTZPe','463656AdVqED','getKey','285844RvKjYB','setTextContent','onClick','448614Ntswdj','2325572LRFiGl','options','83226lxmxfr','title','_blank','5FwUfcK','open','add'];a=function(){return n;};return a();}function MenubarHelp(c){const j=b,d=c['strings'],e=new UIPanel();e['setClass'](j(0xc5));const f=new UIPanel();f['setClass'](j(0xbf)),f[j(0xb9)](d['getKey']('menubar/help')),e['add'](f);const g=new UIPanel();g[j(0xc4)](j(0xbd)),e[j(0xc3)](g);let h=new UIRow();return h['setClass']('option'),h[j(0xb9)](d[j(0xb7)]('menubar/help/source_code')),h['onClick'](function(){const k=j;window['open'](k(0xb3),k(0xc0));}),g['add'](h),h=new UIRow(),h['setClass'](j(0xb1)),h[j(0xb9)](d['getKey']('menubar/help/about')),h[j(0xba)](function(){const l=j;window[l(0xc2)]('https://threejs.org',l(0xc0));}),g[j(0xc3)](h),h=new UIRow(),h['setClass'](j(0xb1)),h['setTextContent'](d[j(0xb7)]('menubar/help/manual')),h[j(0xba)](function(){const m=j;window['open'](m(0xb4),m(0xc0));}),g[j(0xc3)](h),e;}export{MenubarHelp};
1
+ function b(c,d){c=c-0x16d;const e=a();let f=e[c];return f;}(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0x17b))/0x1+parseInt(i(0x17a))/0x2*(parseInt(i(0x17e))/0x3)+parseInt(i(0x170))/0x4*(-parseInt(i(0x16e))/0x5)+parseInt(i(0x182))/0x6*(-parseInt(i(0x17d))/0x7)+parseInt(i(0x183))/0x8+-parseInt(i(0x172))/0x9+-parseInt(i(0x180))/0xa*(-parseInt(i(0x184))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xe9bd8));function a(){const m=['8095311icUVZU','menubar/help','_blank','https://github.com/mrdoob/three.js/wiki/Editor-Manual','setClass','setTextContent','option','options','1521886FbhUDt','4624scSllX','onClick','7lpiOBf','3euysrD','add','10yeRgmC','menubar/help/manual','1911018crCPJM','3012712DkeiFX','19108826ujYeam','menu','4140tCQPpp','strings','3356HIFUUR','menubar/help/about'];a=function(){return m;};return a();}import{UIPanel,UIRow}from'./libs/ui.js';function MenubarHelp(c){const j=b,d=c[j(0x16f)],e=new UIPanel();e['setClass'](j(0x16d));const f=new UIPanel();f['setClass']('title'),f[j(0x177)](d['getKey'](j(0x173))),e[j(0x17f)](f);const g=new UIPanel();g[j(0x176)](j(0x179)),e['add'](g);let h=new UIRow();return h[j(0x176)]('option'),h['setTextContent'](d['getKey']('menubar/help/source_code')),h['onClick'](function(){const k=j;window['open']('https://github.com/mrdoob/three.js/tree/master/editor',k(0x174));}),g['add'](h),h=new UIRow(),h[j(0x176)]('option'),h[j(0x177)](d['getKey'](j(0x171))),h[j(0x17c)](function(){window['open']('https://threejs.org','_blank');}),g['add'](h),h=new UIRow(),h['setClass'](j(0x178)),h['setTextContent'](d['getKey'](j(0x181))),h['onClick'](function(){const l=j;window['open'](l(0x175),'_blank');}),g['add'](h),e;}export{MenubarHelp};
@@ -1 +1 @@
1
- const ac=b;(function(d,e){const a3=b,f=d();while(!![]){try{const g=parseInt(a3(0x171))/0x1*(parseInt(a3(0x1da))/0x2)+parseInt(a3(0x205))/0x3+-parseInt(a3(0x206))/0x4*(parseInt(a3(0x1b0))/0x5)+-parseInt(a3(0x19a))/0x6+parseInt(a3(0x1d6))/0x7+-parseInt(a3(0x191))/0x8+-parseInt(a3(0x1cf))/0x9*(parseInt(a3(0x178))/0xa);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x4a460));function a(){const ao=['Dialog-title','36folXNo','avcC','length','add','8px','getKey','setHidden','1809913SxBdOX','src','_blank','min','11234bVRwFG','encode','getValue','Dialog-content','0px','170px','open','VideoHandler','body','menu','sidebar/project/image/samples','parseAsync','Dialog-body','#000','update','updateProjectionMatrix','reduce','isMeshStandardMaterial','push','click','sidebar/project/duration',',height=','load','description','scene','system-ui','data','%\x20)','Dialog','setMarginLeft','Label','margin','ObjectLoader','reverse','content','addEventListener','Ultra','width','avc1.640028','overflow',',top=','traverseVisible','close','1409928shXFvh','176DnUPdM','menubar/render/image','isPerspectiveCamera','set','setClass','revokeObjectURL','fps','80px','createElement','REALISTIC','menubar/render/video','format','height','setClearColor','86JGcwQB','minf','domElement','url\x20','remove','VideoEncoder','loop','640290JwhKsX','shadowMap','isom','iso2','Low','viewportColor','fontSize','left','onChange','isArray','setRange','mvhd','mdat','removeChild','absolute','enabled','dispose','center','stsc','className','byteLength','fontFamily','document','dref','head','1687384KIZAqh','stss','toJSON','toneMappingExposure','closed','location=no,left=','stsd','sidebar/project/render','type','1030020IdDgJK','timestamp','style','high','top','12px','div','20px','devicePixelRatio','width=device-width,\x20user-scalable=no,\x20minimum-scale=1.0,\x20maximum-scale=1.0','setSize',',width=','setTextContent','unload','dom','menubar/render/quality','en-us','decoderConfig','appendChild','\x20(\x20','\x20(\x20100%\x20)\x20','canvas','30530FrPowI','setFontSize','error','onClick','hidden','floor','background','menubar/render','init','sidebar/project/resolution','options','\x20/\x20','solid','28px','project','setTextAlign','realistic','setOptions','Dialog-background','dinf','VideoEncoder\x20error:','material','position','sidebar/project/shading','max','setWidth','textContent','video','copyTo','controls'];a=function(){return ao;};return a();}import*as c from'three';import{UIPanel,UIRow,UIButton,UIInteger,UISelect,UIText}from'./libs/ui.js';import{ViewportPathtracer}from'./Viewport.Pathtracer.js';import{APP}from'./libs/app.js';function MenubarRender(d){const a4=b,e=d['strings'],f=new UIPanel();f[a4(0x20a)](a4(0x1e3));const g=new UIPanel();g['setClass']('title'),g[a4(0x1a6)](e[a4(0x1d4)](a4(0x1b7))),f['add'](g);const h=new UIPanel();h[a4(0x20a)](a4(0x1ba)),f[a4(0x1d2)](h);let i=new UIRow();i[a4(0x20a)]('option'),i['setTextContent'](e['getKey'](a4(0x207))),i[a4(0x1b3)](function(){j();}),h['add'](i);a4(0x176)in window&&(i=new UIRow(),i['setClass']('option'),i['setTextContent'](e['getKey'](a4(0x16d))),i[a4(0x1b3)](function(){k();}),h['add'](i));function j(){const a5=a4,l=new RenderImageDialog(d,e);document[a5(0x1e2)]['appendChild'](l[a5(0x1a8)]);}function k(){const a6=a4,l=new RenderVideoDialog(d,e);document[a6(0x1e2)]['appendChild'](l[a6(0x1a8)]);}return f;}function b(c,d){c=c-0x16a;const e=a();let f=e[c];return f;}class RenderImageDialog{constructor(d,e){const a7=b,f=document[a7(0x16b)]('div');f[a7(0x18b)]='Dialog',this[a7(0x1a8)]=f;const g=document['createElement'](a7(0x1a0));g[a7(0x18b)]='Dialog-background',g['addEventListener'](a7(0x1ed),()=>this[a7(0x204)]()),f['appendChild'](g);const h=document['createElement']('div');h['className']=a7(0x1dd),f['appendChild'](h);const i=document['createElement'](a7(0x1a0));i['className']=a7(0x1ce),i[a7(0x1ca)]=e[a7(0x1d4)]('menubar/render')+'\x20'+e[a7(0x1d4)]('menubar/render/image'),h[a7(0x1ac)](i);const j=document[a7(0x16b)]('div');j['className']=a7(0x1e6),h['appendChild'](j);const k=new UIRow();j[a7(0x1ac)](k[a7(0x1a8)]),k['add'](new UIText(e[a7(0x1d4)](a7(0x1c7)))['setClass'](a7(0x1f8)));const l=new UISelect()[a7(0x1c1)]({'solid':'SOLID','realistic':a7(0x16c)})['setWidth'](a7(0x1df))['onChange'](q)['setValue'](a7(0x1bc));k['add'](l);const m=0x3,n=0x10000,o=new UIInteger(0x10)[a7(0x182)](m,n),p=new UIRow();p['add'](new UIText(e[a7(0x1d4)](a7(0x1e4)))['setClass'](a7(0x1f8))),p[a7(0x1d2)](o),j[a7(0x1ac)](p['dom']);function q(){const a8=a7;p[a8(0x1d5)](l[a8(0x1dc)]()!==a8(0x1c0));}q();const r=new UIRow();j[a7(0x1ac)](r[a7(0x1a8)]),r['add'](new UIText(e[a7(0x1d4)](a7(0x1b9)))['setClass']('Label'));const s=new UIInteger(0x400)[a7(0x1bf)]('center')['setWidth'](a7(0x1bd));r[a7(0x1d2)](s),r[a7(0x1d2)](new UIText('×')[a7(0x1bf)]('center')['setFontSize'](a7(0x19f))['setWidth']('12px'));const t=new UIInteger(0x400)['setTextAlign'](a7(0x189))[a7(0x1c9)]('28px');r[a7(0x1d2)](t);const u=document['createElement']('div');u[a7(0x18b)]='Dialog-buttons',j['appendChild'](u);const v=new UIButton(e[a7(0x1d4)]('sidebar/project/render'));v['setWidth']('80px'),v[a7(0x1b3)](async()=>{const a9=a7;if(l['getValue']()===a9(0x1c0)){let L=!![];d['scene'][a9(0x203)](M=>{const aa=a9;if(M['isMesh']){const N=Array[aa(0x181)](M[aa(0x1c5)])?M[aa(0x1c5)]:[M[aa(0x1c5)]];for(let O=0x0;O<N['length'];O++){const P=N[O];if(!P[aa(0x1eb)]){L=![];return;}}}});if(L===![]){alert(e['getKey']('prompt/rendering/realistic/unsupportedMaterial'));return;}}const x=d[a9(0x193)](),y=x[a9(0x1be)],z=new c[(a9(0x1fa))](),A=await z[a9(0x1e5)](x['camera']),B=s['getValue']()/t['getValue']();if(A[a9(0x208)])A['aspect']=B;else{const M=A[a9(0x19e)]-A['bottom'];A['left']=-M*B/0x2,A['right']=M*B/0x2;}A[a9(0x1e9)](),A['updateMatrixWorld']();const C=await z['parseAsync'](x[a9(0x1f2)]),D=new c['WebGLRenderer']({'antialias':!![],'reversedDepthBuffer':!![]});D[a9(0x1a4)](s['getValue'](),t['getValue']()),D[a9(0x170)](d[a9(0x17d)]);if(y['shadows']!==undefined)D[a9(0x179)][a9(0x187)]=y['shadows'];if(y['shadowType']!==undefined)D[a9(0x179)]['type']=y['shadowType'];if(y['toneMapping']!==undefined)D['toneMapping']=y['toneMapping'];if(y['toneMappingExposure']!==undefined)D['toneMappingExposure']=y[a9(0x194)];const E=s['getValue']()/window[a9(0x1a2)],F=t['getValue']()/window[a9(0x1a2)],G=(screen['width']-E)/0x2,H=(screen['height']-F)/0x2,I=window['open']('','_blank',a9(0x196)+G+',top='+H+',width='+E+a9(0x1ef)+F),J=document[a9(0x16b)]('meta');J['name']='viewport',J[a9(0x1fc)]=a9(0x1a3),I['document'][a9(0x190)][a9(0x1ac)](J),I[a9(0x18e)]['body']['style'][a9(0x1b6)]='#000',I[a9(0x18e)]['body'][a9(0x19c)][a9(0x1f9)]=a9(0x1de),I['document']['body']['style'][a9(0x201)]='hidden';const K=D[a9(0x173)];K[a9(0x19c)]['width']=E+'px',K[a9(0x19c)]['height']=F+'px',I[a9(0x18e)]['body']['appendChild'](K);switch(l['getValue']()){case a9(0x1bc):D['render'](C,A),D['dispose']();break;case a9(0x1c0):const N=document[a9(0x16b)]('div');N[a9(0x19c)]['position']=a9(0x186),N['style']['top']='10px',N[a9(0x19c)][a9(0x17f)]='10px',N[a9(0x19c)]['color']='white',N['style'][a9(0x18d)]=a9(0x1f3),N[a9(0x19c)]['fontSize']='12px',I['document']['body'][a9(0x1ac)](N);const O=new ViewportPathtracer(D);O[a9(0x1b8)](C,A),O[a9(0x1a4)](s[a9(0x1dc)](),t['getValue']());const P=Math[a9(0x1c8)](m,Math[a9(0x1d9)](n,o[a9(0x1dc)]()));function Q(){const ab=a9;if(I['closed']===!![])return;const R=Math['floor'](O['getSamples']())+0x1;R<P&&requestAnimationFrame(Q);O[ab(0x1e8)]();const S=Math[ab(0x1b5)](R/P*0x64);N[ab(0x1ca)]=R+ab(0x1bb)+P+'\x20(\x20'+S+ab(0x1f5),S===0x64&&(N['textContent']+='\x20✓');}Q();break;}this['close']();}),u[a7(0x1ac)](v['dom']);const w=new UIButton(e[a7(0x1d4)]('menubar/render/cancel'));w[a7(0x1c9)]('80px'),w[a7(0x1f7)](a7(0x1d3)),w['onClick'](()=>this[a7(0x204)]()),u['appendChild'](w['dom']);}[ac(0x204)](){const ad=ac;this[ad(0x1a8)][ad(0x175)]();}}class RenderVideoDialog{constructor(d,e){const ae=ac,f=document['createElement']('div');f[ae(0x18b)]=ae(0x1f6),this['dom']=f;const g=document['createElement'](ae(0x1a0));g['className']=ae(0x1c2),g['addEventListener'](ae(0x1ed),()=>this['close']()),f[ae(0x1ac)](g);const h=document['createElement'](ae(0x1a0));h[ae(0x18b)]=ae(0x1dd),f['appendChild'](h);const i=document['createElement']('div');i['className']=ae(0x1ce),i[ae(0x1ca)]=e[ae(0x1d4)](ae(0x1b7))+'\x20'+e['getKey'](ae(0x16d)),h['appendChild'](i);const j=document['createElement']('div');j['className']=ae(0x1e6),h['appendChild'](j);function k(){const af=ae;this['setValue'](0x2*Math[af(0x1b5)](this[af(0x1dc)]()/0x2));}const l=new UIRow();j['appendChild'](l['dom']),l['add'](new UIText(e['getKey'](ae(0x1b9)))['setClass']('Label'));const m=new UIInteger(0x400)[ae(0x1bf)]('center')[ae(0x1c9)]('28px')['setStep'](0x2)[ae(0x180)](k);l[ae(0x1d2)](m),l['add'](new UIText('×')['setTextAlign']('center')['setFontSize']('12px')[ae(0x1c9)](ae(0x19f)));const n=new UIInteger(0x400)['setTextAlign']('center')['setWidth']('28px')['setStep'](0x2)['onChange'](k);l['add'](n);const o=new UIInteger(0x1e)['setTextAlign'](ae(0x189))['setWidth'](ae(0x1a1));l['add'](o),l['add'](new UIText(ae(0x20c))[ae(0x1b1)]('12px'));const p=new UIRow();p['add'](new UIText(e[ae(0x1d4)](ae(0x1ee)))['setClass'](ae(0x1f8))),j[ae(0x1ac)](p['dom']);const q=new UIInteger(0xa);p[ae(0x1d2)](q);const r=new UIRow();r[ae(0x1d2)](new UIText(e[ae(0x1d4)](ae(0x1a9)))[ae(0x20a)]('Label')),j[ae(0x1ac)](r[ae(0x1a8)]);const s=new UISelect()['setOptions']({'low':ae(0x17c),'medium':'Medium','high':'High','ultra':ae(0x1fe)})[ae(0x1c9)]('170px')['setValue'](ae(0x19d));r['add'](s);const t=document[ae(0x16b)](ae(0x1a0));t[ae(0x18b)]='Dialog-buttons',j[ae(0x1ac)](t);const u=new UIButton(e['getKey'](ae(0x198)));u[ae(0x1c9)](ae(0x16a)),u[ae(0x1b3)](async()=>{const ag=ae,w=new APP['Player']();await w[ag(0x1f0)](d['toJSON']()),w['setPixelRatio'](0x1),w['setSize'](m['getValue'](),n[ag(0x1dc)]()),w['setClearColor'](d['viewportColor']);const x=m['getValue']()/window[ag(0x1a2)],y=n[ag(0x1dc)]()/window[ag(0x1a2)],z=w[ag(0x1af)];z[ag(0x19c)][ag(0x1ff)]=x+'px',z[ag(0x19c)][ag(0x16f)]=y+'px';const A=(screen[ag(0x1ff)]-x)/0x2,B=(screen[ag(0x16f)]-y)/0x2,C=window[ag(0x1e0)]('',ag(0x1d8),'location=no,left='+A+ag(0x202)+B+ag(0x1a5)+x+',height='+y),D=document['createElement']('meta');D['name']='viewport',D[ag(0x1fc)]='width=device-width,\x20user-scalable=no,\x20minimum-scale=1.0,\x20maximum-scale=1.0',C['document'][ag(0x190)][ag(0x1ac)](D),C['document'][ag(0x1e2)]['style'][ag(0x1b6)]=ag(0x1e7),C['document']['body'][ag(0x19c)]['margin']=ag(0x1de),C[ag(0x18e)][ag(0x1e2)][ag(0x19c)]['overflow']='hidden',C[ag(0x18e)]['body'][ag(0x1ac)](z);const E=document['createElement']('div');E['style'][ag(0x1c6)]='absolute',E['style'][ag(0x19e)]='10px',E[ag(0x19c)]['left']='10px',E[ag(0x19c)]['color']='white',E['style'][ag(0x18d)]='system-ui',E['style'][ag(0x17e)]='12px',E['style']['textShadow']='0\x200\x202px\x20black',C['document'][ag(0x1e2)]['appendChild'](E);const F=document[ag(0x16b)](ag(0x1cb));F[ag(0x1ff)]=x,F[ag(0x16f)]=y,F[ag(0x1cd)]=!![],F[ag(0x177)]=!![],F['hidden']=!![],C['document']['body']['appendChild'](F),C[ag(0x1fd)](ag(0x1a7),function(){const ah=ag;F['src']['startsWith']('blob:')&&URL[ah(0x20b)](F[ah(0x1d7)]);});const G=o[ag(0x1dc)](),H=q[ag(0x1dc)](),I=H*G,J=[];let K=null;const L=new VideoEncoder({'output':(P,Q)=>{const ai=ag;Q?.[ai(0x1ab)]?.['description']&&(K=new Uint8Array(Q[ai(0x1ab)][ai(0x1f1)]));const R=new Uint8Array(P[ai(0x18c)]);P[ai(0x1cc)](R),J[ai(0x1ec)]({'data':R,'timestamp':P[ai(0x19b)],'type':P['type']});},'error':P=>console[ag(0x1b2)](ag(0x1c4),P)}),M={'low':0x1e8480,'medium':0x4c4b40,'high':0x989680,'ultra':0x1312d00};L['configure']({'codec':ag(0x200),'width':m[ag(0x1dc)](),'height':n[ag(0x1dc)](),'bitrate':M[s[ag(0x1dc)]()],'framerate':G,'avc':{'format':'avc'}});let N=0x0,O=![];for(let P=0x0;P<I;P++){if(C[ag(0x195)]){O=!![];break;}w['render'](N);const Q=await createImageBitmap(z),R=new VideoFrame(Q,{'timestamp':P*(0xf4240/G)});L[ag(0x1db)](R,{'keyFrame':P%G===0x0}),R[ag(0x204)](),Q['close'](),N+=0x1/G;const S=Math[ag(0x1b5)]((P+0x1)/I*0x64);E['textContent']=P+0x1+'\x20/\x20'+I+ag(0x1ad)+S+'%\x20)';}if(!O){await L['flush'](),L[ag(0x204)](),C['document'][ag(0x1e2)][ag(0x185)](z);const T=createMP4(J,K,m['getValue'](),n[ag(0x1dc)](),G);E[ag(0x1ca)]=I+'\x20/\x20'+I+ag(0x1ae)+formatFileSize(T['byteLength'])+'\x20✓',F[ag(0x1d7)]=URL['createObjectURL'](new Blob([T],{'type':'video/mp4'})),F[ag(0x1b4)]=![];}w[ag(0x188)](),this[ag(0x204)]();}),t['appendChild'](u['dom']);const v=new UIButton(e['getKey']('menubar/render/cancel'));v['setWidth']('80px'),v['setMarginLeft']('8px'),v[ae(0x1b3)](()=>this[ae(0x204)]()),t[ae(0x1ac)](v['dom']);}['close'](){const aj=ac;this[aj(0x1a8)]['remove']();}}function createMP4(d,e,f,g,h){const am=ac,j=0x15f90,k=j/h;function l(W){return new Uint8Array([W>>0x18&0xff,W>>0x10&0xff,W>>0x8&0xff,W&0xff]);}function m(W){return new Uint8Array([W>>0x8&0xff,W&0xff]);}function n(W){const ak=b;return new TextEncoder()[ak(0x1db)](W);}function o(...W){const al=b,X=W[al(0x1ea)]((a0,a1)=>a0+a1['length'],0x0),Y=new Uint8Array(X);let Z=0x0;for(const a0 of W){Y['set'](a0,Z),Z+=a0['length'];}return Y;}function p(W,...X){const Y=o(...X),Z=Y['length']+0x8;return o(l(Z),n(W),Y);}function q(W,X,Y,...Z){return p(W,new Uint8Array([X,Y>>0x10&0xff,Y>>0x8&0xff,Y&0xff]),...Z);}const r=p('ftyp',n(am(0x17a)),l(0x200),n('isom'),n(am(0x17b)),n('avc1'),n('mp41')),s=[],t=[];for(let W=0x0;W<d['length'];W++){s['push'](d[W]['data']['length']);if(d[W][am(0x199)]==='key')t['push'](W+0x1);}let u=0x8;for(const X of d)u+=X[am(0x1f4)]['length'];const v=p('avc1',new Uint8Array(0x6),m(0x1),new Uint8Array(0x10),m(f),m(g),l(0x480000),l(0x480000),l(0x0),m(0x1),new Uint8Array(0x20),m(0x18),new Uint8Array([0xff,0xff]),p(am(0x1d0),e)),w=q(am(0x197),0x0,0x0,l(0x1),v),x=q('stts',0x0,0x0,l(0x1),l(d[am(0x1d1)]),l(k)),y=q(am(0x18a),0x0,0x0,l(0x1),l(0x1),l(d['length']),l(0x1)),z=[l(0x0),l(d['length'])];for(const Y of s)z['push'](l(Y));const A=q('stsz',0x0,0x0,...z),B=q('stco',0x0,0x0,l(0x1),l(0x0)),C=[l(t[am(0x1d1)])];for(const Z of t)C[am(0x1ec)](l(Z));const D=q(am(0x192),0x0,0x0,...C),E=p('stbl',w,x,y,A,B,D),F=q(am(0x18f),0x0,0x0,l(0x1),q(am(0x174),0x0,0x1)),G=p(am(0x1c3),F),H=q('vmhd',0x0,0x1,new Uint8Array(0x8)),I=p(am(0x172),H,G,E),J=q('hdlr',0x0,0x0,l(0x0),n('vide'),new Uint8Array(0xc),n(am(0x1e1)),new Uint8Array(0x1)),K=d['length']*k,L=q('mdhd',0x0,0x0,l(0x0),l(0x0),l(j),l(K),m(0x55c4),m(0x0)),M=p('mdia',L,J,I),N=q('tkhd',0x0,0x3,l(0x0),l(0x0),l(0x1),l(0x0),l(K),new Uint8Array(0x8),m(0x0),m(0x0),m(0x0),m(0x0),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x40000000),l(f<<0x10),l(g<<0x10)),O=p('trak',N,M),P=q(am(0x183),0x0,0x0,l(0x0),l(0x0),l(j),l(K),l(0x10000),m(0x100),new Uint8Array(0xa),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x40000000),new Uint8Array(0x18),l(0x2)),Q=p('moov',P,O),R=r[am(0x1d1)]+Q[am(0x1d1)],S=new Uint8Array(Q);for(let a0=0x0;a0<S['length']-0x10;a0++){if(S[a0]===0x73&&S[a0+0x1]===0x74&&S[a0+0x2]===0x63&&S[a0+0x3]===0x6f){const a1=R+0x8;S[a0+0xc]=a1>>0x18&0xff,S[a0+0xd]=a1>>0x10&0xff,S[a0+0xe]=a1>>0x8&0xff,S[a0+0xf]=a1&0xff;break;}}const T=l(u),U=new Uint8Array(r['length']+S[am(0x1d1)]+u);let V=0x0;U['set'](r,V),V+=r['length'],U[am(0x209)](S,V),V+=S[am(0x1d1)],U[am(0x209)](T,V),U['set'](n(am(0x184)),V+0x4),V+=0x8;for(const a2 of d){U['set'](a2['data'],V),V+=a2['data'][am(0x1d1)];}return U;}function formatFileSize(d,e=0x400){const an=ac;if(d===0x0)return'0B';const f=[d,d/e,d/e/e][an(0x1fb)](),g=['B','KB','MB']['reverse'](),h=f['findIndex'](i=>i>=0x1);return new Intl['NumberFormat'](an(0x1aa),{'useGrouping':!![],'maximumFractionDigits':0x1})[an(0x16e)](f[h])+g[h];}export{MenubarRender};
1
+ const ab=b;(function(d,e){const a3=b,f=d();while(!![]){try{const g=parseInt(a3(0x175))/0x1*(-parseInt(a3(0x1ac))/0x2)+parseInt(a3(0x1a3))/0x3+-parseInt(a3(0x1ca))/0x4*(-parseInt(a3(0x18b))/0x5)+parseInt(a3(0x1d1))/0x6+-parseInt(a3(0x1e2))/0x7*(-parseInt(a3(0x15e))/0x8)+parseInt(a3(0x1d4))/0x9*(parseInt(a3(0x1c5))/0xa)+parseInt(a3(0x1b4))/0xb*(-parseInt(a3(0x1e6))/0xc);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x8cae4));import*as c from'three';function a(){const an=['VideoEncoder\x20error:','project','20px','High','className','hdlr','addEventListener','setTextContent','getValue','isMeshStandardMaterial','dref','Dialog-content','background','mvhd','div','closed','body','\x20(\x20','shadowType','898965SspDak','length','setSize','url\x20','getKey','stss','left','camera','render','Label','menubar/render/quality','white','set','overflow','title','scene','traverseVisible','menubar/render/image','Medium','toneMappingExposure','setValue','solid','2582705qnfDRy','setClearColor','menubar/render','format','170px','head','0px',',top=','top','byteLength','80px','system-ui','material','src','updateMatrixWorld','setFontSize','hidden','floor','devicePixelRatio','shadows','add','dom','setTextAlign','revokeObjectURL','873636OwlxOA','key','dinf','tkhd','ObjectLoader','strings','position','width=device-width,\x20user-scalable=no,\x20minimum-scale=1.0,\x20maximum-scale=1.0','8px','2rUfZqV','setOptions','toneMapping','avc1','menu','open','init','remove','12346235tbKJfz','right','update','appendChild','_blank','document','load','reverse','meta','mdhd','avc1.640028','10px','style','mp41','sidebar/project/image/samples','28px','data','10dBmlfo','Dialog-title','fontFamily','NumberFormat','mdia','4huneuP','center','textContent','push','onChange','realistic','margin','2904558YBYUVg','isom','getSamples','9502146BbeHgZ','stts',',height=','option','findIndex','createElement','decoderConfig','\x20(\x20100%\x20)\x20','close','width','copyTo','parseAsync','prompt/rendering/realistic/unsupportedMaterial','12px','67291UBCdda','createObjectURL','menubar/render/video','avc','12YfeGWm','setWidth','setStep','sidebar/project/duration','encode','canvas','type','color','sidebar/project/resolution','setRange','Dialog-buttons','%\x20)','menubar/render/cancel','stsd','#000','setClass','aspect','unload','VideoHandler','onClick','startsWith','height','0\x200\x202px\x20black','viewportColor','Dialog-body','name','\x20/\x20','208yuzoTN','enabled','click',',width='];a=function(){return an;};return a();}import{UIPanel,UIRow,UIButton,UIInteger,UISelect,UIText}from'./libs/ui.js';import{ViewportPathtracer}from'./Viewport.Pathtracer.js';import{APP}from'./libs/app.js';function MenubarRender(d){const a4=b,e=d[a4(0x1a8)],f=new UIPanel();f['setClass'](a4(0x1b0));const g=new UIPanel();g[a4(0x152)](a4(0x183)),g[a4(0x169)](e['getKey'](a4(0x18d))),f[a4(0x19f)](g);const h=new UIPanel();h['setClass']('options'),f['add'](h);let i=new UIRow();i['setClass'](a4(0x1d7)),i[a4(0x169)](e['getKey'](a4(0x186))),i[a4(0x156)](function(){j();}),h['add'](i);'VideoEncoder'in window&&(i=new UIRow(),i['setClass'](a4(0x1d7)),i[a4(0x169)](e[a4(0x179)](a4(0x1e4))),i['onClick'](function(){k();}),h['add'](i));function j(){const l=new RenderImageDialog(d,e);document['body']['appendChild'](l['dom']);}function k(){const a5=a4,l=new RenderVideoDialog(d,e);document['body'][a5(0x1b7)](l[a5(0x1a0)]);}return f;}class RenderImageDialog{constructor(d,e){const a6=b,f=document[a6(0x1d9)](a6(0x170));f['className']='Dialog',this['dom']=f;const g=document[a6(0x1d9)]('div');g[a6(0x166)]='Dialog-background',g[a6(0x168)](a6(0x160),()=>this[a6(0x1dc)]()),f['appendChild'](g);const h=document['createElement'](a6(0x170));h['className']=a6(0x16d),f['appendChild'](h);const i=document[a6(0x1d9)](a6(0x170));i['className']='Dialog-title',i['textContent']=e['getKey']('menubar/render')+'\x20'+e[a6(0x179)](a6(0x186)),h['appendChild'](i);const j=document['createElement'](a6(0x170));j[a6(0x166)]='Dialog-body',h['appendChild'](j);const k=new UIRow();j['appendChild'](k[a6(0x1a0)]),k[a6(0x19f)](new UIText(e['getKey']('sidebar/project/shading'))['setClass']('Label'));const l=new UISelect()[a6(0x1ad)]({'solid':'SOLID','realistic':'REALISTIC'})[a6(0x1e7)]('170px')['onChange'](q)['setValue']('solid');k[a6(0x19f)](l);const m=0x3,n=0x10000,o=new UIInteger(0x10)[a6(0x14c)](m,n),p=new UIRow();p['add'](new UIText(e['getKey'](a6(0x1c2)))['setClass'](a6(0x17e))),p[a6(0x19f)](o),j['appendChild'](p[a6(0x1a0)]);function q(){const a7=a6;p['setHidden'](l[a7(0x16a)]()!=='realistic');}q();const r=new UIRow();j['appendChild'](r[a6(0x1a0)]),r['add'](new UIText(e['getKey'](a6(0x14b)))['setClass'](a6(0x17e)));const s=new UIInteger(0x400)[a6(0x1a1)](a6(0x1cb))['setWidth']('28px');r['add'](s),r[a6(0x19f)](new UIText('×')[a6(0x1a1)](a6(0x1cb))[a6(0x19a)](a6(0x1e1))[a6(0x1e7)](a6(0x1e1)));const t=new UIInteger(0x400)['setTextAlign'](a6(0x1cb))[a6(0x1e7)](a6(0x1c3));r[a6(0x19f)](t);const u=document['createElement']('div');u[a6(0x166)]=a6(0x14d),j['appendChild'](u);const v=new UIButton(e['getKey']('sidebar/project/render'));v[a6(0x1e7)]('80px'),v['onClick'](async()=>{const a8=a6;if(l[a8(0x16a)]()==='realistic'){let L=!![];d['scene'][a8(0x185)](M=>{const a9=a8;if(M['isMesh']){const N=Array['isArray'](M['material'])?M[a9(0x197)]:[M['material']];for(let O=0x0;O<N['length'];O++){const P=N[O];if(!P[a9(0x16b)]){L=![];return;}}}});if(L===![]){alert(e['getKey'](a8(0x1e0)));return;}}const x=d['toJSON'](),y=x[a8(0x163)],z=new c[(a8(0x1a7))](),A=await z[a8(0x1df)](x[a8(0x17c)]),B=s[a8(0x16a)]()/t['getValue']();if(A['isPerspectiveCamera'])A[a8(0x153)]=B;else{const M=A[a8(0x193)]-A['bottom'];A['left']=-M*B/0x2,A[a8(0x1b5)]=M*B/0x2;}A['updateProjectionMatrix'](),A[a8(0x199)]();const C=await z['parseAsync'](x[a8(0x184)]),D=new c['WebGLRenderer']({'antialias':!![],'reversedDepthBuffer':!![]});D['setSize'](s['getValue'](),t[a8(0x16a)]()),D['setClearColor'](d[a8(0x15a)]);if(y['shadows']!==undefined)D['shadowMap'][a8(0x15f)]=y[a8(0x19e)];if(y[a8(0x174)]!==undefined)D['shadowMap']['type']=y[a8(0x174)];if(y[a8(0x1ae)]!==undefined)D[a8(0x1ae)]=y[a8(0x1ae)];if(y[a8(0x188)]!==undefined)D['toneMappingExposure']=y[a8(0x188)];const E=s[a8(0x16a)]()/window[a8(0x19d)],F=t['getValue']()/window[a8(0x19d)],G=(screen['width']-E)/0x2,H=(screen[a8(0x158)]-F)/0x2,I=window['open']('','_blank','location=no,left='+G+a8(0x192)+H+a8(0x161)+E+a8(0x1d6)+F),J=document['createElement']('meta');J[a8(0x15c)]='viewport',J['content']=a8(0x1aa),I['document'][a8(0x190)][a8(0x1b7)](J),I['document']['body']['style'][a8(0x16e)]='#000',I['document']['body'][a8(0x1c0)][a8(0x1d0)]=a8(0x191),I['document']['body'][a8(0x1c0)][a8(0x182)]='hidden';const K=D['domElement'];K['style'][a8(0x1dd)]=E+'px',K['style']['height']=F+'px',I['document']['body'][a8(0x1b7)](K);switch(l['getValue']()){case a8(0x18a):D['render'](C,A),D['dispose']();break;case a8(0x1cf):const N=document[a8(0x1d9)]('div');N['style']['position']='absolute',N[a8(0x1c0)]['top']=a8(0x1bf),N[a8(0x1c0)][a8(0x17b)]=a8(0x1bf),N[a8(0x1c0)][a8(0x14a)]='white',N['style'][a8(0x1c7)]=a8(0x196),N['style']['fontSize']='12px',I['document']['body'][a8(0x1b7)](N);const O=new ViewportPathtracer(D);O[a8(0x1b2)](C,A),O[a8(0x177)](s[a8(0x16a)](),t['getValue']());const P=Math['max'](m,Math['min'](n,o['getValue']()));function Q(){const aa=a8;if(I[aa(0x171)]===!![])return;const R=Math[aa(0x19c)](O[aa(0x1d3)]())+0x1;R<P&&requestAnimationFrame(Q);O[aa(0x1b6)]();const S=Math[aa(0x19c)](R/P*0x64);N[aa(0x1cc)]=R+aa(0x15d)+P+aa(0x173)+S+'%\x20)',S===0x64&&(N[aa(0x1cc)]+='\x20✓');}Q();break;}this[a8(0x1dc)]();}),u[a6(0x1b7)](v['dom']);const w=new UIButton(e['getKey'](a6(0x14f)));w[a6(0x1e7)]('80px'),w['setMarginLeft']('8px'),w['onClick'](()=>this[a6(0x1dc)]()),u['appendChild'](w[a6(0x1a0)]);}[ab(0x1dc)](){const ac=ab;this[ac(0x1a0)]['remove']();}}function b(c,d){c=c-0x14a;const e=a();let f=e[c];return f;}class RenderVideoDialog{constructor(d,e){const ad=ab,f=document[ad(0x1d9)](ad(0x170));f['className']='Dialog',this[ad(0x1a0)]=f;const g=document[ad(0x1d9)](ad(0x170));g[ad(0x166)]='Dialog-background',g[ad(0x168)]('click',()=>this[ad(0x1dc)]()),f['appendChild'](g);const h=document[ad(0x1d9)](ad(0x170));h[ad(0x166)]=ad(0x16d),f[ad(0x1b7)](h);const i=document['createElement'](ad(0x170));i[ad(0x166)]=ad(0x1c6),i[ad(0x1cc)]=e[ad(0x179)]('menubar/render')+'\x20'+e[ad(0x179)]('menubar/render/video'),h['appendChild'](i);const j=document['createElement']('div');j[ad(0x166)]=ad(0x15b),h[ad(0x1b7)](j);function k(){const ae=ad;this[ae(0x189)](0x2*Math[ae(0x19c)](this[ae(0x16a)]()/0x2));}const l=new UIRow();j['appendChild'](l['dom']),l['add'](new UIText(e['getKey'](ad(0x14b)))['setClass']('Label'));const m=new UIInteger(0x400)[ad(0x1a1)]('center')['setWidth']('28px')[ad(0x1e8)](0x2)[ad(0x1ce)](k);l[ad(0x19f)](m),l[ad(0x19f)](new UIText('×')['setTextAlign'](ad(0x1cb))[ad(0x19a)](ad(0x1e1))[ad(0x1e7)](ad(0x1e1)));const n=new UIInteger(0x400)['setTextAlign']('center')['setWidth']('28px')['setStep'](0x2)['onChange'](k);l[ad(0x19f)](n);const o=new UIInteger(0x1e)['setTextAlign']('center')[ad(0x1e7)](ad(0x164));l['add'](o),l['add'](new UIText('fps')['setFontSize']('12px'));const p=new UIRow();p['add'](new UIText(e[ad(0x179)](ad(0x1e9)))['setClass']('Label')),j['appendChild'](p[ad(0x1a0)]);const q=new UIInteger(0xa);p['add'](q);const r=new UIRow();r[ad(0x19f)](new UIText(e[ad(0x179)](ad(0x17f)))['setClass']('Label')),j[ad(0x1b7)](r[ad(0x1a0)]);const s=new UISelect()[ad(0x1ad)]({'low':'Low','medium':ad(0x187),'high':ad(0x165),'ultra':'Ultra'})['setWidth'](ad(0x18f))[ad(0x189)]('high');r['add'](s);const t=document['createElement']('div');t['className']='Dialog-buttons',j['appendChild'](t);const u=new UIButton(e['getKey']('sidebar/project/render'));u['setWidth'](ad(0x195)),u['onClick'](async()=>{const af=ad,w=new APP['Player']();await w[af(0x1ba)](d['toJSON']()),w['setPixelRatio'](0x1),w[af(0x177)](m[af(0x16a)](),n['getValue']()),w[af(0x18c)](d['viewportColor']);const x=m[af(0x16a)]()/window['devicePixelRatio'],y=n[af(0x16a)]()/window['devicePixelRatio'],z=w[af(0x1eb)];z['style'][af(0x1dd)]=x+'px',z['style']['height']=y+'px';const A=(screen[af(0x1dd)]-x)/0x2,B=(screen[af(0x158)]-y)/0x2,C=window[af(0x1b1)]('',af(0x1b8),'location=no,left='+A+',top='+B+',width='+x+',height='+y),D=document[af(0x1d9)](af(0x1bc));D[af(0x15c)]='viewport',D['content']='width=device-width,\x20user-scalable=no,\x20minimum-scale=1.0,\x20maximum-scale=1.0',C[af(0x1b9)][af(0x190)]['appendChild'](D),C[af(0x1b9)][af(0x172)]['style']['background']=af(0x151),C['document']['body']['style'][af(0x1d0)]='0px',C['document']['body']['style']['overflow']=af(0x19b),C[af(0x1b9)]['body']['appendChild'](z);const E=document[af(0x1d9)](af(0x170));E['style'][af(0x1a9)]='absolute',E['style'][af(0x193)]='10px',E['style']['left']=af(0x1bf),E['style'][af(0x14a)]=af(0x180),E['style']['fontFamily']='system-ui',E['style']['fontSize']='12px',E[af(0x1c0)]['textShadow']=af(0x159),C['document'][af(0x172)]['appendChild'](E);const F=document[af(0x1d9)]('video');F[af(0x1dd)]=x,F[af(0x158)]=y,F['controls']=!![],F['loop']=!![],F['hidden']=!![],C['document'][af(0x172)]['appendChild'](F),C[af(0x168)](af(0x154),function(){const ag=af;F[ag(0x198)][ag(0x157)]('blob:')&&URL[ag(0x1a2)](F['src']);});const G=o['getValue'](),H=q[af(0x16a)](),I=H*G,J=[];let K=null;const L=new VideoEncoder({'output':(P,Q)=>{const ah=af;Q?.[ah(0x1da)]?.['description']&&(K=new Uint8Array(Q['decoderConfig']['description']));const R=new Uint8Array(P[ah(0x194)]);P[ah(0x1de)](R),J['push']({'data':R,'timestamp':P['timestamp'],'type':P[ah(0x1ec)]});},'error':P=>console['error'](af(0x162),P)}),M={'low':0x1e8480,'medium':0x4c4b40,'high':0x989680,'ultra':0x1312d00};L['configure']({'codec':af(0x1be),'width':m[af(0x16a)](),'height':n['getValue'](),'bitrate':M[s[af(0x16a)]()],'framerate':G,'avc':{'format':af(0x1e5)}});let N=0x0,O=![];for(let P=0x0;P<I;P++){if(C[af(0x171)]){O=!![];break;}w[af(0x17d)](N);const Q=await createImageBitmap(z),R=new VideoFrame(Q,{'timestamp':P*(0xf4240/G)});L[af(0x1ea)](R,{'keyFrame':P%G===0x0}),R[af(0x1dc)](),Q['close'](),N+=0x1/G;const S=Math['floor']((P+0x1)/I*0x64);E[af(0x1cc)]=P+0x1+'\x20/\x20'+I+'\x20(\x20'+S+af(0x14e);}if(!O){await L['flush'](),L['close'](),C[af(0x1b9)][af(0x172)]['removeChild'](z);const T=createMP4(J,K,m['getValue'](),n[af(0x16a)](),G);E[af(0x1cc)]=I+af(0x15d)+I+af(0x1db)+formatFileSize(T[af(0x194)])+'\x20✓',F[af(0x198)]=URL[af(0x1e3)](new Blob([T],{'type':'video/mp4'})),F[af(0x19b)]=![];}w['dispose'](),this[af(0x1dc)]();}),t[ad(0x1b7)](u['dom']);const v=new UIButton(e[ad(0x179)]('menubar/render/cancel'));v['setWidth'](ad(0x195)),v['setMarginLeft'](ad(0x1ab)),v[ad(0x156)](()=>this['close']()),t['appendChild'](v['dom']);}['close'](){const ai=ab;this[ai(0x1a0)][ai(0x1b3)]();}}function createMP4(d,e,f,g,h){const al=ab,j=0x15f90,k=j/h;function l(W){return new Uint8Array([W>>0x18&0xff,W>>0x10&0xff,W>>0x8&0xff,W&0xff]);}function m(W){return new Uint8Array([W>>0x8&0xff,W&0xff]);}function n(W){return new TextEncoder()['encode'](W);}function o(...W){const aj=b,X=W['reduce']((a0,a1)=>a0+a1[aj(0x176)],0x0),Y=new Uint8Array(X);let Z=0x0;for(const a0 of W){Y['set'](a0,Z),Z+=a0[aj(0x176)];}return Y;}function p(W,...X){const ak=b,Y=o(...X),Z=Y[ak(0x176)]+0x8;return o(l(Z),n(W),Y);}function q(W,X,Y,...Z){return p(W,new Uint8Array([X,Y>>0x10&0xff,Y>>0x8&0xff,Y&0xff]),...Z);}const r=p('ftyp',n(al(0x1d2)),l(0x200),n(al(0x1d2)),n('iso2'),n(al(0x1af)),n(al(0x1c1))),s=[],t=[];for(let W=0x0;W<d[al(0x176)];W++){s['push'](d[W]['data'][al(0x176)]);if(d[W]['type']===al(0x1a4))t[al(0x1cd)](W+0x1);}let u=0x8;for(const X of d)u+=X[al(0x1c4)][al(0x176)];const v=p(al(0x1af),new Uint8Array(0x6),m(0x1),new Uint8Array(0x10),m(f),m(g),l(0x480000),l(0x480000),l(0x0),m(0x1),new Uint8Array(0x20),m(0x18),new Uint8Array([0xff,0xff]),p('avcC',e)),w=q(al(0x150),0x0,0x0,l(0x1),v),x=q(al(0x1d5),0x0,0x0,l(0x1),l(d[al(0x176)]),l(k)),y=q('stsc',0x0,0x0,l(0x1),l(0x1),l(d[al(0x176)]),l(0x1)),z=[l(0x0),l(d['length'])];for(const Y of s)z['push'](l(Y));const A=q('stsz',0x0,0x0,...z),B=q('stco',0x0,0x0,l(0x1),l(0x0)),C=[l(t['length'])];for(const Z of t)C[al(0x1cd)](l(Z));const D=q(al(0x17a),0x0,0x0,...C),E=p('stbl',w,x,y,A,B,D),F=q(al(0x16c),0x0,0x0,l(0x1),q(al(0x178),0x0,0x1)),G=p(al(0x1a5),F),H=q('vmhd',0x0,0x1,new Uint8Array(0x8)),I=p('minf',H,G,E),J=q(al(0x167),0x0,0x0,l(0x0),n('vide'),new Uint8Array(0xc),n(al(0x155)),new Uint8Array(0x1)),K=d['length']*k,L=q(al(0x1bd),0x0,0x0,l(0x0),l(0x0),l(j),l(K),m(0x55c4),m(0x0)),M=p(al(0x1c9),L,J,I),N=q(al(0x1a6),0x0,0x3,l(0x0),l(0x0),l(0x1),l(0x0),l(K),new Uint8Array(0x8),m(0x0),m(0x0),m(0x0),m(0x0),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x40000000),l(f<<0x10),l(g<<0x10)),O=p('trak',N,M),P=q(al(0x16f),0x0,0x0,l(0x0),l(0x0),l(j),l(K),l(0x10000),m(0x100),new Uint8Array(0xa),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x40000000),new Uint8Array(0x18),l(0x2)),Q=p('moov',P,O),R=r[al(0x176)]+Q['length'],S=new Uint8Array(Q);for(let a0=0x0;a0<S['length']-0x10;a0++){if(S[a0]===0x73&&S[a0+0x1]===0x74&&S[a0+0x2]===0x63&&S[a0+0x3]===0x6f){const a1=R+0x8;S[a0+0xc]=a1>>0x18&0xff,S[a0+0xd]=a1>>0x10&0xff,S[a0+0xe]=a1>>0x8&0xff,S[a0+0xf]=a1&0xff;break;}}const T=l(u),U=new Uint8Array(r['length']+S[al(0x176)]+u);let V=0x0;U['set'](r,V),V+=r[al(0x176)],U['set'](S,V),V+=S['length'],U['set'](T,V),U['set'](n('mdat'),V+0x4),V+=0x8;for(const a2 of d){U[al(0x181)](a2['data'],V),V+=a2['data'][al(0x176)];}return U;}function formatFileSize(d,e=0x400){const am=ab;if(d===0x0)return'0B';const f=[d,d/e,d/e/e][am(0x1bb)](),g=['B','KB','MB']['reverse'](),h=f[am(0x1d8)](i=>i>=0x1);return new Intl[(am(0x1c8))]('en-us',{'useGrouping':!![],'maximumFractionDigits':0x1})[am(0x18e)](f[h])+g[h];}export{MenubarRender};
@@ -1 +1 @@
1
- (function(d,e){const j=b,f=d();while(!![]){try{const g=-parseInt(j(0xc1))/0x1*(-parseInt(j(0xcb))/0x2)+parseInt(j(0xc9))/0x3+-parseInt(j(0xc4))/0x4+parseInt(j(0xbd))/0x5+-parseInt(j(0xbc))/0x6*(parseInt(j(0xb8))/0x7)+-parseInt(j(0xba))/0x8+parseInt(j(0xb9))/0x9;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x2f759));function a(){const n=['menu\x20right','add','setOpacity','menubar/status/autosave','447405jkHMkB','4801419hkLmsC','1333192esBwFE','autosave','36MSjRhN','586360XlRUWR','signals','savingFinished','setClass','1ActAio','strings','setKey','588764UBzpvq','savingStarted','onChange','dispatch','getKey','721050egBoJM','setTextDecoration','1220HpDFbS','text','title'];a=function(){return n;};return a();}import*as c from'three';import{UIPanel,UIText}from'./libs/ui.js';import{UIBoolean}from'./libs/ui.three.js';function b(c,d){c=c-0xb7;const e=a();let f=e[c];return f;}function MenubarStatus(d){const k=b,e=d[k(0xc2)],f=new UIPanel();f['setClass'](k(0xce));const g=new UIBoolean(d['config'][k(0xc8)]('autosave'),e['getKey'](k(0xb7)));g[k(0xcc)]['setColor']('#888'),g[k(0xc6)](function(){const l=k,i=this['getValue']();d['config'][l(0xc3)](l(0xbb),i),i===!![]&&d['signals']['sceneGraphChanged'][l(0xc7)]();}),f['add'](g),d['signals'][k(0xc5)][k(0xcf)](function(){g['text']['setTextDecoration']('underline');}),d[k(0xbe)][k(0xbf)]['add'](function(){const m=k;g[m(0xcc)][m(0xca)]('none');});const h=new UIText('r'+c['REVISION']);return h[k(0xc0)](k(0xcd)),h[k(0xd0)](0.5),f['add'](h),f;}export{MenubarStatus};
1
+ (function(d,e){const j=b,f=d();while(!![]){try{const g=-parseInt(j(0x1dd))/0x1+-parseInt(j(0x1e5))/0x2+-parseInt(j(0x1d5))/0x3*(-parseInt(j(0x1d7))/0x4)+-parseInt(j(0x1dc))/0x5*(parseInt(j(0x1d6))/0x6)+parseInt(j(0x1e4))/0x7+-parseInt(j(0x1d3))/0x8+parseInt(j(0x1e3))/0x9*(parseInt(j(0x1e1))/0xa);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xddf2c));import*as c from'three';function a(){const o=['340sfIjTJ','autosave','setTextDecoration','add','none','20xQDqGh','486688PaNusB','text','signals','savingFinished','1195550NCbzHJ','title','18VdyOEv','10325308VJFEHa','636938DnNWGX','setClass','6914264ERYfoL','config','61734gvBniK','1327116msdbPR'];a=function(){return o;};return a();}import{UIPanel,UIText}from'./libs/ui.js';function b(c,d){c=c-0x1d2;const e=a();let f=e[c];return f;}import{UIBoolean}from'./libs/ui.three.js';function MenubarStatus(d){const k=b,e=d['strings'],f=new UIPanel();f['setClass']('menu\x20right');const g=new UIBoolean(d['config']['getKey'](k(0x1d8)),e['getKey']('menubar/status/autosave'));g[k(0x1de)]['setColor']('#888'),g['onChange'](function(){const l=k,i=this['getValue']();d[l(0x1d4)]['setKey']('autosave',i),i===!![]&&d['signals']['sceneGraphChanged']['dispatch']();}),f['add'](g),d[k(0x1df)]['savingStarted'][k(0x1da)](function(){const m=k;g[m(0x1de)]['setTextDecoration']('underline');}),d[k(0x1df)][k(0x1e0)][k(0x1da)](function(){const n=k;g['text'][n(0x1d9)](n(0x1db));});const h=new UIText('r'+c['REVISION']);return h[k(0x1d2)](k(0x1e2)),h['setOpacity'](0.5),f[k(0x1da)](h),f;}export{MenubarStatus};
@@ -1 +1 @@
1
- (function(c,d){const o=b,e=c();while(!![]){try{const f=parseInt(o(0x1c7))/0x1+parseInt(o(0x1a3))/0x2*(-parseInt(o(0x1ca))/0x3)+parseInt(o(0x1be))/0x4+-parseInt(o(0x1ae))/0x5*(parseInt(o(0x1cc))/0x6)+parseInt(o(0x1b8))/0x7+-parseInt(o(0x1b9))/0x8*(-parseInt(o(0x1c3))/0x9)+-parseInt(o(0x1b7))/0xa*(-parseInt(o(0x1c8))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xe70ff));import{UIHorizontalRule,UIPanel,UIRow}from'./libs/ui.js';function a(){const A=['menubar/view','option','skeletonHelpers','10TFSEaw','gridHelper','enterXR','then','menubar/view/skeletonHelpers','dispatch','options','toggle-on','menu','2130WCqTNM','9254056lalQSE','2880448uuDlfJ','webkitExitFullscreen','offerXR','getKey','offerSession','2487580eGSSCU','lightHelpers','toggle','addClass','onClick','9QxpRtg','requestFullscreen','cameraHelpers','add','213389ntvVAK','12474mRNuyW','signals','2517tAkonn','exitFullscreen','5152956GJAqxb','webkitFullscreenElement','title','226uIBTlD','setClass','immersive-ar','showHelpersChanged','toggleClass','setTextContent','fullscreenElement','isSessionSupported'];a=function(){return A;};return a();}function b(c,d){c=c-0x1a2;const e=a();let f=e[c];return f;}function MenubarView(c){const p=b,d=c[p(0x1c9)],e=c['strings'],f=new UIPanel();f['setClass'](p(0x1b6));const g=new UIPanel();g[p(0x1a4)](p(0x1a2)),g['setTextContent'](e[p(0x1bc)](p(0x1ab))),f[p(0x1c6)](g);const h=new UIPanel();h[p(0x1a4)](p(0x1b4)),f['add'](h);const i={'gridHelper':!![],'cameraHelpers':!![],'lightHelpers':!![],'skeletonHelpers':!![]};let j=new UIRow()['addClass'](p(0x1ac))['addClass'](p(0x1c0))[p(0x1a8)](e['getKey']('menubar/view/gridHelper'))['onClick'](function(){const q=p;i['gridHelper']=!i[q(0x1af)],this['toggleClass']('toggle-on',i['gridHelper']),d[q(0x1a6)][q(0x1b3)](i);})[p(0x1a7)](p(0x1b5),i[p(0x1af)]);return h[p(0x1c6)](j),j=new UIRow()[p(0x1c1)](p(0x1ac))[p(0x1c1)](p(0x1c0))[p(0x1a8)](e['getKey']('menubar/view/cameraHelpers'))['onClick'](function(){const r=p;i[r(0x1c5)]=!i[r(0x1c5)],this['toggleClass']('toggle-on',i[r(0x1c5)]),d['showHelpersChanged']['dispatch'](i);})['toggleClass']('toggle-on',i['cameraHelpers']),h['add'](j),j=new UIRow()[p(0x1c1)]('option')['addClass']('toggle')['setTextContent'](e[p(0x1bc)]('menubar/view/lightHelpers'))['onClick'](function(){const s=p;i['lightHelpers']=!i[s(0x1bf)],this[s(0x1a7)]('toggle-on',i['lightHelpers']),d['showHelpersChanged']['dispatch'](i);})['toggleClass'](p(0x1b5),i[p(0x1bf)]),h[p(0x1c6)](j),j=new UIRow()[p(0x1c1)]('option')['addClass'](p(0x1c0))['setTextContent'](e[p(0x1bc)](p(0x1b2)))[p(0x1c2)](function(){const t=p;i[t(0x1ad)]=!i['skeletonHelpers'],this[t(0x1a7)](t(0x1b5),i[t(0x1ad)]),d[t(0x1a6)][t(0x1b3)](i);})[p(0x1a7)]('toggle-on',i['skeletonHelpers']),h['add'](j),d['helperAdded']['add'](function(){const u=p;d[u(0x1a6)]['dispatch'](i);}),h['add'](new UIHorizontalRule()),j=new UIRow(),j[p(0x1a4)](p(0x1ac)),j[p(0x1a8)](e[p(0x1bc)]('menubar/view/fullscreen')),j['onClick'](function(){const v=p;if(document[v(0x1a9)]===null)document['documentElement'][v(0x1c4)]();else document[v(0x1cb)]&&document['exitFullscreen']();if(document[v(0x1cd)]===null)document['documentElement']['webkitRequestFullscreen']();else document[v(0x1ba)]&&document['webkitExitFullscreen']();}),h[p(0x1c6)](j),'xr'in navigator&&(p(0x1bd)in navigator['xr']?d[p(0x1bb)][p(0x1b3)](p(0x1a5)):navigator['xr']['isSessionSupported']('immersive-ar')['then'](function(k){const w=p;if(k){const l=new UIRow();l[w(0x1a4)](w(0x1ac)),l[w(0x1a8)]('AR'),l['onClick'](function(){const x=w;d[x(0x1b0)][x(0x1b3)](x(0x1a5));}),h[w(0x1c6)](l);}else navigator['xr'][w(0x1aa)]('immersive-vr')[w(0x1b1)](function(m){const y=w;if(m){const n=new UIRow();n[y(0x1a4)](y(0x1ac)),n[y(0x1a8)]('VR'),n['onClick'](function(){const z=y;d['enterXR'][z(0x1b3)]('immersive-vr');}),h[y(0x1c6)](n);}});})),f;}export{MenubarView};
1
+ (function(c,d){const o=b,e=c();while(!![]){try{const f=-parseInt(o(0x1aa))/0x1+parseInt(o(0x1bc))/0x2*(-parseInt(o(0x1c8))/0x3)+-parseInt(o(0x1b1))/0x4*(parseInt(o(0x1bf))/0x5)+parseInt(o(0x1b9))/0x6*(-parseInt(o(0x1b0))/0x7)+parseInt(o(0x1d0))/0x8*(-parseInt(o(0x1b3))/0x9)+parseInt(o(0x1c1))/0xa*(-parseInt(o(0x1c4))/0xb)+parseInt(o(0x1b8))/0xc;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xdf7b2));function b(c,d){c=c-0x1a4;const e=a();let f=e[c];return f;}import{UIHorizontalRule,UIPanel,UIRow}from'./libs/ui.js';function MenubarView(c){const p=b,d=c[p(0x1a9)],e=c[p(0x1be)],f=new UIPanel();f[p(0x1ca)](p(0x1c3));const g=new UIPanel();g['setClass']('title'),g['setTextContent'](e['getKey'](p(0x1b6))),f[p(0x1c6)](g);const h=new UIPanel();h['setClass'](p(0x1bd)),f['add'](h);const i={'gridHelper':!![],'cameraHelpers':!![],'lightHelpers':!![],'skeletonHelpers':!![]};let j=new UIRow()[p(0x1ac)](p(0x1cf))['addClass']('toggle')['setTextContent'](e[p(0x1cd)](p(0x1ce)))['onClick'](function(){const q=p;i[q(0x1c5)]=!i['gridHelper'],this['toggleClass']('toggle-on',i[q(0x1c5)]),d[q(0x1ae)]['dispatch'](i);})['toggleClass'](p(0x1cb),i[p(0x1c5)]);return h['add'](j),j=new UIRow()['addClass'](p(0x1cf))['addClass'](p(0x1bb))[p(0x1a5)](e['getKey']('menubar/view/cameraHelpers'))['onClick'](function(){const r=p;i['cameraHelpers']=!i[r(0x1ab)],this['toggleClass']('toggle-on',i[r(0x1ab)]),d['showHelpersChanged']['dispatch'](i);})['toggleClass'](p(0x1cb),i['cameraHelpers']),h['add'](j),j=new UIRow()[p(0x1ac)](p(0x1cf))['addClass']('toggle')[p(0x1a5)](e['getKey'](p(0x1a4)))[p(0x1b7)](function(){const s=p;i[s(0x1ba)]=!i['lightHelpers'],this['toggleClass']('toggle-on',i['lightHelpers']),d[s(0x1ae)][s(0x1a8)](i);})[p(0x1c7)]('toggle-on',i['lightHelpers']),h['add'](j),j=new UIRow()['addClass'](p(0x1cf))[p(0x1ac)]('toggle')['setTextContent'](e[p(0x1cd)]('menubar/view/skeletonHelpers'))[p(0x1b7)](function(){const t=p;i['skeletonHelpers']=!i[t(0x1c9)],this[t(0x1c7)]('toggle-on',i['skeletonHelpers']),d['showHelpersChanged']['dispatch'](i);})['toggleClass']('toggle-on',i['skeletonHelpers']),h['add'](j),d[p(0x1b4)]['add'](function(){const u=p;d['showHelpersChanged'][u(0x1a8)](i);}),h['add'](new UIHorizontalRule()),j=new UIRow(),j[p(0x1ca)](p(0x1cf)),j['setTextContent'](e[p(0x1cd)](p(0x1d1))),j[p(0x1b7)](function(){const v=p;if(document['fullscreenElement']===null)document[v(0x1af)]['requestFullscreen']();else document[v(0x1cc)]&&document[v(0x1cc)]();if(document['webkitFullscreenElement']===null)document['documentElement'][v(0x1a7)]();else document['webkitExitFullscreen']&&document['webkitExitFullscreen']();}),h[p(0x1c6)](j),'xr'in navigator&&(p(0x1c0)in navigator['xr']?d[p(0x1b2)][p(0x1a8)](p(0x1b5)):navigator['xr'][p(0x1c2)]('immersive-ar')['then'](function(k){const w=p;if(k){const l=new UIRow();l[w(0x1ca)]('option'),l['setTextContent']('AR'),l['onClick'](function(){const x=w;d['enterXR'][x(0x1a8)]('immersive-ar');}),h['add'](l);}else navigator['xr']['isSessionSupported'](w(0x1ad))[w(0x1a6)](function(m){const y=w;if(m){const n=new UIRow();n['setClass']('option'),n['setTextContent']('VR'),n[y(0x1b7)](function(){const z=y;d['enterXR']['dispatch'](z(0x1ad));}),h[y(0x1c6)](n);}});})),f;}export{MenubarView};function a(){const A=['4mrpQuV','options','strings','425105MGaCvK','offerSession','4710mQqirO','isSessionSupported','menu','12353adnYLK','gridHelper','add','toggleClass','1138926jNUAkG','skeletonHelpers','setClass','toggle-on','exitFullscreen','getKey','menubar/view/gridHelper','option','4096FahsfH','menubar/view/fullscreen','menubar/view/lightHelpers','setTextContent','then','webkitRequestFullscreen','dispatch','signals','973690GELtPp','cameraHelpers','addClass','immersive-vr','showHelpersChanged','documentElement','10721375NoRasq','8EmooQj','offerXR','22671wLrxbw','helperAdded','immersive-ar','menubar/view','onClick','74024160icQqIj','6aKHwLJ','lightHelpers','toggle'];a=function(){return A;};return a();}
@@ -1 +1 @@
1
- function b(c,d){c=c-0xf2;const e=a();let f=e[c];return f;}function a(){const j=['7649410JPFcUE','1276680dxBhzh','40mulWHG','1305297wfrnuS','76468cVVzcC','add','1701267pQcmsi','671Dcztkw','setId','12YUYvGT','638057EoPUGA','235356BvQebC','16AhGXcM','8difRzn'];a=function(){return j;};return a();}(function(c,d){const h=b,e=c();while(!![]){try{const f=parseInt(h(0xf8))/0x1*(parseInt(h(0xf2))/0x2)+-parseInt(h(0xfa))/0x3+-parseInt(h(0xf3))/0x4*(-parseInt(h(0xf5))/0x5)+parseInt(h(0xfd))/0x6*(parseInt(h(0xfe))/0x7)+parseInt(h(0xf6))/0x8*(-parseInt(h(0xf7))/0x9)+-parseInt(h(0xf4))/0xa+parseInt(h(0xfb))/0xb*(parseInt(h(0xff))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x6c60c));import{UIPanel}from'./libs/ui.js';import{MenubarAdd}from'./Menubar.Add.js';import{MenubarEdit}from'./Menubar.Edit.js';import{MenubarFile}from'./Menubar.File.js';import{MenubarView}from'./Menubar.View.js';import{MenubarRender}from'./Menubar.Render.js';import{MenubarHelp}from'./Menubar.Help.js';import{MenubarStatus}from'./Menubar.Status.js';function Menubar(c){const i=b,d=new UIPanel();return d[i(0xfc)]('menubar'),d['add'](new MenubarFile(c)),d[i(0xf9)](new MenubarEdit(c)),d[i(0xf9)](new MenubarAdd(c)),d[i(0xf9)](new MenubarView(c)),d['add'](new MenubarRender(c)),d[i(0xf9)](new MenubarHelp(c)),d['add'](new MenubarStatus(c)),d;}export{Menubar};
1
+ (function(c,d){const h=b,e=c();while(!![]){try{const f=-parseInt(h(0x173))/0x1*(parseInt(h(0x176))/0x2)+parseInt(h(0x16e))/0x3*(-parseInt(h(0x16a))/0x4)+-parseInt(h(0x175))/0x5+-parseInt(h(0x171))/0x6*(parseInt(h(0x16b))/0x7)+parseInt(h(0x16d))/0x8*(-parseInt(h(0x170))/0x9)+parseInt(h(0x174))/0xa*(parseInt(h(0x169))/0xb)+-parseInt(h(0x16c))/0xc*(-parseInt(h(0x177))/0xd);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x65a02));import{UIPanel}from'./libs/ui.js';import{MenubarAdd}from'./Menubar.Add.js';function b(c,d){c=c-0x169;const e=a();let f=e[c];return f;}import{MenubarEdit}from'./Menubar.Edit.js';import{MenubarFile}from'./Menubar.File.js';import{MenubarView}from'./Menubar.View.js';import{MenubarRender}from'./Menubar.Render.js';import{MenubarHelp}from'./Menubar.Help.js';import{MenubarStatus}from'./Menubar.Status.js';function a(){const j=['112DPvyPc','2292ohKrfe','648CbwBmH','117345gAUTdc','add','6219cNsQZi','60870iQQUjv','setId','410359mCPnro','488980eGpwet','1114740YSZVSK','2DrnYCb','133549zghKoX','11CEBUGb','76EACGfm'];a=function(){return j;};return a();}function Menubar(c){const i=b,d=new UIPanel();return d[i(0x172)]('menubar'),d['add'](new MenubarFile(c)),d['add'](new MenubarEdit(c)),d['add'](new MenubarAdd(c)),d['add'](new MenubarView(c)),d[i(0x16f)](new MenubarRender(c)),d['add'](new MenubarHelp(c)),d[i(0x16f)](new MenubarStatus(c)),d;}export{Menubar};
@@ -1 +1 @@
1
- (function(c,d){const h=b,e=c();while(!![]){try{const f=-parseInt(h(0x8a))/0x1+-parseInt(h(0x98))/0x2+-parseInt(h(0x8b))/0x3*(parseInt(h(0x8e))/0x4)+parseInt(h(0x88))/0x5+parseInt(h(0x8d))/0x6*(parseInt(h(0x86))/0x7)+parseInt(h(0x96))/0x8+parseInt(h(0x93))/0x9*(parseInt(h(0x92))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x467cc));import{UIPanel}from'./libs/ui.js';function a(){const n=['137994kgqXru','4GWmwoi','stopPlayer','setId','startPlayer','698580PFyBfd','81ZRHknn','add','dom','1607888kGZBmk','clientHeight','909156ijiwEJ','setSize','setDisplay','stop','28ZAMCDx','clientWidth','1317805VcouRE','toJSON','190156kKvuaV','755445biaqDV','play'];a=function(){return n;};return a();}function b(c,d){c=c-0x83;const e=a();let f=e[c];return f;}import{APP}from'./libs/app.js';function Player(c){const i=b,d=c['signals'],e=new UIPanel();e[i(0x90)]('player'),e['setPosition']('absolute'),e[i(0x84)]('none');const f=new APP['Player']();return e[i(0x95)]['appendChild'](f['dom']),window['addEventListener']('resize',function(){const j=i;f['setSize'](e['dom'][j(0x87)],e[j(0x95)][j(0x97)]);}),d['windowResize']['add'](function(){const k=i;f[k(0x83)](e[k(0x95)][k(0x87)],e[k(0x95)][k(0x97)]);}),d[i(0x91)][i(0x94)](async function(){const l=i;e[l(0x84)](''),await f['load'](c[l(0x89)]()),f['setSize'](e['dom'][l(0x87)],e['dom']['clientHeight']),f[l(0x8c)]();}),d[i(0x8f)][i(0x94)](function(){const m=i;e[m(0x84)]('none'),f[m(0x85)](),f['dispose']();}),e;}export{Player};
1
+ function a(){const n=['dom','976380DDUREB','play','absolute','clientWidth','signals','resize','clientHeight','3756234rrCtRZ','add','12kBXfMJ','1447257mMnJHI','setDisplay','none','startPlayer','8PjaIcl','18101439fiUpgP','windowResize','toJSON','3166310qiVWPA','setSize','appendChild','907498qunsss','8700706Qyxjez','stop','setPosition'];a=function(){return n;};return a();}(function(c,d){const h=b,e=c();while(!![]){try{const f=parseInt(h(0x1df))/0x1+parseInt(h(0x1e4))/0x2+parseInt(h(0x1ee))/0x3*(parseInt(h(0x1ed))/0x4)+parseInt(h(0x1dc))/0x5+parseInt(h(0x1eb))/0x6+-parseInt(h(0x1e0))/0x7+-parseInt(h(0x1f2))/0x8*(parseInt(h(0x1f3))/0x9);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xcf091));import{UIPanel}from'./libs/ui.js';import{APP}from'./libs/app.js';function b(c,d){c=c-0x1da;const e=a();let f=e[c];return f;}function Player(c){const i=b,d=c[i(0x1e8)],e=new UIPanel();e['setId']('player'),e[i(0x1e2)](i(0x1e6)),e[i(0x1ef)]('none');const f=new APP['Player']();return e[i(0x1e3)][i(0x1de)](f[i(0x1e3)]),window['addEventListener'](i(0x1e9),function(){const j=i;f['setSize'](e[j(0x1e3)]['clientWidth'],e[j(0x1e3)]['clientHeight']);}),d[i(0x1da)][i(0x1ec)](function(){const k=i;f[k(0x1dd)](e['dom']['clientWidth'],e['dom']['clientHeight']);}),d[i(0x1f1)]['add'](async function(){const l=i;e['setDisplay'](''),await f['load'](c[l(0x1db)]()),f[l(0x1dd)](e['dom'][l(0x1e7)],e['dom'][l(0x1ea)]),f[l(0x1e5)]();}),d['stopPlayer']['add'](function(){const m=i;e[m(0x1ef)](m(0x1f0)),f[m(0x1e1)](),f['dispose']();}),e;}export{Player};
@@ -1 +1 @@
1
- (function(c,d){const p=b,e=c();while(!![]){try{const f=-parseInt(p(0x9c))/0x1*(-parseInt(p(0x94))/0x2)+-parseInt(p(0x9e))/0x3*(parseInt(p(0x8e))/0x4)+-parseInt(p(0x9f))/0x5+-parseInt(p(0x98))/0x6*(parseInt(p(0xa7))/0x7)+-parseInt(p(0x8f))/0x8*(-parseInt(p(0x92))/0x9)+-parseInt(p(0xa8))/0xa*(parseInt(p(0xa0))/0xb)+-parseInt(p(0x9a))/0xc;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x80a43));import{UIElement}from'./libs/ui.js';function b(c,d){c=c-0x8c;const e=a();let f=e[c];return f;}function Resizer(c){const q=b,d=c['signals'],e=document['createElement']('div');e['id']=q(0xa1);function f(i){const r=q;if(i[r(0x9b)]===![])return;e['ownerDocument']['addEventListener']('pointermove',h),e[r(0x97)]['addEventListener'](r(0xaa),g);}function g(i){const s=q;if(i['isPrimary']===![])return;e['ownerDocument']['removeEventListener'](s(0x8c),h),e[s(0x97)][s(0x99)]('pointerup',g);}function h(i){const t=q;if(i[t(0x9b)]===![])return;const j=document['body'][t(0x93)],k=i[t(0x95)],l=k<0x0?0x0:k>j?j:k,m=Math[t(0x90)](0x14f,j-l);e[t(0xa9)][t(0x91)]=m+'px',document['getElementById']('sidebar')[t(0xa9)][t(0x96)]=m+'px',document['getElementById'](t(0xa2))[t(0xa9)][t(0x91)]=m+'px',document[t(0x9d)](t(0xa5))[t(0xa9)]['right']=m+'px',document['getElementById'](t(0xa4))[t(0xa9)][t(0x91)]=m+'px',document['getElementById']('animation')[t(0xa9)][t(0x91)]=m+'px',document[t(0x9d)](t(0x8d))['style']['right']=m+'px';const n=document['getElementById'](t(0xa6)),o=j-m;n['style']['left']=o/0x2+'px',d['windowResize'][t(0xa3)]();}return e['addEventListener']('pointerdown',f),new UIElement(e);}function a(){const u=['removeEventListener','10319424RldpVV','isPrimary','1003473kjkeiO','getElementById','15DNZBVQ','1524150SKRyIG','187gWFxdQ','resizer','player','dispatch','viewport','script','toolbar','14dKhpnj','81970NMqCtD','style','pointerup','pointermove','animation-resizer','24636gJFopL','399048VnHgTr','max','right','162AVGNwt','offsetWidth','2PoohQL','clientX','width','ownerDocument','118470PohTXj'];a=function(){return u;};return a();}export{Resizer};
1
+ function b(c,d){c=c-0x1d6;const e=a();let f=e[c];return f;}(function(c,d){const p=b,e=c();while(!![]){try{const f=parseInt(p(0x1e0))/0x1*(-parseInt(p(0x1ef))/0x2)+-parseInt(p(0x1ec))/0x3+parseInt(p(0x1e3))/0x4+-parseInt(p(0x1e2))/0x5+parseInt(p(0x1e8))/0x6*(parseInt(p(0x1e1))/0x7)+parseInt(p(0x1de))/0x8*(parseInt(p(0x1db))/0x9)+parseInt(p(0x1d8))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x1bff1));import{UIElement}from'./libs/ui.js';function Resizer(c){const q=b,d=c['signals'],e=document['createElement']('div');e['id']=q(0x1df);function f(i){const r=q;if(i[r(0x1ee)]===![])return;e['ownerDocument']['addEventListener']('pointermove',h),e['ownerDocument']['addEventListener'](r(0x1d7),g);}function g(i){const s=q;if(i[s(0x1ee)]===![])return;e['ownerDocument']['removeEventListener'](s(0x1e9),h),e[s(0x1e4)]['removeEventListener'](s(0x1d7),g);}function h(i){const t=q;if(i[t(0x1ee)]===![])return;const j=document['body']['offsetWidth'],k=i[t(0x1e5)],l=k<0x0?0x0:k>j?j:k,m=Math[t(0x1d6)](0x14f,j-l);e[t(0x1ed)][t(0x1e7)]=m+'px',document['getElementById']('sidebar')['style']['width']=m+'px',document['getElementById'](t(0x1ea))[t(0x1ed)]['right']=m+'px',document['getElementById'](t(0x1da))['style']['right']=m+'px',document['getElementById']('viewport')[t(0x1ed)]['right']=m+'px',document['getElementById'](t(0x1d9))[t(0x1ed)]['right']=m+'px',document[t(0x1dc)](t(0x1eb))[t(0x1ed)]['right']=m+'px';const n=document[t(0x1dc)]('toolbar'),o=j-m;n[t(0x1ed)]['left']=o/0x2+'px',d[t(0x1dd)][t(0x1e6)]();}return e['addEventListener']('pointerdown',f),new UIElement(e);}function a(){const u=['87927gUwtkY','562885lTelmb','589252crnoHC','ownerDocument','clientX','dispatch','right','18FFnnfE','pointermove','player','animation-resizer','550500ULraRG','style','isPrimary','6MmNQXZ','max','pointerup','2512910DkWwAv','animation','script','576apdiXz','getElementById','windowResize','11200WAcETG','resizer','38379SftDYd'];a=function(){return u;};return a();}export{Resizer};
@@ -1 +1 @@
1
- (function(d,e){const U=b,f=d();while(!![]){try{const g=-parseInt(U(0x207))/0x1+-parseInt(U(0x1e1))/0x2*(parseInt(U(0x215))/0x3)+parseInt(U(0x21a))/0x4*(-parseInt(U(0x210))/0x5)+-parseInt(U(0x218))/0x6+parseInt(U(0x1d1))/0x7+parseInt(U(0x1fd))/0x8+parseInt(U(0x1e3))/0x9;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x94723));import{UIElement,UIPanel,UIText}from'./libs/ui.js';import{SetScriptValueCommand}from'./commands/SetScriptValueCommand.js';import{SetMaterialValueCommand}from'./commands/SetMaterialValueCommand.js';import c from'./libs/tern-threejs/build-defs.js';function b(c,d){c=c-0x1d1;const e=a();let f=e[c];return f;}function Script(d){const V=b,e=d[V(0x21f)],f=d[V(0x1d8)],g=new UIPanel();g['setId'](V(0x1f4)),g['setPosition'](V(0x217)),g['setBackgroundColor']('#272822'),g['setDisplay']('none');if(typeof CodeMirror==='undefined')return e[V(0x1f6)]['add'](function(){const W=V;g[W(0x1d7)]('none');}),g;const h=new UIPanel();h['setPadding']('10px'),g['add'](h);const i=new UIText()[V(0x211)](V(0x1d4));h[V(0x1df)](i);const j=(function(){const X=V,z=document[X(0x221)]('http://www.w3.org/2000/svg',X(0x204));z['setAttribute']('width',0x20),z[X(0x219)](X(0x203),0x20);const A=document[X(0x221)]('http://www.w3.org/2000/svg','path');return A[X(0x219)]('d','M\x2012,12\x20L\x2022,22\x20M\x2022,12\x2012,22'),A[X(0x219)]('stroke','#fff'),z['appendChild'](A),z;}()),k=new UIElement(j);k['setPosition']('absolute'),k['setTop'](V(0x20a)),k[V(0x20e)](V(0x209)),k['setCursor'](V(0x1e7)),k['onClick'](function(){const Y=V;g['setDisplay'](Y(0x1ee));}),h['add'](k);let l;e[V(0x224)][V(0x1df)](function(z){l=z;});let m,n,o,p;const q=CodeMirror(g['dom'],{'value':'','lineNumbers':!![],'matchBrackets':!![],'indentWithTabs':!![],'tabSize':0x4,'indentUnit':0x4,'hintOptions':{'completeSingle':![]}});q[V(0x200)]('theme',V(0x21c)),q['on'](V(0x214),function(){if(q['state']['focused']===![])return;clearTimeout(m),m=setTimeout(function(){const Z=b,z=q['getValue']();if(!u(z))return;if(typeof o==='object'){z!==o[Z(0x206)]&&d['execute'](new SetScriptValueCommand(d,p,o,Z(0x206),z));return;}if(o!==Z(0x1f5))return;const A=JSON['parse'](z);if(JSON['stringify'](p['material']['defines'])!==JSON[Z(0x21e)](A[Z(0x1d3)])){const B=new SetMaterialValueCommand(d,p,'defines',A[Z(0x1d3)]);B[Z(0x20c)]=![],d[Z(0x1f1)](B);}if(JSON['stringify'](p[Z(0x1f3)][Z(0x1f9)])!==JSON[Z(0x21e)](A['uniforms'])){const C=new SetMaterialValueCommand(d,p,'uniforms',A['uniforms']);C[Z(0x20c)]=![],d[Z(0x1f1)](C);}if(JSON[Z(0x21e)](p[Z(0x1f3)][Z(0x21d)])!==JSON[Z(0x21e)](A['attributes'])){const D=new SetMaterialValueCommand(d,p,'attributes',A[Z(0x21d)]);D['updatable']=![],d['execute'](D);}},0x12c);});const r=q['getWrapperElement']();r[V(0x202)]('keydown',function(z){const a0=V;z[a0(0x1da)]();});const s=[],t=[],u=function(z){const a1=V;let A,B=[];return q[a1(0x1d6)](function(){const a2=a1;while(s['length']>0x0){q['removeLineClass'](s['shift'](),a2(0x222),'errorLine');}while(t[a2(0x1e0)]>0x0){q[a2(0x212)](t['shift']());}switch(n){case'javascript':try{const E=esprima[a2(0x1e6)](z,{'tolerant':!![]});B=E['errors'];}catch(F){B['push']({'lineNumber':F['lineNumber']-0x1,'message':F['message']});}for(let G=0x0;G<B[a2(0x1e0)];G++){const H=B[G];H['message']=H['message'][a2(0x1eb)](/Line [0-9]+: /,'');}break;case a2(0x1ff):B=[],jsonlint[a2(0x1e5)]=function(I,J){const a3=a2;I=I['split']('\x0a')[0x3],B[a3(0x225)]({'lineNumber':J[a3(0x1dd)]['first_line']-0x1,'message':I});};try{jsonlint[a2(0x1e6)](z);}catch(I){}break;case a2(0x20d):p[a2(0x1f3)][o]=z,p['material'][a2(0x226)]=!![],e[a2(0x1fb)][a2(0x223)](p,0x0);const C=l[a2(0x1db)]['programs'];A=!![];const D=/^(?:ERROR|WARNING): \d+:(\d+): (.*)/g;for(let J=0x0,K=C[a2(0x1e0)];J!==K;++J){const L=C[J]['diagnostics'];if(L===undefined||L['material']!==p[a2(0x1f3)])continue;if(!L['runnable'])A=![];const M=L[o],N=M['prefix'][a2(0x1f2)](/\r\n|\r|\n/)[a2(0x1e0)];while(!![]){const O=D[a2(0x1d2)](M['log']);if(O===null)break;B['push']({'lineNumber':O[0x1]-N,'message':O[0x2]});}break;}}for(let P=0x0;P<B['length'];P++){const Q=B[P],R=document['createElement']('div');R[a2(0x213)]=a2(0x220),R[a2(0x1fa)]=Q[a2(0x1e8)];const S=Math['max'](Q['lineNumber'],0x0);s['push'](S),q['addLineClass'](S,a2(0x222),a2(0x1fe));const T=q['addLineWidget'](S,R);t['push'](T);}return A!==undefined?A:B[a2(0x1e0)]===0x0;});},v=new CodeMirror[(V(0x208))]({'caseInsensitive':!![]});let w=![];async function x(){const a4=V;if(w)return;w=!![];try{const z=new URL('../build/three.core.js',document[a4(0x1ed)])[a4(0x1f8)],A=await(await fetch(z))['text']();v['server']['defs']['push'](c(A)),v['server'][a4(0x1e9)]();}catch(B){console[a4(0x20f)]('Script:\x20Failed\x20to\x20build\x20three.js\x20autocomplete\x20defs.',B);}}q['setOption'](V(0x21b),{'Ctrl-Space':function(z){v['complete'](z);},'Ctrl-I':function(z){v['showType'](z);},'Ctrl-O':function(z){const a5=V;v[a5(0x1d5)](z);},'Alt-.':function(z){const a6=V;v[a6(0x1e2)](z);},'Alt-,':function(z){const a7=V;v[a7(0x1ec)](z);},'Ctrl-Q':function(z){const a8=V;v[a8(0x1fc)](z);},'Ctrl-.':function(z){v['selectName'](z);}}),q['on']('cursorActivity',function(z){const a9=V;if(n!==a9(0x1ea))return;v['updateArgHints'](z);}),q['on']('keypress',function(z,A){const aa=V;if(n!==aa(0x1ea))return;/[\w\.]/[aa(0x1d2)](A['key'])&&v[aa(0x1ef)](z);}),e['editorCleared'][V(0x1df)](function(){const ab=V;g['setDisplay'](ab(0x1ee));});function y(z,A){const ac=V;if(typeof A==='object')i[ac(0x1e4)](z[ac(0x205)]+'\x20/\x20'+A[ac(0x205)]);else switch(A){case ac(0x20b):i[ac(0x1e4)](z[ac(0x1f3)]['name']+ac(0x1f7)+f[ac(0x1f0)](ac(0x1de)));break;case ac(0x216):i['setValue'](z[ac(0x1f3)]['name']+ac(0x1f7)+f[ac(0x1f0)]('script/title/fragmentShader'));break;case ac(0x1f5):i[ac(0x1e4)](z[ac(0x1f3)][ac(0x205)]+'\x20/\x20'+f['getKey'](ac(0x201)));break;default:throw new Error(ac(0x1d9));}}return e['editScript']['add'](function(z,A){const ad=V;let B,C;if(typeof A===ad(0x1dc))B=ad(0x1ea),C=A['source'];else switch(A){case'vertexShader':B='glsl',C=z['material']['vertexShader']||'';break;case'fragmentShader':B=ad(0x20d),C=z[ad(0x1f3)]['fragmentShader']||'';break;case ad(0x1f5):B=ad(0x1ff);const D={'defines':z['material']['defines'],'uniforms':z[ad(0x1f3)][ad(0x1f9)],'attributes':z[ad(0x1f3)]['attributes']};C=JSON[ad(0x21e)](D,null,'\x09');break;default:throw new Error('editScript:\x20Unknown\x20script');}y(z,A),n=B,o=A,p=z;if(B===ad(0x1ea))x();g[ad(0x1d7)](''),q[ad(0x1e4)](C),q['clearHistory']();if(B===ad(0x1ff))B={'name':ad(0x1ea),'json':!![]};q['setOption']('mode',B);}),e['scriptRemoved']['add'](function(z){o===z&&g['setDisplay']('none');}),e['objectChanged'][V(0x1df)](function(z){if(z!==p)return;if(['programInfo','vertexShader','fragmentShader']['includes'](o))return;y(p,o);}),e['scriptChanged'][V(0x1df)](function(z){z===o&&y(p,o);}),e['materialChanged'][V(0x1df)](function(z){if(z!==p)return;y(p,o);}),g;}function a(){const ae=['length','100258erOltS','jumpToDef','19096002yJDAop','setValue','parseError','parse','pointer','message','reset','javascript','replace','jumpBack','baseURI','none','complete','getKey','execute','split','material','script','programInfo','editorCleared','\x20/\x20','href','uniforms','textContent','materialChanged','rename','6648768lwihvp','errorLine','json','setOption','script/title/programInfo','addEventListener','height','svg','name','source','935902uYhZVs','TernServer','1px','3px','vertexShader','updatable','glsl','setRight','warn','376970ouCoNw','setColor','removeLineWidget','className','change','63QqtNpn','fragmentShader','absolute','3213894RJrNVV','setAttribute','52SXsTwq','extraKeys','monokai','attributes','stringify','signals','esprima-error','createElementNS','background','dispatch','rendererCreated','push','needsUpdate','8116801PitvzH','exec','defines','#fff','showDocs','operation','setDisplay','strings','setTitle:\x20Unknown\x20script','stopPropagation','info','object','loc','script/title/vertexShader','add'];a=function(){return ae;};return a();}export{Script};
1
+ (function(d,e){const U=b,f=d();while(!![]){try{const g=parseInt(U(0x1f4))/0x1+parseInt(U(0x1f6))/0x2+parseInt(U(0x1d0))/0x3+-parseInt(U(0x1f8))/0x4+-parseInt(U(0x1cd))/0x5*(parseInt(U(0x1d3))/0x6)+-parseInt(U(0x208))/0x7+-parseInt(U(0x1c7))/0x8*(-parseInt(U(0x1cf))/0x9);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x5cd46));import{UIElement,UIPanel,UIText}from'./libs/ui.js';import{SetScriptValueCommand}from'./commands/SetScriptValueCommand.js';import{SetMaterialValueCommand}from'./commands/SetMaterialValueCommand.js';import c from'./libs/tern-threejs/build-defs.js';function b(c,d){c=c-0x1b7;const e=a();let f=e[c];return f;}function a(){const ae=['height','change','baseURI','script/title/vertexShader','textContent','defs','setOption','source','server','showType','addLineClass','editScript:\x20Unknown\x20script','lineNumber','3px','attributes','background','glsl','createElementNS','absolute','880RCtvbO','stroke','rendererCreated','parse','includes','add','2102630qRKLOX','programs','37089VLUgwg','307461qXYpmz','log','selectName','6WJxOIi','theme','addLineWidget','cursorActivity','length','shift','name','setColor','warn','scriptChanged','updatable','addEventListener','setId','materialChanged','prefix','message','split','svg','errorLine','\x20/\x20','1px','programInfo','setPosition','material','editorCleared','rename','uniforms','http://www.w3.org/2000/svg','vertexShader','execute','pointer','max','reset','465714sMUFaN','none','144712tHmRKY','fragmentShader','71424yeqelo','script','path','setAttribute','setBackgroundColor','key','setRight','complete','push','setValue','stringify','mode','../build/three.core.js','exec','appendChild','diagnostics','1926785udgTCL','setDisplay','javascript','M\x2012,12\x20L\x2022,22\x20M\x2022,12\x2012,22','setTitle:\x20Unknown\x20script','objectChanged','div','defines','operation','script/title/fragmentShader','removeLineWidget','object','scriptRemoved'];a=function(){return ae;};return a();}function Script(d){const V=b,e=d['signals'],f=d['strings'],g=new UIPanel();g[V(0x1df)](V(0x1f9)),g['setPosition']('absolute'),g[V(0x1fc)]('#272822'),g['setDisplay'](V(0x1f5));if(typeof CodeMirror==='undefined')return e['editorCleared']['add'](function(){g['setDisplay']('none');}),g;const h=new UIPanel();h['setPadding']('10px'),g[V(0x1cc)](h);const i=new UIText()[V(0x1da)]('#fff');h[V(0x1cc)](i);const j=(function(){const W=V,z=document[W(0x1c5)]('http://www.w3.org/2000/svg',W(0x1e4));z[W(0x1fb)]('width',0x20),z['setAttribute'](W(0x215),0x20);const A=document[W(0x1c5)](W(0x1ee),W(0x1fa));return A[W(0x1fb)]('d',W(0x20b)),A[W(0x1fb)](W(0x1c8),'#fff'),z[W(0x206)](A),z;}()),k=new UIElement(j);k[V(0x1e9)](V(0x1c6)),k['setTop'](V(0x1c1)),k[V(0x1fe)](V(0x1e7)),k['setCursor'](V(0x1f1)),k['onClick'](function(){const X=V;g[X(0x209)]('none');}),h[V(0x1cc)](k);let l;e[V(0x1c9)][V(0x1cc)](function(z){l=z;});let m,n,o,p;const q=CodeMirror(g['dom'],{'value':'','lineNumbers':!![],'matchBrackets':!![],'indentWithTabs':!![],'tabSize':0x4,'indentUnit':0x4,'hintOptions':{'completeSingle':![]}});q[V(0x1ba)](V(0x1d4),'monokai'),q['on'](V(0x216),function(){if(q['state']['focused']===![])return;clearTimeout(m),m=setTimeout(function(){const Y=b,z=q['getValue']();if(!u(z))return;if(typeof o===Y(0x213)){z!==o[Y(0x1bb)]&&d['execute'](new SetScriptValueCommand(d,p,o,'source',z));return;}if(o!==Y(0x1e8))return;const A=JSON[Y(0x1ca)](z);if(JSON[Y(0x202)](p['material'][Y(0x20f)])!==JSON[Y(0x202)](A[Y(0x20f)])){const B=new SetMaterialValueCommand(d,p,'defines',A['defines']);B['updatable']=![],d['execute'](B);}if(JSON['stringify'](p['material'][Y(0x1ed)])!==JSON[Y(0x202)](A['uniforms'])){const C=new SetMaterialValueCommand(d,p,Y(0x1ed),A['uniforms']);C['updatable']=![],d[Y(0x1f0)](C);}if(JSON['stringify'](p['material']['attributes'])!==JSON['stringify'](A[Y(0x1c2)])){const D=new SetMaterialValueCommand(d,p,'attributes',A[Y(0x1c2)]);D[Y(0x1dd)]=![],d['execute'](D);}},0x12c);});const r=q['getWrapperElement']();r[V(0x1de)]('keydown',function(z){z['stopPropagation']();});const s=[],t=[],u=function(z){const Z=V;let A,B=[];return q[Z(0x210)](function(){const a0=Z;while(s[a0(0x1d7)]>0x0){q['removeLineClass'](s['shift'](),a0(0x1c3),a0(0x1e5));}while(t[a0(0x1d7)]>0x0){q[a0(0x212)](t[a0(0x1d8)]());}switch(n){case'javascript':try{const E=esprima['parse'](z,{'tolerant':!![]});B=E['errors'];}catch(F){B['push']({'lineNumber':F[a0(0x1c0)]-0x1,'message':F[a0(0x1e2)]});}for(let G=0x0;G<B[a0(0x1d7)];G++){const H=B[G];H[a0(0x1e2)]=H['message']['replace'](/Line [0-9]+: /,'');}break;case'json':B=[],jsonlint['parseError']=function(I,J){const a1=a0;I=I[a1(0x1e3)]('\x0a')[0x3],B['push']({'lineNumber':J['loc']['first_line']-0x1,'message':I});};try{jsonlint[a0(0x1ca)](z);}catch(I){}break;case a0(0x1c4):p[a0(0x1ea)][o]=z,p[a0(0x1ea)]['needsUpdate']=!![],e[a0(0x1e0)]['dispatch'](p,0x0);const C=l['info'][a0(0x1ce)];A=!![];const D=/^(?:ERROR|WARNING): \d+:(\d+): (.*)/g;for(let J=0x0,K=C['length'];J!==K;++J){const L=C[J][a0(0x207)];if(L===undefined||L[a0(0x1ea)]!==p['material'])continue;if(!L['runnable'])A=![];const M=L[o],N=M[a0(0x1e1)]['split'](/\r\n|\r|\n/)[a0(0x1d7)];while(!![]){const O=D['exec'](M[a0(0x1d1)]);if(O===null)break;B['push']({'lineNumber':O[0x1]-N,'message':O[0x2]});}break;}}for(let P=0x0;P<B['length'];P++){const Q=B[P],R=document['createElement'](a0(0x20e));R['className']='esprima-error',R[a0(0x1b8)]=Q['message'];const S=Math[a0(0x1f2)](Q['lineNumber'],0x0);s[a0(0x200)](S),q[a0(0x1be)](S,'background','errorLine');const T=q[a0(0x1d5)](S,R);t[a0(0x200)](T);}return A!==undefined?A:B['length']===0x0;});},v=new CodeMirror['TernServer']({'caseInsensitive':!![]});let w=![];async function x(){const a2=V;if(w)return;w=!![];try{const z=new URL(a2(0x204),document[a2(0x217)])['href'],A=await(await fetch(z))['text']();v['server'][a2(0x1b9)]['push'](c(A)),v[a2(0x1bc)][a2(0x1f3)]();}catch(B){console[a2(0x1db)]('Script:\x20Failed\x20to\x20build\x20three.js\x20autocomplete\x20defs.',B);}}q['setOption']('extraKeys',{'Ctrl-Space':function(z){const a3=V;v[a3(0x1ff)](z);},'Ctrl-I':function(z){const a4=V;v[a4(0x1bd)](z);},'Ctrl-O':function(z){v['showDocs'](z);},'Alt-.':function(z){v['jumpToDef'](z);},'Alt-,':function(z){v['jumpBack'](z);},'Ctrl-Q':function(z){const a5=V;v[a5(0x1ec)](z);},'Ctrl-.':function(z){const a6=V;v[a6(0x1d2)](z);}}),q['on'](V(0x1d6),function(z){const a7=V;if(n!==a7(0x20a))return;v['updateArgHints'](z);}),q['on']('keypress',function(z,A){const a8=V;if(n!==a8(0x20a))return;/[\w\.]/[a8(0x205)](A[a8(0x1fd)])&&v[a8(0x1ff)](z);}),e[V(0x1eb)]['add'](function(){const a9=V;g[a9(0x209)](a9(0x1f5));});function y(z,A){const aa=V;if(typeof A===aa(0x213))i[aa(0x201)](z['name']+aa(0x1e6)+A[aa(0x1d9)]);else switch(A){case aa(0x1ef):i[aa(0x201)](z[aa(0x1ea)]['name']+aa(0x1e6)+f['getKey'](aa(0x1b7)));break;case aa(0x1f7):i['setValue'](z['material'][aa(0x1d9)]+aa(0x1e6)+f['getKey'](aa(0x211)));break;case aa(0x1e8):i['setValue'](z['material']['name']+aa(0x1e6)+f['getKey']('script/title/programInfo'));break;default:throw new Error(aa(0x20c));}}return e['editScript']['add'](function(z,A){const ab=V;let B,C;if(typeof A==='object')B=ab(0x20a),C=A['source'];else switch(A){case'vertexShader':B='glsl',C=z['material']['vertexShader']||'';break;case ab(0x1f7):B='glsl',C=z['material'][ab(0x1f7)]||'';break;case'programInfo':B='json';const D={'defines':z['material']['defines'],'uniforms':z[ab(0x1ea)]['uniforms'],'attributes':z['material'][ab(0x1c2)]};C=JSON['stringify'](D,null,'\x09');break;default:throw new Error(ab(0x1bf));}y(z,A),n=B,o=A,p=z;if(B===ab(0x20a))x();g[ab(0x209)](''),q[ab(0x201)](C),q['clearHistory']();if(B==='json')B={'name':'javascript','json':!![]};q[ab(0x1ba)](ab(0x203),B);}),e[V(0x214)][V(0x1cc)](function(z){const ac=V;o===z&&g[ac(0x209)](ac(0x1f5));}),e[V(0x20d)][V(0x1cc)](function(z){const ad=V;if(z!==p)return;if(['programInfo','vertexShader','fragmentShader'][ad(0x1cb)](o))return;y(p,o);}),e[V(0x1dc)][V(0x1cc)](function(z){z===o&&y(p,o);}),e['materialChanged']['add'](function(z){if(z!==p)return;y(p,o);}),g;}export{Script};
@@ -1 +1 @@
1
- function b(c,d){c=c-0x8f;const e=a();let f=e[c];return f;}const m=b;(function(d,e){const l=b,f=d();while(!![]){try{const g=parseInt(l(0x9b))/0x1+-parseInt(l(0x91))/0x2*(-parseInt(l(0x9d))/0x3)+parseInt(l(0x95))/0x4*(-parseInt(l(0xa4))/0x5)+-parseInt(l(0x9a))/0x6+parseInt(l(0xa0))/0x7*(parseInt(l(0x97))/0x8)+parseInt(l(0x9e))/0x9+-parseInt(l(0xa5))/0xa;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xb896e));import*as c from'three';const mouse=new c[(m(0xa3))](),raycaster=new c[(m(0xa8))]();class Selector{constructor(d){const n=m,e=d[n(0x90)];this['editor']=d,this['signals']=e,e['intersectionsDetected'][n(0x8f)](f=>{const o=n;if(f[o(0xa2)]>0x0){const g=[];for(let j=0x0;j<f['length'];j++){let k=f[j]['object'];k[o(0x98)]['object']!==undefined&&(k=k['userData'][o(0x93)]),g['indexOf'](k)===-0x1&&g[o(0xaa)](k);}const h=g[o(0xa7)](d[o(0x94)]);h!==-0x1&&h<g['length']-0x1?this['select'](g[h+0x1]):this[o(0x9c)](g[0x0]);}else this[o(0x9c)](null);});}[m(0xa6)](d){const p=m,e=[];return this['editor'][p(0x96)][p(0x9f)](function(f){const q=p;e[q(0xaa)](f);}),this['editor']['sceneHelpers'][p(0x9f)](function(f){const r=p;if(f[r(0x99)]==='picker')e[r(0xaa)](f);}),d['intersectObjects'](e,![]);}['getPointerIntersects'](d,e){const s=m;return mouse[s(0xa9)](d['x']*0x2-0x1,-(d['y']*0x2)+0x1),raycaster['setFromCamera'](mouse,e),this[s(0xa6)](raycaster);}[m(0x9c)](d){const t=m;if(this['editor']['selected']===d)return;let e=null;d!==null&&(e=d['uuid']),this['editor']['selected']=d,this['editor']['config']['setKey']('selected',e),this[t(0x90)]['objectSelected'][t(0x92)](d);}[m(0xa1)](){this['select'](null);}}export{Selector};function a(){const u=['20uWAoQL','scene','9582648qcdahu','userData','name','4797858eZzdFg','1432394GFlVkL','select','6978PDjCSR','10247760PSISpl','traverseVisible','7VArgCq','deselect','length','Vector2','1144335Zrjfhy','18270850ohvLYZ','getIntersects','indexOf','Raycaster','set','push','add','signals','652pYgppd','dispatch','object','selected'];a=function(){return u;};return a();}
1
+ const m=b;(function(d,e){const l=b,f=d();while(!![]){try{const g=parseInt(l(0x123))/0x1*(parseInt(l(0x119))/0x2)+parseInt(l(0x126))/0x3*(parseInt(l(0x112))/0x4)+-parseInt(l(0x129))/0x5+-parseInt(l(0x120))/0x6*(parseInt(l(0x125))/0x7)+parseInt(l(0x11c))/0x8+parseInt(l(0x118))/0x9+-parseInt(l(0x110))/0xa;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x75cb5));import*as c from'three';const mouse=new c[(m(0x12a))](),raycaster=new c['Raycaster']();function a(){const v=['length','1239DMRtzx','3777vKbYDo','selected','intersectObjects','442325iAQuYE','Vector2','getPointerIntersects','push','traverseVisible','8147980qbSfZK','dispatch','152DakUTR','indexOf','object','signals','setFromCamera','config','3431745yVmsSb','2vskhuI','set','select','5784448MVhfdh','name','userData','scene','8616bqnNwt','sceneHelpers','editor','487717GMbXkO'];a=function(){return v;};return a();}function b(c,d){c=c-0x10f;const e=a();let f=e[c];return f;}class Selector{constructor(d){const n=m,e=d['signals'];this[n(0x122)]=d,this[n(0x115)]=e,e['intersectionsDetected']['add'](f=>{const o=n;if(f['length']>0x0){const g=[];for(let j=0x0;j<f[o(0x124)];j++){let k=f[j][o(0x114)];k[o(0x11e)]['object']!==undefined&&(k=k['userData']['object']),g[o(0x113)](k)===-0x1&&g['push'](k);}const h=g[o(0x113)](d[o(0x127)]);h!==-0x1&&h<g['length']-0x1?this['select'](g[h+0x1]):this[o(0x11b)](g[0x0]);}else this[o(0x11b)](null);});}['getIntersects'](d){const p=m,e=[];return this['editor'][p(0x11f)][p(0x10f)](function(f){const q=p;e[q(0x12c)](f);}),this[p(0x122)][p(0x121)]['traverseVisible'](function(f){const r=p;if(f[r(0x11d)]==='picker')e['push'](f);}),d[p(0x128)](e,![]);}[m(0x12b)](d,e){const s=m;return mouse[s(0x11a)](d['x']*0x2-0x1,-(d['y']*0x2)+0x1),raycaster[s(0x116)](mouse,e),this['getIntersects'](raycaster);}['select'](d){const t=m;if(this[t(0x122)][t(0x127)]===d)return;let e=null;d!==null&&(e=d['uuid']),this['editor'][t(0x127)]=d,this['editor'][t(0x117)]['setKey']('selected',e),this['signals']['objectSelected'][t(0x111)](d);}['deselect'](){const u=m;this[u(0x11b)](null);}}export{Selector};
@@ -1 +1 @@
1
- (function(d,e){const z=b,f=d();while(!![]){try{const g=parseInt(z(0x1f2))/0x1*(parseInt(z(0x1e7))/0x2)+-parseInt(z(0x1f3))/0x3+-parseInt(z(0x1ec))/0x4+-parseInt(z(0x1f4))/0x5*(parseInt(z(0x1ef))/0x6)+-parseInt(z(0x1f6))/0x7*(parseInt(z(0x1f9))/0x8)+parseInt(z(0x1f1))/0x9+parseInt(z(0x1fc))/0xa;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xb280c));function b(c,d){c=c-0x1e3;const e=a();let f=e[c];return f;}import*as c from'three';import{UIDiv,UIRow,UIText,UINumber,UIInteger}from'./libs/ui.js';import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function a(){const D=['setClass','getKey','depthSegments','340NGWpZw','signals','onChange','widthSegments','setPrecision','2745212lgjnbf','sidebar/geometry/box_geometry/heightseg','sidebar/geometry/box_geometry/height','5514aCxBOI','sidebar/geometry/box_geometry/widthseg','864783IsivKq','4831gmVbQB','2293494xiyQsA','2995aKMLgQ','geometry','2324kMMgmW','setValue','width','32304fXvDbE','heightSegments','depth','31556890DMwcqZ','getValue','sidebar/geometry/box_geometry/width','setRange','sidebar/geometry/box_geometry/depth','Label','parameters','add'];a=function(){return D;};return a();}function GeometryParametersPanel(d,e){const A=b,f=d['strings'],g=d[A(0x1e8)],h=new UIDiv(),i=e['geometry'],j=i[A(0x202)],k=new UIRow(),l=new UINumber()['setPrecision'](0x3)['setValue'](j[A(0x1f8)])[A(0x1e9)](x);k[A(0x1e3)](new UIText(f[A(0x1e5)](A(0x1fe)))[A(0x1e4)](A(0x201))),k[A(0x1e3)](l),h['add'](k);const m=new UIRow(),n=new UINumber()['setPrecision'](0x3)['setValue'](j['height'])[A(0x1e9)](x);m['add'](new UIText(f['getKey'](A(0x1ee)))['setClass'](A(0x201))),m['add'](n),h['add'](m);const o=new UIRow(),p=new UINumber()[A(0x1eb)](0x3)[A(0x1f7)](j[A(0x1fb)])[A(0x1e9)](x);o['add'](new UIText(f['getKey'](A(0x200)))['setClass']('Label')),o['add'](p),h['add'](o);const q=new UIRow(),r=new UIInteger(j[A(0x1ea)])[A(0x1ff)](0x1,Infinity)['onChange'](x);q[A(0x1e3)](new UIText(f['getKey'](A(0x1f0)))[A(0x1e4)]('Label')),q[A(0x1e3)](r),h[A(0x1e3)](q);const s=new UIRow(),t=new UIInteger(j['heightSegments'])['setRange'](0x1,Infinity)['onChange'](x);s['add'](new UIText(f[A(0x1e5)](A(0x1ed)))['setClass']('Label')),s['add'](t),h['add'](s);const u=new UIRow(),v=new UIInteger(j['depthSegments'])[A(0x1ff)](0x1,Infinity)['onChange'](x);u['add'](new UIText(f[A(0x1e5)]('sidebar/geometry/box_geometry/depthseg'))[A(0x1e4)]('Label')),u[A(0x1e3)](v),h[A(0x1e3)](u);function w(){const B=A,y=e[B(0x1f5)]['parameters'];l['setValue'](y['width']),n[B(0x1f7)](y['height']),p[B(0x1f7)](y[B(0x1fb)]),r[B(0x1f7)](y['widthSegments']),t['setValue'](y[B(0x1fa)]),v[B(0x1f7)](y[B(0x1e6)]);}g['geometryChanged'][A(0x1e3)](function(y){y===e&&w();});function x(){const C=A;d['execute'](new SetGeometryCommand(d,e,new c['BoxGeometry'](l['getValue'](),n[C(0x1fd)](),p['getValue'](),r['getValue'](),t[C(0x1fd)](),v[C(0x1fd)]())));}return h;}export{GeometryParametersPanel};
1
+ (function(d,e){const z=b,f=d();while(!![]){try{const g=parseInt(z(0x1cd))/0x1*(parseInt(z(0x1c0))/0x2)+-parseInt(z(0x1d2))/0x3+-parseInt(z(0x1b9))/0x4*(-parseInt(z(0x1c1))/0x5)+parseInt(z(0x1b8))/0x6*(-parseInt(z(0x1c8))/0x7)+parseInt(z(0x1c7))/0x8+-parseInt(z(0x1ce))/0x9*(parseInt(z(0x1cf))/0xa)+parseInt(z(0x1d3))/0xb*(parseInt(z(0x1b6))/0xc);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xea9e4));import*as c from'three';import{UIDiv,UIRow,UIText,UINumber,UIInteger}from'./libs/ui.js';function b(c,d){c=c-0x1b6;const e=a();let f=e[c];return f;}import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function GeometryParametersPanel(d,e){const A=b,f=d['strings'],g=d[A(0x1c4)],h=new UIDiv(),i=e['geometry'],j=i['parameters'],k=new UIRow(),l=new UINumber()[A(0x1bd)](0x3)['setValue'](j['width'])[A(0x1c9)](x);k['add'](new UIText(f['getKey'](A(0x1cc)))['setClass'](A(0x1ba))),k[A(0x1b7)](l),h[A(0x1b7)](k);const m=new UIRow(),n=new UINumber()[A(0x1bd)](0x3)['setValue'](j[A(0x1d0)])['onChange'](x);m['add'](new UIText(f['getKey']('sidebar/geometry/box_geometry/height'))[A(0x1cb)](A(0x1ba))),m[A(0x1b7)](n),h['add'](m);const o=new UIRow(),p=new UINumber()['setPrecision'](0x3)[A(0x1c2)](j['depth'])[A(0x1c9)](x);o['add'](new UIText(f['getKey']('sidebar/geometry/box_geometry/depth'))['setClass']('Label')),o[A(0x1b7)](p),h['add'](o);const q=new UIRow(),r=new UIInteger(j[A(0x1be)])[A(0x1c6)](0x1,Infinity)['onChange'](x);q['add'](new UIText(f[A(0x1c3)](A(0x1d4)))[A(0x1cb)]('Label')),q['add'](r),h[A(0x1b7)](q);const s=new UIRow(),t=new UIInteger(j[A(0x1bb)])[A(0x1c6)](0x1,Infinity)['onChange'](x);s['add'](new UIText(f['getKey']('sidebar/geometry/box_geometry/heightseg'))['setClass'](A(0x1ba))),s['add'](t),h[A(0x1b7)](s);const u=new UIRow(),v=new UIInteger(j['depthSegments'])[A(0x1c6)](0x1,Infinity)['onChange'](x);u[A(0x1b7)](new UIText(f['getKey'](A(0x1bc)))['setClass'](A(0x1ba))),u['add'](v),h['add'](u);function w(){const B=A,y=e['geometry']['parameters'];l['setValue'](y['width']),n['setValue'](y['height']),p[B(0x1c2)](y[B(0x1d1)]),r['setValue'](y['widthSegments']),t[B(0x1c2)](y[B(0x1bb)]),v['setValue'](y[B(0x1ca)]);}g[A(0x1c5)][A(0x1b7)](function(y){y===e&&w();});function x(){const C=A;d['execute'](new SetGeometryCommand(d,e,new c['BoxGeometry'](l['getValue'](),n[C(0x1bf)](),p[C(0x1bf)](),r['getValue'](),t[C(0x1bf)](),v[C(0x1bf)]())));}return h;}export{GeometryParametersPanel};function a(){const D=['20LVjewm','Label','heightSegments','sidebar/geometry/box_geometry/depthseg','setPrecision','widthSegments','getValue','4HOGZdB','1105755qMYIRn','setValue','getKey','signals','geometryChanged','setRange','7189560nrKOQf','91Rrhgxs','onChange','depthSegments','setClass','sidebar/geometry/box_geometry/width','521167oPeAYb','4792059TJXuac','10dNBflw','height','depth','1865307AaiKAN','11bmXodk','sidebar/geometry/box_geometry/widthseg','2848236kAFirI','add','539502XKIBXG'];a=function(){return D;};return a();}
@@ -1 +1 @@
1
- (function(c,d){const B=b,e=c();while(!![]){try{const f=parseInt(B(0x175))/0x1+-parseInt(B(0x168))/0x2+-parseInt(B(0x17d))/0x3+-parseInt(B(0x170))/0x4*(-parseInt(B(0x16f))/0x5)+parseInt(B(0x167))/0x6*(parseInt(B(0x179))/0x7)+-parseInt(B(0x16c))/0x8*(-parseInt(B(0x180))/0x9)+-parseInt(B(0x16e))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xbc322));function a(){const E=['12cvmDOf','formatNumber','70px','inline-block','setDisplay','968849QWGesI','middle','utils','morphAttributes','84gTOkyn','sidebar/geometry/buffer_geometry/index','count','Label','2500284FsMjbo','isInterleavedBufferAttribute','setFontSize','738GYckPw','itemSize','morphTargetsRelative','add','signals','stride','index','keys','754740KbEdij','1666860QSMGiA','12px','setWidth','none','2320ysNbTH','setVerticalAlign','7824690rjPnEk','1196780wgtnTs'];a=function(){return E;};return a();}import{UIRow,UIText,UISpan,UIBreak,UICheckbox}from'./libs/ui.js';function SidebarGeometryBufferGeometry(c){const C=b,d=c['strings'],e=c[C(0x163)],f=new UIRow();function g(h){const D=C;if(h===null)return;if(h===undefined)return;const i=h['geometry'];if(i){f['clear'](),f[D(0x174)]('block');const j=new UIRow(),k=new UIText(d['getKey']('sidebar/geometry/buffer_geometry/attributes'))['setClass'](D(0x17c));j[D(0x162)](k);const l=new UISpan()[D(0x174)](D(0x173))[D(0x16d)](D(0x176))['setWidth']('160px');j[D(0x162)](l);const m=i[D(0x165)];m!==null&&(l[D(0x162)](new UIText(d['getKey'](D(0x17a)))['setWidth'](D(0x172))),l['add'](new UIText(c[D(0x177)][D(0x171)](m['count']))[D(0x17f)]('12px')),l[D(0x162)](new UIBreak()));const n=i['attributes'];for(const q in n){const r=n[q];l['add'](new UIText(q)['setWidth'](D(0x172)));let s=c[D(0x177)]['formatNumber'](r[D(0x17b)])+'\x20('+r[D(0x160)]+')';r[D(0x17e)]&&(s+='\x20('+r['data'][D(0x164)]+')'),l[D(0x162)](new UIText(s)[D(0x17f)](D(0x169))),l[D(0x162)](new UIBreak());}f['add'](j);const o=i[D(0x178)],p=Object[D(0x166)](o)['length']>0x0;if(p===!![]){const t=new UIRow(),u=new UIText(d['getKey']('sidebar/geometry/buffer_geometry/morphAttributes'))['setClass'](D(0x17c));t['add'](u);const v=new UISpan()[D(0x174)](D(0x173))['setVerticalAlign']('middle')['setWidth']('160px');t['add'](v);for(const z in o){const A=o[z];v['add'](new UIText(z)[D(0x16a)](D(0x172))),v['add'](new UIText(c[D(0x177)][D(0x171)](A['length']))[D(0x17f)](D(0x169))),v[D(0x162)](new UIBreak());}f[D(0x162)](t);const w=new UIRow(),x=new UIText(d['getKey']('sidebar/geometry/buffer_geometry/morphRelative'))['setClass']('Label');w[D(0x162)](x);const y=new UICheckbox()['setValue'](i[D(0x161)])['setDisabled'](!![]);w['add'](y),f['add'](w);}}else f[D(0x174)](D(0x16b));}return e['objectSelected']['add'](g),e['geometryChanged'][C(0x162)](g),f;}function b(c,d){c=c-0x160;const e=a();let f=e[c];return f;}export{SidebarGeometryBufferGeometry};
1
+ (function(c,d){const B=b,e=c();while(!![]){try{const f=-parseInt(B(0xf3))/0x1*(-parseInt(B(0xee))/0x2)+parseInt(B(0x102))/0x3+-parseInt(B(0xec))/0x4+-parseInt(B(0xf8))/0x5+-parseInt(B(0x100))/0x6+parseInt(B(0x106))/0x7+parseInt(B(0xef))/0x8;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x68cfd));import{UIRow,UIText,UISpan,UIBreak,UICheckbox}from'./libs/ui.js';function SidebarGeometryBufferGeometry(c){const C=b,d=c[C(0xfd)],e=c[C(0xf0)],f=new UIRow();function g(h){const D=C;if(h===null)return;if(h===undefined)return;const i=h[D(0x103)];if(i){f['clear'](),f['setDisplay']('block');const j=new UIRow(),k=new UIText(d['getKey']('sidebar/geometry/buffer_geometry/attributes'))[D(0xf2)]('Label');j['add'](k);const l=new UISpan()[D(0xea)](D(0xf5))[D(0xf6)](D(0xfa))[D(0xf4)](D(0xe7));j[D(0xf9)](l);const m=i['index'];m!==null&&(l[D(0xf9)](new UIText(d[D(0x10a)]('sidebar/geometry/buffer_geometry/index'))[D(0xf4)]('70px')),l['add'](new UIText(c['utils'][D(0xed)](m['count']))['setFontSize']('12px')),l['add'](new UIBreak()));const n=i['attributes'];for(const q in n){const r=n[q];l[D(0xf9)](new UIText(q)[D(0xf4)](D(0x104)));let s=c[D(0x101)][D(0xed)](r[D(0x108)])+'\x20('+r['itemSize']+')';r[D(0xfb)]&&(s+='\x20('+r[D(0x107)][D(0xf7)]+')'),l[D(0xf9)](new UIText(s)[D(0xfe)]('12px')),l['add'](new UIBreak());}f[D(0xf9)](j);const o=i[D(0xff)],p=Object[D(0xe9)](o)[D(0xf1)]>0x0;if(p===!![]){const t=new UIRow(),u=new UIText(d[D(0x10a)](D(0x105)))['setClass']('Label');t['add'](u);const v=new UISpan()['setDisplay'](D(0xf5))[D(0xf6)](D(0xfa))[D(0xf4)]('160px');t['add'](v);for(const z in o){const A=o[z];v[D(0xf9)](new UIText(z)[D(0xf4)]('70px')),v[D(0xf9)](new UIText(c['utils'][D(0xed)](A[D(0xf1)]))['setFontSize']('12px')),v['add'](new UIBreak());}f[D(0xf9)](t);const w=new UIRow(),x=new UIText(d[D(0x10a)](D(0xeb)))[D(0xf2)](D(0x109));w[D(0xf9)](x);const y=new UICheckbox()[D(0xe8)](i['morphTargetsRelative'])['setDisabled'](!![]);w[D(0xf9)](y),f[D(0xf9)](w);}}else f[D(0xea)](D(0xfc));}return e['objectSelected'][C(0xf9)](g),e['geometryChanged']['add'](g),f;}function b(c,d){c=c-0xe7;const e=a();let f=e[c];return f;}export{SidebarGeometryBufferGeometry};function a(){const E=['1249695iNXDSi','geometry','70px','sidebar/geometry/buffer_geometry/morphAttributes','1172437BrDhfx','data','count','Label','getKey','160px','setValue','keys','setDisplay','sidebar/geometry/buffer_geometry/morphRelative','1321804LMjIJb','formatNumber','479102HlzbaS','4549192npudtl','signals','length','setClass','1eowFSg','setWidth','inline-block','setVerticalAlign','stride','1447425iypsxk','add','middle','isInterleavedBufferAttribute','none','strings','setFontSize','morphAttributes','2058066rgYkrx','utils'];a=function(){return E;};return a();}
@@ -1 +1 @@
1
- (function(d,e){const x=b,f=d();while(!![]){try{const g=-parseInt(x(0xd3))/0x1*(-parseInt(x(0xdf))/0x2)+parseInt(x(0xe6))/0x3*(parseInt(x(0xea))/0x4)+-parseInt(x(0xdb))/0x5+-parseInt(x(0xd7))/0x6+-parseInt(x(0xd6))/0x7*(-parseInt(x(0xe7))/0x8)+-parseInt(x(0xd9))/0x9+parseInt(x(0xd8))/0xa;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xe14d7));import*as c from'three';import{UIDiv,UIRow,UIText,UINumber,UIInteger}from'./libs/ui.js';function b(c,d){c=c-0xd2;const e=a();let f=e[c];return f;}import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function a(){const B=['add','4Vvywag','sidebar/geometry/capsule_geometry/capseg','sidebar/geometry/capsule_geometry/radialseg','setClass','Label','setRange','capSegments','6joTNYx','8EoVmaz','radius','setValue','423648igAHsh','sidebar/geometry/capsule_geometry/heightseg','onChange','831452kdWbrH','getValue','getKey','943957Poijgf','4094658feuPeo','6453580vEjdbA','960192mBVgVS','signals','4714835Cnksqf','parameters','heightSegments'];a=function(){return B;};return a();}function GeometryParametersPanel(d,e){const y=b,f=d['strings'],g=d[y(0xda)],h=new UIDiv(),i=e['geometry'],j=i[y(0xdc)],k=new UIRow(),l=new UINumber(j[y(0xe8)])['onChange'](v);k['add'](new UIText(f[y(0xd5)]('sidebar/geometry/capsule_geometry/radius'))[y(0xe2)](y(0xe3))),k['add'](l),h['add'](k);const m=new UIRow(),n=new UINumber(j['height'])['onChange'](v);m['add'](new UIText(f['getKey']('sidebar/geometry/capsule_geometry/height'))[y(0xe2)]('Label')),m[y(0xde)](n),h['add'](m);const o=new UIRow(),p=new UIInteger(j[y(0xe5)])[y(0xe4)](0x1,Infinity)[y(0xd2)](v);o[y(0xde)](new UIText(f[y(0xd5)](y(0xe0)))[y(0xe2)](y(0xe3))),o['add'](p),h['add'](o);const q=new UIRow(),r=new UIInteger(j['radialSegments'])['setRange'](0x1,Infinity)[y(0xd2)](v);q['add'](new UIText(f[y(0xd5)](y(0xe1)))['setClass']('Label')),q['add'](r),h[y(0xde)](q);const s=new UIRow(),t=new UIInteger(j['heightSegments'])['setRange'](0x1,Infinity)['onChange'](v);s['add'](new UIText(f['getKey'](y(0xeb)))[y(0xe2)]('Label')),s[y(0xde)](t),h['add'](s);function u(){const z=y,w=e['geometry'][z(0xdc)];l['setValue'](w[z(0xe8)]),n['setValue'](w['height']),p['setValue'](w[z(0xe5)]),r[z(0xe9)](w['radialSegments']),t['setValue'](w[z(0xdd)]);}g['geometryChanged'][y(0xde)](function(w){w===e&&u();});function v(){const A=y;d['execute'](new SetGeometryCommand(d,e,new c['CapsuleGeometry'](l['getValue'](),n['getValue'](),p[A(0xd4)](),r[A(0xd4)](),t[A(0xd4)]())));}return h;}export{GeometryParametersPanel};
1
+ (function(d,e){const x=b,f=d();while(!![]){try{const g=parseInt(x(0xd9))/0x1*(-parseInt(x(0xd7))/0x2)+-parseInt(x(0xdb))/0x3+parseInt(x(0xdf))/0x4+parseInt(x(0xdc))/0x5*(parseInt(x(0xc0))/0x6)+parseInt(x(0xdd))/0x7*(-parseInt(x(0xc2))/0x8)+parseInt(x(0xce))/0x9+parseInt(x(0xde))/0xa*(-parseInt(x(0xc9))/0xb);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xee82b));import*as c from'three';import{UIDiv,UIRow,UIText,UINumber,UIInteger}from'./libs/ui.js';import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function GeometryParametersPanel(d,e){const y=b,f=d[y(0xc6)],g=d[y(0xcb)],h=new UIDiv(),i=e[y(0xd3)],j=i['parameters'],k=new UIRow(),l=new UINumber(j['radius'])['onChange'](v);k['add'](new UIText(f[y(0xd2)](y(0xc5)))[y(0xd8)](y(0xcf))),k['add'](l),h[y(0xca)](k);const m=new UIRow(),n=new UINumber(j[y(0xd0)])['onChange'](v);m[y(0xca)](new UIText(f['getKey']('sidebar/geometry/capsule_geometry/height'))[y(0xd8)](y(0xcf))),m[y(0xca)](n),h[y(0xca)](m);const o=new UIRow(),p=new UIInteger(j['capSegments'])['setRange'](0x1,Infinity)[y(0xc4)](v);o['add'](new UIText(f['getKey'](y(0xc1)))[y(0xd8)](y(0xcf))),o['add'](p),h[y(0xca)](o);const q=new UIRow(),r=new UIInteger(j[y(0xc3)])['setRange'](0x1,Infinity)['onChange'](v);q[y(0xca)](new UIText(f[y(0xd2)](y(0xd4)))[y(0xd8)](y(0xcf))),q[y(0xca)](r),h[y(0xca)](q);const s=new UIRow(),t=new UIInteger(j[y(0xc7)])[y(0xc8)](0x1,Infinity)[y(0xc4)](v);s['add'](new UIText(f[y(0xd2)](y(0xcc)))[y(0xd8)](y(0xcf))),s[y(0xca)](t),h[y(0xca)](s);function u(){const z=y,w=e[z(0xd3)][z(0xda)];l['setValue'](w['radius']),n[z(0xcd)](w[z(0xd0)]),p[z(0xcd)](w[z(0xd5)]),r[z(0xcd)](w[z(0xc3)]),t[z(0xcd)](w['heightSegments']);}g['geometryChanged'][y(0xca)](function(w){w===e&&u();});function v(){const A=y;d[A(0xe0)](new SetGeometryCommand(d,e,new c[(A(0xd6))](l[A(0xd1)](),n['getValue'](),p[A(0xd1)](),r['getValue'](),t['getValue']())));}return h;}function b(c,d){c=c-0xc0;const e=a();let f=e[c];return f;}function a(){const B=['add','signals','sidebar/geometry/capsule_geometry/heightseg','setValue','13995792blwsAh','Label','height','getValue','getKey','geometry','sidebar/geometry/capsule_geometry/radialseg','capSegments','CapsuleGeometry','12fghrQN','setClass','172147UrYJrb','parameters','318711nwiyEm','9697045WwgFPZ','5773250dqoaEO','1786240uQzWrH','643228ZUntvP','execute','6SRzgJp','sidebar/geometry/capsule_geometry/capseg','8FTaaCT','radialSegments','onChange','sidebar/geometry/capsule_geometry/radius','strings','heightSegments','setRange','44UDifde'];a=function(){return B;};return a();}export{GeometryParametersPanel};
@@ -1 +1 @@
1
- (function(d,e){const v=b,f=d();while(!![]){try{const g=parseInt(v(0x198))/0x1*(-parseInt(v(0x19f))/0x2)+-parseInt(v(0x1a1))/0x3+-parseInt(v(0x1aa))/0x4+parseInt(v(0x1af))/0x5*(parseInt(v(0x1a8))/0x6)+-parseInt(v(0x1ab))/0x7*(-parseInt(v(0x1a0))/0x8)+parseInt(v(0x1ad))/0x9+parseInt(v(0x1b5))/0xa;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x32fde));import*as c from'three';function a(){const z=['onChange','setValue','CircleGeometry','Label','geometry','47354JkEtFR','8eHPNTo','947538ORiqjV','segments','add','setUnit','sidebar/geometry/circle_geometry/thetalength','parameters','DEG2RAD','370986GbymxD','signals','1429644tUxVWi','1993355cEppbX','thetaStart','1886049aqIfUW','sidebar/geometry/circle_geometry/thetastart','20BZEOIM','setClass','RAD2DEG','thetaLength','setStep','sidebar/geometry/circle_geometry/radius','1641460RUCPFH','getKey','MathUtils','1GUCGRV','strings'];a=function(){return z;};return a();}import{UIDiv,UIRow,UIText,UIInteger,UINumber}from'./libs/ui.js';function b(c,d){c=c-0x196;const e=a();let f=e[c];return f;}import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function GeometryParametersPanel(d,e){const w=b,f=d[w(0x199)],g=d[w(0x1a9)],h=new UIDiv(),i=e[w(0x19e)],j=i['parameters'],k=new UIRow(),l=new UINumber(j['radius'])[w(0x19a)](t);k[w(0x1a3)](new UIText(f[w(0x196)](w(0x1b4)))['setClass']('Label')),k[w(0x1a3)](l),h[w(0x1a3)](k);const m=new UIRow(),n=new UIInteger(j[w(0x1a2)])['setRange'](0x3,Infinity)['onChange'](t);m['add'](new UIText(f['getKey']('sidebar/geometry/circle_geometry/segments'))[w(0x1b0)]('Label')),m[w(0x1a3)](n),h['add'](m);const o=new UIRow(),p=new UINumber(j[w(0x1ac)]*c[w(0x197)]['RAD2DEG'])[w(0x1a4)]('°')[w(0x1b3)](0xa)[w(0x19a)](t);o['add'](new UIText(f[w(0x196)](w(0x1ae)))[w(0x1b0)]('Label')),o['add'](p),h[w(0x1a3)](o);const q=new UIRow(),r=new UINumber(j['thetaLength']*c[w(0x197)][w(0x1b1)])['setUnit']('°')['setStep'](0xa)[w(0x19a)](t);q[w(0x1a3)](new UIText(f['getKey'](w(0x1a5)))['setClass'](w(0x19d))),q['add'](r),h[w(0x1a3)](q);function s(){const x=w,u=e[x(0x19e)][x(0x1a6)];l['setValue'](u['radius']),n[x(0x19b)](u['segments']),p[x(0x19b)](u[x(0x1ac)]*c['MathUtils'][x(0x1b1)]),r['setValue'](u[x(0x1b2)]*c[x(0x197)][x(0x1b1)]);}g['geometryChanged'][w(0x1a3)](function(u){u===e&&s();});function t(){const y=w;d['execute'](new SetGeometryCommand(d,e,new c[(y(0x19c))](l['getValue'](),n['getValue'](),p['getValue']()*c['MathUtils'][y(0x1a7)],r['getValue']()*c[y(0x197)]['DEG2RAD'])));}return h;}export{GeometryParametersPanel};
1
+ (function(d,e){const v=b,f=d();while(!![]){try{const g=-parseInt(v(0x1a2))/0x1+parseInt(v(0x194))/0x2*(parseInt(v(0x19f))/0x3)+-parseInt(v(0x1ab))/0x4+-parseInt(v(0x19c))/0x5+parseInt(v(0x19b))/0x6*(parseInt(v(0x1ac))/0x7)+-parseInt(v(0x1a7))/0x8*(-parseInt(v(0x1ad))/0x9)+-parseInt(v(0x1a1))/0xa*(parseInt(v(0x197))/0xb);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xd8733));function b(c,d){c=c-0x193;const e=a();let f=e[c];return f;}import*as c from'three';import{UIDiv,UIRow,UIText,UIInteger,UINumber}from'./libs/ui.js';import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function GeometryParametersPanel(d,e){const w=b,f=d['strings'],g=d['signals'],h=new UIDiv(),i=e['geometry'],j=i[w(0x193)],k=new UIRow(),l=new UINumber(j['radius'])[w(0x19e)](t);k['add'](new UIText(f['getKey']('sidebar/geometry/circle_geometry/radius'))[w(0x198)](w(0x1b0))),k['add'](l),h['add'](k);const m=new UIRow(),n=new UIInteger(j[w(0x195)])[w(0x1af)](0x3,Infinity)[w(0x19e)](t);m[w(0x1ae)](new UIText(f[w(0x19a)]('sidebar/geometry/circle_geometry/segments'))[w(0x198)]('Label')),m[w(0x1ae)](n),h['add'](m);const o=new UIRow(),p=new UINumber(j[w(0x199)]*c['MathUtils'][w(0x1a3)])[w(0x1a0)]('°')[w(0x1a4)](0xa)[w(0x19e)](t);o[w(0x1ae)](new UIText(f[w(0x19a)]('sidebar/geometry/circle_geometry/thetastart'))['setClass']('Label')),o['add'](p),h['add'](o);const q=new UIRow(),r=new UINumber(j['thetaLength']*c['MathUtils']['RAD2DEG'])[w(0x1a0)]('°')['setStep'](0xa)['onChange'](t);q['add'](new UIText(f[w(0x19a)]('sidebar/geometry/circle_geometry/thetalength'))[w(0x198)](w(0x1b0))),q[w(0x1ae)](r),h[w(0x1ae)](q);function s(){const x=w,u=e['geometry']['parameters'];l['setValue'](u[x(0x196)]),n[x(0x19d)](u['segments']),p['setValue'](u[x(0x199)]*c[x(0x1a5)][x(0x1a3)]),r[x(0x19d)](u[x(0x1a8)]*c[x(0x1a5)][x(0x1a3)]);}g[w(0x1a9)]['add'](function(u){u===e&&s();});function t(){const y=w;d['execute'](new SetGeometryCommand(d,e,new c[(y(0x1aa))](l['getValue'](),n[y(0x1a6)](),p[y(0x1a6)]()*c['MathUtils']['DEG2RAD'],r[y(0x1a6)]()*c['MathUtils']['DEG2RAD'])));}return h;}export{GeometryParametersPanel};function a(){const z=['8931118txuGfm','27AAuQuh','add','setRange','Label','parameters','1715906bCXqla','segments','radius','539XWUFAq','setClass','thetaStart','getKey','6WaqFxW','6773950mghOdA','setValue','onChange','3jRZsbY','setUnit','85590iUOIJZ','344940xiwsyE','RAD2DEG','setStep','MathUtils','getValue','2797616TvFoOr','thetaLength','geometryChanged','CircleGeometry','708932aDDsnC'];a=function(){return z;};return a();}
@@ -1 +1 @@
1
- function a(){const D=['height','522086biaPsZ','radiusBottom','radialSegments','sidebar/geometry/cylinder_geometry/radiusbottom','888dWdIXi','2027390FSrLvP','onChange','CylinderGeometry','parameters','264CoCqnE','getKey','geometryChanged','add','5160492UqAUaR','setClass','1oOqJMS','openEnded','setValue','Label','geometry','getValue','sidebar/geometry/cylinder_geometry/radiustop','41173KBSRoy','22532NnDwAy','202286FJPKMD','12dzgDzf','radiusTop','136FYxIPL','17170ZDiqrK','setRange','sidebar/geometry/cylinder_geometry/heightsegments'];a=function(){return D;};return a();}(function(d,e){const z=b,f=d();while(!![]){try{const g=parseInt(z(0x89))/0x1*(-parseInt(z(0x7a))/0x2)+-parseInt(z(0x93))/0x3*(-parseInt(z(0x91))/0x4)+-parseInt(z(0x76))/0x5*(-parseInt(z(0x83))/0x6)+parseInt(z(0x92))/0x7*(parseInt(z(0x95))/0x8)+-parseInt(z(0x87))/0x9+parseInt(z(0x7f))/0xa+parseInt(z(0x90))/0xb*(parseInt(z(0x7e))/0xc);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x4bba8));import*as c from'three';import{UIDiv,UIRow,UIText,UIInteger,UICheckbox,UINumber}from'./libs/ui.js';import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function GeometryParametersPanel(d,e){const A=b,f=d['strings'],g=d['signals'],h=new UIDiv(),i=e[A(0x8d)],j=i['parameters'],k=new UIRow(),l=new UINumber(j[A(0x94)])[A(0x80)](x);k[A(0x86)](new UIText(f['getKey'](A(0x8f)))['setClass'](A(0x8c))),k[A(0x86)](l),h['add'](k);const m=new UIRow(),n=new UINumber(j[A(0x7b)])['onChange'](x);m[A(0x86)](new UIText(f[A(0x84)](A(0x7d)))[A(0x88)]('Label')),m['add'](n),h['add'](m);const o=new UIRow(),p=new UINumber(j[A(0x79)])['onChange'](x);o['add'](new UIText(f[A(0x84)]('sidebar/geometry/cylinder_geometry/height'))['setClass']('Label')),o['add'](p),h[A(0x86)](o);const q=new UIRow(),r=new UIInteger(j['radialSegments'])[A(0x77)](0x1,Infinity)[A(0x80)](x);q[A(0x86)](new UIText(f['getKey']('sidebar/geometry/cylinder_geometry/radialsegments'))[A(0x88)]('Label')),q[A(0x86)](r),h['add'](q);const s=new UIRow(),t=new UIInteger(j['heightSegments'])['setRange'](0x1,Infinity)[A(0x80)](x);s['add'](new UIText(f[A(0x84)](A(0x78)))[A(0x88)]('Label')),s[A(0x86)](t),h[A(0x86)](s);const u=new UIRow(),v=new UICheckbox(j['openEnded'])['onChange'](x);u['add'](new UIText(f[A(0x84)]('sidebar/geometry/cylinder_geometry/openended'))[A(0x88)]('Label')),u['add'](v),h['add'](u);function w(){const B=A,y=e['geometry'][B(0x82)];l[B(0x8b)](y['radiusTop']),n['setValue'](y['radiusBottom']),p[B(0x8b)](y['height']),r[B(0x8b)](y[B(0x7c)]),t['setValue'](y['heightSegments']),v['setValue'](y[B(0x8a)]);}g[A(0x85)][A(0x86)](function(y){y===e&&w();});function x(){const C=A;d['execute'](new SetGeometryCommand(d,e,new c[(C(0x81))](l['getValue'](),n['getValue'](),p[C(0x8e)](),r[C(0x8e)](),t['getValue'](),v['getValue']())));}return h;}function b(c,d){c=c-0x76;const e=a();let f=e[c];return f;}export{GeometryParametersPanel};
1
+ (function(d,e){const z=b,f=d();while(!![]){try{const g=-parseInt(z(0xb3))/0x1+-parseInt(z(0xac))/0x2+-parseInt(z(0xc0))/0x3+parseInt(z(0xbe))/0x4*(parseInt(z(0xc7))/0x5)+-parseInt(z(0xbc))/0x6*(parseInt(z(0xb7))/0x7)+parseInt(z(0xab))/0x8+parseInt(z(0xbd))/0x9;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xaca4f));import*as c from'three';import{UIDiv,UIRow,UIText,UIInteger,UICheckbox,UINumber}from'./libs/ui.js';import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function a(){const D=['setRange','radiusBottom','setClass','sidebar/geometry/cylinder_geometry/heightsegments','getValue','62984jQtDXJ','sidebar/geometry/cylinder_geometry/height','radialSegments','openEnded','1029777pfVQMh','execute','add','getKey','setValue','6fnrddF','14332428GdvKhG','8rTVway','onChange','1677957WNptln','parameters','strings','Label','geometry','radiusTop','CylinderGeometry','1019655gqjuEB','heightSegments','5940560qCawOi','2532718VfSAnm','height'];a=function(){return D;};return a();}function GeometryParametersPanel(d,e){const A=b,f=d[A(0xc2)],g=d['signals'],h=new UIDiv(),i=e[A(0xc4)],j=i['parameters'],k=new UIRow(),l=new UINumber(j[A(0xc5)])[A(0xbf)](x);k[A(0xb9)](new UIText(f[A(0xba)]('sidebar/geometry/cylinder_geometry/radiustop'))[A(0xb0)](A(0xc3))),k[A(0xb9)](l),h['add'](k);const m=new UIRow(),n=new UINumber(j['radiusBottom'])[A(0xbf)](x);m[A(0xb9)](new UIText(f['getKey']('sidebar/geometry/cylinder_geometry/radiusbottom'))[A(0xb0)]('Label')),m['add'](n),h[A(0xb9)](m);const o=new UIRow(),p=new UINumber(j[A(0xad)])['onChange'](x);o[A(0xb9)](new UIText(f['getKey'](A(0xb4)))['setClass']('Label')),o[A(0xb9)](p),h['add'](o);const q=new UIRow(),r=new UIInteger(j[A(0xb5)])[A(0xae)](0x1,Infinity)[A(0xbf)](x);q[A(0xb9)](new UIText(f[A(0xba)]('sidebar/geometry/cylinder_geometry/radialsegments'))[A(0xb0)]('Label')),q[A(0xb9)](r),h[A(0xb9)](q);const s=new UIRow(),t=new UIInteger(j['heightSegments'])['setRange'](0x1,Infinity)['onChange'](x);s['add'](new UIText(f['getKey'](A(0xb1)))[A(0xb0)](A(0xc3))),s['add'](t),h['add'](s);const u=new UIRow(),v=new UICheckbox(j[A(0xb6)])['onChange'](x);u[A(0xb9)](new UIText(f[A(0xba)]('sidebar/geometry/cylinder_geometry/openended'))['setClass'](A(0xc3))),u['add'](v),h['add'](u);function w(){const B=A,y=e[B(0xc4)][B(0xc1)];l[B(0xbb)](y['radiusTop']),n['setValue'](y[B(0xaf)]),p['setValue'](y['height']),r[B(0xbb)](y[B(0xb5)]),t[B(0xbb)](y[B(0xc8)]),v['setValue'](y['openEnded']);}g['geometryChanged']['add'](function(y){y===e&&w();});function x(){const C=A;d[C(0xb8)](new SetGeometryCommand(d,e,new c[(C(0xc6))](l[C(0xb2)](),n['getValue'](),p['getValue'](),r['getValue'](),t['getValue'](),v[C(0xb2)]())));}return h;}function b(c,d){c=c-0xab;const e=a();let f=e[c];return f;}export{GeometryParametersPanel};
@@ -1 +1 @@
1
- function a(){const v=['strings','add','2244948cvccjC','getKey','signals','getValue','radius','sidebar/geometry/dodecahedron_geometry/radius','execute','parameters','Label','136VJURUp','3929994QRkslU','861623CizUfo','534868faqlzs','326178triHWx','sidebar/geometry/dodecahedron_geometry/detail','setRange','onChange','setValue','4512244tVmzTq','2609075zxVqlh','detail'];a=function(){return v;};return a();}(function(d,e){const r=b,f=d();while(!![]){try{const g=-parseInt(r(0xca))/0x1+-parseInt(r(0xd5))/0x2+parseInt(r(0xcb))/0x3+-parseInt(r(0xd0))/0x4+parseInt(r(0xd1))/0x5+parseInt(r(0xc8))/0x6+parseInt(r(0xc9))/0x7*(parseInt(r(0xc7))/0x8);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x90b0a));import*as c from'three';import{UIDiv,UIRow,UIText,UIInteger,UINumber}from'./libs/ui.js';function b(c,d){c=c-0xc4;const e=a();let f=e[c];return f;}import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function GeometryParametersPanel(d,e){const s=b,f=d[s(0xd3)],g=d[s(0xd7)],h=new UIDiv(),i=e['geometry'],j=i[s(0xc5)],k=new UIRow(),l=new UINumber(j[s(0xd9)])['onChange'](p);k['add'](new UIText(f['getKey'](s(0xda)))['setClass'](s(0xc6))),k[s(0xd4)](l),h['add'](k);const m=new UIRow(),n=new UIInteger(j[s(0xd2)])[s(0xcd)](0x0,Infinity)[s(0xce)](p);m[s(0xd4)](new UIText(f[s(0xd6)](s(0xcc)))['setClass']('Label')),m['add'](n),h[s(0xd4)](m);function o(){const t=s,q=e['geometry'][t(0xc5)];l['setValue'](q['radius']),n[t(0xcf)](q['detail']);}g['geometryChanged']['add'](function(q){q===e&&o();});function p(){const u=s;d[u(0xc4)](new SetGeometryCommand(d,e,new c['DodecahedronGeometry'](l['getValue'](),n[u(0xd8)]())));}return h;}export{GeometryParametersPanel};
1
+ function a(){const v=['setClass','radius','sidebar/geometry/dodecahedron_geometry/radius','setValue','1338080Emvwpe','916568HlTgbj','getKey','add','DodecahedronGeometry','458030nIGOEe','138726JkOozZ','3iCzAoB','179440VkLvur','1072278coxSJs','onChange','geometry','161329fEUzZB','getValue','parameters'];a=function(){return v;};return a();}(function(d,e){const r=b,f=d();while(!![]){try{const g=-parseInt(r(0xf7))/0x1+parseInt(r(0x108))/0x2+parseInt(r(0x109))/0x3*(parseInt(r(0x103))/0x4)+parseInt(r(0x107))/0x5+-parseInt(r(0xf8))/0x6+-parseInt(r(0xfb))/0x7+parseInt(r(0x102))/0x8;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x2b02b));import*as c from'three';import{UIDiv,UIRow,UIText,UIInteger,UINumber}from'./libs/ui.js';import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function GeometryParametersPanel(d,e){const s=b,f=d['strings'],g=d['signals'],h=new UIDiv(),i=e[s(0xfa)],j=i['parameters'],k=new UIRow(),l=new UINumber(j[s(0xff)])['onChange'](p);k['add'](new UIText(f[s(0x104)](s(0x100)))[s(0xfe)]('Label')),k[s(0x105)](l),h['add'](k);const m=new UIRow(),n=new UIInteger(j['detail'])['setRange'](0x0,Infinity)[s(0xf9)](p);m['add'](new UIText(f[s(0x104)]('sidebar/geometry/dodecahedron_geometry/detail'))['setClass']('Label')),m['add'](n),h['add'](m);function o(){const t=s,q=e['geometry'][t(0xfd)];l[t(0x101)](q[t(0xff)]),n[t(0x101)](q['detail']);}g['geometryChanged'][s(0x105)](function(q){q===e&&o();});function p(){const u=s;d['execute'](new SetGeometryCommand(d,e,new c[(u(0x106))](l['getValue'](),n[u(0xfc)]())));}return h;}function b(c,d){c=c-0xf7;const e=a();let f=e[c];return f;}export{GeometryParametersPanel};