pabla1322/data / behavior_packs /server_editor_library /scripts /minecraft-server-editor.0.1.0-beta.js
| /*! For license information please see minecraft-server-editor.0.1.0-beta.js.LICENSE.txt */ | |
| import*as e from"@minecraft/server-editor-bindings";import*as t from"@minecraft/server";import*as i from"@minecraft/server-editor-private-bindings";var a={401:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clampNumber=void 0,t.clampNumber=function(e,t,i){return Math.min(Math.max(e,t),i)}},107:function(e,t,i){var a=this&&this.__createBinding||(Object.create?function(e,t,i,a){void 0===a&&(a=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,a,n)}:function(e,t,i,a){void 0===a&&(a=i),e[a]=t[i]}),n=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||a(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(i(401),t)},607:function(e,t,i){var a=this&&this.__createBinding||(Object.create?function(e,t,i,a){void 0===a&&(a=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,a,n)}:function(e,t,i,a){void 0===a&&(a=i),e[a]=t[i]}),n=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||a(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(i(360),t),n(i(107),t)},419:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VECTOR3_SOUTH=t.VECTOR3_NORTH=t.VECTOR3_EAST=t.VECTOR3_WEST=t.VECTOR3_ZERO=t.VECTOR3_ONE=t.VECTOR3_BACK=t.VECTOR3_FORWARD=t.VECTOR3_RIGHT=t.VECTOR3_LEFT=t.VECTOR3_DOWN=t.VECTOR3_UP=t.Vector2Utils=t.Vector3Utils=void 0;const a=i(401);class n{static equals(e,t){return e.x===t.x&&e.y===t.y&&e.z===t.z}static add(e,t){return{x:e.x+t.x,y:e.y+t.y,z:e.z+t.z}}static subtract(e,t){return{x:e.x-t.x,y:e.y-t.y,z:e.z-t.z}}static scale(e,t){return{x:e.x*t,y:e.y*t,z:e.z*t}}static dot(e,t){return e.x*t.x+e.y*t.y+e.z*t.z}static cross(e,t){return{x:e.y*t.z-e.z*t.y,y:e.z*t.x-e.x*t.z,z:e.x*t.y-e.y*t.x}}static magnitude(e){return Math.sqrt(e.x**2+e.y**2+e.z**2)}static normalize(e){const t=n.magnitude(e);return{x:e.x/t,y:e.y/t,z:e.z/t}}static floor(e){return{x:Math.floor(e.x),y:Math.floor(e.y),z:Math.floor(e.z)}}static toString(e,t){const i=t?.decimals??2;return[e.x.toFixed(i),e.y.toFixed(i),e.z.toFixed(i)].join(t?.delimiter??", ")}static clamp(e,t){return{x:(0,a.clampNumber)(e.x,t?.min?.x??Number.MIN_SAFE_INTEGER,t?.max?.x??Number.MAX_SAFE_INTEGER),y:(0,a.clampNumber)(e.y,t?.min?.y??Number.MIN_SAFE_INTEGER,t?.max?.y??Number.MAX_SAFE_INTEGER),z:(0,a.clampNumber)(e.z,t?.min?.z??Number.MIN_SAFE_INTEGER,t?.max?.z??Number.MAX_SAFE_INTEGER)}}}t.Vector3Utils=n;t.Vector2Utils=class{static toString(e,t){const i=t?.decimals??2;return[e.x.toFixed(i),e.y.toFixed(i)].join(t?.delimiter??", ")}},t.VECTOR3_UP={x:0,y:1,z:0},t.VECTOR3_DOWN={x:0,y:-1,z:0},t.VECTOR3_LEFT={x:-1,y:0,z:0},t.VECTOR3_RIGHT={x:1,y:0,z:0},t.VECTOR3_FORWARD={x:0,y:0,z:1},t.VECTOR3_BACK={x:0,y:0,z:-1},t.VECTOR3_ONE={x:1,y:1,z:1},t.VECTOR3_ZERO={x:0,y:0,z:0},t.VECTOR3_WEST={x:-1,y:0,z:0},t.VECTOR3_EAST={x:1,y:0,z:0},t.VECTOR3_NORTH={x:0,y:0,z:1},t.VECTOR3_SOUTH={x:0,y:0,z:-1}},360:function(e,t,i){var a=this&&this.__createBinding||(Object.create?function(e,t,i,a){void 0===a&&(a=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,a,n)}:function(e,t,i,a){void 0===a&&(a=i),e[a]=t[i]}),n=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||a(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(i(419),t),n(i(53),t)},53:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Vector2Builder=t.Vector3Builder=void 0;const a=i(419);t.Vector3Builder=class{constructor(e,t,i){"object"==typeof e?(this.x=e.x,this.y=e.y,this.z=e.z):(this.x=e,this.y=t??0,this.z=i??0)}assign(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}equals(e){return a.Vector3Utils.equals(this,e)}add(e){return this.assign(a.Vector3Utils.add(this,e))}subtract(e){return this.assign(a.Vector3Utils.subtract(this,e))}scale(e){return this.assign(a.Vector3Utils.scale(this,e))}dot(e){return a.Vector3Utils.dot(this,e)}cross(e){return this.assign(a.Vector3Utils.cross(this,e))}magnitude(){return a.Vector3Utils.magnitude(this)}normalize(){return this.assign(a.Vector3Utils.normalize(this))}floor(){return this.assign(a.Vector3Utils.floor(this))}toString(e){return a.Vector3Utils.toString(this,e)}clamp(e){return this.assign(a.Vector3Utils.clamp(this,e))}};t.Vector2Builder=class{constructor(e,t){"object"==typeof e?(this.x=e.x,this.y=e.y):(this.x=e,this.y=t??0)}toString(e){return a.Vector2Utils.toString(this,e)}}},500:e=>{e.exports=function e(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;var a,n,r;if(Array.isArray(t)){if((a=t.length)!=i.length)return!1;for(n=a;0!=n--;)if(!e(t[n],i[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if((a=(r=Object.keys(t)).length)!==Object.keys(i).length)return!1;for(n=a;0!=n--;)if(!Object.prototype.hasOwnProperty.call(i,r[n]))return!1;for(n=a;0!=n--;){var s=r[n];if(!e(t[s],i[s]))return!1}return!0}return t!=t&&i!=i}}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return a[e].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s={};(()=>{r.d(s,{MFY:()=>n,owR:()=>a.AudioSettings,Rmj:()=>a.AudioSettingsProperty,RDh:()=>a.Axis,Soq:()=>_e,_Yd:()=>a.BlockMaskList,GOF:()=>a.BlockMaskListType,niL:()=>a.BlockPalette,M1I:()=>a.BlockPaletteItemType,M5h:()=>a.BlockPaletteManager,N0x:()=>a.BlockPaletteSelectedItemChangeAfterEvent,N$v:()=>a.BlockPaletteSelectedItemChangeAfterEventSignal,Qel:()=>U,QyM:()=>a.BlockUtilities,siZ:()=>F,LwN:()=>a.BrushDirectionalPlacementMode,VNg:()=>a.BrushElevationMode,c7A:()=>Bi,ihg:()=>a.BrushShapeManager,Wu3:()=>L,ssV:()=>a.ClipboardChangeAfterEvent,yo6:()=>a.ClipboardChangeAfterEventSignal,xfY:()=>a.ClipboardItem,UDg:()=>a.ClipboardManager,CHF:()=>a.ClipboardWriteOptions,eCG:()=>Z,tmS:()=>Q,jXv:()=>G,UEA:()=>O,NJ1:()=>$i,lQI:()=>a.ContiguousSelectionProperties,AEz:()=>a.ContiguousSelectionType,xYT:()=>re,buW:()=>E,dtU:()=>wi,eCT:()=>Gt,SfK:()=>Ot,aW2:()=>ea,Ufb:()=>a.CurrentThemeChangeAfterEvent,Ff3:()=>a.CurrentThemeChangeAfterEventSignal,fKT:()=>a.CurrentThemeColorChangeAfterEvent,jO9:()=>a.CurrentThemeColorChangeAfterEventSignal,CF9:()=>a.Cursor,TNh:()=>a.CursorControlMode,wxB:()=>a.CursorPosition,Kzi:()=>a.CursorProperties,dTl:()=>a.CursorPropertiesChangeAfterEvent,GmC:()=>a.CursorPropertyChangeAfterEventSignal,hgb:()=>a.CursorRay,zIy:()=>a.CursorTargetMode,bPs:()=>ta,NwW:()=>P,rLH:()=>a.DaylightCycle,pCB:()=>a.EditorConstants,myU:()=>Nt,je8:()=>a.EditorMode,oD1:()=>I,u8Q:()=>a.EditorStructure,hjR:()=>a.EditorStructureManager,Gwt:()=>a.EditorStructureSearchOptions,hz4:()=>ia,uW:()=>a.EntityOperationType,aFS:()=>a.ExportManager,DxH:()=>a.ExportResult,hjV:()=>a.Extension,gN_:()=>a.ExtensionContext,u2r:()=>a.ExtensionContextAfterEvents,S8x:()=>a.ExtensionOptionalParameters,z_j:()=>a.FlattenMode,_m7:()=>a.GameOptions,Y7L:()=>a.GamePublishSetting,kZl:()=>a.GraphicsSettings,fTY:()=>a.GraphicsSettingsProperty,zhX:()=>a.IBlockPaletteItem,elt:()=>H,P3j:()=>a.InputModifier,KI6:()=>a.InvalidWidgetComponentError,wct:()=>a.InvalidWidgetError,k8o:()=>a.InvalidWidgetGroupError,QxS:()=>o,u8R:()=>m,KNN:()=>y,gKd:()=>C,fYo:()=>S,pr:()=>K,OF9:()=>j,IrN:()=>Y,qoN:()=>$,eTI:()=>a.LocalizationEntry,nZ6:()=>a.LogChannel,GKA:()=>a.LogProperties,YdH:()=>a.Logger,s9E:()=>a.MinecraftEditor,zG2:()=>a.MinimapItem,Z3R:()=>a.MinimapManager,R8l:()=>a.MinimapMarkerType,gfH:()=>a.MinimapViewType,rTu:()=>Ut,EyH:()=>k,VHZ:()=>a.ModeChangeAfterEvent,zoE:()=>a.ModeChangeAfterEventSignal,oq$:()=>a.MouseActionCategory,BIf:()=>c,_Y0:()=>_,Dog:()=>De,eSM:()=>z,ACN:()=>Te,utP:()=>a.PaintCompletionState,o6g:()=>a.PaintMode,gG5:()=>q,JOQ:()=>a.Plane,uGp:()=>a.PlaytestManager,YYk:()=>a.PlaytestSessionResult,MX3:()=>a.PrimitiveType,eon:()=>a.ProbabilityBlockPaletteItem,HxD:()=>V,Ml$:()=>a.ProjectAfterEvents,gqA:()=>a.ProjectExportOptions,l2W:()=>a.ProjectExportType,AOo:()=>A,s47:()=>aa,dnR:()=>a.QuickExtrudeProperties,bOM:()=>a.RelativeVolumeListBlockVolume,v0M:()=>J,XWe:()=>a.SelectionChangeAfterEventSignal,VRW:()=>a.SelectionContainerBase,FTm:()=>a.SelectionContainerEntity,h0w:()=>a.SelectionContainerVolume,MJT:()=>a.SelectionContainerVolumeEvent,XSB:()=>a.SelectionEventAfterEvent,ZE0:()=>a.SelectionManager,mo3:()=>a.SelectionManifestData,tMb:()=>a.SelectionManifestEntry,don:()=>a.SelectionVolumeEventType,Sp:()=>R,pzk:()=>a.SettingsManager,F_$:()=>a.SimpleBlockPaletteItem,BHx:()=>a.SimulationState,pL9:()=>a.SimulationStateAfterEvent,IPR:()=>a.SimulationStateChangeAfterEventSignal,sc:()=>na,hXc:()=>a.SpeedSettings,CUx:()=>a.SpeedSettingsProperty,qa8:()=>a.SplineType,MIn:()=>D,plN:()=>a.StructureSource,gk4:()=>b,DSh:()=>ee,fMx:()=>a.ThemeSettings,vHS:()=>a.ThemeSettingsColorKey,wtW:()=>a.TransactionManager,VC:()=>a.TransactionManagerNoChangesError,DQ8:()=>a.UserDefinedTransactionHandlerId,iBm:()=>ze,SM:()=>Oe,jCy:()=>a.WeightedBlock,$LY:()=>a.Widget,GYs:()=>a.WidgetCollisionType,Pj:()=>a.WidgetComponentBase,elu:()=>a.WidgetComponentBaseOptions,cMp:()=>a.WidgetComponentBoundingBox,OIU:()=>a.WidgetComponentBoundingBoxLimit,$FP:()=>a.WidgetComponentBoundingBoxOptions,Tlg:()=>a.WidgetComponentBoundingBoxStateChangeEventParameters,wVq:()=>a.WidgetComponentClipboard,WcT:()=>a.WidgetComponentClipboardOptions,NwA:()=>a.WidgetComponentEntity,RRR:()=>a.WidgetComponentEntityOptions,lrQ:()=>a.WidgetComponentGizmo,jKx:()=>a.WidgetComponentGizmoOptions,isv:()=>a.WidgetComponentGizmoStateChangeEventParameters,Avk:()=>a.WidgetComponentGrid,dyM:()=>a.WidgetComponentGridOptions,Whc:()=>a.WidgetComponentGuide,Q5Q:()=>a.WidgetComponentGuideOptions,cug:()=>a.WidgetComponentRenderPrimitive,xtt:()=>a.WidgetComponentRenderPrimitiveOptions,ytu:()=>a.WidgetComponentRenderPrimitiveTypeAxialSphere,XXw:()=>a.WidgetComponentRenderPrimitiveTypeBase,TBN:()=>a.WidgetComponentRenderPrimitiveTypeBox,jVz:()=>a.WidgetComponentRenderPrimitiveTypeCone,$Yw:()=>a.WidgetComponentRenderPrimitiveTypeCuboid,m8K:()=>a.WidgetComponentRenderPrimitiveTypeCylinder,Cks:()=>a.WidgetComponentRenderPrimitiveTypeDisc,aax:()=>a.WidgetComponentRenderPrimitiveTypeEllipsoid,HNI:()=>a.WidgetComponentRenderPrimitiveTypeLine,McZ:()=>a.WidgetComponentRenderPrimitiveTypePyramid,cPI:()=>a.WidgetComponentSpline,CI1:()=>a.WidgetComponentSplineOptions,iHo:()=>a.WidgetComponentText,C$6:()=>a.WidgetComponentTextOptions,jf4:()=>a.WidgetComponentType,hyp:()=>a.WidgetComponentVolumeOutline,o$N:()=>a.WidgetComponentVolumeOutlineOptions,gFZ:()=>a.WidgetCreateOptions,FI:()=>a.WidgetGizmoEventType,w2S:()=>a.WidgetGroup,cfz:()=>a.WidgetGroupCreateOptions,g2B:()=>a.WidgetGroupSelectionMode,fHL:()=>a.WidgetManager,djq:()=>a.WidgetMouseButtonActionType,nCU:()=>a.WidgetMouseButtonEventData,vJR:()=>a.WidgetStateChangeEventData,ck5:()=>a.WorldGeneratorType,vBi:()=>ki,j6y:()=>a.editor,lKV:()=>vi,iFq:()=>yi,n7W:()=>ce,mUe:()=>ra,niw:()=>a.isInternal,rCi:()=>we,CD0:()=>gi,ODZ:()=>Si,xJT:()=>Ei,qCG:()=>xi});const a=(e=>{var t={};return r.d(t,e),t})({AudioSettings:()=>e.AudioSettings,AudioSettingsProperty:()=>e.AudioSettingsProperty,Axis:()=>e.Axis,BlockMaskList:()=>e.BlockMaskList,BlockMaskListType:()=>e.BlockMaskListType,BlockPalette:()=>e.BlockPalette,BlockPaletteItemType:()=>e.BlockPaletteItemType,BlockPaletteManager:()=>e.BlockPaletteManager,BlockPaletteSelectedItemChangeAfterEvent:()=>e.BlockPaletteSelectedItemChangeAfterEvent,BlockPaletteSelectedItemChangeAfterEventSignal:()=>e.BlockPaletteSelectedItemChangeAfterEventSignal,BlockUtilities:()=>e.BlockUtilities,BrushDirectionalPlacementMode:()=>e.BrushDirectionalPlacementMode,BrushElevationMode:()=>e.BrushElevationMode,BrushShapeManager:()=>e.BrushShapeManager,ClipboardChangeAfterEvent:()=>e.ClipboardChangeAfterEvent,ClipboardChangeAfterEventSignal:()=>e.ClipboardChangeAfterEventSignal,ClipboardItem:()=>e.ClipboardItem,ClipboardManager:()=>e.ClipboardManager,ClipboardWriteOptions:()=>e.ClipboardWriteOptions,ContiguousSelectionProperties:()=>e.ContiguousSelectionProperties,ContiguousSelectionType:()=>e.ContiguousSelectionType,CurrentThemeChangeAfterEvent:()=>e.CurrentThemeChangeAfterEvent,CurrentThemeChangeAfterEventSignal:()=>e.CurrentThemeChangeAfterEventSignal,CurrentThemeColorChangeAfterEvent:()=>e.CurrentThemeColorChangeAfterEvent,CurrentThemeColorChangeAfterEventSignal:()=>e.CurrentThemeColorChangeAfterEventSignal,Cursor:()=>e.Cursor,CursorControlMode:()=>e.CursorControlMode,CursorPosition:()=>e.CursorPosition,CursorProperties:()=>e.CursorProperties,CursorPropertiesChangeAfterEvent:()=>e.CursorPropertiesChangeAfterEvent,CursorPropertyChangeAfterEventSignal:()=>e.CursorPropertyChangeAfterEventSignal,CursorRay:()=>e.CursorRay,CursorTargetMode:()=>e.CursorTargetMode,DaylightCycle:()=>e.DaylightCycle,EditorConstants:()=>e.EditorConstants,EditorMode:()=>e.EditorMode,EditorStructure:()=>e.EditorStructure,EditorStructureManager:()=>e.EditorStructureManager,EditorStructureSearchOptions:()=>e.EditorStructureSearchOptions,EntityOperationType:()=>e.EntityOperationType,ExportManager:()=>e.ExportManager,ExportResult:()=>e.ExportResult,Extension:()=>e.Extension,ExtensionContext:()=>e.ExtensionContext,ExtensionContextAfterEvents:()=>e.ExtensionContextAfterEvents,ExtensionOptionalParameters:()=>e.ExtensionOptionalParameters,FlattenMode:()=>e.FlattenMode,GameOptions:()=>e.GameOptions,GamePublishSetting:()=>e.GamePublishSetting,GraphicsSettings:()=>e.GraphicsSettings,GraphicsSettingsProperty:()=>e.GraphicsSettingsProperty,IBlockPaletteItem:()=>e.IBlockPaletteItem,InputModifier:()=>e.InputModifier,InvalidWidgetComponentError:()=>e.InvalidWidgetComponentError,InvalidWidgetError:()=>e.InvalidWidgetError,InvalidWidgetGroupError:()=>e.InvalidWidgetGroupError,LocalizationEntry:()=>e.LocalizationEntry,LogChannel:()=>e.LogChannel,LogProperties:()=>e.LogProperties,Logger:()=>e.Logger,MinecraftEditor:()=>e.MinecraftEditor,MinimapItem:()=>e.MinimapItem,MinimapManager:()=>e.MinimapManager,MinimapMarkerType:()=>e.MinimapMarkerType,MinimapViewType:()=>e.MinimapViewType,ModeChangeAfterEvent:()=>e.ModeChangeAfterEvent,ModeChangeAfterEventSignal:()=>e.ModeChangeAfterEventSignal,MouseActionCategory:()=>e.MouseActionCategory,PaintCompletionState:()=>e.PaintCompletionState,PaintMode:()=>e.PaintMode,Plane:()=>e.Plane,PlaytestManager:()=>e.PlaytestManager,PlaytestSessionResult:()=>e.PlaytestSessionResult,PrimitiveType:()=>e.PrimitiveType,ProbabilityBlockPaletteItem:()=>e.ProbabilityBlockPaletteItem,ProjectAfterEvents:()=>e.ProjectAfterEvents,ProjectExportOptions:()=>e.ProjectExportOptions,ProjectExportType:()=>e.ProjectExportType,QuickExtrudeProperties:()=>e.QuickExtrudeProperties,RelativeVolumeListBlockVolume:()=>e.RelativeVolumeListBlockVolume,SelectionChangeAfterEventSignal:()=>e.SelectionChangeAfterEventSignal,SelectionContainerBase:()=>e.SelectionContainerBase,SelectionContainerEntity:()=>e.SelectionContainerEntity,SelectionContainerVolume:()=>e.SelectionContainerVolume,SelectionContainerVolumeEvent:()=>e.SelectionContainerVolumeEvent,SelectionEventAfterEvent:()=>e.SelectionEventAfterEvent,SelectionManager:()=>e.SelectionManager,SelectionManifestData:()=>e.SelectionManifestData,SelectionManifestEntry:()=>e.SelectionManifestEntry,SelectionVolumeEventType:()=>e.SelectionVolumeEventType,SettingsManager:()=>e.SettingsManager,SimpleBlockPaletteItem:()=>e.SimpleBlockPaletteItem,SimulationState:()=>e.SimulationState,SimulationStateAfterEvent:()=>e.SimulationStateAfterEvent,SimulationStateChangeAfterEventSignal:()=>e.SimulationStateChangeAfterEventSignal,SpeedSettings:()=>e.SpeedSettings,SpeedSettingsProperty:()=>e.SpeedSettingsProperty,SplineType:()=>e.SplineType,StructureSource:()=>e.StructureSource,ThemeSettings:()=>e.ThemeSettings,ThemeSettingsColorKey:()=>e.ThemeSettingsColorKey,TransactionManager:()=>e.TransactionManager,TransactionManagerNoChangesError:()=>e.TransactionManagerNoChangesError,UserDefinedTransactionHandlerId:()=>e.UserDefinedTransactionHandlerId,WeightedBlock:()=>e.WeightedBlock,Widget:()=>e.Widget,WidgetCollisionType:()=>e.WidgetCollisionType,WidgetComponentBase:()=>e.WidgetComponentBase,WidgetComponentBaseOptions:()=>e.WidgetComponentBaseOptions,WidgetComponentBoundingBox:()=>e.WidgetComponentBoundingBox,WidgetComponentBoundingBoxLimit:()=>e.WidgetComponentBoundingBoxLimit,WidgetComponentBoundingBoxOptions:()=>e.WidgetComponentBoundingBoxOptions,WidgetComponentBoundingBoxStateChangeEventParameters:()=>e.WidgetComponentBoundingBoxStateChangeEventParameters,WidgetComponentClipboard:()=>e.WidgetComponentClipboard,WidgetComponentClipboardOptions:()=>e.WidgetComponentClipboardOptions,WidgetComponentEntity:()=>e.WidgetComponentEntity,WidgetComponentEntityOptions:()=>e.WidgetComponentEntityOptions,WidgetComponentGizmo:()=>e.WidgetComponentGizmo,WidgetComponentGizmoOptions:()=>e.WidgetComponentGizmoOptions,WidgetComponentGizmoStateChangeEventParameters:()=>e.WidgetComponentGizmoStateChangeEventParameters,WidgetComponentGrid:()=>e.WidgetComponentGrid,WidgetComponentGridOptions:()=>e.WidgetComponentGridOptions,WidgetComponentGuide:()=>e.WidgetComponentGuide,WidgetComponentGuideOptions:()=>e.WidgetComponentGuideOptions,WidgetComponentRenderPrimitive:()=>e.WidgetComponentRenderPrimitive,WidgetComponentRenderPrimitiveOptions:()=>e.WidgetComponentRenderPrimitiveOptions,WidgetComponentRenderPrimitiveTypeAxialSphere:()=>e.WidgetComponentRenderPrimitiveTypeAxialSphere,WidgetComponentRenderPrimitiveTypeBase:()=>e.WidgetComponentRenderPrimitiveTypeBase,WidgetComponentRenderPrimitiveTypeBox:()=>e.WidgetComponentRenderPrimitiveTypeBox,WidgetComponentRenderPrimitiveTypeCone:()=>e.WidgetComponentRenderPrimitiveTypeCone,WidgetComponentRenderPrimitiveTypeCuboid:()=>e.WidgetComponentRenderPrimitiveTypeCuboid,WidgetComponentRenderPrimitiveTypeCylinder:()=>e.WidgetComponentRenderPrimitiveTypeCylinder,WidgetComponentRenderPrimitiveTypeDisc:()=>e.WidgetComponentRenderPrimitiveTypeDisc,WidgetComponentRenderPrimitiveTypeEllipsoid:()=>e.WidgetComponentRenderPrimitiveTypeEllipsoid,WidgetComponentRenderPrimitiveTypeLine:()=>e.WidgetComponentRenderPrimitiveTypeLine,WidgetComponentRenderPrimitiveTypePyramid:()=>e.WidgetComponentRenderPrimitiveTypePyramid,WidgetComponentSpline:()=>e.WidgetComponentSpline,WidgetComponentSplineOptions:()=>e.WidgetComponentSplineOptions,WidgetComponentText:()=>e.WidgetComponentText,WidgetComponentTextOptions:()=>e.WidgetComponentTextOptions,WidgetComponentType:()=>e.WidgetComponentType,WidgetComponentVolumeOutline:()=>e.WidgetComponentVolumeOutline,WidgetComponentVolumeOutlineOptions:()=>e.WidgetComponentVolumeOutlineOptions,WidgetCreateOptions:()=>e.WidgetCreateOptions,WidgetGizmoEventType:()=>e.WidgetGizmoEventType,WidgetGroup:()=>e.WidgetGroup,WidgetGroupCreateOptions:()=>e.WidgetGroupCreateOptions,WidgetGroupSelectionMode:()=>e.WidgetGroupSelectionMode,WidgetManager:()=>e.WidgetManager,WidgetMouseButtonActionType:()=>e.WidgetMouseButtonActionType,WidgetMouseButtonEventData:()=>e.WidgetMouseButtonEventData,WidgetStateChangeEventData:()=>e.WidgetStateChangeEventData,WorldGeneratorType:()=>e.WorldGeneratorType,editor:()=>e.editor,isInternal:()=>e.isInternal});var n,o,l,d,h,c,_,m,u,p,g,f,b,v,y,C,S;!function(e){e.NoArgsAction="NoArgsAction",e.MouseRayCastAction="MouseRayCastAction",e.StatefulAction="StatefulAction",e.ContinuousAction="ContinuousAction"}(n||(n={})),function(e){e[e.Consume=0]="Consume",e[e.Passthrough=1]="Passthrough",e[e.Disabled=2]="Disabled"}(o||(o={})),function(e){e[e.Unused=0]="Unused",e[e.None=1]="None",e[e.Alt=2]="Alt",e[e.Control=4]="Control",e[e.Shift=8]="Shift",e[e.Any=15]="Any"}(l||(l={})),function(e){e[e.Press=1]="Press",e[e.Release=2]="Release"}(d||(d={})),function(e){e[e.Button=1]="Button",e[e.Wheel=2]="Wheel",e[e.Drag=3]="Drag"}(h||(h={})),function(e){e[e.LeftButton=1]="LeftButton",e[e.MiddleButton=2]="MiddleButton",e[e.RightButton=3]="RightButton",e[e.Wheel=4]="Wheel"}(c||(c={})),function(e){e[e.ButtonDown=1]="ButtonDown",e[e.ButtonUp=2]="ButtonUp",e[e.WheelIn=3]="WheelIn",e[e.WheelOut=4]="WheelOut",e[e.DragStart=5]="DragStart",e[e.Drag=6]="Drag",e[e.DragEnd=7]="DragEnd"}(_||(_={})),function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.BACKSPACE=8]="BACKSPACE",e[e.TAB=9]="TAB",e[e.ENTER=13]="ENTER",e[e.SHIFT=16]="SHIFT",e[e.CTRL=17]="CTRL",e[e.ALT=18]="ALT",e[e.CAPS_LOCK=20]="CAPS_LOCK",e[e.ESCAPE=27]="ESCAPE",e[e.SPACE=32]="SPACE",e[e.PAGE_UP=33]="PAGE_UP",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN",e[e.PRINT_SCREEN=44]="PRINT_SCREEN",e[e.INSERT=45]="INSERT",e[e.DELETE=46]="DELETE",e[e.KEY_0=48]="KEY_0",e[e.KEY_1=49]="KEY_1",e[e.KEY_2=50]="KEY_2",e[e.KEY_3=51]="KEY_3",e[e.KEY_4=52]="KEY_4",e[e.KEY_5=53]="KEY_5",e[e.KEY_6=54]="KEY_6",e[e.KEY_7=55]="KEY_7",e[e.KEY_8=56]="KEY_8",e[e.KEY_9=57]="KEY_9",e[e.KEY_A=65]="KEY_A",e[e.KEY_B=66]="KEY_B",e[e.KEY_C=67]="KEY_C",e[e.KEY_D=68]="KEY_D",e[e.KEY_E=69]="KEY_E",e[e.KEY_F=70]="KEY_F",e[e.KEY_G=71]="KEY_G",e[e.KEY_H=72]="KEY_H",e[e.KEY_I=73]="KEY_I",e[e.KEY_J=74]="KEY_J",e[e.KEY_K=75]="KEY_K",e[e.KEY_L=76]="KEY_L",e[e.KEY_M=77]="KEY_M",e[e.KEY_N=78]="KEY_N",e[e.KEY_O=79]="KEY_O",e[e.KEY_P=80]="KEY_P",e[e.KEY_Q=81]="KEY_Q",e[e.KEY_R=82]="KEY_R",e[e.KEY_S=83]="KEY_S",e[e.KEY_T=84]="KEY_T",e[e.KEY_U=85]="KEY_U",e[e.KEY_V=86]="KEY_V",e[e.KEY_W=87]="KEY_W",e[e.KEY_X=88]="KEY_X",e[e.KEY_Y=89]="KEY_Y",e[e.KEY_Z=90]="KEY_Z",e[e.NUMPAD_0=96]="NUMPAD_0",e[e.NUMPAD_1=97]="NUMPAD_1",e[e.NUMPAD_2=98]="NUMPAD_2",e[e.NUMPAD_3=99]="NUMPAD_3",e[e.NUMPAD_4=100]="NUMPAD_4",e[e.NUMPAD_5=101]="NUMPAD_5",e[e.NUMPAD_6=102]="NUMPAD_6",e[e.NUMPAD_7=103]="NUMPAD_7",e[e.NUMPAD_8=104]="NUMPAD_8",e[e.NUMPAD_9=105]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=106]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=107]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=108]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=109]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=110]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=111]="NUMPAD_DIVIDE",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.COMMA=188]="COMMA",e[e.PERIOD=190]="PERIOD",e[e.SLASH=191]="SLASH",e[e.BACK_QUOTE=192]="BACK_QUOTE",e[e.BRACKET_OPEN=219]="BRACKET_OPEN",e[e.BACK_SLASH=220]="BACK_SLASH",e[e.BRACKET_CLOSE=221]="BRACKET_CLOSE",e[e.QUOTE=222]="QUOTE"}(m||(m={})),function(e){e[e.ActionExecute=1]="ActionExecute"}(u||(u={})),function(e){e[e.PropertyPaneVisibilityChanged=1]="PropertyPaneVisibilityChanged",e[e.PropertyPaneCollapsedStateChanged=2]="PropertyPaneCollapsedStateChanged",e[e.UpdateObservableValue=3]="UpdateObservableValue",e[e.PropertyItemClicked=4]="PropertyItemClicked",e[e.PropertyItemContainerOperation=5]="PropertyItemContainerOperation",e[e.PropertyItemTimelineAction=6]="PropertyItemTimelineAction",e[e.ListPaneAction=7]="ListPaneAction",e[e.ListViewControlPaneAction=8]="ListViewControlPaneAction",e[e.CollectionTreeFolderAction=9]="CollectionTreeFolderAction",e[e.ModalDialogResponse=10]="ModalDialogResponse",e[e.DismissModalDialog=11]="DismissModalDialog",e[e.PropertyItemTagContainerAction=12]="PropertyItemTagContainerAction"}(p||(p={})),function(e){e[e.Selected=0]="Selected",e[e.Expanded=1]="Expanded",e[e.Removed=2]="Removed",e[e.MenuClick=3]="MenuClick",e[e.HeaderAction=4]="HeaderAction",e[e.RelocateEntry=5]="RelocateEntry"}(g||(g={})),function(e){e[e.FilterToggled=0]="FilterToggled",e[e.FilterChanged=1]="FilterChanged",e[e.SortTypeChanged=2]="SortTypeChanged",e[e.ActionItemClicked=3]="ActionItemClicked"}(f||(f={})),function(e){e[e.TagAdded=0]="TagAdded",e[e.TagRemoved=1]="TagRemoved"}(b||(b={})),function(e){e[e.OnInitialize=1]="OnInitialize"}(v||(v={})),function(e){e[e.Start=0]="Start",e[e.Center=1]="Center",e[e.End=2]="End"}(y||(y={})),function(e){e.Shrink="Shrink",e.Grow="Grow"}(C||(C={})),function(e){e[e.Default=0]="Default",e[e.Percentage=1]="Percentage"}(S||(S={}));const x=.001;var k,P,E,w,B,I,M,T,R,D,A,W,z,L,V,O,U,N,G,F,H,q,K,Y,j,Q,X,J,Z,$,ee,te,ie;function ae(){const e=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1);return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}!function(e){e[e.DataPicker=0]="DataPicker",e[e.Custom=1]="Custom"}(k||(k={})),function(e){e[e.Block=0]="Block"}(P||(P={})),function(e){e.Undo="editor:actionBarItem:undo",e.Redo="editor:actionBarItem:redo",e.Export="editor:actionBarItem:export",e.Locate="editor:actionBarItem:locate",e.Playtest="editor:actionBarItem:playtest",e.Settings="editor:actionBarItem:settings",e.Realms="editor:actionBarItem:realms",e.Fill="editor:actionBarItem:fill"}(E||(E={})),function(e){e.Selection="editor:modalTool:selection",e.BrushPaint="editor:modalTool:brushPainter",e.PastePreview="editor:modalTool:pastePreview"}(w||(w={})),function(e){e[e.Create=0]="Create",e[e.Update=1]="Update",e[e.Destroy=2]="Destroy",e[e.Custom=3]="Custom",e[e.Passthrough=4]="Passthrough"}(B||(B={})),function(e){e.ServerActionEvents="Editor::ServerActionEvents",e.ServerUXEvents="Editor::ServerUXEvents"}(I||(I={})),function(e){e.ClientActionEvents="Editor::ClientActionEvents",e.ClientUXEvents="Editor::ClientUXEvents",e.ClientLifecycleEvents="Editor::ClientLifecycle"}(M||(M={})),function(e){e[e.Register=1]="Register",e[e.Unregister=2]="Unregister",e[e.UpdateEnablement=3]="UpdateEnablement"}(T||(T={})),function(e){e[e.UpdatePropertyPane=1]="UpdatePropertyPane",e[e.DestroyPropertyPane=2]="DestroyPropertyPane",e[e.UpdateMenu=3]="UpdateMenu",e[e.DestroyMenu=4]="DestroyMenu",e[e.UpdateStatusBarItem=5]="UpdateStatusBarItem",e[e.DestroyStatusBarItem=6]="DestroyStatusBarItem",e[e.UpdateModalToolOption=7]="UpdateModalToolOption",e[e.DestroyModalToolOption=8]="DestroyModalToolOption",e[e.BindActionToControl=11]="BindActionToControl",e[e.RemoveActionBindingFromControl=12]="RemoveActionBindingFromControl",e[e.UpdatePropertyItem=13]="UpdatePropertyItem",e[e.DestroyPropertyItem=14]="DestroyPropertyItem",e[e.OnNavigateFromEditor=15]="OnNavigateFromEditor",e[e.UpdateClientPanelVisibility=18]="UpdateClientPanelVisibility",e[e.ActivateTutorial=19]="ActivateTutorial",e[e.ModalDialogActivation=20]="ModalDialogActivation",e[e.ModalDialogDeactivation=21]="ModalDialogDeactivation"}(R||(R={})),function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(D||(D={})),function(e){e.BlockList="editorUI:BlockList",e.BlockTable="editorUI:BlockTable",e.Boolean="editorUI:Boolean",e.Button="editorUI:Button",e.ButtonPane="editorUI:ButtonPane",e.CollectionTree="editorUI:CollectionTree",e.ColorPicker="editorUI:ColorPicker",e.ComboBox="editorUI:ComboBox",e.DataTable="editorUI:DataTable",e.Divider="editorUI:Divider",e.Dropdown="editorUI:Dropdown",e.Image="editorUI:Image",e.Link="editorUI:Link",e.ListPane="editorUI:ListPane",e.Menu="editorUI:Menu",e.Number="editorUI:Number",e.ProgressIndicator="editorUI:ProgressIndicator",e.String="editorUI:String",e.ProxyPane="editorUI:ProxyPane",e.SubPane="editorUI:SubPane",e.Text="editorUI:Text",e.ToggleGroup="editorUI:ToggleGroup",e.Vector2="editorUI:Vector2",e.Vector3="editorUI:Vector3",e.ColorTimeline="editorUI:ColorTimeline",e.NumberTimeline="editorUI:NumberTimeline",e.Vector3Timeline="editorUI:Vector3Timeline",e.Minimap="editorUI:Minimap",e.TagContainer="editorUI:TagContainer"}(A||(A={})),function(e){e.ListPaneSlot="editorUI:ListPaneSlot",e.CollectionTreeEntry="editorUI:CollectionTreeEntry"}(W||(W={})),function(e){e[e.InputField=0]="InputField",e[e.InputFieldAndSlider=1]="InputFieldAndSlider"}(z||(z={})),function(e){e[e.Primary=0]="Primary",e[e.Secondary=1]="Secondary",e[e.Confirmation=2]="Confirmation",e[e.Destructive=3]="Destructive"}(L||(L={})),function(e){e[e.Spinner=0]="Spinner",e[e.ProgressBar=1]="ProgressBar"}(V||(V={})),function(e){e[e.Custom=0]="Custom",e[e.Block=1]="Block",e[e.Entity=2]="Entity"}(O||(O={})),function(e){e.Deselect="deselect",e.Replace="replace"}(U||(U={})),function(e){e.AddNode="addNode",e.RemoveNode="removeNode",e.UpdateNode="updateNode"}(N||(N={})),function(e){e[e.Default=0]="Default",e[e.Inline=1]="Inline",e[e.Expanded=2]="Expanded"}(G||(G={})),function(e){e[e.Checkbox=0]="Checkbox",e[e.ToggleSwitch=1]="ToggleSwitch"}(F||(F={})),function(e){e[e.Default=0]="Default",e[e.Block=1]="Block",e[e.Icon=2]="Icon",e[e.Structure=3]="Structure"}(H||(H={})),function(e){e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal",e[e.Wrapping=2]="Wrapping"}(q||(q={})),function(e){e[e.Button=0]="Button",e[e.Bool=1]="Bool",e[e.Image=2]="Image",e[e.Text=3]="Text"}(K||(K={})),function(e){e[e.Default=0]="Default",e[e.AtoZ=1]="AtoZ",e[e.ZtoA=2]="ZtoA"}(Y||(Y={})),function(e){e[e.Primary=0]="Primary",e[e.Secondary=1]="Secondary",e[e.Muted=2]="Muted"}(j||(j={})),function(e){e[e.AtoZ=0]="AtoZ",e[e.ZtoA=1]="ZtoA"}(Q||(Q={})),function(e){e[e.Root=1]="Root",e[e.Sub=2]="Sub",e[e.ModalOverlay=3]="ModalOverlay",e[e.ModalControl=4]="ModalControl",e[e.ModalDialog=5]="ModalDialog",e[e.Button=6]="Button",e[e.List=7]="List",e[e.CollectionTreeFolder=8]="CollectionTreeFolder",e[e.ListViewControl=9]="ListViewControl"}(X||(X={})),function(e){e[e.Drawer=0]="Drawer",e[e.Viewport=1]="Viewport"}(J||(J={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number",e[e.Dropdown=2]="Dropdown"}(Z||(Z={})),function(e){e[e.None=0]="None",e[e.Name=1]="Name",e[e.Tag=2]="Tag",e[e.All=3]="All"}($||($={})),function(e){e[e.Primary=0]="Primary",e[e.Inverted=1]="Inverted"}(ee||(ee={})),function(e){e[e.Documentation=1]="Documentation",e[e.Feedback=2]="Feedback",e[e.PauseScreen=3]="PauseScreen",e[e.Samples=4]="Samples",e[e.SaveAndExit=5]="SaveAndExit"}(te||(te={})),function(e){e[e.ControlPanel=1]="ControlPanel",e[e.WelcomePanel=2]="WelcomePanel",e[e.LogPanel=3]="LogPanel"}(ie||(ie={}));const ne=(e=>{var t={};return r.d(t,e),t})({BlockTypes:()=>t.BlockTypes,BlockVolume:()=>t.BlockVolume,CompoundBlockVolume:()=>t.CompoundBlockVolume,EntityTypes:()=>t.EntityTypes,TicksPerSecond:()=>t.TicksPerSecond,system:()=>t.system,world:()=>t.world});var re;!function(e){e[e.Begin=0]="Begin",e[e.Repeat=1]="Repeat",e[e.End=2]="End"}(re||(re={}));class se{constructor(e,t,i,a){this.eventDispatcher=e,this.dataStoreEventListener=t,this.player=i,this._system=a,this.actionMapping=new Map,this.unregisterListeners=[],this.tickingActions=[],this._actionTickHandle=void 0,this.createAction=e=>{const t=ae(),i={...e,id:t};return this.eventDispatcher.dispatchEvent(I.ServerActionEvents,{type:T.Register,id:i.id,actionType:i.actionType}),this.actionMapping.set(t,{action:i}),i},this.teardown=()=>{this.tickingActions=[];for(const e of this.unregisterListeners)e()},this.onClientEvent=e=>{if(e.type===u.ActionExecute){const t=e.id,i=this.actionMapping.get(t);if(i){const a=i.action;if(a.actionType===e.payload.type)switch(e.payload.type){case n.NoArgsAction:a.onExecute();break;case n.StatefulAction:a.onExecute(e.payload.active);break;case n.ContinuousAction:{const i=this.tickingActions.find((e=>e.id===t)),n=a;e.payload.active?i||(n.onExecute(re.Begin,0),0===this.tickingActions.length&&(this._actionTickHandle=this._system.runInterval((()=>this.tickActions()))),this.tickingActions.push({id:t,action:n,activeTickCount:0,repeatCount:0})):i&&(n.onExecute(re.End,i?.repeatCount??0),this.tickingActions=this.tickingActions.filter((e=>e.id!==t)),0===this.tickingActions.length&&void 0!==this._actionTickHandle&&this._system.clearRun(this._actionTickHandle));break}case n.MouseRayCastAction:{const t={direction:e.payload.mouseRay.direction,location:e.payload.mouseRay.location,cursorBlockLocation:e.payload.mouseRay.cursorBlockLocation,rayHit:e.payload.mouseRay.rayHit};a.onExecute(t,e.payload.mouseProps);break}}}}},this.unregisterListeners.push(this.dataStoreEventListener.registerListener(M.ClientActionEvents,this.onClientEvent))}tickActions(){this.tickingActions.forEach((e=>{const t=void 0===e.action.repeatDelay||e.action.repeatDelay<0?ne.TicksPerSecond:e.action.repeatDelay,i=e.activeTickCount>=(e.repeatCount>0?0:t),n=void 0!==e.action.repeatInterval&&e.action.repeatInterval>0?e.action.repeatInterval:1;if(i&&(e.activeTickCount-t)%n==0)try{e.repeatCount+=1,e.action.onExecute(re.Repeat,e.repeatCount)}catch{a.editor.log.error("Unable to execute ContinuousAction repeat operation",{player:this.player,channelMask:a.LogChannel.All})}e.activeTickCount+=1}))}}var oe=(e=>(e.AcaciaButton="minecraft:acacia_button",e.AcaciaDoor="minecraft:acacia_door",e.AcaciaDoubleSlab="minecraft:acacia_double_slab",e.AcaciaFence="minecraft:acacia_fence",e.AcaciaFenceGate="minecraft:acacia_fence_gate",e.AcaciaHangingSign="minecraft:acacia_hanging_sign",e.AcaciaLeaves="minecraft:acacia_leaves",e.AcaciaLog="minecraft:acacia_log",e.AcaciaPlanks="minecraft:acacia_planks",e.AcaciaPressurePlate="minecraft:acacia_pressure_plate",e.AcaciaSapling="minecraft:acacia_sapling",e.AcaciaShelf="minecraft:acacia_shelf",e.AcaciaSlab="minecraft:acacia_slab",e.AcaciaStairs="minecraft:acacia_stairs",e.AcaciaStandingSign="minecraft:acacia_standing_sign",e.AcaciaTrapdoor="minecraft:acacia_trapdoor",e.AcaciaWallSign="minecraft:acacia_wall_sign",e.AcaciaWood="minecraft:acacia_wood",e.ActivatorRail="minecraft:activator_rail",e.Air="minecraft:air",e.Allium="minecraft:allium",e.Allow="minecraft:allow",e.AmethystBlock="minecraft:amethyst_block",e.AmethystCluster="minecraft:amethyst_cluster",e.AncientDebris="minecraft:ancient_debris",e.Andesite="minecraft:andesite",e.AndesiteDoubleSlab="minecraft:andesite_double_slab",e.AndesiteSlab="minecraft:andesite_slab",e.AndesiteStairs="minecraft:andesite_stairs",e.AndesiteWall="minecraft:andesite_wall",e.Anvil="minecraft:anvil",e.Azalea="minecraft:azalea",e.AzaleaLeaves="minecraft:azalea_leaves",e.AzaleaLeavesFlowered="minecraft:azalea_leaves_flowered",e.AzureBluet="minecraft:azure_bluet",e.Bamboo="minecraft:bamboo",e.BambooBlock="minecraft:bamboo_block",e.BambooButton="minecraft:bamboo_button",e.BambooDoor="minecraft:bamboo_door",e.BambooDoubleSlab="minecraft:bamboo_double_slab",e.BambooFence="minecraft:bamboo_fence",e.BambooFenceGate="minecraft:bamboo_fence_gate",e.BambooHangingSign="minecraft:bamboo_hanging_sign",e.BambooMosaic="minecraft:bamboo_mosaic",e.BambooMosaicDoubleSlab="minecraft:bamboo_mosaic_double_slab",e.BambooMosaicSlab="minecraft:bamboo_mosaic_slab",e.BambooMosaicStairs="minecraft:bamboo_mosaic_stairs",e.BambooPlanks="minecraft:bamboo_planks",e.BambooPressurePlate="minecraft:bamboo_pressure_plate",e.BambooSapling="minecraft:bamboo_sapling",e.BambooShelf="minecraft:bamboo_shelf",e.BambooSlab="minecraft:bamboo_slab",e.BambooStairs="minecraft:bamboo_stairs",e.BambooStandingSign="minecraft:bamboo_standing_sign",e.BambooTrapdoor="minecraft:bamboo_trapdoor",e.BambooWallSign="minecraft:bamboo_wall_sign",e.Barrel="minecraft:barrel",e.Barrier="minecraft:barrier",e.Basalt="minecraft:basalt",e.Beacon="minecraft:beacon",e.Bed="minecraft:bed",e.Bedrock="minecraft:bedrock",e.BeeNest="minecraft:bee_nest",e.Beehive="minecraft:beehive",e.Beetroot="minecraft:beetroot",e.Bell="minecraft:bell",e.BigDripleaf="minecraft:big_dripleaf",e.BirchButton="minecraft:birch_button",e.BirchDoor="minecraft:birch_door",e.BirchDoubleSlab="minecraft:birch_double_slab",e.BirchFence="minecraft:birch_fence",e.BirchFenceGate="minecraft:birch_fence_gate",e.BirchHangingSign="minecraft:birch_hanging_sign",e.BirchLeaves="minecraft:birch_leaves",e.BirchLog="minecraft:birch_log",e.BirchPlanks="minecraft:birch_planks",e.BirchPressurePlate="minecraft:birch_pressure_plate",e.BirchSapling="minecraft:birch_sapling",e.BirchShelf="minecraft:birch_shelf",e.BirchSlab="minecraft:birch_slab",e.BirchStairs="minecraft:birch_stairs",e.BirchStandingSign="minecraft:birch_standing_sign",e.BirchTrapdoor="minecraft:birch_trapdoor",e.BirchWallSign="minecraft:birch_wall_sign",e.BirchWood="minecraft:birch_wood",e.BlackCandle="minecraft:black_candle",e.BlackCandleCake="minecraft:black_candle_cake",e.BlackCarpet="minecraft:black_carpet",e.BlackConcrete="minecraft:black_concrete",e.BlackConcretePowder="minecraft:black_concrete_powder",e.BlackGlazedTerracotta="minecraft:black_glazed_terracotta",e.BlackShulkerBox="minecraft:black_shulker_box",e.BlackStainedGlass="minecraft:black_stained_glass",e.BlackStainedGlassPane="minecraft:black_stained_glass_pane",e.BlackTerracotta="minecraft:black_terracotta",e.BlackWool="minecraft:black_wool",e.Blackstone="minecraft:blackstone",e.BlackstoneDoubleSlab="minecraft:blackstone_double_slab",e.BlackstoneSlab="minecraft:blackstone_slab",e.BlackstoneStairs="minecraft:blackstone_stairs",e.BlackstoneWall="minecraft:blackstone_wall",e.BlastFurnace="minecraft:blast_furnace",e.BlueCandle="minecraft:blue_candle",e.BlueCandleCake="minecraft:blue_candle_cake",e.BlueCarpet="minecraft:blue_carpet",e.BlueConcrete="minecraft:blue_concrete",e.BlueConcretePowder="minecraft:blue_concrete_powder",e.BlueGlazedTerracotta="minecraft:blue_glazed_terracotta",e.BlueIce="minecraft:blue_ice",e.BlueOrchid="minecraft:blue_orchid",e.BlueShulkerBox="minecraft:blue_shulker_box",e.BlueStainedGlass="minecraft:blue_stained_glass",e.BlueStainedGlassPane="minecraft:blue_stained_glass_pane",e.BlueTerracotta="minecraft:blue_terracotta",e.BlueWool="minecraft:blue_wool",e.BoneBlock="minecraft:bone_block",e.Bookshelf="minecraft:bookshelf",e.BorderBlock="minecraft:border_block",e.BrainCoral="minecraft:brain_coral",e.BrainCoralBlock="minecraft:brain_coral_block",e.BrainCoralFan="minecraft:brain_coral_fan",e.BrainCoralWallFan="minecraft:brain_coral_wall_fan",e.BrewingStand="minecraft:brewing_stand",e.BrickBlock="minecraft:brick_block",e.BrickDoubleSlab="minecraft:brick_double_slab",e.BrickSlab="minecraft:brick_slab",e.BrickStairs="minecraft:brick_stairs",e.BrickWall="minecraft:brick_wall",e.BrownCandle="minecraft:brown_candle",e.BrownCandleCake="minecraft:brown_candle_cake",e.BrownCarpet="minecraft:brown_carpet",e.BrownConcrete="minecraft:brown_concrete",e.BrownConcretePowder="minecraft:brown_concrete_powder",e.BrownGlazedTerracotta="minecraft:brown_glazed_terracotta",e.BrownMushroom="minecraft:brown_mushroom",e.BrownMushroomBlock="minecraft:brown_mushroom_block",e.BrownShulkerBox="minecraft:brown_shulker_box",e.BrownStainedGlass="minecraft:brown_stained_glass",e.BrownStainedGlassPane="minecraft:brown_stained_glass_pane",e.BrownTerracotta="minecraft:brown_terracotta",e.BrownWool="minecraft:brown_wool",e.BubbleColumn="minecraft:bubble_column",e.BubbleCoral="minecraft:bubble_coral",e.BubbleCoralBlock="minecraft:bubble_coral_block",e.BubbleCoralFan="minecraft:bubble_coral_fan",e.BubbleCoralWallFan="minecraft:bubble_coral_wall_fan",e.BuddingAmethyst="minecraft:budding_amethyst",e.Bush="minecraft:bush",e.Cactus="minecraft:cactus",e.CactusFlower="minecraft:cactus_flower",e.Cake="minecraft:cake",e.Calcite="minecraft:calcite",e.CalibratedSculkSensor="minecraft:calibrated_sculk_sensor",e.Camera="minecraft:camera",e.Campfire="minecraft:campfire",e.Candle="minecraft:candle",e.CandleCake="minecraft:candle_cake",e.Carrots="minecraft:carrots",e.CartographyTable="minecraft:cartography_table",e.CarvedPumpkin="minecraft:carved_pumpkin",e.Cauldron="minecraft:cauldron",e.CaveVines="minecraft:cave_vines",e.CaveVinesBodyWithBerries="minecraft:cave_vines_body_with_berries",e.CaveVinesHeadWithBerries="minecraft:cave_vines_head_with_berries",e.ChainCommandBlock="minecraft:chain_command_block",e.ChemicalHeat="minecraft:chemical_heat",e.CherryButton="minecraft:cherry_button",e.CherryDoor="minecraft:cherry_door",e.CherryDoubleSlab="minecraft:cherry_double_slab",e.CherryFence="minecraft:cherry_fence",e.CherryFenceGate="minecraft:cherry_fence_gate",e.CherryHangingSign="minecraft:cherry_hanging_sign",e.CherryLeaves="minecraft:cherry_leaves",e.CherryLog="minecraft:cherry_log",e.CherryPlanks="minecraft:cherry_planks",e.CherryPressurePlate="minecraft:cherry_pressure_plate",e.CherrySapling="minecraft:cherry_sapling",e.CherryShelf="minecraft:cherry_shelf",e.CherrySlab="minecraft:cherry_slab",e.CherryStairs="minecraft:cherry_stairs",e.CherryStandingSign="minecraft:cherry_standing_sign",e.CherryTrapdoor="minecraft:cherry_trapdoor",e.CherryWallSign="minecraft:cherry_wall_sign",e.CherryWood="minecraft:cherry_wood",e.Chest="minecraft:chest",e.ChippedAnvil="minecraft:chipped_anvil",e.ChiseledBookshelf="minecraft:chiseled_bookshelf",e.ChiseledCopper="minecraft:chiseled_copper",e.ChiseledDeepslate="minecraft:chiseled_deepslate",e.ChiseledNetherBricks="minecraft:chiseled_nether_bricks",e.ChiseledPolishedBlackstone="minecraft:chiseled_polished_blackstone",e.ChiseledQuartzBlock="minecraft:chiseled_quartz_block",e.ChiseledRedSandstone="minecraft:chiseled_red_sandstone",e.ChiseledResinBricks="minecraft:chiseled_resin_bricks",e.ChiseledSandstone="minecraft:chiseled_sandstone",e.ChiseledStoneBricks="minecraft:chiseled_stone_bricks",e.ChiseledTuff="minecraft:chiseled_tuff",e.ChiseledTuffBricks="minecraft:chiseled_tuff_bricks",e.ChorusFlower="minecraft:chorus_flower",e.ChorusPlant="minecraft:chorus_plant",e.Clay="minecraft:clay",e.ClosedEyeblossom="minecraft:closed_eyeblossom",e.CoalBlock="minecraft:coal_block",e.CoalOre="minecraft:coal_ore",e.CoarseDirt="minecraft:coarse_dirt",e.CobbledDeepslate="minecraft:cobbled_deepslate",e.CobbledDeepslateDoubleSlab="minecraft:cobbled_deepslate_double_slab",e.CobbledDeepslateSlab="minecraft:cobbled_deepslate_slab",e.CobbledDeepslateStairs="minecraft:cobbled_deepslate_stairs",e.CobbledDeepslateWall="minecraft:cobbled_deepslate_wall",e.Cobblestone="minecraft:cobblestone",e.CobblestoneDoubleSlab="minecraft:cobblestone_double_slab",e.CobblestoneSlab="minecraft:cobblestone_slab",e.CobblestoneWall="minecraft:cobblestone_wall",e.Cocoa="minecraft:cocoa",e.ColoredTorchBlue="minecraft:colored_torch_blue",e.ColoredTorchGreen="minecraft:colored_torch_green",e.ColoredTorchPurple="minecraft:colored_torch_purple",e.ColoredTorchRed="minecraft:colored_torch_red",e.CommandBlock="minecraft:command_block",e.Composter="minecraft:composter",e.CompoundCreator="minecraft:compound_creator",e.Conduit="minecraft:conduit",e.CopperBars="minecraft:copper_bars",e.CopperBlock="minecraft:copper_block",e.CopperBulb="minecraft:copper_bulb",e.CopperChain="minecraft:copper_chain",e.CopperChest="minecraft:copper_chest",e.CopperDoor="minecraft:copper_door",e.CopperGolemStatue="minecraft:copper_golem_statue",e.CopperGrate="minecraft:copper_grate",e.CopperLantern="minecraft:copper_lantern",e.CopperOre="minecraft:copper_ore",e.CopperTorch="minecraft:copper_torch",e.CopperTrapdoor="minecraft:copper_trapdoor",e.Cornflower="minecraft:cornflower",e.CrackedDeepslateBricks="minecraft:cracked_deepslate_bricks",e.CrackedDeepslateTiles="minecraft:cracked_deepslate_tiles",e.CrackedNetherBricks="minecraft:cracked_nether_bricks",e.CrackedPolishedBlackstoneBricks="minecraft:cracked_polished_blackstone_bricks",e.CrackedStoneBricks="minecraft:cracked_stone_bricks",e.Crafter="minecraft:crafter",e.CraftingTable="minecraft:crafting_table",e.CreakingHeart="minecraft:creaking_heart",e.CreeperHead="minecraft:creeper_head",e.CrimsonButton="minecraft:crimson_button",e.CrimsonDoor="minecraft:crimson_door",e.CrimsonDoubleSlab="minecraft:crimson_double_slab",e.CrimsonFence="minecraft:crimson_fence",e.CrimsonFenceGate="minecraft:crimson_fence_gate",e.CrimsonFungus="minecraft:crimson_fungus",e.CrimsonHangingSign="minecraft:crimson_hanging_sign",e.CrimsonHyphae="minecraft:crimson_hyphae",e.CrimsonNylium="minecraft:crimson_nylium",e.CrimsonPlanks="minecraft:crimson_planks",e.CrimsonPressurePlate="minecraft:crimson_pressure_plate",e.CrimsonRoots="minecraft:crimson_roots",e.CrimsonShelf="minecraft:crimson_shelf",e.CrimsonSlab="minecraft:crimson_slab",e.CrimsonStairs="minecraft:crimson_stairs",e.CrimsonStandingSign="minecraft:crimson_standing_sign",e.CrimsonStem="minecraft:crimson_stem",e.CrimsonTrapdoor="minecraft:crimson_trapdoor",e.CrimsonWallSign="minecraft:crimson_wall_sign",e.CryingObsidian="minecraft:crying_obsidian",e.CutCopper="minecraft:cut_copper",e.CutCopperSlab="minecraft:cut_copper_slab",e.CutCopperStairs="minecraft:cut_copper_stairs",e.CutRedSandstone="minecraft:cut_red_sandstone",e.CutRedSandstoneDoubleSlab="minecraft:cut_red_sandstone_double_slab",e.CutRedSandstoneSlab="minecraft:cut_red_sandstone_slab",e.CutSandstone="minecraft:cut_sandstone",e.CutSandstoneDoubleSlab="minecraft:cut_sandstone_double_slab",e.CutSandstoneSlab="minecraft:cut_sandstone_slab",e.CyanCandle="minecraft:cyan_candle",e.CyanCandleCake="minecraft:cyan_candle_cake",e.CyanCarpet="minecraft:cyan_carpet",e.CyanConcrete="minecraft:cyan_concrete",e.CyanConcretePowder="minecraft:cyan_concrete_powder",e.CyanGlazedTerracotta="minecraft:cyan_glazed_terracotta",e.CyanShulkerBox="minecraft:cyan_shulker_box",e.CyanStainedGlass="minecraft:cyan_stained_glass",e.CyanStainedGlassPane="minecraft:cyan_stained_glass_pane",e.CyanTerracotta="minecraft:cyan_terracotta",e.CyanWool="minecraft:cyan_wool",e.DamagedAnvil="minecraft:damaged_anvil",e.Dandelion="minecraft:dandelion",e.DarkOakButton="minecraft:dark_oak_button",e.DarkOakDoor="minecraft:dark_oak_door",e.DarkOakDoubleSlab="minecraft:dark_oak_double_slab",e.DarkOakFence="minecraft:dark_oak_fence",e.DarkOakFenceGate="minecraft:dark_oak_fence_gate",e.DarkOakHangingSign="minecraft:dark_oak_hanging_sign",e.DarkOakLeaves="minecraft:dark_oak_leaves",e.DarkOakLog="minecraft:dark_oak_log",e.DarkOakPlanks="minecraft:dark_oak_planks",e.DarkOakPressurePlate="minecraft:dark_oak_pressure_plate",e.DarkOakSapling="minecraft:dark_oak_sapling",e.DarkOakShelf="minecraft:dark_oak_shelf",e.DarkOakSlab="minecraft:dark_oak_slab",e.DarkOakStairs="minecraft:dark_oak_stairs",e.DarkOakTrapdoor="minecraft:dark_oak_trapdoor",e.DarkOakWood="minecraft:dark_oak_wood",e.DarkPrismarine="minecraft:dark_prismarine",e.DarkPrismarineDoubleSlab="minecraft:dark_prismarine_double_slab",e.DarkPrismarineSlab="minecraft:dark_prismarine_slab",e.DarkPrismarineStairs="minecraft:dark_prismarine_stairs",e.DarkoakStandingSign="minecraft:darkoak_standing_sign",e.DarkoakWallSign="minecraft:darkoak_wall_sign",e.DaylightDetector="minecraft:daylight_detector",e.DaylightDetectorInverted="minecraft:daylight_detector_inverted",e.DeadBrainCoral="minecraft:dead_brain_coral",e.DeadBrainCoralBlock="minecraft:dead_brain_coral_block",e.DeadBrainCoralFan="minecraft:dead_brain_coral_fan",e.DeadBrainCoralWallFan="minecraft:dead_brain_coral_wall_fan",e.DeadBubbleCoral="minecraft:dead_bubble_coral",e.DeadBubbleCoralBlock="minecraft:dead_bubble_coral_block",e.DeadBubbleCoralFan="minecraft:dead_bubble_coral_fan",e.DeadBubbleCoralWallFan="minecraft:dead_bubble_coral_wall_fan",e.DeadFireCoral="minecraft:dead_fire_coral",e.DeadFireCoralBlock="minecraft:dead_fire_coral_block",e.DeadFireCoralFan="minecraft:dead_fire_coral_fan",e.DeadFireCoralWallFan="minecraft:dead_fire_coral_wall_fan",e.DeadHornCoral="minecraft:dead_horn_coral",e.DeadHornCoralBlock="minecraft:dead_horn_coral_block",e.DeadHornCoralFan="minecraft:dead_horn_coral_fan",e.DeadHornCoralWallFan="minecraft:dead_horn_coral_wall_fan",e.DeadTubeCoral="minecraft:dead_tube_coral",e.DeadTubeCoralBlock="minecraft:dead_tube_coral_block",e.DeadTubeCoralFan="minecraft:dead_tube_coral_fan",e.DeadTubeCoralWallFan="minecraft:dead_tube_coral_wall_fan",e.Deadbush="minecraft:deadbush",e.DecoratedPot="minecraft:decorated_pot",e.Deepslate="minecraft:deepslate",e.DeepslateBrickDoubleSlab="minecraft:deepslate_brick_double_slab",e.DeepslateBrickSlab="minecraft:deepslate_brick_slab",e.DeepslateBrickStairs="minecraft:deepslate_brick_stairs",e.DeepslateBrickWall="minecraft:deepslate_brick_wall",e.DeepslateBricks="minecraft:deepslate_bricks",e.DeepslateCoalOre="minecraft:deepslate_coal_ore",e.DeepslateCopperOre="minecraft:deepslate_copper_ore",e.DeepslateDiamondOre="minecraft:deepslate_diamond_ore",e.DeepslateEmeraldOre="minecraft:deepslate_emerald_ore",e.DeepslateGoldOre="minecraft:deepslate_gold_ore",e.DeepslateIronOre="minecraft:deepslate_iron_ore",e.DeepslateLapisOre="minecraft:deepslate_lapis_ore",e.DeepslateRedstoneOre="minecraft:deepslate_redstone_ore",e.DeepslateTileDoubleSlab="minecraft:deepslate_tile_double_slab",e.DeepslateTileSlab="minecraft:deepslate_tile_slab",e.DeepslateTileStairs="minecraft:deepslate_tile_stairs",e.DeepslateTileWall="minecraft:deepslate_tile_wall",e.DeepslateTiles="minecraft:deepslate_tiles",e.Deny="minecraft:deny",e.DetectorRail="minecraft:detector_rail",e.DiamondBlock="minecraft:diamond_block",e.DiamondOre="minecraft:diamond_ore",e.Diorite="minecraft:diorite",e.DioriteDoubleSlab="minecraft:diorite_double_slab",e.DioriteSlab="minecraft:diorite_slab",e.DioriteStairs="minecraft:diorite_stairs",e.DioriteWall="minecraft:diorite_wall",e.Dirt="minecraft:dirt",e.DirtWithRoots="minecraft:dirt_with_roots",e.Dispenser="minecraft:dispenser",e.DoubleCutCopperSlab="minecraft:double_cut_copper_slab",e.DragonEgg="minecraft:dragon_egg",e.DragonHead="minecraft:dragon_head",e.DriedGhast="minecraft:dried_ghast",e.DriedKelpBlock="minecraft:dried_kelp_block",e.DripstoneBlock="minecraft:dripstone_block",e.Dropper="minecraft:dropper",e.Element0="minecraft:element_0",e.Element1="minecraft:element_1",e.Element10="minecraft:element_10",e.Element100="minecraft:element_100",e.Element101="minecraft:element_101",e.Element102="minecraft:element_102",e.Element103="minecraft:element_103",e.Element104="minecraft:element_104",e.Element105="minecraft:element_105",e.Element106="minecraft:element_106",e.Element107="minecraft:element_107",e.Element108="minecraft:element_108",e.Element109="minecraft:element_109",e.Element11="minecraft:element_11",e.Element110="minecraft:element_110",e.Element111="minecraft:element_111",e.Element112="minecraft:element_112",e.Element113="minecraft:element_113",e.Element114="minecraft:element_114",e.Element115="minecraft:element_115",e.Element116="minecraft:element_116",e.Element117="minecraft:element_117",e.Element118="minecraft:element_118",e.Element12="minecraft:element_12",e.Element13="minecraft:element_13",e.Element14="minecraft:element_14",e.Element15="minecraft:element_15",e.Element16="minecraft:element_16",e.Element17="minecraft:element_17",e.Element18="minecraft:element_18",e.Element19="minecraft:element_19",e.Element2="minecraft:element_2",e.Element20="minecraft:element_20",e.Element21="minecraft:element_21",e.Element22="minecraft:element_22",e.Element23="minecraft:element_23",e.Element24="minecraft:element_24",e.Element25="minecraft:element_25",e.Element26="minecraft:element_26",e.Element27="minecraft:element_27",e.Element28="minecraft:element_28",e.Element29="minecraft:element_29",e.Element3="minecraft:element_3",e.Element30="minecraft:element_30",e.Element31="minecraft:element_31",e.Element32="minecraft:element_32",e.Element33="minecraft:element_33",e.Element34="minecraft:element_34",e.Element35="minecraft:element_35",e.Element36="minecraft:element_36",e.Element37="minecraft:element_37",e.Element38="minecraft:element_38",e.Element39="minecraft:element_39",e.Element4="minecraft:element_4",e.Element40="minecraft:element_40",e.Element41="minecraft:element_41",e.Element42="minecraft:element_42",e.Element43="minecraft:element_43",e.Element44="minecraft:element_44",e.Element45="minecraft:element_45",e.Element46="minecraft:element_46",e.Element47="minecraft:element_47",e.Element48="minecraft:element_48",e.Element49="minecraft:element_49",e.Element5="minecraft:element_5",e.Element50="minecraft:element_50",e.Element51="minecraft:element_51",e.Element52="minecraft:element_52",e.Element53="minecraft:element_53",e.Element54="minecraft:element_54",e.Element55="minecraft:element_55",e.Element56="minecraft:element_56",e.Element57="minecraft:element_57",e.Element58="minecraft:element_58",e.Element59="minecraft:element_59",e.Element6="minecraft:element_6",e.Element60="minecraft:element_60",e.Element61="minecraft:element_61",e.Element62="minecraft:element_62",e.Element63="minecraft:element_63",e.Element64="minecraft:element_64",e.Element65="minecraft:element_65",e.Element66="minecraft:element_66",e.Element67="minecraft:element_67",e.Element68="minecraft:element_68",e.Element69="minecraft:element_69",e.Element7="minecraft:element_7",e.Element70="minecraft:element_70",e.Element71="minecraft:element_71",e.Element72="minecraft:element_72",e.Element73="minecraft:element_73",e.Element74="minecraft:element_74",e.Element75="minecraft:element_75",e.Element76="minecraft:element_76",e.Element77="minecraft:element_77",e.Element78="minecraft:element_78",e.Element79="minecraft:element_79",e.Element8="minecraft:element_8",e.Element80="minecraft:element_80",e.Element81="minecraft:element_81",e.Element82="minecraft:element_82",e.Element83="minecraft:element_83",e.Element84="minecraft:element_84",e.Element85="minecraft:element_85",e.Element86="minecraft:element_86",e.Element87="minecraft:element_87",e.Element88="minecraft:element_88",e.Element89="minecraft:element_89",e.Element9="minecraft:element_9",e.Element90="minecraft:element_90",e.Element91="minecraft:element_91",e.Element92="minecraft:element_92",e.Element93="minecraft:element_93",e.Element94="minecraft:element_94",e.Element95="minecraft:element_95",e.Element96="minecraft:element_96",e.Element97="minecraft:element_97",e.Element98="minecraft:element_98",e.Element99="minecraft:element_99",e.ElementConstructor="minecraft:element_constructor",e.EmeraldBlock="minecraft:emerald_block",e.EmeraldOre="minecraft:emerald_ore",e.EnchantingTable="minecraft:enchanting_table",e.EndBrickStairs="minecraft:end_brick_stairs",e.EndBricks="minecraft:end_bricks",e.EndPortal="minecraft:end_portal",e.EndPortalFrame="minecraft:end_portal_frame",e.EndRod="minecraft:end_rod",e.EndStone="minecraft:end_stone",e.EndStoneBrickDoubleSlab="minecraft:end_stone_brick_double_slab",e.EndStoneBrickSlab="minecraft:end_stone_brick_slab",e.EndStoneBrickWall="minecraft:end_stone_brick_wall",e.EnderChest="minecraft:ender_chest",e.ExposedChiseledCopper="minecraft:exposed_chiseled_copper",e.ExposedCopper="minecraft:exposed_copper",e.ExposedCopperBars="minecraft:exposed_copper_bars",e.ExposedCopperBulb="minecraft:exposed_copper_bulb",e.ExposedCopperChain="minecraft:exposed_copper_chain",e.ExposedCopperChest="minecraft:exposed_copper_chest",e.ExposedCopperDoor="minecraft:exposed_copper_door",e.ExposedCopperGolemStatue="minecraft:exposed_copper_golem_statue",e.ExposedCopperGrate="minecraft:exposed_copper_grate",e.ExposedCopperLantern="minecraft:exposed_copper_lantern",e.ExposedCopperTrapdoor="minecraft:exposed_copper_trapdoor",e.ExposedCutCopper="minecraft:exposed_cut_copper",e.ExposedCutCopperSlab="minecraft:exposed_cut_copper_slab",e.ExposedCutCopperStairs="minecraft:exposed_cut_copper_stairs",e.ExposedDoubleCutCopperSlab="minecraft:exposed_double_cut_copper_slab",e.ExposedLightningRod="minecraft:exposed_lightning_rod",e.Farmland="minecraft:farmland",e.FenceGate="minecraft:fence_gate",e.Fern="minecraft:fern",e.Fire="minecraft:fire",e.FireCoral="minecraft:fire_coral",e.FireCoralBlock="minecraft:fire_coral_block",e.FireCoralFan="minecraft:fire_coral_fan",e.FireCoralWallFan="minecraft:fire_coral_wall_fan",e.FireflyBush="minecraft:firefly_bush",e.FletchingTable="minecraft:fletching_table",e.FlowerPot="minecraft:flower_pot",e.FloweringAzalea="minecraft:flowering_azalea",e.FlowingLava="minecraft:flowing_lava",e.FlowingWater="minecraft:flowing_water",e.Frame="minecraft:frame",e.FrogSpawn="minecraft:frog_spawn",e.FrostedIce="minecraft:frosted_ice",e.Furnace="minecraft:furnace",e.GildedBlackstone="minecraft:gilded_blackstone",e.Glass="minecraft:glass",e.GlassPane="minecraft:glass_pane",e.GlowFrame="minecraft:glow_frame",e.GlowLichen="minecraft:glow_lichen",e.Glowstone="minecraft:glowstone",e.GoldBlock="minecraft:gold_block",e.GoldOre="minecraft:gold_ore",e.GoldenRail="minecraft:golden_rail",e.Granite="minecraft:granite",e.GraniteDoubleSlab="minecraft:granite_double_slab",e.GraniteSlab="minecraft:granite_slab",e.GraniteStairs="minecraft:granite_stairs",e.GraniteWall="minecraft:granite_wall",e.GrassBlock="minecraft:grass_block",e.GrassPath="minecraft:grass_path",e.Gravel="minecraft:gravel",e.GrayCandle="minecraft:gray_candle",e.GrayCandleCake="minecraft:gray_candle_cake",e.GrayCarpet="minecraft:gray_carpet",e.GrayConcrete="minecraft:gray_concrete",e.GrayConcretePowder="minecraft:gray_concrete_powder",e.GrayGlazedTerracotta="minecraft:gray_glazed_terracotta",e.GrayShulkerBox="minecraft:gray_shulker_box",e.GrayStainedGlass="minecraft:gray_stained_glass",e.GrayStainedGlassPane="minecraft:gray_stained_glass_pane",e.GrayTerracotta="minecraft:gray_terracotta",e.GrayWool="minecraft:gray_wool",e.GreenCandle="minecraft:green_candle",e.GreenCandleCake="minecraft:green_candle_cake",e.GreenCarpet="minecraft:green_carpet",e.GreenConcrete="minecraft:green_concrete",e.GreenConcretePowder="minecraft:green_concrete_powder",e.GreenGlazedTerracotta="minecraft:green_glazed_terracotta",e.GreenShulkerBox="minecraft:green_shulker_box",e.GreenStainedGlass="minecraft:green_stained_glass",e.GreenStainedGlassPane="minecraft:green_stained_glass_pane",e.GreenTerracotta="minecraft:green_terracotta",e.GreenWool="minecraft:green_wool",e.Grindstone="minecraft:grindstone",e.HangingRoots="minecraft:hanging_roots",e.HardBlackStainedGlass="minecraft:hard_black_stained_glass",e.HardBlackStainedGlassPane="minecraft:hard_black_stained_glass_pane",e.HardBlueStainedGlass="minecraft:hard_blue_stained_glass",e.HardBlueStainedGlassPane="minecraft:hard_blue_stained_glass_pane",e.HardBrownStainedGlass="minecraft:hard_brown_stained_glass",e.HardBrownStainedGlassPane="minecraft:hard_brown_stained_glass_pane",e.HardCyanStainedGlass="minecraft:hard_cyan_stained_glass",e.HardCyanStainedGlassPane="minecraft:hard_cyan_stained_glass_pane",e.HardGlass="minecraft:hard_glass",e.HardGlassPane="minecraft:hard_glass_pane",e.HardGrayStainedGlass="minecraft:hard_gray_stained_glass",e.HardGrayStainedGlassPane="minecraft:hard_gray_stained_glass_pane",e.HardGreenStainedGlass="minecraft:hard_green_stained_glass",e.HardGreenStainedGlassPane="minecraft:hard_green_stained_glass_pane",e.HardLightBlueStainedGlass="minecraft:hard_light_blue_stained_glass",e.HardLightBlueStainedGlassPane="minecraft:hard_light_blue_stained_glass_pane",e.HardLightGrayStainedGlass="minecraft:hard_light_gray_stained_glass",e.HardLightGrayStainedGlassPane="minecraft:hard_light_gray_stained_glass_pane",e.HardLimeStainedGlass="minecraft:hard_lime_stained_glass",e.HardLimeStainedGlassPane="minecraft:hard_lime_stained_glass_pane",e.HardMagentaStainedGlass="minecraft:hard_magenta_stained_glass",e.HardMagentaStainedGlassPane="minecraft:hard_magenta_stained_glass_pane",e.HardOrangeStainedGlass="minecraft:hard_orange_stained_glass",e.HardOrangeStainedGlassPane="minecraft:hard_orange_stained_glass_pane",e.HardPinkStainedGlass="minecraft:hard_pink_stained_glass",e.HardPinkStainedGlassPane="minecraft:hard_pink_stained_glass_pane",e.HardPurpleStainedGlass="minecraft:hard_purple_stained_glass",e.HardPurpleStainedGlassPane="minecraft:hard_purple_stained_glass_pane",e.HardRedStainedGlass="minecraft:hard_red_stained_glass",e.HardRedStainedGlassPane="minecraft:hard_red_stained_glass_pane",e.HardWhiteStainedGlass="minecraft:hard_white_stained_glass",e.HardWhiteStainedGlassPane="minecraft:hard_white_stained_glass_pane",e.HardYellowStainedGlass="minecraft:hard_yellow_stained_glass",e.HardYellowStainedGlassPane="minecraft:hard_yellow_stained_glass_pane",e.HardenedClay="minecraft:hardened_clay",e.HayBlock="minecraft:hay_block",e.HeavyCore="minecraft:heavy_core",e.HeavyWeightedPressurePlate="minecraft:heavy_weighted_pressure_plate",e.HoneyBlock="minecraft:honey_block",e.HoneycombBlock="minecraft:honeycomb_block",e.Hopper="minecraft:hopper",e.HornCoral="minecraft:horn_coral",e.HornCoralBlock="minecraft:horn_coral_block",e.HornCoralFan="minecraft:horn_coral_fan",e.HornCoralWallFan="minecraft:horn_coral_wall_fan",e.Ice="minecraft:ice",e.InfestedChiseledStoneBricks="minecraft:infested_chiseled_stone_bricks",e.InfestedCobblestone="minecraft:infested_cobblestone",e.InfestedCrackedStoneBricks="minecraft:infested_cracked_stone_bricks",e.InfestedDeepslate="minecraft:infested_deepslate",e.InfestedMossyStoneBricks="minecraft:infested_mossy_stone_bricks",e.InfestedStone="minecraft:infested_stone",e.InfestedStoneBricks="minecraft:infested_stone_bricks",e.IronBars="minecraft:iron_bars",e.IronBlock="minecraft:iron_block",e.IronChain="minecraft:iron_chain",e.IronDoor="minecraft:iron_door",e.IronOre="minecraft:iron_ore",e.IronTrapdoor="minecraft:iron_trapdoor",e.Jigsaw="minecraft:jigsaw",e.Jukebox="minecraft:jukebox",e.JungleButton="minecraft:jungle_button",e.JungleDoor="minecraft:jungle_door",e.JungleDoubleSlab="minecraft:jungle_double_slab",e.JungleFence="minecraft:jungle_fence",e.JungleFenceGate="minecraft:jungle_fence_gate",e.JungleHangingSign="minecraft:jungle_hanging_sign",e.JungleLeaves="minecraft:jungle_leaves",e.JungleLog="minecraft:jungle_log",e.JunglePlanks="minecraft:jungle_planks",e.JunglePressurePlate="minecraft:jungle_pressure_plate",e.JungleSapling="minecraft:jungle_sapling",e.JungleShelf="minecraft:jungle_shelf",e.JungleSlab="minecraft:jungle_slab",e.JungleStairs="minecraft:jungle_stairs",e.JungleStandingSign="minecraft:jungle_standing_sign",e.JungleTrapdoor="minecraft:jungle_trapdoor",e.JungleWallSign="minecraft:jungle_wall_sign",e.JungleWood="minecraft:jungle_wood",e.Kelp="minecraft:kelp",e.LabTable="minecraft:lab_table",e.Ladder="minecraft:ladder",e.Lantern="minecraft:lantern",e.LapisBlock="minecraft:lapis_block",e.LapisOre="minecraft:lapis_ore",e.LargeAmethystBud="minecraft:large_amethyst_bud",e.LargeFern="minecraft:large_fern",e.Lava="minecraft:lava",e.LeafLitter="minecraft:leaf_litter",e.Lectern="minecraft:lectern",e.Lever="minecraft:lever",e.LightBlock0="minecraft:light_block_0",e.LightBlock1="minecraft:light_block_1",e.LightBlock10="minecraft:light_block_10",e.LightBlock11="minecraft:light_block_11",e.LightBlock12="minecraft:light_block_12",e.LightBlock13="minecraft:light_block_13",e.LightBlock14="minecraft:light_block_14",e.LightBlock15="minecraft:light_block_15",e.LightBlock2="minecraft:light_block_2",e.LightBlock3="minecraft:light_block_3",e.LightBlock4="minecraft:light_block_4",e.LightBlock5="minecraft:light_block_5",e.LightBlock6="minecraft:light_block_6",e.LightBlock7="minecraft:light_block_7",e.LightBlock8="minecraft:light_block_8",e.LightBlock9="minecraft:light_block_9",e.LightBlueCandle="minecraft:light_blue_candle",e.LightBlueCandleCake="minecraft:light_blue_candle_cake",e.LightBlueCarpet="minecraft:light_blue_carpet",e.LightBlueConcrete="minecraft:light_blue_concrete",e.LightBlueConcretePowder="minecraft:light_blue_concrete_powder",e.LightBlueGlazedTerracotta="minecraft:light_blue_glazed_terracotta",e.LightBlueShulkerBox="minecraft:light_blue_shulker_box",e.LightBlueStainedGlass="minecraft:light_blue_stained_glass",e.LightBlueStainedGlassPane="minecraft:light_blue_stained_glass_pane",e.LightBlueTerracotta="minecraft:light_blue_terracotta",e.LightBlueWool="minecraft:light_blue_wool",e.LightGrayCandle="minecraft:light_gray_candle",e.LightGrayCandleCake="minecraft:light_gray_candle_cake",e.LightGrayCarpet="minecraft:light_gray_carpet",e.LightGrayConcrete="minecraft:light_gray_concrete",e.LightGrayConcretePowder="minecraft:light_gray_concrete_powder",e.LightGrayShulkerBox="minecraft:light_gray_shulker_box",e.LightGrayStainedGlass="minecraft:light_gray_stained_glass",e.LightGrayStainedGlassPane="minecraft:light_gray_stained_glass_pane",e.LightGrayTerracotta="minecraft:light_gray_terracotta",e.LightGrayWool="minecraft:light_gray_wool",e.LightWeightedPressurePlate="minecraft:light_weighted_pressure_plate",e.LightningRod="minecraft:lightning_rod",e.Lilac="minecraft:lilac",e.LilyOfTheValley="minecraft:lily_of_the_valley",e.LimeCandle="minecraft:lime_candle",e.LimeCandleCake="minecraft:lime_candle_cake",e.LimeCarpet="minecraft:lime_carpet",e.LimeConcrete="minecraft:lime_concrete",e.LimeConcretePowder="minecraft:lime_concrete_powder",e.LimeGlazedTerracotta="minecraft:lime_glazed_terracotta",e.LimeShulkerBox="minecraft:lime_shulker_box",e.LimeStainedGlass="minecraft:lime_stained_glass",e.LimeStainedGlassPane="minecraft:lime_stained_glass_pane",e.LimeTerracotta="minecraft:lime_terracotta",e.LimeWool="minecraft:lime_wool",e.LitBlastFurnace="minecraft:lit_blast_furnace",e.LitDeepslateRedstoneOre="minecraft:lit_deepslate_redstone_ore",e.LitFurnace="minecraft:lit_furnace",e.LitPumpkin="minecraft:lit_pumpkin",e.LitRedstoneLamp="minecraft:lit_redstone_lamp",e.LitRedstoneOre="minecraft:lit_redstone_ore",e.LitSmoker="minecraft:lit_smoker",e.Lodestone="minecraft:lodestone",e.Loom="minecraft:loom",e.MagentaCandle="minecraft:magenta_candle",e.MagentaCandleCake="minecraft:magenta_candle_cake",e.MagentaCarpet="minecraft:magenta_carpet",e.MagentaConcrete="minecraft:magenta_concrete",e.MagentaConcretePowder="minecraft:magenta_concrete_powder",e.MagentaGlazedTerracotta="minecraft:magenta_glazed_terracotta",e.MagentaShulkerBox="minecraft:magenta_shulker_box",e.MagentaStainedGlass="minecraft:magenta_stained_glass",e.MagentaStainedGlassPane="minecraft:magenta_stained_glass_pane",e.MagentaTerracotta="minecraft:magenta_terracotta",e.MagentaWool="minecraft:magenta_wool",e.Magma="minecraft:magma",e.MangroveButton="minecraft:mangrove_button",e.MangroveDoor="minecraft:mangrove_door",e.MangroveDoubleSlab="minecraft:mangrove_double_slab",e.MangroveFence="minecraft:mangrove_fence",e.MangroveFenceGate="minecraft:mangrove_fence_gate",e.MangroveHangingSign="minecraft:mangrove_hanging_sign",e.MangroveLeaves="minecraft:mangrove_leaves",e.MangroveLog="minecraft:mangrove_log",e.MangrovePlanks="minecraft:mangrove_planks",e.MangrovePressurePlate="minecraft:mangrove_pressure_plate",e.MangrovePropagule="minecraft:mangrove_propagule",e.MangroveRoots="minecraft:mangrove_roots",e.MangroveShelf="minecraft:mangrove_shelf",e.MangroveSlab="minecraft:mangrove_slab",e.MangroveStairs="minecraft:mangrove_stairs",e.MangroveStandingSign="minecraft:mangrove_standing_sign",e.MangroveTrapdoor="minecraft:mangrove_trapdoor",e.MangroveWallSign="minecraft:mangrove_wall_sign",e.MangroveWood="minecraft:mangrove_wood",e.MaterialReducer="minecraft:material_reducer",e.MediumAmethystBud="minecraft:medium_amethyst_bud",e.MelonBlock="minecraft:melon_block",e.MelonStem="minecraft:melon_stem",e.MobSpawner="minecraft:mob_spawner",e.MossBlock="minecraft:moss_block",e.MossCarpet="minecraft:moss_carpet",e.MossyCobblestone="minecraft:mossy_cobblestone",e.MossyCobblestoneDoubleSlab="minecraft:mossy_cobblestone_double_slab",e.MossyCobblestoneSlab="minecraft:mossy_cobblestone_slab",e.MossyCobblestoneStairs="minecraft:mossy_cobblestone_stairs",e.MossyCobblestoneWall="minecraft:mossy_cobblestone_wall",e.MossyStoneBrickDoubleSlab="minecraft:mossy_stone_brick_double_slab",e.MossyStoneBrickSlab="minecraft:mossy_stone_brick_slab",e.MossyStoneBrickStairs="minecraft:mossy_stone_brick_stairs",e.MossyStoneBrickWall="minecraft:mossy_stone_brick_wall",e.MossyStoneBricks="minecraft:mossy_stone_bricks",e.Mud="minecraft:mud",e.MudBrickDoubleSlab="minecraft:mud_brick_double_slab",e.MudBrickSlab="minecraft:mud_brick_slab",e.MudBrickStairs="minecraft:mud_brick_stairs",e.MudBrickWall="minecraft:mud_brick_wall",e.MudBricks="minecraft:mud_bricks",e.MuddyMangroveRoots="minecraft:muddy_mangrove_roots",e.MushroomStem="minecraft:mushroom_stem",e.Mycelium="minecraft:mycelium",e.NetherBrick="minecraft:nether_brick",e.NetherBrickDoubleSlab="minecraft:nether_brick_double_slab",e.NetherBrickFence="minecraft:nether_brick_fence",e.NetherBrickSlab="minecraft:nether_brick_slab",e.NetherBrickStairs="minecraft:nether_brick_stairs",e.NetherBrickWall="minecraft:nether_brick_wall",e.NetherGoldOre="minecraft:nether_gold_ore",e.NetherSprouts="minecraft:nether_sprouts",e.NetherWart="minecraft:nether_wart",e.NetherWartBlock="minecraft:nether_wart_block",e.NetheriteBlock="minecraft:netherite_block",e.Netherrack="minecraft:netherrack",e.NormalStoneDoubleSlab="minecraft:normal_stone_double_slab",e.NormalStoneSlab="minecraft:normal_stone_slab",e.NormalStoneStairs="minecraft:normal_stone_stairs",e.Noteblock="minecraft:noteblock",e.OakDoubleSlab="minecraft:oak_double_slab",e.OakFence="minecraft:oak_fence",e.OakHangingSign="minecraft:oak_hanging_sign",e.OakLeaves="minecraft:oak_leaves",e.OakLog="minecraft:oak_log",e.OakPlanks="minecraft:oak_planks",e.OakSapling="minecraft:oak_sapling",e.OakShelf="minecraft:oak_shelf",e.OakSlab="minecraft:oak_slab",e.OakStairs="minecraft:oak_stairs",e.OakWood="minecraft:oak_wood",e.Observer="minecraft:observer",e.Obsidian="minecraft:obsidian",e.OchreFroglight="minecraft:ochre_froglight",e.OpenEyeblossom="minecraft:open_eyeblossom",e.OrangeCandle="minecraft:orange_candle",e.OrangeCandleCake="minecraft:orange_candle_cake",e.OrangeCarpet="minecraft:orange_carpet",e.OrangeConcrete="minecraft:orange_concrete",e.OrangeConcretePowder="minecraft:orange_concrete_powder",e.OrangeGlazedTerracotta="minecraft:orange_glazed_terracotta",e.OrangeShulkerBox="minecraft:orange_shulker_box",e.OrangeStainedGlass="minecraft:orange_stained_glass",e.OrangeStainedGlassPane="minecraft:orange_stained_glass_pane",e.OrangeTerracotta="minecraft:orange_terracotta",e.OrangeTulip="minecraft:orange_tulip",e.OrangeWool="minecraft:orange_wool",e.OxeyeDaisy="minecraft:oxeye_daisy",e.OxidizedChiseledCopper="minecraft:oxidized_chiseled_copper",e.OxidizedCopper="minecraft:oxidized_copper",e.OxidizedCopperBars="minecraft:oxidized_copper_bars",e.OxidizedCopperBulb="minecraft:oxidized_copper_bulb",e.OxidizedCopperChain="minecraft:oxidized_copper_chain",e.OxidizedCopperChest="minecraft:oxidized_copper_chest",e.OxidizedCopperDoor="minecraft:oxidized_copper_door",e.OxidizedCopperGolemStatue="minecraft:oxidized_copper_golem_statue",e.OxidizedCopperGrate="minecraft:oxidized_copper_grate",e.OxidizedCopperLantern="minecraft:oxidized_copper_lantern",e.OxidizedCopperTrapdoor="minecraft:oxidized_copper_trapdoor",e.OxidizedCutCopper="minecraft:oxidized_cut_copper",e.OxidizedCutCopperSlab="minecraft:oxidized_cut_copper_slab",e.OxidizedCutCopperStairs="minecraft:oxidized_cut_copper_stairs",e.OxidizedDoubleCutCopperSlab="minecraft:oxidized_double_cut_copper_slab",e.OxidizedLightningRod="minecraft:oxidized_lightning_rod",e.PackedIce="minecraft:packed_ice",e.PackedMud="minecraft:packed_mud",e.PaleHangingMoss="minecraft:pale_hanging_moss",e.PaleMossBlock="minecraft:pale_moss_block",e.PaleMossCarpet="minecraft:pale_moss_carpet",e.PaleOakButton="minecraft:pale_oak_button",e.PaleOakDoor="minecraft:pale_oak_door",e.PaleOakDoubleSlab="minecraft:pale_oak_double_slab",e.PaleOakFence="minecraft:pale_oak_fence",e.PaleOakFenceGate="minecraft:pale_oak_fence_gate",e.PaleOakHangingSign="minecraft:pale_oak_hanging_sign",e.PaleOakLeaves="minecraft:pale_oak_leaves",e.PaleOakLog="minecraft:pale_oak_log",e.PaleOakPlanks="minecraft:pale_oak_planks",e.PaleOakPressurePlate="minecraft:pale_oak_pressure_plate",e.PaleOakSapling="minecraft:pale_oak_sapling",e.PaleOakShelf="minecraft:pale_oak_shelf",e.PaleOakSlab="minecraft:pale_oak_slab",e.PaleOakStairs="minecraft:pale_oak_stairs",e.PaleOakStandingSign="minecraft:pale_oak_standing_sign",e.PaleOakTrapdoor="minecraft:pale_oak_trapdoor",e.PaleOakWallSign="minecraft:pale_oak_wall_sign",e.PaleOakWood="minecraft:pale_oak_wood",e.PearlescentFroglight="minecraft:pearlescent_froglight",e.Peony="minecraft:peony",e.PetrifiedOakDoubleSlab="minecraft:petrified_oak_double_slab",e.PetrifiedOakSlab="minecraft:petrified_oak_slab",e.PiglinHead="minecraft:piglin_head",e.PinkCandle="minecraft:pink_candle",e.PinkCandleCake="minecraft:pink_candle_cake",e.PinkCarpet="minecraft:pink_carpet",e.PinkConcrete="minecraft:pink_concrete",e.PinkConcretePowder="minecraft:pink_concrete_powder",e.PinkGlazedTerracotta="minecraft:pink_glazed_terracotta",e.PinkPetals="minecraft:pink_petals",e.PinkShulkerBox="minecraft:pink_shulker_box",e.PinkStainedGlass="minecraft:pink_stained_glass",e.PinkStainedGlassPane="minecraft:pink_stained_glass_pane",e.PinkTerracotta="minecraft:pink_terracotta",e.PinkTulip="minecraft:pink_tulip",e.PinkWool="minecraft:pink_wool",e.Piston="minecraft:piston",e.PistonArmCollision="minecraft:piston_arm_collision",e.PitcherCrop="minecraft:pitcher_crop",e.PitcherPlant="minecraft:pitcher_plant",e.PlayerHead="minecraft:player_head",e.Podzol="minecraft:podzol",e.PointedDripstone="minecraft:pointed_dripstone",e.PolishedAndesite="minecraft:polished_andesite",e.PolishedAndesiteDoubleSlab="minecraft:polished_andesite_double_slab",e.PolishedAndesiteSlab="minecraft:polished_andesite_slab",e.PolishedAndesiteStairs="minecraft:polished_andesite_stairs",e.PolishedBasalt="minecraft:polished_basalt",e.PolishedBlackstone="minecraft:polished_blackstone",e.PolishedBlackstoneBrickDoubleSlab="minecraft:polished_blackstone_brick_double_slab",e.PolishedBlackstoneBrickSlab="minecraft:polished_blackstone_brick_slab",e.PolishedBlackstoneBrickStairs="minecraft:polished_blackstone_brick_stairs",e.PolishedBlackstoneBrickWall="minecraft:polished_blackstone_brick_wall",e.PolishedBlackstoneBricks="minecraft:polished_blackstone_bricks",e.PolishedBlackstoneButton="minecraft:polished_blackstone_button",e.PolishedBlackstoneDoubleSlab="minecraft:polished_blackstone_double_slab",e.PolishedBlackstonePressurePlate="minecraft:polished_blackstone_pressure_plate",e.PolishedBlackstoneSlab="minecraft:polished_blackstone_slab",e.PolishedBlackstoneStairs="minecraft:polished_blackstone_stairs",e.PolishedBlackstoneWall="minecraft:polished_blackstone_wall",e.PolishedDeepslate="minecraft:polished_deepslate",e.PolishedDeepslateDoubleSlab="minecraft:polished_deepslate_double_slab",e.PolishedDeepslateSlab="minecraft:polished_deepslate_slab",e.PolishedDeepslateStairs="minecraft:polished_deepslate_stairs",e.PolishedDeepslateWall="minecraft:polished_deepslate_wall",e.PolishedDiorite="minecraft:polished_diorite",e.PolishedDioriteDoubleSlab="minecraft:polished_diorite_double_slab",e.PolishedDioriteSlab="minecraft:polished_diorite_slab",e.PolishedDioriteStairs="minecraft:polished_diorite_stairs",e.PolishedGranite="minecraft:polished_granite",e.PolishedGraniteDoubleSlab="minecraft:polished_granite_double_slab",e.PolishedGraniteSlab="minecraft:polished_granite_slab",e.PolishedGraniteStairs="minecraft:polished_granite_stairs",e.PolishedTuff="minecraft:polished_tuff",e.PolishedTuffDoubleSlab="minecraft:polished_tuff_double_slab",e.PolishedTuffSlab="minecraft:polished_tuff_slab",e.PolishedTuffStairs="minecraft:polished_tuff_stairs",e.PolishedTuffWall="minecraft:polished_tuff_wall",e.Poppy="minecraft:poppy",e.Portal="minecraft:portal",e.Potatoes="minecraft:potatoes",e.PowderSnow="minecraft:powder_snow",e.PoweredComparator="minecraft:powered_comparator",e.PoweredRepeater="minecraft:powered_repeater",e.Prismarine="minecraft:prismarine",e.PrismarineBrickDoubleSlab="minecraft:prismarine_brick_double_slab",e.PrismarineBrickSlab="minecraft:prismarine_brick_slab",e.PrismarineBricks="minecraft:prismarine_bricks",e.PrismarineBricksStairs="minecraft:prismarine_bricks_stairs",e.PrismarineDoubleSlab="minecraft:prismarine_double_slab",e.PrismarineSlab="minecraft:prismarine_slab",e.PrismarineStairs="minecraft:prismarine_stairs",e.PrismarineWall="minecraft:prismarine_wall",e.Pumpkin="minecraft:pumpkin",e.PumpkinStem="minecraft:pumpkin_stem",e.PurpleCandle="minecraft:purple_candle",e.PurpleCandleCake="minecraft:purple_candle_cake",e.PurpleCarpet="minecraft:purple_carpet",e.PurpleConcrete="minecraft:purple_concrete",e.PurpleConcretePowder="minecraft:purple_concrete_powder",e.PurpleGlazedTerracotta="minecraft:purple_glazed_terracotta",e.PurpleShulkerBox="minecraft:purple_shulker_box",e.PurpleStainedGlass="minecraft:purple_stained_glass",e.PurpleStainedGlassPane="minecraft:purple_stained_glass_pane",e.PurpleTerracotta="minecraft:purple_terracotta",e.PurpleWool="minecraft:purple_wool",e.PurpurBlock="minecraft:purpur_block",e.PurpurDoubleSlab="minecraft:purpur_double_slab",e.PurpurPillar="minecraft:purpur_pillar",e.PurpurSlab="minecraft:purpur_slab",e.PurpurStairs="minecraft:purpur_stairs",e.QuartzBlock="minecraft:quartz_block",e.QuartzBricks="minecraft:quartz_bricks",e.QuartzDoubleSlab="minecraft:quartz_double_slab",e.QuartzOre="minecraft:quartz_ore",e.QuartzPillar="minecraft:quartz_pillar",e.QuartzSlab="minecraft:quartz_slab",e.QuartzStairs="minecraft:quartz_stairs",e.Rail="minecraft:rail",e.RawCopperBlock="minecraft:raw_copper_block",e.RawGoldBlock="minecraft:raw_gold_block",e.RawIronBlock="minecraft:raw_iron_block",e.RedCandle="minecraft:red_candle",e.RedCandleCake="minecraft:red_candle_cake",e.RedCarpet="minecraft:red_carpet",e.RedConcrete="minecraft:red_concrete",e.RedConcretePowder="minecraft:red_concrete_powder",e.RedGlazedTerracotta="minecraft:red_glazed_terracotta",e.RedMushroom="minecraft:red_mushroom",e.RedMushroomBlock="minecraft:red_mushroom_block",e.RedNetherBrick="minecraft:red_nether_brick",e.RedNetherBrickDoubleSlab="minecraft:red_nether_brick_double_slab",e.RedNetherBrickSlab="minecraft:red_nether_brick_slab",e.RedNetherBrickStairs="minecraft:red_nether_brick_stairs",e.RedNetherBrickWall="minecraft:red_nether_brick_wall",e.RedSand="minecraft:red_sand",e.RedSandstone="minecraft:red_sandstone",e.RedSandstoneDoubleSlab="minecraft:red_sandstone_double_slab",e.RedSandstoneSlab="minecraft:red_sandstone_slab",e.RedSandstoneStairs="minecraft:red_sandstone_stairs",e.RedSandstoneWall="minecraft:red_sandstone_wall",e.RedShulkerBox="minecraft:red_shulker_box",e.RedStainedGlass="minecraft:red_stained_glass",e.RedStainedGlassPane="minecraft:red_stained_glass_pane",e.RedTerracotta="minecraft:red_terracotta",e.RedTulip="minecraft:red_tulip",e.RedWool="minecraft:red_wool",e.RedstoneBlock="minecraft:redstone_block",e.RedstoneLamp="minecraft:redstone_lamp",e.RedstoneOre="minecraft:redstone_ore",e.RedstoneTorch="minecraft:redstone_torch",e.RedstoneWire="minecraft:redstone_wire",e.Reeds="minecraft:reeds",e.ReinforcedDeepslate="minecraft:reinforced_deepslate",e.RepeatingCommandBlock="minecraft:repeating_command_block",e.ResinBlock="minecraft:resin_block",e.ResinBrickDoubleSlab="minecraft:resin_brick_double_slab",e.ResinBrickSlab="minecraft:resin_brick_slab",e.ResinBrickStairs="minecraft:resin_brick_stairs",e.ResinBrickWall="minecraft:resin_brick_wall",e.ResinBricks="minecraft:resin_bricks",e.ResinClump="minecraft:resin_clump",e.RespawnAnchor="minecraft:respawn_anchor",e.RoseBush="minecraft:rose_bush",e.Sand="minecraft:sand",e.Sandstone="minecraft:sandstone",e.SandstoneDoubleSlab="minecraft:sandstone_double_slab",e.SandstoneSlab="minecraft:sandstone_slab",e.SandstoneStairs="minecraft:sandstone_stairs",e.SandstoneWall="minecraft:sandstone_wall",e.Scaffolding="minecraft:scaffolding",e.Sculk="minecraft:sculk",e.SculkCatalyst="minecraft:sculk_catalyst",e.SculkSensor="minecraft:sculk_sensor",e.SculkShrieker="minecraft:sculk_shrieker",e.SculkVein="minecraft:sculk_vein",e.SeaLantern="minecraft:sea_lantern",e.SeaPickle="minecraft:sea_pickle",e.Seagrass="minecraft:seagrass",e.ShortDryGrass="minecraft:short_dry_grass",e.ShortGrass="minecraft:short_grass",e.Shroomlight="minecraft:shroomlight",e.SilverGlazedTerracotta="minecraft:silver_glazed_terracotta",e.SkeletonSkull="minecraft:skeleton_skull",e.Slime="minecraft:slime",e.SmallAmethystBud="minecraft:small_amethyst_bud",e.SmallDripleafBlock="minecraft:small_dripleaf_block",e.SmithingTable="minecraft:smithing_table",e.Smoker="minecraft:smoker",e.SmoothBasalt="minecraft:smooth_basalt",e.SmoothQuartz="minecraft:smooth_quartz",e.SmoothQuartzDoubleSlab="minecraft:smooth_quartz_double_slab",e.SmoothQuartzSlab="minecraft:smooth_quartz_slab",e.SmoothQuartzStairs="minecraft:smooth_quartz_stairs",e.SmoothRedSandstone="minecraft:smooth_red_sandstone",e.SmoothRedSandstoneDoubleSlab="minecraft:smooth_red_sandstone_double_slab",e.SmoothRedSandstoneSlab="minecraft:smooth_red_sandstone_slab",e.SmoothRedSandstoneStairs="minecraft:smooth_red_sandstone_stairs",e.SmoothSandstone="minecraft:smooth_sandstone",e.SmoothSandstoneDoubleSlab="minecraft:smooth_sandstone_double_slab",e.SmoothSandstoneSlab="minecraft:smooth_sandstone_slab",e.SmoothSandstoneStairs="minecraft:smooth_sandstone_stairs",e.SmoothStone="minecraft:smooth_stone",e.SmoothStoneDoubleSlab="minecraft:smooth_stone_double_slab",e.SmoothStoneSlab="minecraft:smooth_stone_slab",e.SnifferEgg="minecraft:sniffer_egg",e.Snow="minecraft:snow",e.SnowLayer="minecraft:snow_layer",e.SoulCampfire="minecraft:soul_campfire",e.SoulFire="minecraft:soul_fire",e.SoulLantern="minecraft:soul_lantern",e.SoulSand="minecraft:soul_sand",e.SoulSoil="minecraft:soul_soil",e.SoulTorch="minecraft:soul_torch",e.Sponge="minecraft:sponge",e.SporeBlossom="minecraft:spore_blossom",e.SpruceButton="minecraft:spruce_button",e.SpruceDoor="minecraft:spruce_door",e.SpruceDoubleSlab="minecraft:spruce_double_slab",e.SpruceFence="minecraft:spruce_fence",e.SpruceFenceGate="minecraft:spruce_fence_gate",e.SpruceHangingSign="minecraft:spruce_hanging_sign",e.SpruceLeaves="minecraft:spruce_leaves",e.SpruceLog="minecraft:spruce_log",e.SprucePlanks="minecraft:spruce_planks",e.SprucePressurePlate="minecraft:spruce_pressure_plate",e.SpruceSapling="minecraft:spruce_sapling",e.SpruceShelf="minecraft:spruce_shelf",e.SpruceSlab="minecraft:spruce_slab",e.SpruceStairs="minecraft:spruce_stairs",e.SpruceStandingSign="minecraft:spruce_standing_sign",e.SpruceTrapdoor="minecraft:spruce_trapdoor",e.SpruceWallSign="minecraft:spruce_wall_sign",e.SpruceWood="minecraft:spruce_wood",e.StandingBanner="minecraft:standing_banner",e.StandingSign="minecraft:standing_sign",e.StickyPiston="minecraft:sticky_piston",e.StickyPistonArmCollision="minecraft:sticky_piston_arm_collision",e.Stone="minecraft:stone",e.StoneBrickDoubleSlab="minecraft:stone_brick_double_slab",e.StoneBrickSlab="minecraft:stone_brick_slab",e.StoneBrickStairs="minecraft:stone_brick_stairs",e.StoneBrickWall="minecraft:stone_brick_wall",e.StoneBricks="minecraft:stone_bricks",e.StoneButton="minecraft:stone_button",e.StonePressurePlate="minecraft:stone_pressure_plate",e.StoneStairs="minecraft:stone_stairs",e.StonecutterBlock="minecraft:stonecutter_block",e.StrippedAcaciaLog="minecraft:stripped_acacia_log",e.StrippedAcaciaWood="minecraft:stripped_acacia_wood",e.StrippedBambooBlock="minecraft:stripped_bamboo_block",e.StrippedBirchLog="minecraft:stripped_birch_log",e.StrippedBirchWood="minecraft:stripped_birch_wood",e.StrippedCherryLog="minecraft:stripped_cherry_log",e.StrippedCherryWood="minecraft:stripped_cherry_wood",e.StrippedCrimsonHyphae="minecraft:stripped_crimson_hyphae",e.StrippedCrimsonStem="minecraft:stripped_crimson_stem",e.StrippedDarkOakLog="minecraft:stripped_dark_oak_log",e.StrippedDarkOakWood="minecraft:stripped_dark_oak_wood",e.StrippedJungleLog="minecraft:stripped_jungle_log",e.StrippedJungleWood="minecraft:stripped_jungle_wood",e.StrippedMangroveLog="minecraft:stripped_mangrove_log",e.StrippedMangroveWood="minecraft:stripped_mangrove_wood",e.StrippedOakLog="minecraft:stripped_oak_log",e.StrippedOakWood="minecraft:stripped_oak_wood",e.StrippedPaleOakLog="minecraft:stripped_pale_oak_log",e.StrippedPaleOakWood="minecraft:stripped_pale_oak_wood",e.StrippedSpruceLog="minecraft:stripped_spruce_log",e.StrippedSpruceWood="minecraft:stripped_spruce_wood",e.StrippedWarpedHyphae="minecraft:stripped_warped_hyphae",e.StrippedWarpedStem="minecraft:stripped_warped_stem",e.StructureBlock="minecraft:structure_block",e.StructureVoid="minecraft:structure_void",e.Sunflower="minecraft:sunflower",e.SuspiciousGravel="minecraft:suspicious_gravel",e.SuspiciousSand="minecraft:suspicious_sand",e.SweetBerryBush="minecraft:sweet_berry_bush",e.TallDryGrass="minecraft:tall_dry_grass",e.TallGrass="minecraft:tall_grass",e.Target="minecraft:target",e.TintedGlass="minecraft:tinted_glass",e.Tnt="minecraft:tnt",e.Torch="minecraft:torch",e.Torchflower="minecraft:torchflower",e.TorchflowerCrop="minecraft:torchflower_crop",e.Trapdoor="minecraft:trapdoor",e.TrappedChest="minecraft:trapped_chest",e.TrialSpawner="minecraft:trial_spawner",e.TripWire="minecraft:trip_wire",e.TripwireHook="minecraft:tripwire_hook",e.TubeCoral="minecraft:tube_coral",e.TubeCoralBlock="minecraft:tube_coral_block",e.TubeCoralFan="minecraft:tube_coral_fan",e.TubeCoralWallFan="minecraft:tube_coral_wall_fan",e.Tuff="minecraft:tuff",e.TuffBrickDoubleSlab="minecraft:tuff_brick_double_slab",e.TuffBrickSlab="minecraft:tuff_brick_slab",e.TuffBrickStairs="minecraft:tuff_brick_stairs",e.TuffBrickWall="minecraft:tuff_brick_wall",e.TuffBricks="minecraft:tuff_bricks",e.TuffDoubleSlab="minecraft:tuff_double_slab",e.TuffSlab="minecraft:tuff_slab",e.TuffStairs="minecraft:tuff_stairs",e.TuffWall="minecraft:tuff_wall",e.TurtleEgg="minecraft:turtle_egg",e.TwistingVines="minecraft:twisting_vines",e.UnderwaterTnt="minecraft:underwater_tnt",e.UnderwaterTorch="minecraft:underwater_torch",e.UndyedShulkerBox="minecraft:undyed_shulker_box",e.Unknown="minecraft:unknown",e.UnlitRedstoneTorch="minecraft:unlit_redstone_torch",e.UnpoweredComparator="minecraft:unpowered_comparator",e.UnpoweredRepeater="minecraft:unpowered_repeater",e.Vault="minecraft:vault",e.VerdantFroglight="minecraft:verdant_froglight",e.Vine="minecraft:vine",e.WallBanner="minecraft:wall_banner",e.WallSign="minecraft:wall_sign",e.WarpedButton="minecraft:warped_button",e.WarpedDoor="minecraft:warped_door",e.WarpedDoubleSlab="minecraft:warped_double_slab",e.WarpedFence="minecraft:warped_fence",e.WarpedFenceGate="minecraft:warped_fence_gate",e.WarpedFungus="minecraft:warped_fungus",e.WarpedHangingSign="minecraft:warped_hanging_sign",e.WarpedHyphae="minecraft:warped_hyphae",e.WarpedNylium="minecraft:warped_nylium",e.WarpedPlanks="minecraft:warped_planks",e.WarpedPressurePlate="minecraft:warped_pressure_plate",e.WarpedRoots="minecraft:warped_roots",e.WarpedShelf="minecraft:warped_shelf",e.WarpedSlab="minecraft:warped_slab",e.WarpedStairs="minecraft:warped_stairs",e.WarpedStandingSign="minecraft:warped_standing_sign",e.WarpedStem="minecraft:warped_stem",e.WarpedTrapdoor="minecraft:warped_trapdoor",e.WarpedWallSign="minecraft:warped_wall_sign",e.WarpedWartBlock="minecraft:warped_wart_block",e.Water="minecraft:water",e.Waterlily="minecraft:waterlily",e.WaxedChiseledCopper="minecraft:waxed_chiseled_copper",e.WaxedCopper="minecraft:waxed_copper",e.WaxedCopperBars="minecraft:waxed_copper_bars",e.WaxedCopperBulb="minecraft:waxed_copper_bulb",e.WaxedCopperChain="minecraft:waxed_copper_chain",e.WaxedCopperChest="minecraft:waxed_copper_chest",e.WaxedCopperDoor="minecraft:waxed_copper_door",e.WaxedCopperGolemStatue="minecraft:waxed_copper_golem_statue",e.WaxedCopperGrate="minecraft:waxed_copper_grate",e.WaxedCopperLantern="minecraft:waxed_copper_lantern",e.WaxedCopperTrapdoor="minecraft:waxed_copper_trapdoor",e.WaxedCutCopper="minecraft:waxed_cut_copper",e.WaxedCutCopperSlab="minecraft:waxed_cut_copper_slab",e.WaxedCutCopperStairs="minecraft:waxed_cut_copper_stairs",e.WaxedDoubleCutCopperSlab="minecraft:waxed_double_cut_copper_slab",e.WaxedExposedChiseledCopper="minecraft:waxed_exposed_chiseled_copper",e.WaxedExposedCopper="minecraft:waxed_exposed_copper",e.WaxedExposedCopperBars="minecraft:waxed_exposed_copper_bars",e.WaxedExposedCopperBulb="minecraft:waxed_exposed_copper_bulb",e.WaxedExposedCopperChain="minecraft:waxed_exposed_copper_chain",e.WaxedExposedCopperChest="minecraft:waxed_exposed_copper_chest",e.WaxedExposedCopperDoor="minecraft:waxed_exposed_copper_door",e.WaxedExposedCopperGolemStatue="minecraft:waxed_exposed_copper_golem_statue",e.WaxedExposedCopperGrate="minecraft:waxed_exposed_copper_grate",e.WaxedExposedCopperLantern="minecraft:waxed_exposed_copper_lantern",e.WaxedExposedCopperTrapdoor="minecraft:waxed_exposed_copper_trapdoor",e.WaxedExposedCutCopper="minecraft:waxed_exposed_cut_copper",e.WaxedExposedCutCopperSlab="minecraft:waxed_exposed_cut_copper_slab",e.WaxedExposedCutCopperStairs="minecraft:waxed_exposed_cut_copper_stairs",e.WaxedExposedDoubleCutCopperSlab="minecraft:waxed_exposed_double_cut_copper_slab",e.WaxedExposedLightningRod="minecraft:waxed_exposed_lightning_rod",e.WaxedLightningRod="minecraft:waxed_lightning_rod",e.WaxedOxidizedChiseledCopper="minecraft:waxed_oxidized_chiseled_copper",e.WaxedOxidizedCopper="minecraft:waxed_oxidized_copper",e.WaxedOxidizedCopperBars="minecraft:waxed_oxidized_copper_bars",e.WaxedOxidizedCopperBulb="minecraft:waxed_oxidized_copper_bulb",e.WaxedOxidizedCopperChain="minecraft:waxed_oxidized_copper_chain",e.WaxedOxidizedCopperChest="minecraft:waxed_oxidized_copper_chest",e.WaxedOxidizedCopperDoor="minecraft:waxed_oxidized_copper_door",e.WaxedOxidizedCopperGolemStatue="minecraft:waxed_oxidized_copper_golem_statue",e.WaxedOxidizedCopperGrate="minecraft:waxed_oxidized_copper_grate",e.WaxedOxidizedCopperLantern="minecraft:waxed_oxidized_copper_lantern",e.WaxedOxidizedCopperTrapdoor="minecraft:waxed_oxidized_copper_trapdoor",e.WaxedOxidizedCutCopper="minecraft:waxed_oxidized_cut_copper",e.WaxedOxidizedCutCopperSlab="minecraft:waxed_oxidized_cut_copper_slab",e.WaxedOxidizedCutCopperStairs="minecraft:waxed_oxidized_cut_copper_stairs",e.WaxedOxidizedDoubleCutCopperSlab="minecraft:waxed_oxidized_double_cut_copper_slab",e.WaxedOxidizedLightningRod="minecraft:waxed_oxidized_lightning_rod",e.WaxedWeatheredChiseledCopper="minecraft:waxed_weathered_chiseled_copper",e.WaxedWeatheredCopper="minecraft:waxed_weathered_copper",e.WaxedWeatheredCopperBars="minecraft:waxed_weathered_copper_bars",e.WaxedWeatheredCopperBulb="minecraft:waxed_weathered_copper_bulb",e.WaxedWeatheredCopperChain="minecraft:waxed_weathered_copper_chain",e.WaxedWeatheredCopperChest="minecraft:waxed_weathered_copper_chest",e.WaxedWeatheredCopperDoor="minecraft:waxed_weathered_copper_door",e.WaxedWeatheredCopperGolemStatue="minecraft:waxed_weathered_copper_golem_statue",e.WaxedWeatheredCopperGrate="minecraft:waxed_weathered_copper_grate",e.WaxedWeatheredCopperLantern="minecraft:waxed_weathered_copper_lantern",e.WaxedWeatheredCopperTrapdoor="minecraft:waxed_weathered_copper_trapdoor",e.WaxedWeatheredCutCopper="minecraft:waxed_weathered_cut_copper",e.WaxedWeatheredCutCopperSlab="minecraft:waxed_weathered_cut_copper_slab",e.WaxedWeatheredCutCopperStairs="minecraft:waxed_weathered_cut_copper_stairs",e.WaxedWeatheredDoubleCutCopperSlab="minecraft:waxed_weathered_double_cut_copper_slab",e.WaxedWeatheredLightningRod="minecraft:waxed_weathered_lightning_rod",e.WeatheredChiseledCopper="minecraft:weathered_chiseled_copper",e.WeatheredCopper="minecraft:weathered_copper",e.WeatheredCopperBars="minecraft:weathered_copper_bars",e.WeatheredCopperBulb="minecraft:weathered_copper_bulb",e.WeatheredCopperChain="minecraft:weathered_copper_chain",e.WeatheredCopperChest="minecraft:weathered_copper_chest",e.WeatheredCopperDoor="minecraft:weathered_copper_door",e.WeatheredCopperGolemStatue="minecraft:weathered_copper_golem_statue",e.WeatheredCopperGrate="minecraft:weathered_copper_grate",e.WeatheredCopperLantern="minecraft:weathered_copper_lantern",e.WeatheredCopperTrapdoor="minecraft:weathered_copper_trapdoor",e.WeatheredCutCopper="minecraft:weathered_cut_copper",e.WeatheredCutCopperSlab="minecraft:weathered_cut_copper_slab",e.WeatheredCutCopperStairs="minecraft:weathered_cut_copper_stairs",e.WeatheredDoubleCutCopperSlab="minecraft:weathered_double_cut_copper_slab",e.WeatheredLightningRod="minecraft:weathered_lightning_rod",e.Web="minecraft:web",e.WeepingVines="minecraft:weeping_vines",e.WetSponge="minecraft:wet_sponge",e.Wheat="minecraft:wheat",e.WhiteCandle="minecraft:white_candle",e.WhiteCandleCake="minecraft:white_candle_cake",e.WhiteCarpet="minecraft:white_carpet",e.WhiteConcrete="minecraft:white_concrete",e.WhiteConcretePowder="minecraft:white_concrete_powder",e.WhiteGlazedTerracotta="minecraft:white_glazed_terracotta",e.WhiteShulkerBox="minecraft:white_shulker_box",e.WhiteStainedGlass="minecraft:white_stained_glass",e.WhiteStainedGlassPane="minecraft:white_stained_glass_pane",e.WhiteTerracotta="minecraft:white_terracotta",e.WhiteTulip="minecraft:white_tulip",e.WhiteWool="minecraft:white_wool",e.Wildflowers="minecraft:wildflowers",e.WitherRose="minecraft:wither_rose",e.WitherSkeletonSkull="minecraft:wither_skeleton_skull",e.WoodenButton="minecraft:wooden_button",e.WoodenDoor="minecraft:wooden_door",e.WoodenPressurePlate="minecraft:wooden_pressure_plate",e.YellowCandle="minecraft:yellow_candle",e.YellowCandleCake="minecraft:yellow_candle_cake",e.YellowCarpet="minecraft:yellow_carpet",e.YellowConcrete="minecraft:yellow_concrete",e.YellowConcretePowder="minecraft:yellow_concrete_powder",e.YellowGlazedTerracotta="minecraft:yellow_glazed_terracotta",e.YellowShulkerBox="minecraft:yellow_shulker_box",e.YellowStainedGlass="minecraft:yellow_stained_glass",e.YellowStainedGlassPane="minecraft:yellow_stained_glass_pane",e.YellowTerracotta="minecraft:yellow_terracotta",e.YellowWool="minecraft:yellow_wool",e.ZombieHead="minecraft:zombie_head",e))(oe||{}),le=(e=>(e.Agent="minecraft:agent",e.Allay="minecraft:allay",e.AreaEffectCloud="minecraft:area_effect_cloud",e.Armadillo="minecraft:armadillo",e.ArmorStand="minecraft:armor_stand",e.Arrow="minecraft:arrow",e.Axolotl="minecraft:axolotl",e.Bat="minecraft:bat",e.Bee="minecraft:bee",e.Blaze="minecraft:blaze",e.Boat="minecraft:boat",e.Bogged="minecraft:bogged",e.Breeze="minecraft:breeze",e.BreezeWindChargeProjectile="minecraft:breeze_wind_charge_projectile",e.Camel="minecraft:camel",e.CamelHusk="minecraft:camel_husk",e.Cat="minecraft:cat",e.CaveSpider="minecraft:cave_spider",e.ChestBoat="minecraft:chest_boat",e.ChestMinecart="minecraft:chest_minecart",e.Chicken="minecraft:chicken",e.Cod="minecraft:cod",e.CommandBlockMinecart="minecraft:command_block_minecart",e.CopperGolem="minecraft:copper_golem",e.Cow="minecraft:cow",e.Creaking="minecraft:creaking",e.Creeper="minecraft:creeper",e.Dolphin="minecraft:dolphin",e.Donkey="minecraft:donkey",e.DragonFireball="minecraft:dragon_fireball",e.Drowned="minecraft:drowned",e.Egg="minecraft:egg",e.ElderGuardian="minecraft:elder_guardian",e.EnderCrystal="minecraft:ender_crystal",e.EnderDragon="minecraft:ender_dragon",e.EnderPearl="minecraft:ender_pearl",e.Enderman="minecraft:enderman",e.Endermite="minecraft:endermite",e.EvocationIllager="minecraft:evocation_illager",e.EyeOfEnderSignal="minecraft:eye_of_ender_signal",e.Fireball="minecraft:fireball",e.FireworksRocket="minecraft:fireworks_rocket",e.FishingHook="minecraft:fishing_hook",e.Fox="minecraft:fox",e.Frog="minecraft:frog",e.Ghast="minecraft:ghast",e.GlowSquid="minecraft:glow_squid",e.Goat="minecraft:goat",e.Guardian="minecraft:guardian",e.HappyGhast="minecraft:happy_ghast",e.Hoglin="minecraft:hoglin",e.HopperMinecart="minecraft:hopper_minecart",e.Horse="minecraft:horse",e.Husk="minecraft:husk",e.IronGolem="minecraft:iron_golem",e.LightningBolt="minecraft:lightning_bolt",e.LingeringPotion="minecraft:lingering_potion",e.Llama="minecraft:llama",e.LlamaSpit="minecraft:llama_spit",e.MagmaCube="minecraft:magma_cube",e.Minecart="minecraft:minecart",e.Mooshroom="minecraft:mooshroom",e.Mule="minecraft:mule",e.Nautilus="minecraft:nautilus",e.Npc="minecraft:npc",e.Ocelot="minecraft:ocelot",e.OminousItemSpawner="minecraft:ominous_item_spawner",e.Panda="minecraft:panda",e.Parched="minecraft:parched",e.Parrot="minecraft:parrot",e.Phantom="minecraft:phantom",e.Pig="minecraft:pig",e.Piglin="minecraft:piglin",e.PiglinBrute="minecraft:piglin_brute",e.Pillager="minecraft:pillager",e.Player="minecraft:player",e.PolarBear="minecraft:polar_bear",e.Pufferfish="minecraft:pufferfish",e.Rabbit="minecraft:rabbit",e.Ravager="minecraft:ravager",e.Salmon="minecraft:salmon",e.Sheep="minecraft:sheep",e.Shulker="minecraft:shulker",e.ShulkerBullet="minecraft:shulker_bullet",e.Silverfish="minecraft:silverfish",e.Skeleton="minecraft:skeleton",e.SkeletonHorse="minecraft:skeleton_horse",e.Slime="minecraft:slime",e.SmallFireball="minecraft:small_fireball",e.Sniffer="minecraft:sniffer",e.SnowGolem="minecraft:snow_golem",e.Snowball="minecraft:snowball",e.Spider="minecraft:spider",e.SplashPotion="minecraft:splash_potion",e.Squid="minecraft:squid",e.Stray="minecraft:stray",e.Strider="minecraft:strider",e.Tadpole="minecraft:tadpole",e.ThrownTrident="minecraft:thrown_trident",e.Tnt="minecraft:tnt",e.TntMinecart="minecraft:tnt_minecart",e.TraderLlama="minecraft:trader_llama",e.TripodCamera="minecraft:tripod_camera",e.Tropicalfish="minecraft:tropicalfish",e.Turtle="minecraft:turtle",e.Vex="minecraft:vex",e.Villager="minecraft:villager",e.VillagerV2="minecraft:villager_v2",e.Vindicator="minecraft:vindicator",e.WanderingTrader="minecraft:wandering_trader",e.Warden="minecraft:warden",e.WindChargeProjectile="minecraft:wind_charge_projectile",e.Witch="minecraft:witch",e.Wither="minecraft:wither",e.WitherSkeleton="minecraft:wither_skeleton",e.WitherSkull="minecraft:wither_skull",e.WitherSkullDangerous="minecraft:wither_skull_dangerous",e.Wolf="minecraft:wolf",e.XpBottle="minecraft:xp_bottle",e.XpOrb="minecraft:xp_orb",e.Zoglin="minecraft:zoglin",e.Zombie="minecraft:zombie",e.ZombieHorse="minecraft:zombie_horse",e.ZombieNautilus="minecraft:zombie_nautilus",e.ZombiePigman="minecraft:zombie_pigman",e.ZombieVillager="minecraft:zombie_villager",e.ZombieVillagerV2="minecraft:zombie_villager_v2",e))(le||{});const de=new Set([oe.Element0,oe.Element1,oe.Element2,oe.Element3,oe.Element4,oe.Element5,oe.Element6,oe.Element7,oe.Element8,oe.Element9,oe.Element10,oe.Element11,oe.Element12,oe.Element13,oe.Element14,oe.Element15,oe.Element16,oe.Element17,oe.Element18,oe.Element19,oe.Element20,oe.Element21,oe.Element22,oe.Element23,oe.Element24,oe.Element25,oe.Element26,oe.Element27,oe.Element28,oe.Element29,oe.Element30,oe.Element31,oe.Element32,oe.Element33,oe.Element34,oe.Element35,oe.Element36,oe.Element37,oe.Element38,oe.Element39,oe.Element40,oe.Element41,oe.Element42,oe.Element43,oe.Element44,oe.Element45,oe.Element46,oe.Element47,oe.Element48,oe.Element49,oe.Element50,oe.Element51,oe.Element52,oe.Element53,oe.Element54,oe.Element55,oe.Element56,oe.Element57,oe.Element58,oe.Element59,oe.Element60,oe.Element61,oe.Element62,oe.Element63,oe.Element64,oe.Element65,oe.Element66,oe.Element67,oe.Element68,oe.Element69,oe.Element70,oe.Element71,oe.Element72,oe.Element73,oe.Element74,oe.Element75,oe.Element76,oe.Element77,oe.Element78,oe.Element79,oe.Element80,oe.Element81,oe.Element82,oe.Element83,oe.Element84,oe.Element85,oe.Element86,oe.Element87,oe.Element88,oe.Element89,oe.Element90,oe.Element91,oe.Element92,oe.Element93,oe.Element94,oe.Element95,oe.Element96,oe.Element97,oe.Element98,oe.Element99,oe.Element100,oe.Element101,oe.Element102,oe.Element103,oe.Element104,oe.Element105,oe.Element106,oe.Element107,oe.Element108,oe.Element109,oe.Element110,oe.Element111,oe.Element112,oe.Element113,oe.Element114,oe.Element115,oe.Element116,oe.Element117,oe.Element118,"minecraft:chemistry_table","minecraft:colored_torch_bp","minecraft:colored_torch_rg",oe.HardGlass,oe.HardBlackStainedGlass,oe.HardBlueStainedGlass,oe.HardBrownStainedGlass,oe.HardCyanStainedGlass,oe.HardGrayStainedGlass,oe.HardGreenStainedGlass,oe.HardLightBlueStainedGlass,oe.HardLightGrayStainedGlass,oe.HardLimeStainedGlass,oe.HardMagentaStainedGlass,oe.HardOrangeStainedGlass,oe.HardPinkStainedGlass,oe.HardPurpleStainedGlass,oe.HardRedStainedGlass,oe.HardWhiteStainedGlass,oe.HardYellowStainedGlass,oe.HardGlassPane,oe.HardBlackStainedGlassPane,oe.HardBlueStainedGlassPane,oe.HardBrownStainedGlassPane,oe.HardCyanStainedGlassPane,oe.HardGrayStainedGlassPane,oe.HardGreenStainedGlassPane,oe.HardLightBlueStainedGlassPane,oe.HardLightGrayStainedGlassPane,oe.HardLimeStainedGlassPane,oe.HardMagentaStainedGlassPane,oe.HardOrangeStainedGlassPane,oe.HardPinkStainedGlassPane,oe.HardPurpleStainedGlassPane,oe.HardRedStainedGlassPane,oe.HardWhiteStainedGlassPane,oe.HardYellowStainedGlassPane,oe.Unknown,oe.HardenedClay,oe.UnderwaterTorch,oe.ChemicalHeat,"minecraft:stonecutter","minecraft:netherreactor","minecraft:info_update","minecraft:info_update2",oe.Camera,oe.PistonArmCollision,oe.StickyPistonArmCollision,"minecraft:glowingobsidian","minecraft:moving_block","minecraft:invisible_bedrock","minecraft:client_request_placeholder_block","minecraft:reserved6",oe.BubbleColumn,oe.PetrifiedOakSlab,"minecraft:deprecated_anvil","minecraft:deprecated_purpur_block_1","minecraft:deprecated_purpur_block_2",oe.LitBlastFurnace,oe.LitFurnace,oe.LitRedstoneLamp,oe.LitSmoker,oe.PoweredComparator,oe.PoweredRepeater,oe.UnlitRedstoneTorch,oe.DaylightDetectorInverted,oe.EndPortal,oe.LitDeepslateRedstoneOre,oe.LitRedstoneOre,oe.MelonStem,oe.CherryStandingSign,oe.WallBanner,oe.BrainCoralWallFan,oe.BubbleCoralWallFan,oe.FireCoralWallFan,oe.HornCoralWallFan,oe.TubeCoralWallFan,oe.DeadBrainCoralWallFan,oe.DeadBubbleCoralWallFan,oe.DeadFireCoralWallFan,oe.DeadHornCoralWallFan,oe.DeadTubeCoralWallFan,oe.AcaciaWallSign,oe.BambooWallSign,oe.BirchWallSign,oe.CherryWallSign,oe.DarkoakWallSign,oe.JungleWallSign,oe.MangroveWallSign,oe.PaleOakWallSign,oe.SpruceWallSign,oe.WallSign,oe.Bed,oe.AcaciaDoor,oe.BambooDoor,oe.BirchDoor,oe.CherryDoor,oe.CopperDoor,oe.BambooDoor,oe.BirchDoor,oe.CherryDoor,oe.CopperDoor,oe.CrimsonDoor,oe.DarkOakDoor,oe.ExposedCopperDoor,oe.IronDoor,oe.JungleDoor,oe.MangroveDoor,oe.OxidizedCopperDoor,oe.PaleOakDoor,oe.SpruceDoor,oe.WarpedDoor,oe.WaxedCopperDoor,oe.WaxedExposedCopperDoor,oe.WaxedOxidizedCopperDoor,oe.WaxedWeatheredCopperDoor,oe.WeatheredCopperDoor,oe.WoodenDoor]),he=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>ne.BlockTypes.getAll().reduce(((e,t)=>(de.has(t.id)||e.push(t.id.replace("minecraft:","")),e)),[]).sort(((e,t)=>e.localeCompare(t)))));function ce(){return[...he()]}class _e{constructor(e){this.mEvents=e,this.subscribedEvents={}}subscribeToBedrockEvent(e,...t){const i=this.mEvents[e].subscribe(...t),a=this.subscribedEvents[e];return void 0===a?this.subscribedEvents[e]=[i]:a.push(i),i}teardown(){for(const e of Object.keys(this.subscribedEvents)){const t=e,i=this.subscribedEvents[t];if(i)for(const e of i)this.mEvents[t].unsubscribe(e)}}}class me{constructor(e,t,i,a){this._clientDispatcher=e,this._id=ae(),this._typeName=i,this._paneId=t,this._visible=a?.visible??!0,this._enable=a?.enable??!0,this._style=a?.style}get id(){return this._id}get paneId(){return this._paneId}get typeName(){return this._typeName}get enable(){return this._enable}get style(){return this._style}set enable(e){this._enable=e,this.sendPropertyUpdate()}get visible(){return this._visible}set visible(e){this._visible=e,this.sendPropertyUpdate()}sendPropertyUpdate(){const e={type:R.UpdatePropertyItem,...this.createPayload()};this._clientDispatcher.dispatchEvent(I.ServerUXEvents,e)}dispose(){}}class ue extends me{constructor(e,t,i,a,n){super(t,i,a,n),this._observable=e,this._observable.handle.subscribe({subscriber:this,onReceiveUpdate:(e,t)=>{this.onValueChanged(e,t)},onDispatchUpdate:()=>{this.sendPropertyUpdate()}})}get value(){return this._observable.handle.value}dispose(){super.dispose(),this._observable.handle.unsubscribe(this),this._observable.release()}}class pe{constructor(){}validate(e){const t=new Set;return e.forEach((e=>{!t.has(e)&&ne.BlockTypes.get(e)&&t.add(e)})),Array.from(t)}}class ge extends ue{constructor(e,t,i,a){if(super(e,t,i,A.BlockList,a),a&&(this._onChange=a.onChange),this._observable.handle.validator){if(!(this._observable.handle.validator instanceof pe))throw Error("Expected BlockIdentifierListObservableValidator to be used for IBlockListPropertyItem value")}else this._observable.handle.assignValidator(new pe),this._observable.handle.set(this.value)}onValueChanged(e,t){this._onChange?.(e,t)}createPayload(){return{id:this.id,typeName:A.BlockList,enable:this.enable,visible:this.visible,paneId:this.paneId,value:this.value,observableValueId:this._observable.handle.id,options:{style:this.style}}}dispose(){super.dispose()}}class fe extends me{constructor(e,t,i){super(e,t,A.BlockTable,i),this._entries=new Map,i&&(this._title=i.title,this._tooltip=i.tooltip,i.entries&&i.entries.forEach(((e,t)=>{this.validateBlock(t)&&this._entries.set(t,e)})),this._onOperationClick=i.onOperationClick)}addOrUpdateEntry(e,t){const i="string"==typeof e?e:e.id;this.validateBlock(i)&&(this._entries.set(i,t),this.sendPropertyUpdate())}getEntry(e){const t="string"==typeof e?e:e.id;return this._entries.get(t)}deleteEntry(e){const t="string"==typeof e?e:e.id;this._entries.has(t)&&(this._entries.delete(t),this.sendPropertyUpdate())}updateEntries(e){e.forEach(((e,t)=>{if(this._entries.has(t)){const i=this._entries.get(t);this._entries.set(t,{...i,...e})}else this.validateBlock(t)&&this._entries.set(t,e)})),this.sendPropertyUpdate()}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}createPayload(){return{id:this.id,typeName:A.BlockTable,enable:this.enable,visible:this.visible,paneId:this.paneId,options:{title:this._title,tooltip:this._tooltip,blockTableItems:Array.from(this._entries,(([e,t])=>({block:e,count:t.count??0}))),style:this.style}}}onOperationClick(e,t){this._onOperationClick?.(e,t)}validateBlock(e){return!!ne.BlockTypes.get(e)}dispose(){super.dispose()}}class be extends ue{constructor(e,t,i,a){super(e,t,i,A.Boolean,a),this._hiddenLabel=!1,this._variant=F.Checkbox,a&&(this._title=a.title,this._tooltip=a.tooltip,this._onChange=a.onChange,void 0!==a.variant&&(this._variant=a.variant),void 0!==a.hiddenLabel&&(this._hiddenLabel=a.hiddenLabel),this._checkboxIcon=a.checkboxIcon)}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}onValueChanged(e,t){this._onChange?.(e,t)}createPayload(){return{id:this.id,typeName:A.Boolean,enable:this.enable,visible:this.visible,paneId:this.paneId,value:this.value,observableValueId:this._observable.handle.id,options:{variant:this._variant,title:this._title,tooltip:this._tooltip,hiddenLabel:this._hiddenLabel,checkboxIcon:this._checkboxIcon,style:this.style}}}}class ve{constructor(){this._visible=!0,this._enabled=!0,this._disposed=!1}get visible(){return this._visible}get enabled(){return this._enabled}hide(){this._visible=!1,this.update(!0)}show(){this._visible=!0,this.update()}get disposed(){return this._disposed}set disposed(e){this._disposed=e}dispose(){this._sendDestroyMessage(),this._disposed=!0}update(e){(e||!this.disposed&&this.visible)&&this._sendUpdateMessage()}}class ye extends ve{constructor(e,t){super(),this._paneContext=e,this._uniqueId=t,void 0!==this._uniqueId&&this._paneContext.dataStore.paneContainer.createPane(this._uniqueId),this._id=void 0!==t?t:ae(),this._paneContext.paneRegistry.register(this._id,this)}get id(){return this._id}get visible(){return this._visible}_sendUpdateMessage(){this._paneContext.clientDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.UpdatePropertyPane,...this.createPanePayload()})}_sendDestroyMessage(){this._paneContext.clientDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.DestroyPropertyPane,id:this._id})}dispose(){super.dispose(),void 0!==this._uniqueId&&this._paneContext.dataStore.paneContainer.destroyPane(this._uniqueId),this._paneContext.paneRegistry.unregister(this._id)}}var Ce=r(500),Se=r.n(Ce);class xe{constructor(){this._dispatcher=void 0,this._id=ae()}get id(){return this._id}setDispatcher(e){if(this._dispatcher&&void 0!==e)throw Error("Observable already has a dispatcher.");this._dispatcher=e}}class ke extends xe{constructor(e,t){if(super(),this._subscribers=[],this._validator=void 0,e instanceof xe)throw Error("Observable objects cannot be assigned to another observable.");this._data=Ee(e),this._validator=t}set(e,t){const i=this._validator?this._validator.validate(e):e;if(void 0===i)return!1;const a=!Se()(this.value,i),n=this.value;if(this._data=Ee(i),(a||t?.forceDispatch)&&this.dispatchChange(),a&&t&&t.notify){const e=Ee(this._data),i=Ee(n);t.deferredNotification?this._dispatcher&&this._dispatcher.dispatch((()=>this.notifyChange(e,i))):this.notifyChange(e,i)}return a}get value(){return this._data}get subscriberCount(){return this._subscribers.length}get validator(){return this._validator}dispatchChange(){this._subscribers.forEach((e=>{e.onDispatchUpdate?.(this.value)}))}notifyChange(e,t){this._subscribers.forEach((i=>{i.onReceiveUpdate?.(e,t)}))}assignValidator(e){this._validator=e}subscribe(e){this._subscribers.push(e)}unsubscribe(e){const t=this._subscribers.findIndex((t=>t.subscriber===e));-1!==t&&this._subscribers.splice(t,1)[0]}}function Pe(e){return function(e){return e instanceof xe}(e)?e:new ke(e)}function Ee(e){return"object"==typeof e?Array.isArray(e)?[...e]:{...e}:e}function we(e,t){return new ke(e,t)}class Be{constructor(e,t){this._registry=e,this._handle=t,this._isReleased=!1}get handle(){return this._handle}release(){this._isReleased||this._registry.release(this._handle)}}class Ie{constructor(e){this._system=e,this._registry=new Map,this._eventQueue=void 0,this._eventCallbackHandle=void 0}update(e,t){const i=this._registry.get(e);i&&i.observable.set(t,{notify:!0})}processEvents(){this._eventQueue&&(this._eventQueue.forEach((e=>{e()})),this._eventQueue=void 0)}add(e){const t=this._registry.get(e.id);return t?t.count+=1:(this._registry.set(e.id,{observable:e,count:1}),e.setDispatcher({dispatch:t=>{this._registry.has(e.id)&&this._enqueueDeferredEvent(t)}})),new Be(this,e)}has(e){return this._registry.has(e.id)}release(e){const t=this._registry.get(e.id);t&&(t.count-=1,0===t.count&&(e.setDispatcher(void 0),this._registry.delete(e.id)))}teardown(){this._eventCallbackHandle&&this._system.clearRun(this._eventCallbackHandle)}_enqueueDeferredEvent(e){this._eventQueue||(this._eventQueue=[],this._system.run((()=>this.processEvents()))),this._eventQueue.push(e)}}function Me(e,t){const i=Pe(t);return e.add(i)}class Te{}var Re=r(607);class De{constructor(e,t,i){this._isInteger=i,this.updateLimits(e,t)}validate(e){const t=(0,Re.clampNumber)(e,this._min??Number.MIN_SAFE_INTEGER,this._max??Number.MAX_SAFE_INTEGER);return this._isInteger?~~t:t}updateLimits(e,t){const i=Ae(e,t);this._min=i.min,this._max=i.max}}function Ae(e,t){return void 0!==e&&void 0!==t&&e>t?{min:t,max:e}:{min:e,max:t}}class We{constructor(e){this._regex=new RegExp(e)}validate(e){if(this._regex.test(e))return e}get pattern(){return this._regex.source}}class ze{constructor(e,t,i){this._min={},this._max={},this._isInteger=i,this.updateLimits(e,t)}validate(e){const t={x:Ve(e.x,this._min.x??Number.MIN_SAFE_INTEGER,this._max.x??Number.MAX_SAFE_INTEGER),y:Ve(e.y,this._min.y??Number.MIN_SAFE_INTEGER,this._max.y??Number.MAX_SAFE_INTEGER)};return this._isInteger?{x:~~t.x,y:~~t.y}:t}updateLimits(e,t){const i=Le(e,t);this._min=i.min,this._max=i.max}}function Le(e,t){const i={...e},a={...t};return void 0!==e.x&&void 0!==t.x&&e.x>t.x&&(i.x=t.x,a.x=e.x),void 0!==e.y&&void 0!==t.y&&e.y>t.y&&(i.y=t.y,a.y=e.y),{min:i,max:a}}function Ve(e,t,i){return Math.max(t,Math.min(i,e))}class Oe{constructor(e,t,i){this._min={},this._max={},this._isInteger=i,this.updateLimits(e,t)}validate(e){const t=Re.Vector3Utils.clamp(e,{min:this._min,max:this._max});return this._isInteger?{x:~~t.x,y:~~t.y,z:~~t.z}:t}updateLimits(e,t){const i=Ue(e,t);this._min=i.min,this._max=i.max}}function Ue(e,t){const i={...e},a={...t};return void 0!==e.x&&void 0!==t.x&&e.x>t.x&&(i.x=t.x,a.x=e.x),void 0!==e.y&&void 0!==t.y&&e.y>t.y&&(i.y=t.y,a.y=e.y),void 0!==e.z&&void 0!==t.z&&e.z>t.z&&(i.z=t.z,a.z=e.z),{min:i,max:a}}const Ne={red:0,green:0,blue:0,alpha:1};class Ge extends ue{constructor(e,t,i,a){super(e,t,i,A.ColorTimeline,a),this._isGraphReadOnly=!1,this._shouldRenderBackgroundColor=!0,this._showAlpha=!0,this._disableAddRemoveNodes=!1,this._entries=[],this._valueAtTime=Ne,a&&(this._title=a.title,this._precision=a.decimalPrecision??3,this._isGraphReadOnly=a.isGraphReadOnly,this._showAlpha=a.showAlpha,this._shouldRenderBackgroundColor=a.renderGradientBackground,this._disableAddRemoveNodes=a.disableAddRemoveNodes,a.entries&&(this._entries=a.entries)),this.onNodeAdded=a?.onNodeAdded,this.onNodeRemoved=a?.onNodeRemoved,this.onNodeChanged=a?.onNodeChanged,this.onTimeChanged=a?.onTimeChanged,this._validate(),this._valueAtTime=this._interpolateColorAtTime(e.handle.value)}setTime(e){const t=this._observable.handle.value;this._validate(),this._observable.handle.set(e),this.onTimeChanged?.(e,t),this._updateValueAtTime(this._observable.handle.value),this.sendPropertyUpdate()}onValueChanged(e){this.setTime(e)}updateNode(e){if(e.time>=0&&e.time<=1){const t=this._entries.findIndex((t=>t.id===e.id));if(t>-1){const i=[...this.getData()];i.splice(t,1);const a=this._findNodeIndex(i,e.time),n=i[a-1],r=i[a];this._isPositionValid(n,r,e.time)&&(this._entries=[...i.slice(0,a),e,...i.slice(a)],this.onNodeChanged?.(e),this._updateValueAtTime(this._observable.handle.value),this.sendPropertyUpdate())}}}addNode(e){if(e.time>=0&&e.time<=1){const t=[...this.getData()],i=this._findNodeIndex(t,e.time),a=t[i-1],n=t[i];this._isPositionValid(a,n,e.time)&&(e.id=ae(),e.value={...this._interpolateColorAtTime(e.time)},this._entries=[...t.slice(0,i),e,...t.slice(i)],this.onNodeAdded?.(e),this._updateValueAtTime(this._observable.handle.value),this.sendPropertyUpdate())}}removeNode(e){if(this._entries.length>1){const t=this._entries.findIndex((t=>t.id===e.id));t>-1&&(this._entries.splice(t,1),this.onNodeRemoved?.(e),this._updateValueAtTime(this._observable.handle.value),this.sendPropertyUpdate())}}_updateValueAtTime(e){this._valueAtTime=this._interpolateColorAtTime(e)}getValueAtTime(){return this._valueAtTime}getData(){return[...this._entries].sort(((e,t)=>e.time-t.time))}getTitle(){return this._title}setTitle(e){this._title=e,this.sendPropertyUpdate()}setPrecision(e){this._precision=e,this.sendPropertyUpdate()}getPrecision(){return this._precision}getTime(){return this._observable.handle.value}createPayload(){return{id:this.id,timelineValue:this.getTime(),valueAtTime:this._valueAtTime,observableValueId:this._observable.handle.id,typeName:A.ColorTimeline,enable:this.enable,visible:this.visible,paneId:this.paneId,options:{title:this.getTitle(),precision:this._precision,isGraphReadOnly:this._isGraphReadOnly,showAlpha:this._showAlpha,renderGradientBackground:this._shouldRenderBackgroundColor,disableAddRemoveNodes:this._disableAddRemoveNodes,nodes:this._entries.sort(((e,t)=>e.time-t.time)),style:this.style}}}onOperationClick(e,t){t===N.UpdateNode&&this.updateNode(e),t===N.AddNode&&this.addNode(e),t===N.RemoveNode&&this.removeNode(e)}_interpolateColorAtTime(e){const t=this.getData();if(t.length<2)return void 0!==t[0]?t[0].value:Ne;const i=e%1;for(let e=0;e<t.length;e++){const a=t[e],n=t[(e+1)%t.length];if(a&&n){let e=n.time-a.time;e<=0&&(e+=1);let t=0;if(a.time<i&&i<n.time&&(t=(i-a.time)/e),t>0&&t<1)return this._lerp(a.value,n.value,t)}}const a=t.length,n=t[0]?.time,r=t[a-1]?.time;if(n&&r){if(i>=r){const e=1-r+n;if(i-r>n){const t=(1-i)/e;return this._lerp(this.getData()[0].value,this.getData()[a-1].value,t)}{const t=(i-r)/e;return this._lerp(this.getData()[a-1].value,this.getData()[0].value,t)}}if(i<=n){const e=1-r+n;if(n-i>1-n){const t=(1-i)/e;return this._lerp(this.getData()[a-1].value,this.getData()[0].value,t)}{const r=(n-i)/e;return this._lerp(t[0].value,t[a-1].value,r)}}}return this.getData()[0]?.value??Ne}_lerp(e,t,i){return{red:e.red+(t.red-e.red)*i,green:e.green+(t.green-e.green)*i,blue:e.blue+(t.blue-e.blue)*i,alpha:1}}dispose(){super.dispose()}_validate(){if(this._observable.handle.validator){if(!(this._observable.handle.validator instanceof De))throw Error("Expected NumberLimitObservableValidator to limit IColorTimelinePropertyItem value");this._observable.handle.set(this._observable.handle.validator.validate(this._observable.handle.value))}else this._observable.handle.assignValidator(new De(0,1,!1)),this._observable.handle.set(this.value)}_isPositionValid(e,t,i){let a=x;if(this._precision){a=1/Math.pow(10,this._precision)}return!(e&&Math.abs(i-e.time)<a)&&!(t&&Math.abs(t.time-i)<a)}_findNodeIndex(e,t){for(let i=0;i<e.length;i++)if(t<e[i].time)return i;return e.length}}class Fe extends me{constructor(e,t,i){super(e,t,A.ProxyPane),this._parentPaneId=t,this._proxyId=i}createPayload(){return{id:this.id,paneId:this._parentPaneId,enable:this.enable,visible:this.visible,typeName:A.ProxyPane,proxyId:this._proxyId}}}class He extends me{constructor(e,t,i,a){super(e,t,A.Menu,a),this._menuLookup=new Map([]),this._entries=[],i.forEach((e=>{const t=this._createMenu(e.params,e.action);this._entries.push(t)})),a&&(this._title=a.title,this._tooltip=a.tooltip,this._onMenuItemClicked=a.onMenuItemClick)}getEntries(){return this._entries.map((e=>e))}getMenu(e){return this._menuLookup.get(e)}addEntry(e,t){const i=this._createMenu(e,t);return this._entries.push(i),this.sendPropertyUpdate(),i}removeEntry(e){const t=this._entries.findIndex((t=>t.id===e));-1!==t&&this._entries.splice(t,1),this._menuLookup.delete(e),this.sendPropertyUpdate()}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}createPayload(){return{id:this.id,typeName:A.Menu,enable:this.enable,visible:this.visible,paneId:this.paneId,options:{title:this._title,tooltip:this._tooltip,menu:this._entries.map((e=>e.createPayload())),style:this.style}}}dispose(){super.dispose(),this._entries=[],this._menuLookup.clear()}onClick(e){void 0!==e.targetId&&this._menuLookup.has(e.targetId)&&this._onMenuItemClicked?.(e.targetId)}_registerMenu(e){if(this._menuLookup.has(e.id))throw Error(`Menu id ${e.id} is already registered to Menu property item.`);this._menuLookup.set(e.id,e)}_unregisterMenu(e){this._menuLookup.delete(e)}_createMenu(e,t){const i={sendPropertyUpdate:e=>{this._menuLookup.has(e)&&this.sendPropertyUpdate()},registerMenu:e=>this._registerMenu(e),unregisterMenu:e=>this._unregisterMenu(e)},a=new qe(this._clientDispatcher,e,i,t?.id);return this._registerMenu(a),a}}class qe{constructor(e,t,i,a,n){this._clientDispatcher=e,this._callbacks=i,this._actionId=a,this._parent=n,this._visible=!0,void 0!==t.uniqueId?this._id=t.uniqueId:this._id=ae(),this._label=t.label,this._enabled=t.enabled??!0,this._checked=t.checked,this._icon=t.icon,this._tooltip=t.tooltip,void 0!==this._actionId&&this._clientDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.BindActionToControl,actionId:this._actionId,controlId:this.id})}hide(){this._visible&&(this._visible=!1,this._sendUpdate())}show(){this._visible||(this._visible=!0,this._sendUpdate())}get id(){return this._id}get submenu(){return this._submenu?.map((e=>e))??[]}get label(){return this._label}set label(e){e!==this._label&&(this._label=e,this._sendUpdate())}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._sendUpdate())}set enabled(e){e!==this._enabled&&(this._enabled=e,this._sendUpdate())}createPayload(){return{id:this._id,enabled:this._enabled,label:this._label,visible:this._visible??!0,children:this._submenu?.map((e=>e.createPayload())),checked:this._checked,icon:this._icon,tooltip:this._tooltip}}dispose(){void 0!==this._actionId&&this._clientDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.RemoveActionBindingFromControl,actionId:this._actionId,controlId:this.id}),this._submenu&&this._submenu.length>0&&(this._submenu.forEach((e=>{e.dispose()})),this._submenu=[],this._sendUpdate()),this._callbacks.unregisterMenu(this.id)}addItem(e,t){const i=new qe(this._clientDispatcher,e,this._callbacks,t?.id,this);return this._submenu||(this._submenu=[]),this._submenu.push(i),this._callbacks.registerMenu(i),this._sendUpdate(),i}_sendUpdate(){this._callbacks.sendPropertyUpdate(this.id)}replaceAction(e){void 0!==this._actionId&&this._clientDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.RemoveActionBindingFromControl,actionId:this._actionId,controlId:this.id}),this._actionId=e.id,this._clientDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.BindActionToControl,actionId:this._actionId,controlId:this.id})}}function Ke(e){throw new Error(`Unreachable throw hit! Passed in value is ${e}.`)}class Ye extends ye{constructor(e,t,i){super(e),this._parentPaneId=t,this._slotRegistry=new Map,this._slotList=[],this._slotConfig=i.slotConfig,this._height=i.height,this._viewFilter=i.viewFilter,this._viewSortType=i.viewSortType,this._fixedHeight=i.fixedHeight,this._onSlotClicked=i.onSlotClicked,this._onSlotSelectionChange=i.onSlotSelectionChange,i.defaultSlots?.forEach((e=>{this._createSlot(e)})),this._sendUpdateMessage()}get viewControlPane(){return this._viewControlPane}buildViewControl(e){if(this._viewControlPane)throw new Error("List already has a view control");return this._viewControlPane=new et(this._paneContext,this,e),this.update(),this._viewControlPane}get slotCount(){return this._slotList.length}get viewSortType(){return this._viewSortType??Y.Default}setViewSortType(e){this._viewSortType=e,this.update()}setViewFilter(e){this._viewFilter=e,this.update()}getViewFilter(){return{...this._viewFilter}}selectSlot(e,t){if(!0===t)for(const t of this._slotList)t.selected&&t.id!==e&&t.setSelected(!1);const i=this._slotRegistry.get(e);i&&i.setSelected(!0)}addSlot(e){const t=this._createSlot(e);return this._sendUpdateMessage(),t}removeSlot(e){const t=this._slotRegistry.get(e);t&&(this._slotRegistry.delete(e),this._slotList=this._slotList.filter((t=>t.id!==e)),t.dispose(),this._sendUpdateMessage())}updateSlots(e){this._clearSlots(),e.forEach((e=>{this._createSlot(e)})),this._sendUpdateMessage()}getSlotById(e){return this._slotList.find((t=>t.id===e))}getSlotByIndex(e){if(e<this._slotList.length)return this._slotList[e]}get paneId(){return this._parentPaneId}get typeName(){return A.ButtonPane}get enable(){return!0}onAction(e,t,i){const a=this._slotRegistry.get(e);a&&a.onAction(t,i)}createPayload(){return{id:this._id,paneId:this._parentPaneId,typeName:A.ListPane,visible:this._visible,enable:this._enabled}}createPanePayload(){return{id:this._id,paneType:X.List,title:this._title,visible:this._visible,parentPaneId:this._parentPaneId,items:this._slotList.map((e=>e.createPayload())),slotConfig:this._slotConfig,height:this._height,fixedHeight:this._fixedHeight,viewFilter:this._viewFilter,viewSortType:this._viewSortType,viewControlPaneId:this._viewControlPane?.id}}dispose(){this._clearSlots(),super.dispose()}_createSlot(e){const t=new je(this._paneContext,e.entries,this._slotConfig,e.options??{},this._id,this._onSlotClicked,this._onSlotSelectionChange);if(this._slotList.push(t),this._slotRegistry.has(t.id))throw Error(`List Pane Slot id ${t.id} is already being used`);return this._slotRegistry.set(t.id,t),t}_clearSlots(){this._slotList.forEach((e=>{e.dispose()})),this._slotList=[],this._slotRegistry.clear()}}class je{constructor(e,t,i,a,n,r,s){this._paneContext=e,this._slotConfig=i,this._parentPaneId=n,this._onSlotClicked=r,this._onSlotSelectionChange=s,this._entries=[],this._selected=!1;const o=Array.isArray(this._slotConfig.entryLayout)?this._slotConfig.entryLayout:[...this._slotConfig.entryLayout.mainSection,...this._slotConfig.entryLayout.outerSection];if(t.length!==o.length)throw Error("List pane layout is incorrect");t.forEach(((e,t)=>{if(o[t].type!==e.type)throw Error(`List pane slot entry ${t} is created with unexpected type`);if(e.type===K.Button)this._entries.push(new Xe(this,t,e));else if(e.type===K.Bool){const i=Me(this._paneContext.observableRegistry,e.value);this._entries.push(new Je(this,t,e,i))}else if(e.type===K.Image){const i=Me(this._paneContext.observableRegistry,e.value);this._entries.push(new $e(this,t,e,i))}else{if(e.type!==K.Text)throw Error("List pane entry type is not supported");{const i=void 0!==e.value?Me(this._paneContext.observableRegistry,e.value):void 0;this._entries.push(new Ze(this,t,e,i))}}})),this._id=a.uniqueId??ae(),this._userData=a.userData,this._tags=a.tags,this._title=a.title}getEntry(e,t){if(e<this._entries.length){const i=this._entries[e];if(void 0!==t&&t!==i.type)return;return i}}get selected(){return this._selected}get tags(){return this._tags??[]}get title(){return this._title??""}get entryCount(){return this._entries.length}getUserData(){return this._userData}setUserData(e){this._userData=e}setSelected(e){e!==this._selected&&(this._selected=e,this._onSlotSelectionChange?.(this,this._selected),this.dispatchUpdate())}setTitle(e){e!==this._title&&(this._title=e,this.dispatchUpdate())}setTags(e){e!==this._tags&&(this._tags=e,this.dispatchUpdate())}onAction(e,t){if(void 0!==e){if(!(e<this._entries.length))throw Error(`Invalid slot action for entry index ${e}`);{const t=this._entries[e];t instanceof Xe&&t.onAction()}}else this._onSlotClicked?.(this)}get id(){return this._id}get paneId(){return this._parentPaneId}get typeName(){return A.ButtonPane}get enable(){return!0}dispatchUpdate(){const e={type:R.UpdatePropertyItem,...this.createPayload()};this._paneContext.clientDispatcher.dispatchEvent(I.ServerUXEvents,e)}createPayload(){return{id:this._id,paneId:this._parentPaneId,title:this._title,typeName:W.ListPaneSlot,selected:this._selected,tags:this._tags,enable:!0,visible:!0,entries:this._getEntryPayloads()}}_getEntryPayloads(){return this._entries.map((e=>e.createPayload()))}dispose(){this._entries.forEach((e=>{e.dispose()})),this._entries=[]}}class Qe{constructor(e,t,i){this._slot=e,this._index=t,this._visible=i}get visible(){return this._visible??!0}setVisible(e){this.visible!==e&&(this._visible=e,this._update())}get index(){return this._index}get slot(){return this._slot}_update(){this._slot.dispatchUpdate()}}class Xe extends Qe{constructor(e,t,i){super(e,t,i.visible),this._icon=i.icon,this._title=i.title,this._tooltip=i.tooltip,this._onClick=i.onClick,this._enabled=i.enabled,this._variant=i.variant}get enabled(){return this._enabled??!0}setEnabled(e){e!==this.enabled&&(this._enabled=e,this._update())}setTitle(e){e!==this._icon&&(this._icon=e,this._update())}setTooltip(e){e!==this._tooltip&&(this._tooltip=e,this._update())}setIcon(e){e!==this._icon&&(this._icon=e,this._update())}onAction(){this._onClick?.(this)}get type(){return K.Button}createPayload(){return{type:K.Button,title:this._title,icon:this._icon,enabled:this._enabled,visible:this._visible,variant:this._variant,tooltip:this._tooltip}}dispose(){}}class Je extends Qe{constructor(e,t,i,a){super(e,t),this._params=i,this._observable=a,this._icon=this._params.icon,this._tooltip=this._params.tooltip,this._enabled=this._params.enabled??!0,this._observable.handle.subscribe({subscriber:this,onReceiveUpdate:(e,t)=>{this._params.onChange?.(e,t,this)},onDispatchUpdate:()=>{this._slot.dispatchUpdate()}})}get enabled(){return this._enabled??!0}setEnabled(e){e!==this.enabled&&(this._enabled=e,this._update())}setTooltip(e){e!==this._tooltip&&(this._tooltip=e,this._update())}get value(){return this._observable.handle.value}get observable(){return this._observable}setValue(e){this._observable.handle.set(e)}get type(){return K.Bool}createPayload(){return{type:K.Bool,observableValueId:this._observable.handle.id,value:this.value,icon:this._icon,visible:this._visible,tooltip:this._tooltip,enabled:this._enabled}}dispose(){this._observable.handle.unsubscribe(this),this._observable.release()}}class Ze extends Qe{constructor(e,t,i,a){super(e,t),this._params=i,this._observable=a,this._observable&&this._observable.handle.subscribe({subscriber:this,onReceiveUpdate:()=>{},onDispatchUpdate:()=>{this._update()}})}get value(){return this._observable?this._observable.handle.value:this.slot.title}setValue(e){this._observable&&this._observable.handle.set(e)}get type(){return K.Text}createPayload(){return{type:K.Text,value:this._observable?this.value:void 0,visible:this._visible}}dispose(){this._observable&&(this._observable.handle.unsubscribe(this),this._observable.release())}}class $e extends Qe{constructor(e,t,i,a){super(e,t),this._params=i,this._observable=a,this._observable.handle.subscribe({subscriber:this,onReceiveUpdate:()=>{},onDispatchUpdate:()=>{this._update()}})}get value(){return this._observable.handle.value}setValue(e){this._observable.handle.set(e)}get type(){return K.Image}createPayload(){return{type:K.Image,value:this.value,visible:this._visible}}dispose(){this._observable.handle.unsubscribe(this),this._observable.release()}}class et extends ye{constructor(e,t,i){super(e,ae()),this._parent=t,this._isFilterActive=!1,this._actions=i.actions??[],this._visible=void 0!==i.visible&&i.visible,this._filterFlags=i.filterFlags,this._sortOptions=i.sortOptions,this._onFilterChanged=i.onFilterChanged,this._onActionClicked=i.onActionClicked,this._visible&&this._sendUpdateMessage()}setActionEnabledState(e,t){const i=this._actions.findIndex((t=>t.id===e));-1!==i&&(this._actions[i].disabled=!t,this._sendUpdateMessage())}updateActionState(e,t){const i=this._actions.findIndex((t=>t.id===e));-1!==i&&(this._actions[i]={id:e,...t},this._sendUpdateMessage())}getActionState(e){const t=this._actions.find((t=>t.id===e));return void 0!==t?{...t}:void 0}setActionStates(e){this._actions=[...e],this._sendUpdateMessage()}get parentId(){return this._parent.id}get isFilterActive(){return this._isFilterActive}setVisible(e){e!==this._visible&&(this._visible=e,this._sendUpdateMessage())}onAction(e){switch(e.type){case f.FilterToggled:this._isFilterActive=e.state;break;case f.FilterChanged:e&&this._onFilterChanged?.(e.items);break;case f.SortTypeChanged:e.sortType in Y&&this._parent.setViewSortType(e.sortType);break;case f.ActionItemClicked:{const t=this._actions.find((t=>t.id===e.actionId));t&&this._onActionClicked?.(t.id)}break;default:Ke(e)}}createPanePayload(){return{id:this._id,visible:this._visible,paneType:X.ListViewControl,sortOptions:this._sortOptions,notifyFilterChange:void 0!==this._onFilterChanged,filterFlag:this._filterFlags,actions:this._actions.map((e=>({id:e.id,icon:e.icon,label:e.label,disabled:e.disabled,displayInMenu:e.displayInMenu})))}}}class tt extends me{constructor(e,t,i,a){super(e,t,A.CollectionTree,i),this._paneContext=a,this._folders=[],this._viewSortType=i.viewSortType,this._canDragDropEntries=i.canDragDropEntries,this._folderContext={parentPaneId:this.id}}get viewControlPane(){return this._viewControlPane}buildViewControl(e){if(this._viewControlPane)throw new Error("Collection Tree already has a view control");return this._viewControlPane=new lt(this._paneContext,this,e),this.sendPropertyUpdate(),this._viewControlPane}addFolder(e){const t=new it(this._paneContext,this._folderContext,e,(e=>this.removeFolder(e)));return this._folders.push(t),this.sendPropertyUpdate(),t}removeFolder(e){const t=this._folders.findIndex((t=>t.id===e));return-1!==t&&(this._folders[t].dispose(),this._folders.splice(t,1),this.sendPropertyUpdate(),!0)}getFolder(e){return this._folders.find((t=>t.id===e))}forEachFolder(e){for(const t of[...this._folders])if(!e(t))break}get viewSortType(){return this._viewSortType??Q.AtoZ}setViewSortType(e){e!==this.viewSortType&&(this._viewSortType=e,this.sendPropertyUpdate())}get canDragDropEntries(){return this._canDragDropEntries??!1}setCanDragDropEntries(e){e!==this._canDragDropEntries&&(this._canDragDropEntries=e,this.sendPropertyUpdate())}get typeName(){return A.CollectionTree}get enable(){return!0}get folderCount(){return this._folders.length}createPayload(){return{id:this.id,typeName:A.CollectionTree,enable:this.enable,visible:this.visible,paneId:this.paneId,foldersIdList:this._folders.map((e=>e.id)),canDragDropEntries:this._canDragDropEntries,sortType:this._viewSortType,viewControlPaneId:this._viewControlPane?.id}}dispose(){this._folders.forEach((e=>e.dispose())),this._folders=[],super.dispose()}}class it extends ye{constructor(e,t,i,a,n){super(e,i.uniqueId),this._folderContext=t,this._removeFromParent=a,this._parentFolder=n,this._folders=[],this._entries=[],this._userData=i.userData,this._title=i.title,this._selectable=i.selectable??!1,this._selected=!!this._selectable&&(i.selected??!1),this._expanded=i.expanded??!1,this._removable=i.removable??!1,this._color=i.color,void 0!==i.action&&(this._action={onClick:i.action.onClick,title:i.action.title,enabled:i.action.enabled,tooltip:i.action.tooltip}),this._menu=i.menu?.map((e=>({id:e.uniqueId??ae(),label:e.label,checked:e.checked,enabled:e.enabled??!0,icon:e.icon,tooltip:e.tooltip}))),this._onMenuClicked=i.onMenuClicked,this._onSelectedChange=i.onSelectedChange,this._onBeforeRemoved=i.onBeforeRemoved,this._onBeforeEntryRemoved=i.onBeforeEntryRemoved,this._sendUpdateMessage()}get parent(){return this._parentFolder}get expanded(){return this._expanded}get userData(){return this._userData}get selected(){return this._selected}get tags(){return this._tags??[]}get title(){return this._title??""}get folderCount(){return this._folders.length}get entryCount(){return this._entries.length}get color(){return this._color}addFolder(e){const t=new it(this._paneContext,this._folderContext,e,(e=>this.removeFolder(e)),this);return this._folders.push(t),this._sendUpdateMessage(),t}removeFolder(e){const t=this._folders.findIndex((t=>t.id===e));return-1!==t&&(this._folders[t].dispose(),this._folders.splice(t,1),this._sendUpdateMessage(),!0)}addEntry(e){const t=new at(this._paneContext,this,this._entries.length,e);return this._entries.push(t),this._sendUpdateMessage(),t}removeEntryById(e){const t=this._entries.findIndex((t=>t.id===e));return-1!==t&&(this._entries[t].dispose(),this._entries.splice(t,1),this._entries.forEach(((e,t)=>e.updateIndex(t))),this._sendUpdateMessage(),!0)}removeEntryByIndex(e,t=!0){return e<this._entries.length&&(t&&this._entries[e].dispose(),this._entries.splice(e,1),this._entries.forEach(((e,t)=>e.updateIndex(t))),this._sendUpdateMessage(),!0)}moveEntryToIndex(e,t){const i=this.id===e.parent.id,a=this._entries.length,n=Math.max(0,Math.min(t,a)),r=i&&e.index<n?n-1:n;return!((!i||r===e.index)&&i||!e.onBeforeRelocated(this,n))&&(i?this._entries.splice(e.index,1):(e.parent.removeEntryByIndex(e.index,!1),e.updateParent(this)),this._entries.splice(r,0,e),this._entries.forEach(((e,t)=>e.updateIndex(t))),this._sendUpdateMessage(),!0)}forEachFolder(e){for(const t of[...this._folders])if(!e(t))break}forEachEntry(e){for(let t=0;t<this._entries.length&&e(this._entries[t],t);++t);}getFolder(e){return this._folders.find((t=>t.id===e))}getEntryByIndex(e){if(e<this._entries.length)return this._entries[e]}getEntryById(e){return this._entries.find((t=>t.id===e))}setMenu(e){this._menu=e?.map((e=>({id:e.uniqueId??ae(),label:e.label,checked:e.checked,enabled:e.enabled??!0,icon:e.icon,tooltip:e.tooltip}))),this._sendUpdateMessage()}getUserData(){return this._userData}setUserData(e){this._userData=e}setExpanded(e){this.expanded!==e&&(this._expanded=e,this._sendUpdateMessage())}setColor(e){this._color=e,this._sendUpdateMessage()}setSelected(e){if(!this._selectable)throw Error("Cannot select ICollectionTreeFolder when its initialized as unselectable");e!==this._selected&&(this._selected=e,this._onSelectedChange?.(this._selected,this),this._folderContext.onFolderSelectionChange?.(this,this._selected),this._sendUpdateMessage())}setTitle(e){e!==this._title&&(this._title=e,this._sendUpdateMessage())}setHeaderAction(e){this._action=void 0!==e?{onClick:e.onClick,enabled:e.enabled,title:e.title,tooltip:e.tooltip}:void 0,this._sendUpdateMessage()}get id(){return this._id}get enable(){return!0}onAction(e,t){switch(e.type){case g.Expanded:this.setExpanded(e.expanded);break;case g.Selected:if(void 0!==t){const i=this.getEntryById(t);i&&i.setSelected(e.selected)}else this.setSelected(e.selected);break;case g.MenuClick:{const t=this._menu?.find((t=>t.id===e.menuId));t&&(this._onMenuClicked?.(e.menuId,this),this._folderContext.onFolderMenuClicked?.(this,e.menuId))}break;case g.HeaderAction:void 0!==this._action&&this._action.onClick(this);break;case g.Removed:if(void 0!==t){const e=this.getEntryById(t);if(e){(this._onBeforeEntryRemoved?.(e)??!0)&&this.removeEntryByIndex(e.index)}}else{(this._onBeforeRemoved?.(this)??!0)&&this._removeFromParent(this.id)}break;case g.RelocateEntry:{const t=this._paneContext.paneRegistry.get(e.fromFolderId);if(t instanceof it){const i=t.getEntryById(e.entryId);i&&i.index===e.fromIndex&&this.moveEntryToIndex(i,e.toIndex)}}break;default:Ke(e)}}createPanePayload(){return{id:this.id,paneType:X.CollectionTreeFolder,folders:this._folders.map((e=>e.id)),visible:!0,color:this._color,expanded:this._expanded,selectable:this._selectable,parentFolderId:this._parentFolder?.id,removable:this._removable,selected:this.selected,title:this.title,headerAction:this._action&&{title:this._action.title,enabled:this._action.enabled,tooltip:this._action.tooltip},menus:this.getMenuPayload(),items:this._entries.map((e=>e.createPayload()))}}getMenuPayload(){return this._menu?.map((e=>({id:e.id,label:e.label,visible:!0,checked:e.checked,enabled:e.enabled,icon:e.icon,tooltip:e.tooltip})))}dispose(){this._entries.forEach((e=>{e.dispose()})),this._entries=[]}}class at{constructor(e,t,i,a){this._paneContext=e,this._parent=t,this._index=i,this._items=[],this._id=ae(),this._selected=a.selected,this._selectable=a.selectable,this._removable=a.removable,this._image=a.image,this._color=a.color,this._onSelectedChange=a.onSelectedChange,this._onBeforeRelocated=a.onBeforeRelocated}get id(){return this._id}get visible(){return!0}get index(){return this._index}get parent(){return this._parent}get selected(){return this._selected??!1}setSelected(e){if(!this._selectable)throw Error("Cannot select ICollectionTreeEntry when its initialized as unselectable");e!==this._selected&&(this._selected=e,this._onSelectedChange?.(this._selected,this),this.dispatchUpdate())}setColor(e){this._color=e,this.dispatchUpdate()}getItemByIndex(e){return e<this._items.length?this._items[e]:void 0}addStringItem(e){const t=Me(this._paneContext.observableRegistry,e.value),i=new rt(this,e,t);return this._items.push(i),this.dispatchUpdate(),i}addNumberItem(e){const t=Me(this._paneContext.observableRegistry,e.value),i=new st(this,e,t);return this._items.push(i),this.dispatchUpdate(),i}addDropdownItem(e){const t=Me(this._paneContext.observableRegistry,e.value),i=new ot(this,e,t);return this._items.push(i),this.dispatchUpdate(),i}dispatchUpdate(){const e={type:R.UpdatePropertyItem,...this.createPayload()};this._paneContext.clientDispatcher.dispatchEvent(I.ServerUXEvents,e)}createPayload(){return{typeName:W.CollectionTreeEntry,enable:!0,image:this._image,paneId:this.parent.id,visible:!0,id:this._id,removable:this._removable,selectable:this._selectable,selected:this._selected,color:this._color,items:this._items.map((e=>e.createPayload()))}}updateIndex(e){this._index=e}updateParent(e){return this._parent=e,!0}onBeforeRelocated(e,t){return this._onBeforeRelocated?.(e,t,this)??!0}dispose(){this._items.map((e=>e.dispose())),this._items=[]}}class nt{constructor(e,t,i,a,n){this._parentEntry=e,this._visible=t,this._enabled=i,this._title=a,this._tooltip=n}get visible(){return this._visible??!0}get enabled(){return this._enabled??!0}setVisible(e){this.visible!==e&&(this._visible=e,this._update())}setEnabled(e){this.enabled!==e&&(this._enabled=e,this._update())}setTitle(e){this._title=e,this._update()}setTooltip(e){this._tooltip=e,this._update()}get parentEntry(){return this._parentEntry}_update(){this._parentEntry.dispatchUpdate()}}class rt extends nt{constructor(e,t,i){super(e,t.visible,t.enabled,t.title,t.tooltip),this._params=t,this._observable=i,this._observable.handle.subscribe({subscriber:this,onReceiveUpdate:(e,t)=>{this._params.onChange?.(e,t,this)},onDispatchUpdate:()=>{this._parentEntry.dispatchUpdate()}})}get value(){return this._observable.handle.value}get observable(){return this._observable}setValue(e){this._observable.handle.set(e)}get type(){return Z.String}createPayload(){return{type:Z.String,observableValueId:this._observable.handle.id,value:this.value,visible:this._visible,enabled:this._enabled,title:this._title,tooltip:this._tooltip}}dispose(){this._observable.handle.unsubscribe(this),this._observable.release()}}class st extends nt{constructor(e,t,i){super(e,t.visible,t.enabled,t.title,t.tooltip),this._params=t,this._observable=i,this._observable.handle.subscribe({subscriber:this,onReceiveUpdate:(e,t)=>{this._params.onChange?.(e,t,this)},onDispatchUpdate:()=>{this._parentEntry.dispatchUpdate()}})}get value(){return this._observable.handle.value}get observable(){return this._observable}setValue(e){this._observable.handle.set(e)}updateLimits(e){const t=Ae(e.min,e.max);this._params.min=t.min,this._params.max=t.max,this._updateValidator(),this._observable.handle.set(this.value,{notify:!0,deferredNotification:!0,forceDispatch:!0})}get type(){return Z.Number}createPayload(){return{type:Z.Number,observableValueId:this._observable.handle.id,value:this.value,visible:this._visible,enabled:this._enabled,title:this._title,tooltip:this._tooltip,isInteger:this._params.isInteger??!1,min:this._params.min,max:this._params.max}}_updateValidator(){if(this._params.min||this._params.max||this._params.isInteger)if(this._observable.handle.validator){if(!(this._observable.handle.validator instanceof De))throw Error("Expected NumberLimitObservableValidator to limit ICollectionTreeEntryNumberItem value");this._observable.handle.validator.updateLimits(this._params.min,this._params.max)}else this._observable.handle.assignValidator(new De(this._params.min,this._params.max,this._params.isInteger)),this._observable.handle.set(this.value)}dispose(){this._observable.handle.unsubscribe(this),this._observable.release()}}class ot extends nt{constructor(e,t,i){super(e,t.visible,t.enabled,t.title,t.tooltip),this._params=t,this._observable=i,this._menuOptions=[],this._params.menuOptions&&(this._menuOptions=[...this._params.menuOptions]),this._observable.handle.subscribe({subscriber:this,onReceiveUpdate:(e,t)=>{this._params.onChange?.(e,t,this)},onDispatchUpdate:()=>{this._parentEntry.dispatchUpdate()}})}setTooltip(e){e!==this._tooltip&&(this._tooltip=e,this._update())}get value(){return this._observable.handle.value}get observable(){return this._observable}setValue(e){this._observable.handle.set(e)}get type(){return Z.Dropdown}updateMenuOptions(e,t){this._menuOptions=e;const i=this.value;void 0!==t&&this._observable.handle.set(t,{notify:!0,deferredNotification:!0}),t&&t!==i||this._update()}createPayload(){return{type:Z.Dropdown,observableValueId:this._observable.handle.id,value:this.value,visible:this._visible,enabled:this._enabled,title:this._title,tooltip:this._tooltip,menuOptions:this._menuOptions}}dispose(){this._observable.handle.unsubscribe(this),this._observable.release()}}class lt extends ye{constructor(e,t,i){super(e,ae()),this._parent=t,this._isFilterActive=!1,this._actions=i.actions??[],this._visible=void 0!==i.visible&&i.visible,this._sortOptions=i.sortOptions,this._onFilterChanged=i.onFilterChanged,this._onActionClicked=i.onActionClicked,this._visible&&this._sendUpdateMessage()}setActionEnabledState(e,t){const i=this._actions.findIndex((t=>t.id===e));-1!==i&&(this._actions[i].disabled=!t,this._sendUpdateMessage())}updateActionState(e,t){const i=this._actions.findIndex((t=>t.id===e));-1!==i&&(this._actions[i]={id:e,...t},this._sendUpdateMessage())}getActionState(e){const t=this._actions.find((t=>t.id===e));return void 0!==t?{...t}:void 0}setActionStates(e){this._actions=[...e],this._sendUpdateMessage()}get parentId(){return this._parent.id}get isFilterActive(){return this._isFilterActive}setVisible(e){e!==this._visible&&(this._visible=e,this._sendUpdateMessage())}onAction(e){switch(e.type){case f.FilterToggled:this._isFilterActive=e.state;break;case f.FilterChanged:e&&this._onFilterChanged?.(e.items);break;case f.SortTypeChanged:e.sortType in Q&&this._parent.setViewSortType(e.sortType);break;case f.ActionItemClicked:{const t=this._actions.find((t=>t.id===e.actionId));t&&this._onActionClicked?.(t.id)}break;default:Ke(e)}}createPanePayload(){return{id:this._id,visible:this._visible,paneType:X.ListViewControl,sortOptions:this._sortOptions,notifyFilterChange:void 0!==this._onFilterChanged,actions:this._actions.map((e=>({id:e.id,icon:e.icon,label:e.label,disabled:e.disabled,displayInMenu:e.displayInMenu})))}}}class dt extends me{constructor(e,t,i){super(e,t,A.TagContainer,i),i&&(this._title=i.title,this._tags=i.tags?[...i.tags]:void 0,this._tagsPool=i.tagsPool?[...i.tagsPool]:void 0,this._variant=i.variant,this._onTagAdded=i.onTagAdded,this._onTagRemoved=i.onTagRemoved)}get typeName(){return A.TagContainer}get tags(){return this._tags??[]}get tagsPool(){return this._tagsPool??[]}setTags(e){this._tags=e?[...e]:void 0,this.sendPropertyUpdate()}setTagsPool(e){this._tagsPool=e?[...e]:void 0,this.sendPropertyUpdate()}addTag(e){this._tags?this._tags.includes(e)||(this._tags.push(e),this.sendPropertyUpdate()):(this._tags=[e],this.sendPropertyUpdate())}removeTag(e){if(!this._tags)return;const t=this._tags.indexOf(e);-1!==t&&(this._tags.splice(t,1),this.sendPropertyUpdate())}addTagToPool(e){this._tagsPool?this._tagsPool.includes(e)||(this._tagsPool.push(e),this.sendPropertyUpdate()):(this._tagsPool=[e],this.sendPropertyUpdate())}removeTagFromPool(e){if(!this._tagsPool)return;const t=this._tagsPool.indexOf(e);-1!==t&&(this._tagsPool.splice(t,1),this.sendPropertyUpdate())}setVariant(e){this._variant=e,this.sendPropertyUpdate()}setTitle(e){this._title=e,this.sendPropertyUpdate()}onTagAction(e,t){t===b.TagAdded?(this.addTag(e),this.addTagToPool(e),this._onTagAdded?.(e)):t===b.TagRemoved&&(this.removeTag(e),this._onTagRemoved?.(e))}createPayload(){return{id:this.id,typeName:A.TagContainer,enable:this.enable,visible:this.visible,paneId:this.paneId,options:{style:this.style,title:this._title,tags:this._tags,tagsPool:this._tagsPool,variant:this._variant}}}dispose(){this._tags=void 0,this._tagsPool=void 0,super.dispose()}}class ht{constructor(e,t,i){this._paneContext=e,this._id=t,this._onUpdate=i,this._items=[],this._itemQueue=[],this._isConstructing=!1}beginConstruct(){this._isConstructing=!0}endConstruct(){if(this._isConstructing&&this._itemQueue.length>0){this._items=this._items.concat(this._itemQueue),this._onUpdate();for(const e of this._itemQueue)this._tryUpdatePanePropertyItem(e);this._itemQueue=[]}this._isConstructing=!1}get items(){return this._items}createSubPane(e){const t=new Bt(this._paneContext,this._id,e);return this._addPropertyItem(t),t}removeSubPane(e){const t=this._removePropertyItem(e.id);return t&&!this._isConstructing&&this._onUpdate(),t}findPropertyItem(e){return this._items.find((t=>t.id===e))}addProxyPane(e){if(e===this._id)throw Error("A pane cannot add a proxy item to itself");const t=new Fe(this._paneContext.clientDispatcher,this._id,e);return this._addPropertyItem(t),t}addString(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new kt(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addBool(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new be(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addNumber(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new St(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addComboBox(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new gt(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addColorPicker(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new mt(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addButton(e,t){const i="function"==typeof e?this._paneContext.actionManager.createAction({actionType:n.NoArgsAction,onExecute:e}):e,a=new _t(this._paneContext.clientDispatcher,this._id,i,t);return this._addPropertyItem(a),a}addButtonPane(e){const t=new ct(this._paneContext,this._id,e);return this._addPropertyItem(t),t}addDropdown(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new vt(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addDivider(){const e=new bt(this._paneContext.clientDispatcher,this._id);return this._addPropertyItem(e),e}addVector2(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new Tt(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addVector3(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new Rt(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addProgressIndicator(e){const t=e?.progress?Me(this._paneContext.observableRegistry,e.progress):void 0,i=new xt(t,this._paneContext.clientDispatcher,this._id,e);return this._addPropertyItem(i),i}addLink(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new Ct(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addListPane(e){const t=new Ye(this._paneContext,this._id,e);return this._addPropertyItem(t),t}addCollectionTree(e){const t=new tt(this._paneContext.clientDispatcher,this._id,e,this._paneContext);return this._addPropertyItem(t),t}addText(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new It(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addImage(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new yt(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addMinimap(e,t){const i=new Wt(this._paneContext.clientDispatcher,this._id,e,t);return this._addPropertyItem(i),i}addDataTable(e){const t=new ft(this._paneContext.clientDispatcher,this._id,e);return this._addPropertyItem(t),t}addToggleGroup(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new Mt(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addBlockTable(e){const t=new fe(this._paneContext.clientDispatcher,this._id,e);return this._addPropertyItem(t),t}addBlockList(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new ge(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addColorTimeline(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new Ge(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addNumberTimeline(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new Dt(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addVector3Timeline(e,t){const i=Me(this._paneContext.observableRegistry,e),a=new At(i,this._paneContext.clientDispatcher,this._id,t);return this._addPropertyItem(a),a}addMenu(e,t){const i=new He(this._paneContext.clientDispatcher,this._id,e,t);return this._addPropertyItem(i),i}addTagContainer(e){const t=new dt(this._paneContext.clientDispatcher,this._id,e);return this._addPropertyItem(t),t}createPropertyItemPayloadList(){return this._items.map((e=>e.createPayload()))}dispose(){this.items.forEach((e=>{e.dispose()})),this._items=[]}_addPropertyItem(e){this._isConstructing?this._itemQueue.push(e):(this._items.push(e),this._tryUpdatePanePropertyItem(e),this._onUpdate())}_removePropertyItem(e){let t;if(this._isConstructing){const i=this._itemQueue.findIndex((t=>t.id===e));t=-1!==i?this._itemQueue.splice(i,1)[0]:void 0}if(!t){const i=this._items.findIndex((t=>t.id===e));t=-1!==i?this._items.splice(i,1)[0]:void 0}return!!t&&(t.dispose(),!0)}_tryUpdatePanePropertyItem(e){e instanceof me||e.update(!0)}}class ct extends ye{constructor(e,t,i){super(e),this._parentPaneId=t,this._visible=!0,this._itemContainer=new ht(e,this._id,(()=>{this._sendUpdateMessage()})),void 0!==i&&(this._itemMinWidth=i.itemMinWidth)}addButton(e,t){return this._itemContainer.addButton(e,t)}get paneId(){return this._parentPaneId}get typeName(){return A.ButtonPane}get enable(){return!0}createPayload(){return{id:this._id,paneId:this._parentPaneId,typeName:A.ButtonPane,visible:this._visible,enable:this._enabled,paneData:this.createPanePayload()}}createPanePayload(){return{id:this._id,paneType:X.Button,title:this._title,visible:this._visible,parentPaneId:this._parentPaneId,itemMinWidth:this._itemMinWidth,items:this._itemContainer.createPropertyItemPayloadList()}}dispose(){super.dispose()}}class _t extends me{constructor(e,t,i,a){super(e,t,A.Button,a),this._action=i,this._clientDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.BindActionToControl,actionId:this._action.id,controlId:this.id}),a&&(this._title=a.title,this._variant=a.variant,this._tooltip=a.tooltip,this._icon=a.icon,this._hiddenLabel=a.hiddenLabel,this._shrinkToIcon=a.shrinkToIcon)}replaceAction(e){this._clientDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.RemoveActionBindingFromControl,actionId:this._action.id,controlId:this.id}),this._action=e,this._clientDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.BindActionToControl,actionId:this._action.id,controlId:this.id})}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}setIcon(e){this._icon=e,this.sendPropertyUpdate()}createPayload(){return{id:this.id,typeName:A.Button,enable:this.enable,visible:this.visible,paneId:this.paneId,options:{title:this._title,tooltip:this._tooltip,icon:this._icon,variant:this._variant,hiddenLabel:this._hiddenLabel,shrinkToIcon:this._shrinkToIcon,style:this.style}}}}class mt extends ue{constructor(e,t,i,a){super(e,t,i,A.Number,a),this._hiddenAlpha=!1,this._hiddenLabel=!1,this._variant=G.Default,a&&(this._title=a.title,this._tooltip=a.tooltip,a.hiddenLabel&&(this._hiddenLabel=a.hiddenLabel),void 0!==a.variant&&(this._variant=a.variant),void 0!==a.hiddenAlpha&&(this._hiddenAlpha=a.hiddenAlpha),this._onChange=a.onChange)}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}createPayload(){return{id:this.id,typeName:A.ColorPicker,enable:this.enable,visible:this.visible,paneId:this.paneId,observableValueId:this._observable.handle.id,value:this.value,options:{title:this._title,tooltip:this._tooltip,hiddenLabel:this._hiddenLabel,variant:this._variant,hiddenAlpha:this._hiddenAlpha,style:this.style}}}onValueChanged(e,t){this._onChange?.(e,t)}dispose(){super.dispose()}}class ut{constructor(e){const t=ne.EntityTypes.get(e);if(!t)throw Error("Expected EntityIdentifierObservableValidator defaultValue to exist in EntityTypes");this._defaultValue=t.id}validate(e){const t=ne.EntityTypes.get(e);return t?t.id:this._defaultValue}get defaultValue(){return this._defaultValue}}class pt{constructor(e){const t=ne.BlockTypes.get(e);if(!t)throw Error("Expected BlockIdentifierObservableValidator defaultName to exist in BlockTypes");this._defaultValue=t.id}validate(e){const t=ne.BlockTypes.get(e);return t?t.id:this._defaultValue}get defaultValue(){return this._defaultValue}}class gt extends ue{constructor(e,t,i,a){switch(super(e,t,i,A.ComboBox,a),this._dataType=O.Custom,this._hiddenLabel=!1,this._defaultValue="",a&&(this._title=a.title,this._tooltip=a.tooltip,this._showImage=a.showImage,void 0!==a.dataType&&(this._dataType=a.dataType),void 0!==a.defaultValue&&(this._defaultValue=a.defaultValue),void 0!==a.hiddenLabel&&(this._hiddenLabel=a.hiddenLabel),void 0!==a.entries&&(this._entries=a.entries),this._onChange=a.onChange),this._dataType){case O.Entity:if(this._defaultValue){if(!ne.EntityTypes.get(this._defaultValue))throw Error("Expected ComboBox default entity value to be a valid EntityType.")}else this._defaultValue=this._defaultValue=le.Pig;if(this._observable.handle.validator&&!(this._observable.handle.validator instanceof ut))throw Error("Expected entity Combo box property item to use EntityIdentifierObservableValidator.");(void 0===this._observable.handle.validator||this._observable.handle.validator&&this._observable.handle.validator instanceof ut&&this._observable.handle.validator.defaultValue!==this._defaultValue)&&this._observable.handle.assignValidator(new ut(this._defaultValue));break;case O.Block:if(this._defaultValue){if(!ne.BlockTypes.get(this._defaultValue))throw Error("Expected ComboBox default block value to be a valid BlockType.")}else this._defaultValue=oe.Air;if(this._observable.handle.validator&&!(this._observable.handle.validator instanceof pt))throw Error("Expected block Combo box property item to use BlockIdentifierObservableValidator.");(void 0===this._observable.handle.validator||this._observable.handle.validator&&this._observable.handle.validator instanceof pt&&this._observable.handle.validator.defaultValue!==this._defaultValue)&&this._observable.handle.assignValidator(new pt(this._defaultValue));break;case O.Custom:break;default:throw Error("Unsupported ComboBox property item type.")}}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}createPayload(){return{id:this.id,typeName:A.ComboBox,enable:this.enable,visible:this.visible,paneId:this.paneId,observableValueId:this._observable.handle.id,value:this.value,options:{title:this._title,tooltip:this._tooltip,hiddenLabel:this._hiddenLabel,dataType:this._dataType,defaultValue:this._defaultValue,entries:this._entries,showImage:this._showImage,style:this.style}}}onValueChanged(e,t){this._onChange?.(e,t)}dispose(){super.dispose()}}class ft extends me{constructor(e,t,i){super(e,t,A.BlockTable,i),this._entries=[],i&&(this._title=i.title,this._entries=i.entries??[])}updateEntry(e,t,i){t>=0&&t<this._entries.length&&i>=0&&i<this._entries[0].length&&(this._entries[t][i]={...e},this.updateEntries(this._entries))}updateRow(e,t){t>=0&&t<this._entries.length&&(this._entries[t]=[...e],this.updateEntries(this._entries))}updateEntries(e){this._entries=[...e],this.sendPropertyUpdate()}setTitle(e){this._title=e,this.sendPropertyUpdate()}createPayload(){return{id:this.id,typeName:A.DataTable,enable:this.enable,visible:this.visible,paneId:this.paneId,options:{title:this._title,entries:this._entries,style:this.style}}}dispose(){super.dispose()}}class bt extends me{constructor(e,t){super(e,t,A.Divider)}createPayload(){return{id:this.id,typeName:A.Divider,enable:this.enable,visible:this.visible,paneId:this.paneId}}}class vt extends ue{constructor(e,t,i,a){super(e,t,i,A.Dropdown,a),this._hiddenLabel=!1,this._entries=[],this._maxVisibleEntries=5,a&&(this._title=a.title,this._tooltip=a.tooltip,void 0!==a.hiddenLabel&&(this._hiddenLabel=a.hiddenLabel),this._inlineLabel=a.inlineLabel,void 0!==a.entries&&(this._entries=a.entries),void 0!==a.maxVisibleEntries&&(this._maxVisibleEntries=a.maxVisibleEntries),this._onChange=a.onChange)}getEntryByIndex(e){return e<this._entries.length?this._entries[e]:void 0}getEntryByValue(e){return this._entries.find((t=>t.value===e))}updateEntries(e,t){this._entries=e;const i=this.value;void 0!==t&&this._observable.handle.set(t,{notify:!0,deferredNotification:!0}),t&&t!==i||this.sendPropertyUpdate()}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}createPayload(){return{id:this.id,typeName:A.Dropdown,enable:this.enable,visible:this.visible,paneId:this.paneId,observableValueId:this._observable.handle.id,value:this.value,options:{title:this._title,tooltip:this._tooltip,hiddenLabel:this._hiddenLabel,inlineLabel:this._inlineLabel,dropdownItems:this._entries,maxVisibleEntries:this._maxVisibleEntries,style:this.style}}}onValueChanged(e,t){this._onChange?.(e,t,this._entries)}dispose(){super.dispose()}}class yt extends ue{constructor(e,t,i,a){super(e,t,i,A.Image,a),this._height=10,this._width=10,this._alignment=y.Start,a&&(a.imageSize&&("number"==typeof a.imageSize?this._height=this._width=a.imageSize:(this._height=a.imageSize.height,this._width=a.imageSize.width)),a.alignment&&(this._alignment=a.alignment),this._onClick=a.onClick)}get imageWidth(){return this._width}get imageHeight(){return this._height}onClick(e){void 0!==e.x&&void 0!==e.y&&this._onClick?.(e.x,e.y)}resizeImage(e,t){this._width=e,this._height=t,this.sendPropertyUpdate()}onValueChanged(){}createPayload(){return{id:this.id,typeName:A.Image,enable:this.enable,visible:this.visible,paneId:this.paneId,value:"string"==typeof this.value?{path:this.value,type:H.Default}:this.value,options:{imageHeight:this._height,imageWidth:this._width,alignment:this._alignment,clickable:!!this._onClick,style:this.style}}}}class Ct extends ue{constructor(e,t,i,a){super(e,t,i,A.Link,a),a&&(this._title=a.title,this._tooltip=a.tooltip,this._hideIcon=a.hideIcon)}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}onValueChanged(){}createPayload(){return{id:this.id,typeName:A.Link,enable:this.enable,visible:this.visible,paneId:this.paneId,value:this.value,options:{title:this._title,tooltip:this._tooltip,hideIcon:this._hideIcon,style:this.style}}}}class St extends ue{constructor(e,t,i,a){if(super(e,t,i,A.Number,a),this._isInteger=!1,this._hiddenLabel=!1,this._variant=z.InputField,this._min=void 0,this._max=void 0,a){this._title=a.title,this._tooltip=a.tooltip,a.hiddenLabel&&(this._hiddenLabel=a.hiddenLabel),void 0!==a.variant&&(this._variant=a.variant),a.isInteger&&(this._isInteger=a.isInteger);const e=Ae(a.min,a.max);this._min=e.min,this._max=e.max,this._onChange=a.onChange}this._updateValidator()}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}updateLimits(e){const t=Ae(e.min,e.max);this._min=t.min,this._max=t.max,this._updateValidator(),this._observable.handle.set(this.value,{notify:!0,deferredNotification:!0,forceDispatch:!0})}createPayload(){return{id:this.id,typeName:A.Number,enable:this.enable,visible:this.visible,paneId:this.paneId,observableValueId:this._observable.handle.id,value:this.value,options:{title:this._title,tooltip:this._tooltip,hiddenLabel:this._hiddenLabel,variant:this._variant,min:this._min,max:this._max,isInteger:this._isInteger,style:this.style}}}onValueChanged(e,t){this._onChange?.(e,t)}dispose(){super.dispose()}_updateValidator(){if(this._min||this._max||this._isInteger)if(this._observable.handle.validator){if(!(this._observable.handle.validator instanceof De))throw Error("Expected NumberLimitObservableValidator to limit INumberPropertyItem value");this._observable.handle.validator.updateLimits(this._min,this._max)}else this._observable.handle.assignValidator(new De(this._min,this._max,this._isInteger)),this._observable.handle.set(this.value)}}class xt extends me{constructor(e,t,i,a){super(t,i,A.ProgressIndicator,a),this._progress=e,this._hiddenLabel=!1,this._variant=V.Spinner,a&&(this._title=a.title,this._tooltip=a.tooltip,a.hiddenLabel&&(this._hiddenLabel=a.hiddenLabel),void 0!==a.variant&&(this._variant=a.variant)),void 0!==this._progress&&(this._progress.handle.subscribe({subscriber:this,onReceiveUpdate:()=>{},onDispatchUpdate:()=>{this.sendPropertyUpdate()}}),this._progress.handle.validator?this._progress.handle.validator instanceof De&&this._progress.handle.validator.updateLimits(0,1):(this._progress.handle.assignValidator(new De(0,1)),this._progress.handle.set(this._progress.handle.value)))}get progress(){return this._progress?this._progress.handle.value:void 0}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}createPayload(){return{id:this.id,typeName:A.ProgressIndicator,enable:this.enable,visible:this.visible,paneId:this.paneId,options:{title:this._title,tooltip:this._tooltip,hiddenLabel:this._hiddenLabel,variant:this._variant,progress:this.progress,style:this.style}}}dispose(){super.dispose(),void 0!==this._progress&&(this._progress.handle.unsubscribe(this),this._progress.release())}}class kt extends ue{constructor(e,t,i,a){if(super(e,t,i,A.Number,a),this._hiddenLabel=!1,a&&(this._title=a.title,this._tooltip=a.tooltip,this._regexPattern=a.regexPattern,a.hiddenLabel&&(this._hiddenLabel=a.hiddenLabel),this._multilineHeight=a.multilineHeight,this._hasClearButton=a.hasClearButton,this._inlineLabel=a.inlineLabel,this._onChange=a.onChange),void 0!==this._regexPattern){if(!new RegExp(this._regexPattern).test(e.handle.value))throw Error(`Expected default value '${e.handle.value}' to match regex pattern '${this._regexPattern}' for IStringPropertyItem`)}this._updateValidator()}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}createPayload(){return{id:this.id,typeName:A.String,enable:this.enable,visible:this.visible,paneId:this.paneId,observableValueId:this._observable.handle.id,value:this.value,options:{title:this._title,tooltip:this._tooltip,hiddenLabel:this._hiddenLabel,inlineLabel:this._inlineLabel,regexPattern:this._regexPattern,multilineHeight:this._multilineHeight,hasClearButton:this._hasClearButton,style:this.style}}}onValueChanged(e,t){this._onChange?.(e,t)}dispose(){super.dispose()}_updateValidator(){if(void 0!==this._regexPattern)if(this._observable.handle.validator){if(this._observable.handle.validator instanceof We&&this._observable.handle.validator.pattern===this._regexPattern)throw Error("Expected existing StringRegexObservableValidator to have the same pattern assigned to IStringPropertyItem")}else this._observable.handle.assignValidator(new We(this._regexPattern)),this._observable.handle.set(this.value)}}class Pt{constructor(e){this._event=e}unsubscribe(){this._event.unsubscribe(this)}}class Et{constructor(){this.handlers=new Map}subscribe(e){const t=new Pt(this);return this.handlers.set(t,e),t}unsubscribe(e){this.handlers.delete(e)}trigger(e){this.handlers.forEach((t=>t(e)))}}class wt extends ye{constructor(e,t){super(e,t.uniqueId),this._isConstructing=!1,this.onPropertyPaneVisibilityUpdated=new Et,this._title=t.title,this._collapsed=!1,this._itemContainer=new ht(e,this._id,(()=>{this._sendUpdateMessage()}))}beginConstruct(){this._itemContainer.beginConstruct()}endConstruct(){this._itemContainer.endConstruct()}get id(){return this._id}get items(){return this._itemContainer.items}set title(e){this._title=e}get collapsed(){return this._collapsed}get visible(){return this._visible}getTitle(){return this._title}setTitle(e){this._title=e,this.update()}hide(){const e=this._visible;super.hide(),e&&this.onPropertyPaneVisibilityUpdated.trigger({isVisible:this._visible})}show(){const e=!this._visible;super.show(),e&&this.onPropertyPaneVisibilityUpdated.trigger({isVisible:this._visible})}collapse(){this._collapsed=!0,this.update()}expand(){this._collapsed=!1,this.update()}findPropertyItem(e){return this._itemContainer.findPropertyItem(e)}createSubPane(e){return this._itemContainer.createSubPane(e)}removeSubPane(e){return this._itemContainer.removeSubPane(e)}toggleSubPaneVisibility(e){for(const t of this._itemContainer.items)t instanceof Bt&&(void 0!==e&&t.id===e?t.show():t.hide())}addProxyPane(e){return this._itemContainer.addProxyPane(e)}addString(e,t){return this._itemContainer.addString(e,t)}addBool(e,t){return this._itemContainer.addBool(e,t)}addNumber(e,t){return this._itemContainer.addNumber(e,t)}addComboBox(e,t){return this._itemContainer.addComboBox(e,t)}addColorPicker(e,t){return this._itemContainer.addColorPicker(e,t)}addButton(e,t){return this._itemContainer.addButton(e,t)}addButtonPane(e){return this._itemContainer.addButtonPane(e)}addDropdown(e,t){return this._itemContainer.addDropdown(e,t)}addDivider(){return this._itemContainer.addDivider()}addVector2(e,t){return this._itemContainer.addVector2(e,t)}addVector3(e,t){return this._itemContainer.addVector3(e,t)}addProgressIndicator(e){return this._itemContainer.addProgressIndicator(e)}addLink(e,t){return this._itemContainer.addLink(e,t)}addListPane(e){return this._itemContainer.addListPane(e)}addCollectionTree(e){return this._itemContainer.addCollectionTree(e)}addText(e,t){return this._itemContainer.addText(e,t)}addImage(e,t){return this._itemContainer.addImage(e,t)}addMinimap(e,t){return this._itemContainer.addMinimap(e,t)}addDataTable(e){return this._itemContainer.addDataTable(e)}addToggleGroup(e,t){return this._itemContainer.addToggleGroup(e,t)}addBlockTable(e){return this._itemContainer.addBlockTable(e)}addBlockList(e,t){return this._itemContainer.addBlockList(e,t)}addColorTimeline(e,t){return this._itemContainer.addColorTimeline(e,t)}addNumberTimeline(e,t){return this._itemContainer.addNumberTimeline(e,t)}addVector3Timeline(e,t){return this._itemContainer.addVector3Timeline(e,t)}addMenu(e,t){return this._itemContainer.addMenu(e,t)}addTagContainer(e){return this._itemContainer.addTagContainer(e)}createPropertyItemPayloadList(){return this._itemContainer.createPropertyItemPayloadList()}dispose(){this._itemContainer.dispose(),super.dispose()}}class Bt extends wt{constructor(e,t,i){super(e,i),this._parentPaneId=t,this._layout=i.layout,this._layoutAlignment=i.alignment,this._hasMargins=i.hasMargins,this._hasExpander=i.hasExpander,this._width=i.width,this._maxHeight=i.maxHeight,this._scrollable=i.scrollable,this._icon=i.icon,void 0!==i.collapsed&&(this._collapsed=i.collapsed),void 0!==i.infoTooltip&&(this._infoTooltip=i.infoTooltip)}setDirection(e){this._layout=e,this._sendUpdateMessage()}setAlignment(e){this._layoutAlignment=e,this._sendUpdateMessage()}get paneId(){return this._parentPaneId}get typeName(){return A.SubPane}get enable(){return!0}get direction(){return this._layout??q.Vertical}createPayload(){return{id:this._id,paneId:this._parentPaneId,enable:this._enabled,visible:this._visible,typeName:A.SubPane}}createPanePayload(){return{id:this._id,paneType:X.Sub,title:this._title,visible:this._visible,parentPaneId:this._parentPaneId,collapsed:this._collapsed,layout:this._layout,layoutAlignment:this._layoutAlignment,hasMargins:this._hasMargins,hasExpander:this._hasExpander,infoTooltip:this._infoTooltip,width:this._width,maxHeight:this._maxHeight,scrollable:this._scrollable,icon:this._icon,items:this.createPropertyItemPayloadList()}}}class It extends ue{constructor(e,t,i,a){super(e,t,i,A.Text,a),this._hasBorder=!0,this._alignment=y.Start,a&&(this._title=a.title,this._tooltip=a.tooltip,void 0!==a.border&&(this._hasBorder=a.border),void 0!==a.alignment&&(this._alignment=a.alignment))}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}setAlignment(e){this._alignment=e,this.sendPropertyUpdate()}onValueChanged(){}createPayload(){return{id:this.id,typeName:A.Text,enable:this.enable,visible:this.visible,paneId:this.paneId,value:this.value,options:{title:this._title,tooltip:this._tooltip,border:this._hasBorder,alignment:this._alignment,style:this.style}}}}class Mt extends ue{constructor(e,t,i,a){super(e,t,i,A.ToggleGroup,a),this._hiddenLabel=!1,this._hiddenEntryLabels=!0,this._entries=[],a&&(this._title=a.title,this._tooltip=a.tooltip,void 0!==a.hiddenLabel&&(this._hiddenLabel=a.hiddenLabel),void 0!==a.entries&&(this._entries=a.entries),void 0!==a.hiddenEntryLabels&&(this._hiddenEntryLabels=a.hiddenEntryLabels),this._onChange=a.onChange)}updateEntries(e,t){this._entries=e;const i=this.value;void 0!==t&&this._observable.handle.set(t,{notify:!0,deferredNotification:!0}),t&&t!==i||this.sendPropertyUpdate()}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}getEntryByIndex(e){return e<this._entries.length?this._entries[e]:void 0}getEntryByValue(e){return this._entries.find((t=>t.value===e))}createPayload(){return{id:this.id,typeName:A.ToggleGroup,enable:this.enable,visible:this.visible,paneId:this.paneId,observableValueId:this._observable.handle.id,value:this.value,options:{title:this._title,tooltip:this._tooltip,hiddenLabel:this._hiddenLabel,items:this._entries,hiddenEntryLabels:this._hiddenEntryLabels,style:this.style}}}onValueChanged(e,t){this._onChange?.(e,t,this._entries)}dispose(){super.dispose()}}class Tt extends ue{constructor(e,t,i,a){if(super(e,t,i,A.Vector2,a),this._hiddenLabel=!1,this._min={},this._max={},this._isInteger=!1,a){this._title=a.title,this._tooltip=a.tooltip,this._hasClearButton=a.hasClearButton,void 0!==a.hiddenLabel&&(this._hiddenLabel=a.hiddenLabel),void 0!==a.isInteger&&(this._isInteger=a.isInteger);const e=Le(a.min??{},a.max??{});this._min=e.min,this._max=e.max,this._onChange=a.onChange}this._updateLimitValidator()}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}updateAxisLimits(e){const t=Le(e.min??{},e.max??{});this._min=t.min,this._max=t.max,this._updateLimitValidator(),this._observable.handle.set({...this.value},{notify:!0,deferredNotification:!0,forceDispatch:!0})}createPayload(){return{id:this.id,typeName:A.Vector2,enable:this.enable,visible:this.visible,paneId:this.paneId,observableValueId:this._observable.handle.id,value:this.value,options:{title:this._title,tooltip:this._tooltip,hiddenLabel:this._hiddenLabel,isInteger:this._isInteger,maxX:this._max.x,maxY:this._max.y,minX:this._min.x,minY:this._min.y,style:this.style,hasClearButton:this._hasClearButton}}}onValueChanged(e,t){this._onChange?.(e,t)}dispose(){super.dispose()}_updateLimitValidator(){const e=this._min,t=this._max;if(0!==Object.entries(e).length||0!==Object.entries(t).length||this._isInteger)if(this._observable.handle.validator){if(!(this._observable.handle.validator instanceof ze))throw Error("Expected Vector2LimitObservableValidator to limit IVector2PropertyItem value");this._observable.handle.validator.updateLimits({...e},{...t})}else this._observable.handle.assignValidator(new ze({...e},{...t},this._isInteger)),this._observable.handle.set(this.value)}}class Rt extends ue{constructor(e,t,i,a){if(super(e,t,i,A.Vector3,a),this._hiddenLabel=!1,this._min={},this._max={},this._isInteger=!1,a){this._title=a.title,this._tooltip=a.tooltip,this._hasClearButton=a.hasClearButton,void 0!==a.hiddenLabel&&(this._hiddenLabel=a.hiddenLabel),void 0!==a.isInteger&&(this._isInteger=a.isInteger);const e=Ue(a.min??{},a.max??{});this._min=e.min,this._max=e.max,this._hideYAxis=a.hideYAxis,this._onChange=a.onChange}this._updateLimitValidator()}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTooltip(e){this._tooltip=e,this.sendPropertyUpdate()}updateAxisLimits(e){const t=Ue(e.min??{},e.max??{});this._min=t.min,this._max=t.max,this._updateLimitValidator(),this._observable.handle.set({...this.value},{notify:!0,deferredNotification:!0,forceDispatch:!0})}createPayload(){return{id:this.id,typeName:A.Vector3,enable:this.enable,visible:this.visible,paneId:this.paneId,observableValueId:this._observable.handle.id,value:this.value,options:{title:this._title,tooltip:this._tooltip,hiddenLabel:this._hiddenLabel,isInteger:this._isInteger,hasClearButton:this._hasClearButton,hideYAxis:this._hideYAxis,maxX:this._max.x,maxY:this._max.y,maxZ:this._max.z,minX:this._min.x,minY:this._min.y,minZ:this._min.z,style:this.style}}}onValueChanged(e,t){this._onChange?.(e,t)}dispose(){super.dispose()}_updateLimitValidator(){const e=this._min,t=this._max;if(0!==Object.entries(e).length||0!==Object.entries(t).length||this._isInteger)if(this._observable.handle.validator){if(!(this._observable.handle.validator instanceof Oe))throw Error("Expected Vector3LimitObservableValidator to limit IVector3PropertyItem value");this._observable.handle.validator.updateLimits({...e},{...t})}else this._observable.handle.assignValidator(new Oe({...e},{...t},this._isInteger)),this._observable.handle.set(this.value)}}class Dt extends ue{constructor(e,t,i,a){super(e,t,i,A.NumberTimeline,a),this._entries=[],this._isGraphReadOnly=!1,this._disableAddRemoveNodes=!1,this._bounds={minValue:0,maxValue:100},this._majorGridSeparatorStepCount={x:0,y:0},this._minorGridSeparatorSliceCount={x:5,y:5},this._valueAtTime=0,a&&(this._title=a.title,this._precision=a.decimalPrecision??3,this._isGraphReadOnly=a.isGraphReadOnly,this._disableAddRemoveNodes=a.disableAddRemoveNodes,a.entries&&(this._entries=a.entries||[]),a.bounds&&(this._bounds=a.bounds),a.gridSeparatorStepCount&&(this._majorGridSeparatorStepCount=a.gridSeparatorStepCount),a.gridSeparatorSliceCount&&(this._minorGridSeparatorSliceCount=a.gridSeparatorSliceCount)),this.onNodeAdded=a?.onNodeAdded,this.onNodeRemoved=a?.onNodeRemoved,this.onNodeChanged=a?.onNodeChanged,this.onTimeChanged=a?.onTimeChanged,this._validate(),this._valueAtTime=this._linearInterpolate(e.handle.value)}onValueChanged(e){this.setTime(e)}updateNode(e){if(e.time>=0&&e.time<=1){const t=this._entries.findIndex((t=>t.id===e.id));if(t>-1){const i=[...this.getData()];i.splice(t,1);const a=this._findNodeIndex(i,e.time),n=i[a-1],r=i[a];this._isPositionValid(n,r,e.time)&&(this._entries=[...i.slice(0,a),e,...i.slice(a)],this.onNodeChanged?.(e),this._updateValueAtTime(this._observable.handle.value),this.sendPropertyUpdate())}}}addNode(e){const t=[...this.getData()],i=this._findNodeIndex(t,e.time),a=t[i-1],n=t[i];this._isPositionValid(a,n,e.time)&&(e.id=ae(),this._entries&&this._entries?.length>1?e.value=this._linearInterpolate(e.time)??0:e.value=Math.max(this._bounds?.minValue??0,Math.min(e.value,this._bounds?.maxValue??100)),this._entries=[...t.slice(0,i),e,...t.slice(i)],this.onNodeAdded?.(e),this._updateValueAtTime(this._observable.handle.value),this.sendPropertyUpdate())}removeNode(e){if(this._entries&&this._entries.length>1){const t=this._entries.findIndex((t=>t.id===e.id));t>-1&&(this._entries.splice(t,1),this.onNodeRemoved?.(e),this._updateValueAtTime(this._observable.handle.value),this.sendPropertyUpdate())}}getValueAtTime(){return this._valueAtTime}getData(){return[...this._entries??[]]?.sort(((e,t)=>e.time-t.time))}getTitle(){return this._title}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTime(e){this._validate();const t=this._observable.handle.value;this._observable.handle.set(e),this._updateValueAtTime(this._observable.handle.value),this.onTimeChanged?.(e,t),this.sendPropertyUpdate()}getTime(){return this._observable.handle.value}setPrecision(e){this._precision=e,this.sendPropertyUpdate()}getPrecision(){return this._precision}setBounds(e){if(this._bounds={minValue:e.minValue,maxValue:e.maxValue},this._entries){const t=this._entries;t.forEach((t=>{(t.value>e.maxValue||t.value<e.minValue)&&(t.value=Math.max(this._bounds.minValue,Math.min(t.value,this._bounds.maxValue)))})),this._entries=t}this._updateValueAtTime(this._observable.handle.value),this.sendPropertyUpdate()}setSeparatorStepCount(e){this._majorGridSeparatorStepCount=e,this.sendPropertyUpdate()}setSeparatorSliceCount(e){this._minorGridSeparatorSliceCount=e,this.sendPropertyUpdate()}createPayload(){return{id:this.id,timelineValue:this.getTime(),valueAtTime:this._valueAtTime,observableValueId:this._observable.handle.id,typeName:A.NumberTimeline,enable:this.enable,visible:this.visible,paneId:this.paneId,options:{title:this._title,precision:this._precision,isGraphReadOnly:this._isGraphReadOnly,disableAddRemoveNodes:this._disableAddRemoveNodes,nodes:this.getData(),bounds:this._bounds,gridSeparatorStepCount:this._majorGridSeparatorStepCount,gridSeparatorSliceCount:this._minorGridSeparatorSliceCount,style:this.style}}}dispose(){super.dispose()}_updateValueAtTime(e){this._valueAtTime=this._linearInterpolate(e)??0}_lerp(e,t,i){const a=e+(t-e)*i;return Math.max(this._bounds.minValue,Math.min(a,this._bounds.maxValue))}_linearInterpolate(e){if(this._entries){const t=this.getData();if(t.length<2)return void 0!==t[0]?t[0].value:0;const i=t[0],a=t[t.length-1];if(e<i.time||e>a.time){const t=(e+1)%1,n=1-a.time+i.time,r=t<=i.time?(t+1-a.time)/n:(t-a.time)/n;return this._lerp(a.value,i.value,r)}for(let i=0;i<t.length-1;i++){const a=t[i],n=t[i+1];if(a.time<=e&&e<=n.time){const t=(e-a.time)/(n.time-a.time);return this._lerp(a.value,n.value,t)}}return t[t.length-1].value}return this._bounds.maxValue}onOperationClick(e,t){t===N.UpdateNode&&this.updateNode(e),t===N.AddNode&&this.addNode(e),t===N.RemoveNode&&this.removeNode(e)}_validate(){if(this._observable.handle.validator){if(!(this._observable.handle.validator instanceof De))throw Error("Expected NumberLimitObservableValidator to limit INumberTimelinePropertyItem value");this._observable.handle.set(this._observable.handle.validator.validate(this._observable.handle.value))}else this._observable.handle.assignValidator(new De(0,1,!1)),this._observable.handle.set(this.value)}_isPositionValid(e,t,i){let a=x;if(this._precision){a=1/Math.pow(10,this._precision)}return!(e&&Math.abs(i-e.time)<a)&&!(t&&Math.abs(t.time-i)<a)}_findNodeIndex(e,t){for(let i=0;i<e.length;i++)if(t<e[i].time)return i;return e.length}}class At extends ue{constructor(e,t,i,a){super(e,t,i,A.Vector3Timeline,a),this._entries=[],this._isGraphReadOnly=!1,this._disableAddRemoveNodes=!1,this._bounds={minValue:0,maxValue:300},a&&(this._title=a.title,this._precision=a.decimalPrecision??3,this._isGraphReadOnly=a.isGraphReadOnly,this._disableAddRemoveNodes=a.disableAddRemoveNodes,a.entries&&(this._entries=a.entries||[]),a.bounds&&(this._bounds=a.bounds)),this.onNodeAdded=a?.onNodeAdded,this.onNodeRemoved=a?.onNodeRemoved,this.onNodeChanged=a?.onNodeChanged,this.onTimeChanged=a?.onTimeChanged,this._validate()}onValueChanged(e){this.setTime(e)}updateNode(e){if(e.time>=this._bounds.minValue&&e.time<=this._bounds.maxValue){const t=this._entries.findIndex((t=>t.id===e.id));if(t>-1){const i=this._entries[t].color,a={...e,color:e.color??i},n=[...this.getData()];n.splice(t,1);const r=this._findNodeIndex(n,a.time),s=n[r-1],o=n[r];this._isPositionValid(s,o,a.time)&&(this._entries=[...n.slice(0,r),a,...n.slice(r)],this.onNodeChanged?.(a),this.sendPropertyUpdate())}}}addNode(e){if(e.time>=this._bounds.minValue&&e.time<=this._bounds.maxValue){const t=[...this.getData()],i=this._findNodeIndex(t,e.time),a=t[i-1],n=t[i];this._isPositionValid(a,n,e.time)&&(e.id=ae(),this._entries=[...t.slice(0,i),e,...t.slice(i)],this.onNodeAdded?.(e),this.sendPropertyUpdate())}}removeNode(e){if(this._entries&&this._entries.length>1){const t=this._entries.findIndex((t=>t.id===e.id));t>-1&&(this._entries.splice(t,1),this.onNodeRemoved?.(e),this.sendPropertyUpdate())}}getData(){return[...this._entries??[]]?.sort(((e,t)=>e.time-t.time))}getTitle(){return this._title}setTitle(e){this._title=e,this.sendPropertyUpdate()}setTime(e){this._validate();const t=this._observable.handle.value;this._observable.handle.set(e),this.onTimeChanged?.(e,t),this.sendPropertyUpdate()}getTime(){return this._observable.handle.value}setPrecision(e){this._precision=e,this.sendPropertyUpdate()}getPrecision(){return this._precision}setBounds(e){this._bounds={minValue:e.minValue,maxValue:e.maxValue},this._observable.handle.assignValidator(new De(this._bounds.minValue,this._bounds.maxValue,!1)),this._observable.handle.set(this._observable.handle.value),this.sendPropertyUpdate()}createPayload(){return{id:this.id,timelineValue:this.getTime(),observableValueId:this._observable.handle.id,typeName:A.Vector3Timeline,enable:this.enable,visible:this.visible,paneId:this.paneId,options:{title:this._title,precision:this._precision,isGraphReadOnly:this._isGraphReadOnly,disableAddRemoveNodes:this._disableAddRemoveNodes,nodes:this.getData(),bounds:this._bounds,style:this.style}}}dispose(){super.dispose()}onOperationClick(e,t){t===N.UpdateNode&&this.updateNode(e),t===N.AddNode&&this.addNode(e),t===N.RemoveNode&&this.removeNode(e)}_validate(){if(this._observable.handle.validator){if(!(this._observable.handle.validator instanceof De))throw Error("Expected NumberLimitObservableValidator to limit IVector3TimelinePropertyItem value");this._observable.handle.set(this._observable.handle.validator.validate(this._observable.handle.value))}else this._observable.handle.assignValidator(new De(this._bounds.minValue,this._bounds.maxValue,!1)),this._observable.handle.set(this.value)}_isPositionValid(e,t,i){let a=x;if(this._precision){a=1/Math.pow(10,this._precision)}return!(e&&Math.abs(i-e.time)<a)&&!(t&&Math.abs(t.time-i)<a)}_findNodeIndex(e,t){for(let i=0;i<e.length;i++)if(t<e[i].time)return i;return e.length}}class Wt extends me{constructor(e,t,i,a){super(e,t,A.Minimap,a),this._mapImageWidth=35,this._mapImageHeight=35,this._isMultiplayerMarkerShown=!1,this._isMeMarkerShown=!0,this._alignment=y.Center,this._mapId=i,a&&(a.mapImageSize&&("number"==typeof a.mapImageSize?this._mapImageHeight=this._mapImageWidth=a.mapImageSize:(this._mapImageHeight=a.mapImageSize.height,this._mapImageWidth=a.mapImageSize.width)),a.alignment&&(this._alignment=a.alignment),a.isMeMarkerShown&&(this._isMeMarkerShown=a.isMeMarkerShown),a.isMultiplayerMarkerShown&&(this._isMultiplayerMarkerShown=a.isMultiplayerMarkerShown),this._onClick=a.onClick)}get mapId(){return this._mapId}get mapImageHeight(){return this._mapImageHeight}get mapImageWidth(){return this._mapImageWidth}onClick(e){void 0!==e.x&&void 0!==e.y&&this._onClick?.(e.x,e.y)}resizeMapImage(e,t){this._mapImageWidth=e,this._mapImageHeight=t,this.sendPropertyUpdate()}refreshMap(){this.sendPropertyUpdate()}assignMarker(e){e===a.MinimapMarkerType.Multiplayer&&(this._isMultiplayerMarkerShown=!0),this.sendPropertyUpdate()}removeMarker(e){e===a.MinimapMarkerType.Multiplayer&&(this._isMultiplayerMarkerShown=!1),this.sendPropertyUpdate()}onValueChanged(){}createPayload(){return{id:this.id,typeName:A.Minimap,enable:this.enable,visible:this.visible,paneId:this.paneId,mapId:this._mapId,options:{mapImageWidth:this._mapImageWidth,mapImageHeight:this._mapImageHeight,isMeMarkerShown:this._isMeMarkerShown,isMultiplayerMarkerShown:this._isMultiplayerMarkerShown,alignment:this._alignment,clickable:!!this._onClick,style:this.style}}}}class zt{constructor(){this._registry=new Map}register(e,t){if(this._registry.has(e))throw Error("Property pane is already registered");this._registry.set(e,t)}get(e){return this._registry.get(e)}unregister(e){this._registry.delete(e)}}class Lt extends ve{constructor(e,t){super(),this._eventDispatcher=t,this._id=ae(),this._barAlignment=e.alignment??D.Left,this._size=e.size,this._text=void 0!==e.text?e.text:"",this._icon=e.icon}get id(){return this._id}getText(){return this._text}setText(e){this._text=e,this.update()}_sendUpdateMessage(){this._eventDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.UpdateStatusBarItem,id:this._id,barAlignment:this._barAlignment,size:this._size,visible:this._visible,text:this._text,icon:this._icon})}_sendDestroyMessage(){this._eventDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.DestroyStatusBarItem,id:this._id})}}class Vt{constructor(e,t){this._dataStore=e,this._clientDispatcher=t,this._items=[]}teardown(){this._items.forEach((e=>e.dispose()))}createItem(e){const t=new Lt(e,this._clientDispatcher);return this._items.push(t),t}removeItem(e){const t=this._items.findIndex((t=>t.id===e));if(1!==t&&this._items[t]){this._items.splice(t,1)[0].dispose()}}}var Ot,Ut,Nt,Gt;!function(e){e[e.DataPicker=0]="DataPicker"}(Ot||(Ot={})),function(e){e.Confirm="confirm",e.Dismiss="dismiss",e.Error="error"}(Ut||(Ut={}));class Ft extends ye{constructor(e,t){super(e),this._parentPaneId=t,this._visible=!0,this._itemContainer=new ht(e,this._id,(()=>{this._sendUpdateMessage()}))}addBool(e,t){return this._itemContainer.addBool(e,t)}addDivider(){return this._itemContainer.addDivider()}addButton(e,t){return this._itemContainer.addButton(e,t)}addButtonPane(e){return this._itemContainer.addButtonPane(e)}findPropertyItem(e){return this._itemContainer.findPropertyItem(e)}get id(){return this._id}get visible(){return this._visible}createPanePayload(){return{id:this._id,paneType:X.ModalControl,visible:this._visible,parentPaneId:this._parentPaneId,items:this._itemContainer.createPropertyItemPayloadList()}}dispose(){this._itemContainer.dispose(),super.dispose()}}class Ht extends ye{constructor(e,t,i,a){super(e,t.uniqueId),this._sendResponse=i,this._dismissRequest=a,this._title=t.title,this._width=t.width,this._height=t.height,this._canUserDismiss=t.canUserDismiss,this._onActiveRequestChange=t.onActiveRequestChange}get id(){return this._id}get title(){return this._title}setTitle(e){this._title=e,this._sendUpdateMessage()}get contentPane(){return void 0===this._contentPane&&(this._contentPane=new Bt(this._paneContext,this._id,{hasExpander:!1,hasMargins:!1}),this._contentPane.update(!0),this._sendUpdateMessage()),this._contentPane}get controlPane(){return void 0===this._controlPane&&(this._controlPane=new Ft(this._paneContext,this._id),this._controlPane.update(!0),this._sendUpdateMessage()),this._controlPane}get activeRequestId(){return this._activeRequestId}setActiveRequest(e){return e!==this._activeRequestId&&(this._activeRequestId=e,this._onActiveRequestChange?.(this._activeRequestId),!0)}sendResponse(e){if(void 0!==this._activeRequestId){const t={dialogId:this.id,requestId:this._activeRequestId,type:k.Custom,message:e};this._sendResponse(t)}}sendDismiss(){void 0!==this._activeRequestId&&this._dismissRequest(this._activeRequestId)}dispose(){super.dispose(),this._activeRequestId=void 0}createPanePayload(){return{id:this._id,paneType:X.ModalDialog,title:this._title,visible:!0,canUserDismiss:this._canUserDismiss,contentPaneId:this._contentPane?.id,controlPaneId:this._controlPane?.id,width:this._width,height:this._height}}}class qt{constructor(e,t,i,a,n){this._eventDispatcher=e,this._dialogId=t,this._onCancel=i,this._onResponse=a,this._initialData=n,this._isValid=!0,this._requestId=ae()}get id(){return this._requestId}get isValid(){return this._isValid}get requestId(){return this._requestId}handleResponse(e){this._onResponse?.(e)}dispatchRequest(){this._eventDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.ModalDialogActivation,request:this._getActivationRequestPayload()})}cancel(){this.dismiss(!0),this._onCancel(this.id)}dismiss(e){this._isValid&&(this._isValid=!1,e&&this._eventDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.ModalDialogDeactivation,requestId:this.requestId}),this._onResponse?.({type:Ut.Dismiss}))}_getActivationRequestPayload(){if(this._dialogId===Ot.DataPicker){const e=this._initialData;return{type:k.DataPicker,requestId:this._requestId,dataType:e.variant,default:e.default}}return{type:k.Custom,requestId:this._requestId,dialogId:this._dialogId}}}class Kt{constructor(e){this._paneContext=e,this._dialogs=[]}registerDialog(e){const t=new Ht(this._paneContext,e,(e=>{this.dispatchResponse(e)}),(e=>{this.dispatchDismiss(e)}));return this._dialogs.push(t),t}activateDialog(e){return this._activationRequest&&(this._activationRequest.dismiss(!0),this._activationRequest=void 0),this._activationRequest=new qt(this._paneContext.clientDispatcher,e.dialogId,(e=>{e===this._activationRequest?.id&&(this._activationRequest=void 0)}),(t=>{e.onResponse?.(t)}),e.data),this._activationRequest.dispatchRequest(),this._activationRequest}get activeRequest(){return this._activationRequest}handleResponsePayload(e){if(e.type===k.Custom)this._dialogs.forEach((t=>{t.id===e.dialogId&&t.setActiveRequest(e.requestId)})),void 0!==e.message&&this._activationRequest&&e.requestId===this._activationRequest.requestId&&this._activationRequest.handleResponse(e.message);else if(this._activationRequest&&e.requestId===this._activationRequest.requestId){const t=this._buildResponse(e);this._activationRequest.handleResponse(t)}}handleDismissPayload(e,t){if(e===this._activationRequest?.requestId){const e=void 0===t;this._activationRequest.dismiss(e),this._activationRequest=void 0}this._dialogs.forEach((t=>{void 0!==t.activeRequestId&&t.activeRequestId===e&&t.setActiveRequest(void 0)}))}dispatchResponse(e){if(void 0!==this._activationRequest&&e.requestId===this._activationRequest.id)void 0!==e.message&&this._activationRequest.handleResponse(e.message);else{const t={type:p.ModalDialogResponse,response:e};this._paneContext.dataStore.sendNotificationEvent(M.ClientUXEvents,JSON.stringify(t))}}dispatchDismiss(e){if(void 0!==this._activationRequest&&e===this._activationRequest.id)this._activationRequest.dismiss(!0),this._activationRequest=void 0;else{const t={type:p.DismissModalDialog,dismissedRequestId:e};this._paneContext.dataStore.sendNotificationEvent(M.ClientUXEvents,JSON.stringify(t))}}dismissActiveDialog(){this._activationRequest?(this._activationRequest.dismiss(!0),this._activationRequest=void 0):this._paneContext.clientDispatcher.dispatchEvent(I.ServerUXEvents,{type:R.ModalDialogDeactivation})}dispose(){this._activationRequest&&this._activationRequest.cancel(),this._dialogs.forEach((e=>e.dispose())),this._dialogs=[]}_buildResponse(e){if(e.type===k.DataPicker)return{selected:e.selected,type:Ut.Confirm}}}class Yt{constructor(e,t,i){this._inputService=e,this._context=t,this._id=i}get id(){return this._id}getProcessingState(){return this._inputService.getKeyBindingProcessingState(this._context,this._id)??o.Consume}setProcessingState(e){this._inputService.updateKeyBindingProcessingState(this._context,this._id,e)}}class jt{constructor(e){this.inputService=e,this.unregisterAllBindings=this.unregisterAllBindings.bind(this),this._bindingCleanupHandles=[]}_sendRegisterKeyBindingEvent(e,t,i,a){const n=a?a.uniqueId:ae(),r=i.key===m.UNDEFINED?l.Unused:i.modifier??l.None;this.inputService.registerKeyBinding(e,n,i.key,r,{canRebind:void 0!==a&&""!==a.uniqueId,actionId:t.id,label:a?a.label:void 0,tooltip:a?a.tooltip:void 0}),this._addBindingCleanupHandle((()=>{this.inputService.unregisterKeyBinding(e,n)}));return new Yt(this.inputService,e,n)}_sendRegisterMouseBindingEvent(e,t,i){return this.inputService.registerMouseBinding(e,t,i),()=>{this.inputService.unregisterMouseBinding(e,t)}}unregisterAllBindings(){this._bindingCleanupHandles.forEach((e=>e())),this._bindingCleanupHandles=[]}_addBindingCleanupHandle(e){this._bindingCleanupHandles.push(e)}}class Qt extends jt{constructor(e,t){super(e),this._inputContext=t}registerMouseWheelBinding(e,t){this._addBindingCleanupHandle(this._sendRegisterMouseBindingEvent(t??this._inputContext,e.id,h.Wheel))}registerMouseButtonBinding(e,t){this._addBindingCleanupHandle(this._sendRegisterMouseBindingEvent(t??this._inputContext,e.id,h.Button))}registerMouseDragBinding(e,t){this._addBindingCleanupHandle(this._sendRegisterMouseBindingEvent(t??this._inputContext,e.id,h.Drag))}registerKeyBinding(e,t,i,a){return this._sendRegisterKeyBindingEvent(a??this._inputContext,e,t,i)}unregisterBindings(){this.unregisterAllBindings()}}class Xt extends jt{constructor(e){super(e)}registerKeyBinding(e,t,i,a){return this._sendRegisterKeyBindingEvent(e,t,i,a)}}!function(e){e.GlobalEditor="global.editor",e.GlobalToolMode="global.toolMode",e.Viewport="local.toolMode.viewport"}(Nt||(Nt={}));class Jt{get visible(){const e=this._getProperty("visible");return"boolean"==typeof e&&e}get enabled(){const e=this._getProperty("enabled");return"boolean"==typeof e&&e}hide(){this._sendUpdateMessage({visible:!1})}show(){this._sendUpdateMessage({visible:!0})}dispose(){this._sendDestroyMessage()}}class Zt extends Jt{constructor(e,t,i,a,n,r){if(super(),this._eventDispatcher=e,this._dataStore=t,this._inputService=i,this._isActive=!1,this.onModalToolActivation=new Et,!a)throw Error(`Modal tool id ${a} is not valid`);if(void 0===n)throw Error("Fetching modal tools is not supported");{this._id=a,this._inputContextId=this._id,this._groupId=r??"",this._inputContextId=`modalToolContextId:${a}`,this._inputManager=new Qt(this._inputService,Nt.Viewport);const e={id:this._id,icon:n.icon?n.icon:"",enabled:!0,visible:!0,title:n.title??this._id,tooltip:n.tooltip,toolGroupId:r,paneId:void 0,inputContextId:this._inputContextId,actionId:n.action?.id};if(this._dataStore.modalToolContainer.registerTool(this._id,JSON.stringify(e)),n.action&&n.action.id){const e={actionId:n.action.id,controlId:this._id};this._dataStore.actionContainer.bindActionToControl(this._id,JSON.stringify(e))}}}get id(){return this._id}get isActive(){return this._isActive}get groupId(){return this._groupId}dispose(){this._inputManager.unregisterBindings(),super.dispose()}bindPropertyPane(e){this._paneBound=e,this._sendPropertyUpdateMessage("paneId",e.id)}registerMouseButtonBinding(e){this._inputManager.registerMouseButtonBinding(e,this._inputContextId)}registerMouseWheelBinding(e){this._inputManager.registerMouseWheelBinding(e,this._inputContextId)}registerMouseDragBinding(e){this._inputManager.registerMouseDragBinding(e,this._inputContextId)}registerKeyBinding(e,t,i){return this._inputManager.registerKeyBinding(e,t,i,this._inputContextId)}unregisterInputBindings(){this._inputManager.unregisterBindings()}onActiveToolUpdated(e){this._isActive=e,this.onModalToolActivation.trigger({isActiveTool:e}),this._paneBound&&(e?this._paneBound.show():this._paneBound.hide())}_getProperty(e){return this._dataStore.modalToolContainer.getToolProperty(this._id,e)}_sendUpdateMessage(e){this._dataStore.modalToolContainer.updateRegisteredTool(this.id,JSON.stringify(e))}_sendPropertyUpdateMessage(e,t){this._dataStore.modalToolContainer.updateRegisteredToolProperty(this.id,JSON.stringify(t),e)}_sendDestroyMessage(){this._dataStore.modalToolContainer.unregisterTool(this._id),this._dataStore.actionContainer.removeActionFromControl(this._id)}}class $t{constructor(e,t,i,a){this._dataStore=e,this._eventDispatcher=t,this._inputService=i,this._defaultGroupId=a,this.onSelectedToolChanged=new Et,this._currentTools=[],this._toolChangeAfterEventHandle=this._dataStore.modalToolContainer.toolActivationChanged.subscribe((e=>{this.notifyActiveToolChanged(e.toolId,e.isActive)}))}dispose(){this._dataStore.modalToolContainer.toolActivationChanged.unsubscribe(this._toolChangeAfterEventHandle),this._dataStore.modalToolContainer.updateSelectedTool(void 0),this._currentTools.forEach((e=>{e.dispose()})),this._currentTools=[]}get id(){return"editorUI:toolRail"}get currentTools(){return this._currentTools}getSelectedToolId(){return this._dataStore.modalToolContainer.getSelectedTool()}setSelectedToolId(e){this._dataStore.modalToolContainer.updateSelectedTool(e)}addTool(e,t){const i=new Zt(this._eventDispatcher,this._dataStore,this._inputService,e,t,this._defaultGroupId);return this._currentTools.push(i),i}removeTool(e){const t=this._currentTools.findIndex((t=>t.id===e));-1!==t&&(this._currentTools[t].dispose(),this._currentTools.splice(t,1))}focusToolInputContext(){this._inputService.focusViewport()}notifyActiveToolChanged(e,t){for(const i of this._currentTools)i.id===e&&i.onActiveToolUpdated(t);this.onSelectedToolChanged.trigger({tool:void 0!==e?{id:e,isActive:t}:void 0})}}!function(e){e.File="editor:menu:file",e.Edit="editor:menu:edit",e.Extensions="editor:menu:extensions",e.View="editor:menu:view",e.WorldOptions="editor:menu:worldOptions",e.Experimental="editor:menu:experimental",e.Help="editor:menu:help"}(Gt||(Gt={}));class ei{constructor(e){this._dataStore=e,this.listeners={[M.ClientActionEvents]:[],[M.ClientUXEvents]:[],[M.ClientLifecycleEvents]:[]},this.onPayload=e=>{const t=e.dataTag;switch(t){case M.ClientActionEvents:if(e.payload){const i=JSON.parse(e.payload);for(const e of this.listeners[t])e(i)}break;case M.ClientUXEvents:if(e.payload){const i=JSON.parse(e.payload);for(const e of this.listeners[t])e(i)}break;case M.ClientLifecycleEvents:if(e.payload){const i=JSON.parse(e.payload);for(const e of this.listeners[t])e(i)}break;default:return}},this.unregisterListener=(e,t)=>{const i=this.listeners[e];i.splice(i.indexOf(t),1)},this.payloadCallback=this._dataStore.afterEvents.payloadReceived.subscribe(this.onPayload)}registerListener(e,t){return this.listeners[e].push(t),()=>{this.unregisterListener(e,t)}}teardown(){this.payloadCallback&&(this._dataStore.afterEvents.payloadReceived.unsubscribe(this.payloadCallback),this.payloadCallback=void 0)}}class ti extends Jt{constructor(e,t,i,a){if(super(),this._dataStore=t,this._parent=a,"string"==typeof e)this._id=e;else{if(void 0!==e.uniqueId){if(""===e.uniqueId||this._dataStore.menuContainer.hasPayload(e.uniqueId))throw Error(`Cannot create a menu with id '${e.uniqueId}'.`);this._id=e.uniqueId}else this._id=ae();const t={id:this._id,parentId:this._parent?.id,label:e.label,enabled:e.enabled??!0,visible:!0,checked:e.checked,icon:e.icon,tooltip:e.tooltip};if(this._dataStore.menuContainer.createItem(this._id,JSON.stringify(t)),i){const e={actionId:i,controlId:this._id};this._dataStore.actionContainer.bindActionToControl(this._id,JSON.stringify(e))}}}get id(){return this._id}get submenu(){return(this._getChildrenIds()??[]).map((e=>new ti(e,this._dataStore)))}get label(){const e=this._getProperty("label");return"string"==typeof e?e:""}set label(e){this._sendUpdateMessage({label:e})}get checked(){const e=this._getProperty("checked");return"boolean"==typeof e?e:void 0}set checked(e){this._dataStore.menuContainer.hasProperty(this._id,"children")||this._sendUpdateMessage({checked:e})}set enabled(e){this._sendUpdateMessage({enabled:e})}dispose(){this.submenu.forEach((e=>e.dispose())),super.dispose()}addItem(e,t){const i=new ti(e,this._dataStore,t?.id,this),a=this._getChildrenIds()??[];return a.push(i.id),this._sendUpdateMessage({children:a}),i}replaceAction(e){const t={actionId:e.id,controlId:this._id};this._dataStore.actionContainer.removeActionFromControl(this._id),this._dataStore.actionContainer.bindActionToControl(this._id,JSON.stringify(t))}_sendUpdateMessage(e){this._dataStore.menuContainer.updateItem(this.id,JSON.stringify(e))}_sendDestroyMessage(){this._dataStore.menuContainer.destroyItem(this._id),this._dataStore.actionContainer.removeActionFromControl(this._id)}_getProperty(e){return this._dataStore.menuContainer.getProperty(this.id,e)}_getChildrenIds(){return function(e){if(e&&"string"==typeof e)return JSON.parse(e)}(this._getProperty("children"))}_removeChild(e){const t=this._getChildrenIds()??[];this._sendUpdateMessage({children:t.filter((t=>t!==e.id))}),this._dataStore.menuContainer.destroyItem(e.id)}}class ii{constructor(e){this._dataStore=e,this._topMenus=[],this._menuQueryTickHandles=[]}teardown(){this._menuQueryTickHandles.forEach((e=>ne.system.clearRun(e))),this._topMenus.forEach((e=>e.dispose()))}createMenu(e){const t=new ti(e,this._dataStore);return this._topMenus.push(t),t}async getMenu(e){let t,i=!1;return new Promise(((a,n)=>{const r=()=>{t&&this._menuQueryTickHandles.filter((e=>e!==t)),this._dataStore.menuContainer.hasPayload(e)?a(new ti(e,this._dataStore)):i?n(new Error(`Unable to retrieve the menu '${e}' in the following tick`)):(t=ne.system.run(r),this._menuQueryTickHandles.push(t),i=!0)};r()}))}}function ai(e){return"string"==typeof e?e:"object"==typeof e&&null!==e&&"message"in e?e.message:"Unknown exception"}class ni{constructor(e,t){this._system=e,this._logger=t,this.initialize=(e,t)=>{this._player=e,this._dataStore=t},this.dispatchEvent=(e,t,i)=>{this._player?(this.eventQueue||(this.eventQueue=[],this._system.run(this.flush)),i?this.eventQueue.push({type:e,payload:t,replacer:i}):this.eventQueue.push({type:e,payload:t})):this._logger.warning("Attempting to flush events before initialization or after teardown.")},this.flush=()=>{if(this._player&&this._dataStore){if(this.eventQueue){let e;try{for(e of this.eventQueue)e.replacer?this._dataStore.sendNetworkEvent(e.type,JSON.stringify(e.payload,e.replacer)):this._dataStore.sendNetworkEvent(e.type,JSON.stringify(e.payload))}catch(t){this._logger.warning(`Unable to post client to message, is player invalidated? Invalidating event dispatcher player reference.\nError:${ai(t)}\n${JSON.stringify(e)}\n`),this._player=void 0,this._dataStore=void 0}}this.eventQueue=void 0}else this._logger.warning("Attempting to flush events before initialization or after teardown.")}}}class ri{constructor(e){this._dispatcher=e}updateLogPanelVisibility(e){this._dispatcher.dispatchEvent(I.ServerUXEvents,{type:R.UpdateClientPanelVisibility,panel:ie.LogPanel,visible:e})}updateUISettingsPanelVisibility(e){this._dispatcher.dispatchEvent(I.ServerUXEvents,{type:R.UpdateClientPanelVisibility,panel:ie.ControlPanel,visible:e})}updateWelcomePanelVisibility(e){this._dispatcher.dispatchEvent(I.ServerUXEvents,{type:R.UpdateClientPanelVisibility,panel:ie.WelcomePanel,visible:e})}navigateToPauseScreen(){this._dispatcher.dispatchEvent(I.ServerUXEvents,{type:R.OnNavigateFromEditor,destination:te.PauseScreen})}navigateToDocumentation(){this._dispatcher.dispatchEvent(I.ServerUXEvents,{type:R.OnNavigateFromEditor,destination:te.Documentation})}navigateToFeedback(){this._dispatcher.dispatchEvent(I.ServerUXEvents,{type:R.OnNavigateFromEditor,destination:te.Feedback})}navigateToSamples(){this._dispatcher.dispatchEvent(I.ServerUXEvents,{type:R.OnNavigateFromEditor,destination:te.Samples})}activateTutorial(){this._dispatcher.dispatchEvent(I.ServerUXEvents,{type:R.ActivateTutorial})}saveAndExit(){this._dispatcher.dispatchEvent(I.ServerUXEvents,{type:R.OnNavigateFromEditor,destination:te.SaveAndExit})}}class si{constructor(e,t){this._player=e,this._tagList=t}info(e,t){a.editor.log.info(e,{channelMask:t?.channelMask??a.LogChannel.Message,tags:this._tagList,player:this._player,subMessage:t?.subMessage})}warning(e,t){a.editor.log.warning(e,{channelMask:t?.channelMask??a.LogChannel.Message,tags:this._tagList,player:this._player,subMessage:t?.subMessage})}error(e,t){a.editor.log.error(e,{channelMask:t?.channelMask??a.LogChannel.Message,tags:this._tagList,player:this._player,subMessage:t?.subMessage})}debug(e,t){a.editor.log.debug(e,{channelMask:t?.channelMask??a.LogChannel.Message,tags:this._tagList,player:this._player,subMessage:t?.subMessage})}}class oi extends Jt{constructor(e,t,i,a){if(super(),this._dataStore=t,this._id=e,a){if(!i)throw Error("Expected action to exist on ActionBarItem creation.");const e={id:this._id,label:a.label,icon:a.icon,enabled:a.enabled??!0,visible:!0,actionId:i,tooltipTitle:a.tooltipTitle,tooltipDescription:a.tooltipDescription,iconAnimation:a.iconAnimation,executeOnAdd:a.executeOnAdd};this._dataStore.actionBarContainer.registerItem(this._id,JSON.stringify(e));const t={actionId:i,controlId:this._id};this._dataStore.actionContainer.bindActionToControl(this._id,JSON.stringify(t))}else{if(!this._dataStore.actionBarContainer.hasItemPayload(this._id))throw Error("Unable to find ActionBarItem.")}}get id(){return this._id}get label(){const e=this._getProperty("label");return"string"==typeof e?e:""}getEnabled(){const e=this._getProperty("enabled");return"boolean"==typeof e&&e}setEnabled(e){this._sendPropertyUpdateMessage("enabled",e)}dispose(){super.dispose()}_sendUpdateMessage(e){this._dataStore.actionBarContainer.updateRegisteredItem(this.id,JSON.stringify(e))}_sendPropertyUpdateMessage(e,t){this._dataStore.actionBarContainer.updateRegisteredItemProperty(this.id,JSON.stringify(t),e)}_sendDestroyMessage(){this._dataStore.actionBarContainer.unregisterItem(this._id),this._dataStore.actionContainer.removeActionFromControl(this._id)}_getProperty(e){return this._dataStore.actionBarContainer.getItemProperty(this.id,e)}}class li{constructor(e){this._dataStore=e,this._registeredItems=new Map}registerItem(e,t,i){const a=new oi(e,this._dataStore,t.id,i);return this._registeredItems.set(e,a),a}unregisterItem(e){const t=this._registeredItems.get(e);t&&(t.dispose(),this._registeredItems.delete(e))}teardown(){this._registeredItems.forEach((e=>e.dispose())),this._registeredItems.clear()}}class di extends ye{constructor(e,t,i){super(e),this._overlayManager=t,this._title=i?.title,this._visible=!0}get contentPane(){return void 0===this._contentPane&&(this._contentPane=new Bt(this._paneContext,this._id,{hasExpander:!1,hasMargins:!0}),this._contentPane.update(!0),this._sendUpdateMessage()),this._contentPane}get controlPane(){return void 0===this._controlPane&&(this._controlPane=new Ft(this._paneContext,this._id),this._controlPane.update(!0),this._sendUpdateMessage()),this._controlPane}get id(){return this._id}get visible(){return this._overlayManager.getActiveOverlay()===this._id}show(){this._overlayManager.setActiveOverlay(this._id)}hide(){this.visible&&this._overlayManager.setActiveOverlay(void 0)}createPanePayload(){return{id:this._id,paneType:X.ModalOverlay,title:this._title,visible:this._visible,contentPaneId:this._contentPane?.id,controlPaneId:this._controlPane?.id}}dispose(){super.dispose(),void 0!==this._contentPane&&this._contentPane.dispose(),void 0!==this._controlPane&&this._controlPane.dispose()}}class hi extends wt{constructor(e,t){super(e,t),this._isHeaderActionVisible=!0,this._modalOverlayMap=new Map,this._modalOverlayManager={setActiveOverlay:e=>this.setActiveModalOverlay(e),getActiveOverlay:()=>this._activeModalOverlayId},this._visible=!1,void 0!==t.headerAction&&(this._headerAction={icon:t.headerAction.icon,tooltip:t.headerAction.tooltip},void 0!==t.headerAction.action&&(this._headerAction.registeredAction=e.actionManager.createAction({actionType:n.NoArgsAction,onExecute:t.headerAction.action}))),void 0!==t.infoTooltip&&(this._infoTooltip=t.infoTooltip,void 0===this._infoTooltip.title&&(this._infoTooltip.title=this._title)),void 0!==t.icon&&(this._icon=t.icon),this._location=t.location}get drawerPane(){return void 0===this._drawerPane&&(this._drawerPane=new ci(this._id,this._paneContext,{}),this._sendUpdateMessage()),this._drawerPane}get location(){return this._location??J.Drawer}isHeaderActionVisible(){return void 0!==this._headerAction&&this._isHeaderActionVisible}setHeaderActionVisibility(e){this._isHeaderActionVisible!==e&&(this._isHeaderActionVisible=e,this._sendUpdateMessage())}createModalOverlayPane(e){const t=new di(this._paneContext,this._modalOverlayManager,e);return this._modalOverlayMap.set(t.id,t),this._sendUpdateMessage(),t}createPanePayload(){return{id:this._id,paneType:X.Root,title:this._title,visible:this._visible,items:this.createPropertyItemPayloadList(),headerAction:this._headerAction&&this._isHeaderActionVisible?{icon:this._headerAction.icon,tooltip:this._headerAction.tooltip,actionId:this._headerAction.registeredAction?.id}:void 0,infoTooltip:this._infoTooltip,activeModalOverlayId:this._activeModalOverlayId,modalOverlayMap:this._getModalOverlayListPayload(),drawerSubPaneId:this._drawerPane?.id,icon:this._icon,location:this._location}}setActiveModalOverlay(e){if(e!==this._activeModalOverlayId){(void 0!==e&&this._modalOverlayMap.has(e)||void 0===e)&&(this._activeModalOverlayId=e,this._sendUpdateMessage())}}getActiveModalOverlayId(){return this._activeModalOverlayId}dispose(){super.dispose()}_getModalOverlayListPayload(){if(0===this._modalOverlayMap.size)return;const e={};return this._modalOverlayMap.forEach(((t,i)=>{e[i]=t.createPanePayload()})),e}}class ci extends wt{constructor(e,t,i){super(t,i),this._parentId=e,this._visible=!1}createPanePayload(){return{id:this._id,items:this._itemContainer.createPropertyItemPayloadList(),paneType:X.Sub,parentPaneId:this._parentId,visible:this._visible}}}const _i=(e=>{var t={};return r.d(t,e),t})({editorInternal:()=>i.editorInternal});class mi{constructor(e,t,i){this._extensionContext=e,this._clientEventDispatcher=t,this._dataStoreEventListener=i,this._rootPanes=[],this.scratchStorage=void 0;const a=_i.editorInternal.getPlayerServices(this.extensionContext.player);this._dataStore=a.dataStore,this._inputService=a.input,this._clientEventDispatcher.initialize(this.extensionContext.player,this._dataStore),this._observableRegistry=new Ie(ne.system),this._paneRegistry=new zt,this._eventSubscriptionCache=new _e(ne.world.afterEvents),this._inputManager=new Xt(this._inputService),this._logger=new si(this.extensionContext.player,["Extension",this.extensionContext.extensionInfo.name]),this._builtInUIManager=new ri(this._clientEventDispatcher),this._actionManager=new se(this._clientEventDispatcher,this._dataStoreEventListener,this.extensionContext.player,ne.system),this._modalToolContainer=new $t(this._dataStore,this._clientEventDispatcher,this._inputService,this._extensionContext.extensionInfo.defaultToolGroupId),this._menuContainer=new ii(this._dataStore),this._actionBar=new li(this._dataStore),this._statusBar=new Vt(this._dataStore,this._clientEventDispatcher),this._modalDialogManager=new Kt(this._getPaneContext()),this._dataStoreListenerUnregister=this._dataStoreEventListener.registerListener(M.ClientUXEvents,(e=>this._handleClientUXEvent(e)))}teardown(){this._inputManager.unregisterAllBindings(),this._extensionContext.cursor.resetToDefaultState(),this._actionManager.teardown(),this._modalToolContainer.dispose(),this._actionBar.teardown(),this._statusBar.teardown(),this._menuContainer.teardown();for(const e of this._rootPanes)e.dispose();this._rootPanes=[],this._modalDialogManager.dispose(),this._dataStoreListenerUnregister(),this._eventSubscriptionCache.teardown(),this._observableRegistry.teardown(),_i.editorInternal.getPlayerServices(this._extensionContext.player).regionManager.disposeAllRegions()}get toolRail(){return this._modalToolContainer}get menuBar(){return this._menuContainer}get actionBar(){return this._actionBar}get statusBar(){return this._statusBar}get dialogManager(){return this._modalDialogManager}createPropertyPane(e){const t=new hi(this._getPaneContext(),e);return this._rootPanes.push(t),t}get actionManager(){return this._actionManager}get inputManager(){return this._inputManager}get log(){return this._logger}get extensionContext(){return this._extensionContext}get builtInUIManager(){return this._builtInUIManager}get eventSubscriptionCache(){return this._eventSubscriptionCache}_handleClientUXEvent(e){switch(e.type){case p.UpdateObservableValue:this._observableRegistry.update(e.id,e.newValue);break;case p.PropertyPaneVisibilityChanged:{const t=this._paneRegistry.get(e.id);t&&(e.visibility?t.show():t.hide());break}case p.PropertyPaneCollapsedStateChanged:{const t=this._paneRegistry.get(e.id);t&&t instanceof wt&&(e.collapsed?t.collapse():t.expand());break}case p.PropertyItemClicked:{const t=this._paneRegistry.get(e.paneId);if(t&&(t instanceof wt||t instanceof Ft)){const i=t.findPropertyItem(e.id);i&&function(e){return e instanceof yt||e instanceof He}(i)&&i.onClick({x:e.x,y:e.y,targetId:e.targetId})}break}case p.PropertyItemContainerOperation:{const t=this._paneRegistry.get(e.paneId);if(t&&(t instanceof wt||t instanceof Ft)){const i=t.findPropertyItem(e.id);i&&function(e){return e instanceof fe}(i)&&i.onOperationClick(e.item,e.operation)}break}case p.PropertyItemTimelineAction:{const t=this._paneRegistry.get(e.paneId);if(t&&(t instanceof wt||t instanceof Ft)){const i=t.findPropertyItem(e.id);i&&function(e){return e instanceof Ge||e instanceof Dt||e instanceof At}(i)&&i.onOperationClick(e.item,e.operation)}break}case p.PropertyItemTagContainerAction:{const t=this._paneRegistry.get(e.paneId);if(t&&(t instanceof wt||t instanceof Ft)){const i=t.findPropertyItem(e.id);i&&function(e){return e instanceof dt}(i)&&i.onTagAction(e.tag,e.action)}break}case p.ListPaneAction:{const t=this._paneRegistry.get(e.paneId);t&&t instanceof Ye&&t.onAction(e.slotId,e.entryIndex,e.targetId);break}case p.ListViewControlPaneAction:{const t=this._paneRegistry.get(e.paneId);t&&(t instanceof et||t instanceof lt)&&t.onAction(e.actionData);break}case p.CollectionTreeFolderAction:{const t=this._paneRegistry.get(e.paneId);t&&t instanceof it&&t.onAction(e.actionData,e.entryId);break}case p.ModalDialogResponse:this._modalDialogManager.handleResponsePayload(e.response);break;case p.DismissModalDialog:this._modalDialogManager.handleDismissPayload(e.dismissedRequestId,e.supersedingRequestId);break;default:Ke(e)}}_getPaneContext(){return{paneRegistry:this._paneRegistry,clientDispatcher:this._clientEventDispatcher,actionManager:this._actionManager,observableRegistry:this._observableRegistry,dataStore:this._dataStore}}}class ui{constructor(e,t){this._activate=e,this._shutdown=t,this.extensionContextToPlayerContext=new Map,this.onLifecycleEvent=(e,t)=>{switch(t.type){case v.OnInitialize:{const t=this.extensionContextToPlayerContext.get(e);if(!t)return void a.editor.log.error("Receiving lifecycle activation for an unknown player? Unable to activate extensions.",{player:e,channelMask:a.LogChannel.All});void 0!==t.uiSession&&(a.editor.log.debug("Restarting UI session.",{player:e}),this._onSessionShutdown(t)),t.uiSession=new mi(t.editorContext,t.playerEventDispatcher,t.dataStoreEventListener),t.disposables=this._activate(t.uiSession);break}}}}onNewPlayerJoin(e){if(this.extensionContextToPlayerContext.has(e.player)){a.editor.log.error("An existing extension is being reactivated for a player twice? Replacing old context and disposing existing session.",{player:e.player,channelMask:a.LogChannel.All});const t=this.extensionContextToPlayerContext.get(e.player);t?.uiSession&&this._shutdown(t.uiSession),t?.lifecycleUnregister()}const t=new ei(_i.editorInternal.getPlayerServices(e.player).dataStore);this.extensionContextToPlayerContext.set(e.player,{editorContext:e,uiSession:void 0,playerEventDispatcher:new ni(ne.system,a.editor.log),dataStoreEventListener:t,lifecycleUnregister:t.registerListener(M.ClientLifecycleEvents,(t=>{this.onLifecycleEvent(e.player,t)}))})}onPlayerLeave(e){const t=this.extensionContextToPlayerContext.get(e.player);t?(this._onSessionShutdown(t),t.dataStoreEventListener.teardown(),t.playerEventDispatcher.flush(),t.lifecycleUnregister()):a.editor.log.error("No player context for the given player, unable to perform any clean up.",{player:e.player,channelMask:a.LogChannel.All}),this.extensionContextToPlayerContext.delete(e.player)}_onSessionShutdown(e){e.disposables?.forEach((e=>e.teardown())),e.uiSession&&(this._shutdown(e.uiSession),e.uiSession.teardown(),e.uiSession=void 0)}}const pi=new Map;function gi(e,t,i,a){if(pi.has(e))throw new Error("Extension name already registered!");pi.set(e,new ui(t,i));return _i.editorInternal.registerExtension(e,(t=>{if(!pi.has(e))throw new Error("Activating an extension that does not exist");pi.get(e)?.onNewPlayerJoin(t)}),(t=>{if(!pi.get(e))throw new Error("Shutting down an extension that does not exist");pi.get(e)?.onPlayerLeave(t)}),a)}const fi=100;function*bi(e,t,i,a){try{let e=0;for(const t of i)a(t),++e,e>fi&&(e=0,yield)}catch(e){t(e)}e()}async function vi(e,t){await new Promise((function(i,a){const n=e.getBlockLocationIterator();ne.system.runJob(bi(i,a,n,t))}))}async function yi(e,t){await new Promise((function(i,a){ne.system.runJob(bi(i,a,e,t))}))}const Ci=[];function Si(e,t,i,a){Ci.push({typeConstructor:e,name:t,serializer:e=>i(e),deserializer:a})}function xi(e){return JSON.stringify(e,(function(e,t){for(const e of Ci)if(t instanceof e.typeConstructor){const i=e.serializer(t);return i._type=e.name,i}return t}))}function ki(e){return JSON.parse(e,(function(e,t){if("object"==typeof t){const e=t;if(e._type&&"string"==typeof e._type)for(const t of Ci)if(e._type===t.name)return t.deserializer(e)}return t}))}class Pi{constructor(e,t){this.nativeHandle=e,this.transactionManager=t}addUserDefinedOperation(e,t){const i=xi(e);this.transactionManager.addUserDefinedOperation(this.nativeHandle,i,t)}}function Ei(e,t,i){const a=e.createUserDefinedTransactionHandler((e=>{t(ki(e))}),(e=>{i(ki(e))}));return new Pi(a,e)}var wi;!function(e){e.SingleBlock="editor:brushShape:singleBlock",e.Cuboid="editor:brushShape:cuboid",e.Ellipsoid="editor:brushShape:ellipsoid",e.Cone="editor:brushShape:cone",e.Cylinder="editor:brushShape:cylinder",e.Pyramid="editor:brushShape:pyramid",e.Star="editor:brushShape:star"}(wi||(wi={}));class Bi{constructor(e,t,i){this._id=e,this._displayName=t,this._icon=i}get id(){return this._id}get displayName(){return this._displayName}get icon(){return this._icon}}const Ii=10,Mi=[{x:1,y:0,z:0},{x:-1,y:0,z:0},{x:0,y:1,z:0},{x:0,y:-1,z:0},{x:0,y:0,z:1},{x:0,y:0,z:-1}];function Ti(e,t,i){const a=e=>(e%360+360)%360;return 0!==a(e)||0!==a(t)||0!==a(i)}function Ri(e,t){let i=0,a=0;const n=e-1,r=t-1,s=n-i,o=a-r;let l=s+o,d=0;const h=new Array(e);do{h[i]=a,d=2*l,d>=o&&(l+=o,i+=1),d<=s&&(l+=s,a+=1)}while(i<=n&&a<=r);return h}function Di(e,t){let i=0,a=0;let n=2*e-i;const r=2*t-a;let s=1&r,o=4*(1-n)*r*r,l=4*(s+1)*n*n,d=o+l+s*n*n,h=0;a+=Math.floor((r+1)/2),n*=8*n,s=8*r*r;const c=new Array(e);do{c[i]=a-t,h=2*d,h<=l&&(a++,d+=l+=n),(h>=o||2*d>l)&&(i++,d+=o+=s)}while(i<e);return c}class Ai extends De{constructor(e,t){super(e,t,!0)}validate(e){return e=e%2==0?e+1:e,super.validate(e)}}function Wi(e,t){return new ne.BlockVolume({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),z:Math.min(e.z,t.z)},{x:Math.max(e.x,t.x),y:Math.max(e.y,t.y),z:Math.max(e.z,t.z)})}function zi(e,t,i,n,r,s){if(e<=1&&t<=1){const e=new a.RelativeVolumeListBlockVolume;if(e.add(new ne.BlockVolume({x:0,y:0,z:0},{x:0,y:Math.max(0,i-1),z:0})),!Ti(n,r,s))return e;const t=Math.max(0,i-1);return Fi(0,0,t,{x:.5,y:t/2+(t%2==0?0:.5),z:.5},e,n,r,s)}const o=e<t,l=o?Di(t-1,e-1):Di(e-1,t-1),d=l.length>0?l[l.length-1]:0,h=[];if(e>1||t>1)for(let a=0;a<l.length;a++){const n=a-(o?t-1:e-1),r=a+1,s=l[a],d=l.length>0?l[l.length-(a+1)]:0;h.push({x:o?s:n,y:0,z:o?n:s}),h.push({x:o?-s:n,y:i-1,z:o?n:-s}),h.push({x:o?d:r,y:0,z:o?r:d}),h.push({x:o?-d:r,y:i-1,z:o?r:-d})}o?(h.push({x:d,y:0,z:0}),h.push({x:-d,y:i-1,z:0})):(h.push({x:0,y:0,z:d}),h.push({x:0,y:i-1,z:-d}));const c=new a.RelativeVolumeListBlockVolume;for(let e=0;e<h.length;e+=2){const t=h[e],i=h[e+1];c.add(Wi(t,i))}if(!Ti(n,r,s))return c;const _=c.getBoundingBox(),m=_.max.x-_.min.x,u=_.max.y-_.min.y,p=u/2+(u%2==0?0:.5);return Fi(m,_.max.z-_.min.z,u,{x:(_.min.x+_.max.x+1)/2,y:p,z:(_.min.z+_.max.z+1)/2},c,n,r,s)}function Li(e,t,i){return{x:e.x,y:e.y*t-e.z*i,z:e.y*i+e.z*t}}function Vi(e,t,i){return{x:e.x*t+e.z*i,y:e.y,z:-e.x*i+e.z*t}}function Oi(e,t,i){return{x:e.x*t-e.y*i,y:e.x*i+e.y*t,z:e.z}}function Ui(e){return e*(Math.PI/180)}function Ni(e){return Math.floor(e+1e-6)}function Gi(e,t,i,n,r,s){if(!Ti(n,r,s)){const n=new a.RelativeVolumeListBlockVolume,r=Math.floor(e/2),s=Math.floor(i/2),o=Math.floor(t/2);return n.add(new ne.BlockVolume({x:-r,y:-s,z:-o},{x:e-r-1,y:i-s-1,z:t-o-1})),n}const o=new a.RelativeVolumeListBlockVolume,l=Ui(r),d=Ui(n),h=Ui(s),c=Math.cos(-l),_=Math.sin(-l),m=Math.cos(-d),u=Math.sin(-d),p=Math.cos(-h),g=Math.sin(-h),f=Math.floor(e/2),b=Math.floor(i/2),v=Math.floor(t/2),y=-f,C=-b,S=-v,x=e-f-1,k=i-b-1,P=t-v-1,E=(y+x+1)/2,w=(C+k+1)/2,B=(S+P+1)/2,I=Math.sqrt(e**2+i**2+t**2)/2,M={x:Math.floor(-I),y:Math.floor(-I),z:Math.floor(-I)},T=Math.ceil(I),R=Math.ceil(I),D=Math.ceil(I);let A,W;for(let e=M.x;e<T;e++)for(let t=M.y;t<R;t++)for(let i=M.z;i<D;i++){const a={x:e+.5-E,y:t+.5-w,z:i+.5-B};let n=Oi({x:a.x,y:a.y,z:a.z},p,g);n=Li({x:n.x,y:n.y,z:n.z},m,u),n=Vi({x:n.x,y:n.y,z:n.z},c,_);const r={x:Ni(n.x+E),y:Ni(n.y+w),z:Ni(n.z+B)};if(r.x>=y&&r.x<=x&&r.y>=C&&r.y<=k&&r.z>=S&&r.z<=P){const a={x:e,y:t,z:i};W&&e===W.x&&t===W.y&&i===W.z+1||(A&&W&&o.add(new ne.BlockVolume(A,W)),A=a),W=a}else A&&(o.add(new ne.BlockVolume(A,W)),A=void 0,W=void 0)}return A&&W&&o.add(new ne.BlockVolume(A,W)),o}function Fi(e,t,i,n,r,s,o,l){const d=Ui(o),h=Ui(s),c=Ui(l),_=Math.cos(-d),m=Math.sin(-d),u=Math.cos(-h),p=Math.sin(-h),g=Math.cos(-c),f=Math.sin(-c),b=Math.sqrt(e**2+i**2+t**2)/2,v={x:Math.floor(n.x-b),y:Math.floor(n.y-b),z:Math.floor(n.z-b)},y=Math.ceil(n.x+b),C=Math.ceil(n.y+b),S=Math.ceil(n.z+b),x=new a.RelativeVolumeListBlockVolume;let k,P;for(let e=v.x;e<y;e++)for(let t=v.y;t<C;t++)for(let i=v.z;i<S;i++){const a={x:e+.5-n.x,y:t+.5-n.y,z:i+.5-n.z};let s=Oi({x:a.x,y:a.y,z:a.z},g,f);s=Li({x:s.x,y:s.y,z:s.z},u,p),s=Vi({x:s.x,y:s.y,z:s.z},_,m);const o={x:Ni(s.x+n.x),y:Ni(s.y+n.y),z:Ni(s.z+n.z)};if(r.isInside(o)){const a={x:e,y:t,z:i};P&&e===P.x&&t===P.y&&i===P.z+1||(k&&P&&x.add(new ne.BlockVolume(k,P)),k=a),P=a}else k&&(x.add(new ne.BlockVolume(k,P)),k=void 0,P=void 0)}return k&&P&&x.add(new ne.BlockVolume(k,P)),x}function*Hi(e,t,i,a,n,r,s,o){const l=Ui(s),d=Ui(r),h=Ui(o),c=Math.cos(-l),_=Math.sin(-l),m=Math.cos(-d),u=Math.sin(-d),p=Math.cos(-h),g=Math.sin(-h),f=Math.sqrt(e**2+i**2+t**2)/2,b={x:Math.floor(a.x-f),y:Math.floor(a.y-f),z:Math.floor(a.z-f)},v=Math.ceil(a.x+f),y=Math.ceil(a.y+f),C=Math.ceil(a.z+f);for(let e=b.x;e<v;e++)for(let t=b.y;t<y;t++)for(let i=b.z;i<C;i++){const r={x:e+.5-a.x,y:t+.5-a.y,z:i+.5-a.z};let s=Oi({x:r.x,y:r.y,z:r.z},p,g);s=Li({x:s.x,y:s.y,z:s.z},m,u),s=Vi({x:s.x,y:s.y,z:s.z},c,_);const o={x:Ni(s.x+a.x),y:Ni(s.y+a.y),z:Ni(s.z+a.z)};yield n(o)?{x:e,y:t,z:i}:void 0}}function qi(e,t,i,n,r,s,o,l=2e3){if(!Ti(n,r,s)){o?.onProgress?.(1);const n=new a.RelativeVolumeListBlockVolume,r=Math.floor(e/2),s=Math.floor(i/2),l=Math.floor(t/2);return n.add(new ne.BlockVolume({x:-r,y:-s,z:-l},{x:e-r-1,y:i-s-1,z:t-l-1})),Promise.resolve(n)}return new Promise(((d,h)=>{const c=new a.RelativeVolumeListBlockVolume;let _=0;const m=Math.sqrt(e**2+i**2+t**2)/2,u=Math.ceil(2*m),p=u*u*u,g=ne.system.runJob(function*(){try{let a,m;for(const d of function*(e,t,i,a,n,r){const s=Ui(n),o=Ui(a),l=Ui(r),d=Math.cos(-s),h=Math.sin(-s),c=Math.cos(-o),_=Math.sin(-o),m=Math.cos(-l),u=Math.sin(-l),p=Math.floor(e/2),g=Math.floor(i/2),f=Math.floor(t/2),b=-p,v=-g,y=-f,C=e-p-1,S=i-g-1,x=t-f-1,k=(b+C+1)/2,P=(v+S+1)/2,E=(y+x+1)/2,w=Math.sqrt(e**2+i**2+t**2)/2,B={x:Math.floor(-w),y:Math.floor(-w),z:Math.floor(-w)},I=Math.ceil(w),M=Math.ceil(w),T=Math.ceil(w);for(let e=B.x;e<I;e++)for(let t=B.y;t<M;t++)for(let i=B.z;i<T;i++){const a={x:e+.5-k,y:t+.5-P,z:i+.5-E};let n=Oi({x:a.x,y:a.y,z:a.z},m,u);n=Li({x:n.x,y:n.y,z:n.z},c,_),n=Vi({x:n.x,y:n.y,z:n.z},d,h);const r={x:Ni(n.x+k),y:Ni(n.y+P),z:Ni(n.z+E)},s=r.x>=b&&r.x<=C&&r.y>=v&&r.y<=S&&r.z>=y&&r.z<=x;yield s?{x:e,y:t,z:i}:void 0}}(e,t,i,n,r,s)){if(o?.cancelled)return void h(new Error("Operation cancelled"));_++,d?(m&&d.x===m.x&&d.y===m.y&&d.z===m.z+1||(a&&m&&c.add(new ne.BlockVolume(a,m)),a=d),m=d):a&&(c.add(new ne.BlockVolume(a,m)),a=void 0,m=void 0),_%l==0&&(o?.onProgress?.(Math.min(_/p,.99)),yield)}a&&m&&c.add(new ne.BlockVolume(a,m)),o?.cancelled||(o?.onProgress?.(1),d(c))}catch(e){h(e instanceof Error?e:new Error(String(e)))}}());o&&(o.jobHandle=g)}))}function Ki(e,t,i,n,r,s,o,l=2e3){if(e<=1&&t<=1){o?.onProgress?.(1);const e=new a.RelativeVolumeListBlockVolume;return e.add(new ne.BlockVolume({x:0,y:0,z:0},{x:0,y:Math.max(0,i-1),z:0})),Promise.resolve(e)}if(!Ti(n,r,s)){o?.onProgress?.(1);const n=e<t,r=n?Di(t-1,e-1):Di(e-1,t-1),s=r.length>0?r[r.length-1]:0,l=new a.RelativeVolumeListBlockVolume;if(e>1||t>1)for(let a=0;a<r.length;a++){const s=a-(n?t-1:e-1),o=a+1,d=r[a],h=r.length>0?r[r.length-(a+1)]:0,c={x:n?d:s,y:0,z:n?s:d},_={x:n?-d:s,y:i-1,z:n?s:-d},m={x:n?h:o,y:0,z:n?o:h},u={x:n?-h:o,y:i-1,z:n?o:-h};l.add(Wi(c,_)),l.add(Wi(m,u))}return n?l.add(Wi({x:s,y:0,z:0},{x:-s,y:i-1,z:0})):l.add(Wi({x:0,y:0,z:s},{x:0,y:i-1,z:-s})),Promise.resolve(l)}return new Promise(((d,h)=>{const c=new a.RelativeVolumeListBlockVolume;let _=0;const m=2*e-1,u=Math.max(1,i-1),p=2*t-1,g=Math.sqrt(m**2+p**2+u**2)/2,f=Math.ceil(2*g),b=f*f*f,v=ne.system.runJob(function*(){try{let m,u;for(const d of function*(e,t,i,n,r,s){if(e<=1&&t<=1){const e=new a.RelativeVolumeListBlockVolume;e.add(new ne.BlockVolume({x:0,y:0,z:0},{x:0,y:Math.max(0,i-1),z:0}));const t=Math.max(0,i-1),o={x:.5,y:t/2+(t%2==0?0:.5),z:.5};return void(yield*Hi(0,0,t,o,(t=>e.isInside(t)),n,r,s))}const o=e<t,l=o?Di(t-1,e-1):Di(e-1,t-1),d=l.length>0?l[l.length-1]:0,h=[];if(e>1||t>1)for(let a=0;a<l.length;a++){const n=a-(o?t-1:e-1),r=a+1,s=l[a],d=l.length>0?l[l.length-(a+1)]:0;h.push({x:o?s:n,y:0,z:o?n:s}),h.push({x:o?-s:n,y:i-1,z:o?n:-s}),h.push({x:o?d:r,y:0,z:o?r:d}),h.push({x:o?-d:r,y:i-1,z:o?r:-d})}o?(h.push({x:d,y:0,z:0}),h.push({x:-d,y:i-1,z:0})):(h.push({x:0,y:0,z:d}),h.push({x:0,y:i-1,z:-d}));const c=new a.RelativeVolumeListBlockVolume;for(let e=0;e<h.length;e+=2)c.add(Wi(h[e],h[e+1]));const _=c.getBoundingBox(),m=_.max.x-_.min.x,u=_.max.y-_.min.y,p=_.max.z-_.min.z,g={x:(_.min.x+_.max.x+1)/2,y:u%2==0?u/2:u/2+.5,z:(_.min.z+_.max.z+1)/2};yield*Hi(m,p,u,g,(e=>c.isInside(e)),n,r,s)}(e,t,i,n,r,s)){if(o?.cancelled)return void h(new Error("Operation cancelled"));_++,d?(u&&d.x===u.x&&d.y===u.y&&d.z===u.z+1||(m&&u&&c.add(new ne.BlockVolume(m,u)),m=d),u=d):m&&(c.add(new ne.BlockVolume(m,u)),m=void 0,u=void 0),_%l==0&&(o?.onProgress?.(Math.min(_/b,.99)),yield)}m&&u&&c.add(new ne.BlockVolume(m,u)),o?.cancelled||(o?.onProgress?.(1),d(c))}catch(e){h(e instanceof Error?e:new Error(String(e)))}}());o&&(o.jobHandle=v)}))}function Yi(e,t,i,n,r,s,o,l,d,h=2e3){return new Promise(((c,_)=>{const m=new a.RelativeVolumeListBlockVolume;let u=0;const p=Math.sqrt(e**2+i**2+t**2)/2,g=Math.ceil(2*p),f=g*g*g,b=ne.system.runJob(function*(){try{let a,p;for(const c of Hi(e,t,i,n,r,s,o,l)){if(d?.cancelled)return void _(new Error("Operation cancelled"));u++,c?(p&&c.x===p.x&&c.y===p.y&&c.z===p.z+1||(a&&p&&m.add(new ne.BlockVolume(a,p)),a=c),p=c):a&&(m.add(new ne.BlockVolume(a,p)),a=void 0,p=void 0),u%h==0&&(d?.onProgress?.(Math.min(u/f,.99)),yield)}a&&p&&m.add(new ne.BlockVolume(a,p)),d?.cancelled||(d?.onProgress?.(1),c(m))}catch(e){_(e instanceof Error?e:new Error(String(e)))}}());d&&(d.jobHandle=b)}))}class ji{constructor(){this._uniformItems=[],this._nonUniformItems=[]}addUniform(e){this._uniformItems.push(e)}addNonUniform(e){this._nonUniformItems.push(e)}clear(){this._uniformItems=[],this._nonUniformItems=[]}toggle(e){this._uniformItems.forEach((t=>t.visible=e)),this._nonUniformItems.forEach((t=>t.visible=!e))}}function Qi(e,t,i,a){const n=a?.maxThickness??Ii,r=e.createSubPane({title:"resourcePack.editor.brushShape.common.settings.extra"}),s={};r.addBool(t.hollow,{title:"resourcePack.editor.brushShape.common.settings.hollow",tooltip:"resourcePack.editor.brushShape.common.settings.hollow.tooltip",onChange:e=>{var t;t=e,s.item&&(s.item.enable=t),i?.()}}),s.item=r.addNumber(t.thickness,{title:"resourcePack.editor.brushShape.common.settings.thickness",tooltip:"resourcePack.editor.brushShape.common.settings.thickness.tooltip",onChange:e=>{t.thickness.set(e),i?.()},min:1,max:n,isInteger:!0,enable:t.hollow.value,variant:z.InputFieldAndSlider})}function Xi(e,t=1){const i=Math.max(1,t);let n=e;for(let t=0;t<i;t++){const t=Zi(n);if(t.isEmpty)return e;n=t}return n.isEmpty?e:function(e,t){const i=new a.RelativeVolumeListBlockVolume;for(const a of e.getBlockLocationIterator())t.isInside(a)||i.add(new ne.BlockVolume(a,a));return i}(e,n)}function Ji(e,t=1,i,n=1e3){return new Promise(((r,s)=>{const o=Math.max(1,t),l=ne.system.runJob(function*(){let t=e;for(let l=0;l<o;l++){if(i?.cancelled)return void s(new Error("Operation cancelled"));const o=new a.RelativeVolumeListBlockVolume;let l=0;for(const e of t.getBlockLocationIterator()){if(i?.cancelled)return void s(new Error("Operation cancelled"));let a=!0;for(const i of Mi)if(!t.hasAdjacent(e,i)){a=!1;break}a&&o.add(new ne.BlockVolume(e,e)),l++,l%n==0&&(yield)}if(o.isEmpty)return void r(e);t=o}if(t.isEmpty)return void r(e);const l=new a.RelativeVolumeListBlockVolume;let d=0;for(const a of e.getBlockLocationIterator()){if(i?.cancelled)return void s(new Error("Operation cancelled"));t.isInside(a)||l.add(new ne.BlockVolume(a,a)),d++,d%n==0&&(yield)}r(l)}());i&&(i.jobHandle=l)}))}function Zi(e){const t=new a.RelativeVolumeListBlockVolume;for(const i of e.getBlockLocationIterator()){let a=!0;for(const t of Mi)if(!e.hasAdjacent(i,t)){a=!1;break}a&&t.add(new ne.BlockVolume(i,i))}return t}class $i extends Bi{constructor(e){super(wi.Cone,"resourcePack.editor.brushShape.cone.name","pack://textures/editor/brushes/Cone.png"),this._uniformControl=new ji,this._maxRadius=e?.maxRadius??15,this._maxHeight=e?.maxHeight??24,this._oddPropertyValidator=new De(1,this._maxRadius,!0),this._uniform=we(e?.uniform??!1),this._radius=we(e?.radius??3,this._oddPropertyValidator),this._width=we(e?.width??3,this._oddPropertyValidator),this._height=we(e?.height??8),this._depth=we(e?.depth??3,this._oddPropertyValidator),this._xRotation=we(e?.xRotation??0),this._yRotation=we(e?.yRotation??0),this._zRotation=we(e?.zRotation??0),this._hollow=we(e?.hollow??!1),this._thickness=we(e?.thickness??1),this._enableHollowSettings=e?.enableHollowSettings??!0}createSettingsPane(e,t,i){this._uniformControl.clear();const a=e.createSubPane(i?{hasExpander:!1,hasMargins:!1}:{title:this.displayName});a.addBool(this._uniform,{title:"resourcePack.editor.brushShape.common.settings.uniform",tooltip:"resourcePack.editor.brushShape.common.settings.uniform.tooltip",onChange:e=>{this._uniformControl.toggle(e),t?.()}}),this._uniformControl.addUniform(a.addNumber(this._radius,{title:"resourcePack.editor.brushShape.common.settings.length",tooltip:"resourcePack.editor.brushShape.common.settings.length.tooltip",onChange:t,min:1,max:this._maxRadius,isInteger:!0,visible:this._uniform.value,variant:z.InputFieldAndSlider})),this._uniformControl.addNonUniform(a.addNumber(this._width,{title:"resourcePack.editor.brushShape.cone.settings.width",tooltip:"resourcePack.editor.brushShape.cone.settings.width.tooltip",onChange:t,min:1,max:this._maxRadius,isInteger:!0,visible:!this._uniform.value,variant:z.InputFieldAndSlider})),a.addNumber(this._height,{title:"resourcePack.editor.brushShape.common.settings.height",tooltip:"resourcePack.editor.brushShape.common.settings.height.tooltip",onChange:t,min:1,max:this._maxHeight,isInteger:!0,variant:z.InputFieldAndSlider}),this._uniformControl.addNonUniform(a.addNumber(this._depth,{title:"resourcePack.editor.brushShape.cone.settings.depth",tooltip:"resourcePack.editor.brushShape.cone.settings.depth.tooltip",onChange:t,min:1,max:this._maxRadius,isInteger:!0,visible:!this._uniform.value,variant:z.InputFieldAndSlider}));const n=a.createSubPane({title:"resourcePack.editor.brushShape.common.settings.rotation"});return n.addNumber(this._xRotation,{title:"resourcePack.editor.brushShape.common.settings.xrot",tooltip:"resourcePack.editor.brushShape.common.settings.xrot.tooltip",onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider}),n.addNumber(this._yRotation,{title:"resourcePack.editor.brushShape.common.settings.yrot",tooltip:"resourcePack.editor.brushShape.common.settings.yrot.tooltip",onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider}),n.addNumber(this._zRotation,{title:"resourcePack.editor.brushShape.common.settings.zrot",tooltip:"resourcePack.editor.brushShape.common.settings.zrot.tooltip",onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider}),this._enableHollowSettings&&Qi(a,{hollow:this._hollow,thickness:this._thickness},t,{maxThickness:Ii}),a}buildConeBlockVolume(){const e=this._uniform.value?this._radius.value:this._width.value,t=this._uniform.value?this._radius.value:this._depth.value,i=this._height.value,n=e-1,r=t-1,s=Ri(i,e),o=Ri(i,t),l=new Array(2*e-1);for(let e=0;e<l.length;e++)l[e]=new Array(2*t-1).fill(-1);function d(e,t,i){for(let a=-t;a<=t;a++)l[e+n][a+r]=i,l[-e+n][a+r]=i}for(let e=0;e<s.length;e++){const t=s[s.length-(e+1)],i=Di(t,o[s.length-(e+1)]);for(let a=0;a<i.length;a++)d(a-t,i[a],e)}let h=-1;for(let e=0;e<o.length;e++){const t=o[e];if(t-h<=1)l[n][t]=n>0?Math.max(e,l[n-1][t]):e,l[n][r-t+r]=n>0?Math.max(e,l[n-1][r-t+r]):e;else for(let i=h+1;i<=t;i++)l[n][i]=n>0?Math.max(e,l[n-1][i]):e,l[n][r-i+r]=n>0?Math.max(e,l[n-1][r-i+r]):e;h=t}let c=0;for(let e=0;e<s.length;e++){const t=s[e];if(t-c<=1)l[t][r]=Math.max(e,l[t][r]),l[n-t+n][r]=Math.max(e,l[n-t+n][r]);else for(let i=c+1;i<=t;i++)l[i][r]=Math.max(e,l[i][r]),l[n-i+n][r]=Math.max(e,l[n-i+n][r]);c=t}const _=[];for(let e=0;e<l.length;e++){const t=l[e],i=e-n;for(let e=0;e<t.length;e++){const a=e-r,n=t[e];void 0!==n&&n>=0&&(_.push({x:i,y:0,z:a}),_.push({x:i,y:n,z:a}))}}const m=new a.RelativeVolumeListBlockVolume;for(let e=0;e<_.length;e+=2)m.add(new ne.BlockVolume(_[e],_[e+1]));const u=m.getBoundingBox(),p=u.max.x-u.min.x,g=u.max.y-u.min.y;return{blockVolume:m,boundingWidth:p,boundingHeight:g,boundingDepth:u.max.z-u.min.z,center:{x:(u.min.x+u.max.x+1)/2,y:g%2==0?g/2:g/2+.5,z:(u.min.z+u.max.z+1)/2}}}createShape(){const{blockVolume:e,boundingWidth:t,boundingHeight:i,boundingDepth:a,center:n}=this.buildConeBlockVolume(),r=Ti(this._xRotation.value,this._yRotation.value,this._zRotation.value),s=r?Fi(t,a,i,n,e,this._xRotation.value,this._yRotation.value,this._zRotation.value):e;if(!this._enableHollowSettings||!this._hollow.value)return s;if(r)return Xi(s,this._thickness.value);const o=this._buildInnerConeVolumeFromOuterLayers();return o?(s.remove(o),s):s}createShapeAsync(e,t){const{blockVolume:i,boundingWidth:a,boundingHeight:n,boundingDepth:r,center:s}=this.buildConeBlockVolume();if(!Ti(this._xRotation.value,this._yRotation.value,this._zRotation.value)){const t=i;if(!this._enableHollowSettings||!this._hollow.value)return Promise.resolve(t);if(e?.cancelled)return Promise.reject(new Error("Operation cancelled"));const a=this._buildInnerConeVolumeFromOuterLayers();return a?(t.remove(a),Promise.resolve(t)):Promise.resolve(t)}return Yi(a,r,n,s,(e=>i.isInside(e)),this._xRotation.value,this._yRotation.value,this._zRotation.value,e,t).then((i=>e?.cancelled?Promise.reject(new Error("Operation cancelled")):this._enableHollowSettings&&this._hollow.value?Ji(i,this._thickness.value,e,t):i))}_buildInnerConeVolumeFromOuterLayers(){const e=this._uniform.value?this._radius.value:this._width.value,t=this._uniform.value?this._radius.value:this._depth.value,i=this._height.value,n=Math.max(1,this._thickness.value),r=n,s=i-n-1;if(r>s)return;const o=Ri(i,e),l=Ri(i,t),d=new a.RelativeVolumeListBlockVolume;for(let e=r;e<=s;e++){const t=o.length-(e+1);if(t<0||t>=o.length)continue;const i=o[t]-n,a=l[t]-n;i<0||a<0||this._addInnerConeLayer(d,i,a,e)}return 0!==d.volumeCount?d:void 0}_addInnerConeLayer(e,t,i,a){if(0===t)return void e.add(new ne.BlockVolume({x:0,y:a,z:-i},{x:0,y:a,z:i}));const n=Di(t,i);for(let i=0;i<n.length;i++){const r=i-t,s=n[i];e.add(new ne.BlockVolume({x:r,y:a,z:-s},{x:r,y:a,z:s})),0!==r&&e.add(new ne.BlockVolume({x:-r,y:a,z:-s},{x:-r,y:a,z:s}))}e.add(new ne.BlockVolume({x:0,y:a,z:-i},{x:0,y:a,z:i}))}applySetting(e){this._uniform.set(e.uniform),this._radius.set(e.radius),this._width.set(e.width),this._height.set(e.height),this._depth.set(e.depth),this._hollow.set(e.hollow??!1),this._thickness.set(e.thickness??1),this._xRotation.set(e.xRotation),this._yRotation.set(e.yRotation),this._zRotation.set(e.zRotation)}estimateBlockCount(){const e=this._uniform.value?this._radius.value:this._width.value,t=this._uniform.value?this._radius.value:this._depth.value,i=this._height.value,a=1/3*Math.PI*e*t*i;if(!this._enableHollowSettings||!this._hollow.value)return Math.round(a);const n=(1===e?1:0)+(1===i?1:0)+(1===t?1:0);if(n>=2)return Math.round(a);if(1===n){if(1===i){const i=1===e?1:Math.max(0,e-this._thickness.value),a=1===t?1:Math.max(0,t-this._thickness.value),n=Math.PI*e*t,r=i>0&&a>0?Math.PI*i*a:0;return Math.round(Math.max(0,n-r))}if(1===e){const e=2*t-1,a=.5*e*i,n=Math.max(0,i-2*this._thickness.value),r=Math.max(0,e-2*this._thickness.value),s=n>0&&r>0?.5*r*n:0;return Math.round(Math.max(0,a-s))}const a=2*e-1,n=.5*a*i,r=Math.max(0,i-2*this._thickness.value),s=Math.max(0,a-2*this._thickness.value),o=r>0&&s>0?.5*s*r:0;return Math.round(Math.max(0,n-o))}const r=1===e?1:Math.max(0,e-this._thickness.value),s=1===t?1:Math.max(0,t-this._thickness.value),o=1===i?1:Math.max(0,i-2*this._thickness.value);if(r<=0||s<=0||o<=0)return Math.round(a);const l=1/3*Math.PI*r*s*o;return Math.round(Math.max(0,a-l))}calculateBounds(){const e=this._uniform.value?this._radius.value:this._width.value,t=Math.ceil(this._height.value/2);return{min:{x:-e,y:-t,z:-e},max:{x:e,y:t,z:e}}}getSettings(){const e=this._uniform.value;return{uniform:e,radius:this._radius.value,width:e?this._radius.value:this._width.value,height:this._height.value,depth:e?this._radius.value:this._depth.value,hollow:this._hollow.value,thickness:this._thickness.value,xRotation:this._xRotation.value,yRotation:this._yRotation.value,zRotation:this._zRotation.value}}}class ea extends Bi{constructor(e){super(wi.Cuboid,"resourcePack.editor.brushShape.cuboid.name","pack://textures/editor/brushes/Rectangular-Cube.png"),this._uniformControl=new ji,this._minLength=e?.minLength?Math.min(e.minLength,e?.maxLength??20):1,this._maxLength=e?.maxLength??20,this._uniform=we(e?.uniform??!1),this._length=we(e?.length??4),this._width=we(e?.width??4),this._height=we(e?.height??4),this._depth=we(e?.depth??4),this._xRotation=we(e?.xRotation??0),this._yRotation=we(e?.yRotation??0),this._zRotation=we(e?.zRotation??0),this._hollow=we(e?.hollow??!1),this._thickness=we(e?.thickness??1),this._enableHollowSettings=e?.enableHollowSettings??!0,this._hideRotation=e?.hideRotation??!1}createSettingsPane(e,t,i){this._uniformControl.clear();const a=e.createSubPane(i?{hasExpander:!1,hasMargins:!1}:{title:this.displayName});a.addBool(this._uniform,{title:"resourcePack.editor.brushShape.common.settings.uniform",tooltip:"resourcePack.editor.brushShape.common.settings.uniform.tooltip",onChange:e=>{this._uniformControl.toggle(e),t?.()}}),this._uniformControl.addUniform(a.addNumber(this._length,{title:"resourcePack.editor.brushShape.common.settings.length",tooltip:"resourcePack.editor.brushShape.common.settings.length.tooltip",onChange:t,min:this._minLength,max:this._maxLength,isInteger:!0,visible:this._uniform.value,variant:z.InputFieldAndSlider})),this._uniformControl.addNonUniform(a.addNumber(this._width,{title:"resourcePack.editor.brushShape.cuboid.settings.width",tooltip:"resourcePack.editor.brushShape.cuboid.settings.width.tooltip",onChange:t,min:this._minLength,max:this._maxLength,isInteger:!0,visible:!this._uniform.value,variant:z.InputFieldAndSlider})),this._uniformControl.addNonUniform(a.addNumber(this._height,{title:"resourcePack.editor.brushShape.cuboid.settings.height",tooltip:"resourcePack.editor.brushShape.cuboid.settings.height.tooltip",onChange:t,min:1,max:this._maxLength,isInteger:!0,visible:!this._uniform.value,variant:z.InputFieldAndSlider})),this._uniformControl.addNonUniform(a.addNumber(this._depth,{title:"resourcePack.editor.brushShape.cuboid.settings.depth",tooltip:"resourcePack.editor.brushShape.cuboid.settings.depth.tooltip",onChange:t,min:this._minLength,max:this._maxLength,isInteger:!0,visible:!this._uniform.value,variant:z.InputFieldAndSlider}));const n=a.createSubPane({title:"resourcePack.editor.brushShape.common.settings.rotation"});return n.addNumber(this._xRotation,{title:"resourcePack.editor.brushShape.common.settings.xrot",tooltip:"resourcePack.editor.brushShape.common.settings.xrot.tooltip",onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider,visible:!this._hideRotation}),n.addNumber(this._yRotation,{title:"resourcePack.editor.brushShape.common.settings.yrot",tooltip:"resourcePack.editor.brushShape.common.settings.yrot.tooltip",onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider,visible:!this._hideRotation}),n.addNumber(this._zRotation,{title:"resourcePack.editor.brushShape.common.settings.zrot",tooltip:"resourcePack.editor.brushShape.common.settings.zrot.tooltip",onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider,visible:!this._hideRotation}),this._enableHollowSettings&&Qi(a,{hollow:this._hollow,thickness:this._thickness},t,{maxThickness:Ii}),a}createShape(){const e=Gi(this._uniform.value?this._length.value:this._width.value,this._uniform.value?this._length.value:this._depth.value,this._uniform.value?this._length.value:this._height.value,this._xRotation.value,this._yRotation.value,this._zRotation.value);if(!this._enableHollowSettings||!this._hollow.value)return e;if(Ti(this._xRotation.value,this._yRotation.value,this._zRotation.value))return Xi(e,this._thickness.value);const t=this._getInnerDimensions();if(!t)return e;const i=Gi(t.width,t.depth,t.height,0,0,0);return e.remove(i),e}createShapeAsync(e,t){return qi(this._uniform.value?this._length.value:this._width.value,this._uniform.value?this._length.value:this._depth.value,this._uniform.value?this._length.value:this._height.value,this._xRotation.value,this._yRotation.value,this._zRotation.value,e,t).then((i=>{if(e?.cancelled)return Promise.reject(new Error("Operation cancelled"));if(!this._enableHollowSettings||!this._hollow.value)return i;if(!Ti(this._xRotation.value,this._yRotation.value,this._zRotation.value)){const e=this._getInnerDimensions();if(!e)return i;const t=Gi(e.width,e.depth,e.height,0,0,0);return i.remove(t),i}return Ji(i,this._thickness.value,e,t)}))}_getInnerDimensions(){const e=this._uniform.value?this._length.value:this._width.value,t=this._uniform.value?this._length.value:this._depth.value,i=this._uniform.value?this._length.value:this._height.value,a=Math.max(1,this._thickness.value),n=1===e?0:Math.max(0,e-2*a),r=1===i?0:Math.max(0,i-2*a),s=1===t?0:Math.max(0,t-2*a);if(!(n<=0||r<=0||s<=0))return{width:n,height:r,depth:s}}applySetting(e){this._uniform.set(e.uniform),this._width.set(e.width),this._height.set(e.height),this._depth.set(e.depth),this._hollow.set(e.hollow??!1),this._thickness.set(e.thickness??1),this._xRotation.set(e.xRotation),this._yRotation.set(e.yRotation),this._zRotation.set(e.zRotation)}estimateBlockCount(){const e=this._uniform.value?this._length.value:this._width.value,t=this._uniform.value?this._length.value:this._height.value,i=this._uniform.value?this._length.value:this._depth.value,a=e*t*i;if(!this._enableHollowSettings||!this._hollow.value)return a;const n=(1===e?1:0)+(1===t?1:0)+(1===i?1:0);if(n>=2)return a;const r=1===e?1:Math.max(0,e-2*this._thickness.value),s=1===t?1:Math.max(0,t-2*this._thickness.value),o=1===i?1:Math.max(0,i-2*this._thickness.value);if(1===n){const e=Math.max(0,r)*Math.max(0,s)*Math.max(0,o);return Math.max(0,a-e)}const l=r*s*o;return Math.max(0,a-l)}calculateBounds(){const e=this._uniform.value?this._length.value:this._width.value,t=this._uniform.value?this._length.value:this._height.value,i=this._uniform.value?this._length.value:this._depth.value,a=Math.ceil(e/2),n=Math.ceil(t/2),r=Math.ceil(i/2);return{min:{x:-a,y:-n,z:-r},max:{x:a,y:n,z:r}}}getSettings(){const e=this._uniform.value;return{uniform:e,width:e?this._length.value:this._width.value,height:e?this._length.value:this._height.value,depth:e?this._length.value:this._depth.value,hollow:this._hollow.value,thickness:this._thickness.value,xRotation:this._xRotation.value,yRotation:this._yRotation.value,zRotation:this._zRotation.value}}}class ta extends Bi{constructor(e){super(wi.Cylinder,"resourcePack.editor.brushShape.cylinder.name","pack://textures/editor/brushes/Cylinder.png"),this._uniformControl=new ji,this._minRadius=e?.minRadius?Math.min(e.minRadius,e?.maxRadius??16):1,this._maxRadius=e?.maxRadius??16,this._maxHeight=e?.maxHeight??12,this._uniform=we(e?.uniform??!1),this._radius=we(e?.radius??4),this._width=we(e?.width??4),this._height=we(e?.height??8),this._depth=we(e?.depth??4),this._xRotation=we(e?.xRotation??0),this._yRotation=we(e?.yRotation??0),this._zRotation=we(e?.zRotation??0),this._hideRotation=e?.hideRotation??!1,this._hollow=we(e?.hollow??!1),this._thickness=we(e?.thickness??1),this._enableHollowSettings=e?.enableHollowSettings??!0}get uniform(){return this._uniform.value}get radius(){return this._radius.value}get width(){return this._width.value}get depth(){return this._depth.value}get height(){return this._height.value}createSettingsPane(e,t,i){this._uniformControl.clear();const a=e.createSubPane(i?{hasExpander:!1,hasMargins:!1}:{title:this.displayName});a.addBool(this._uniform,{title:"resourcePack.editor.brushShape.common.settings.uniform",tooltip:"resourcePack.editor.brushShape.common.settings.uniform.tooltip",onChange:e=>{this._uniformControl.toggle(e),t?.()}}),this._uniformControl.addUniform(a.addNumber(this._radius,{title:"resourcePack.editor.brushShape.common.settings.length",tooltip:"resourcePack.editor.brushShape.common.settings.length.tooltip",onChange:t,min:this._minRadius,max:this._maxRadius,isInteger:!0,visible:this._uniform.value,variant:z.InputFieldAndSlider})),this._uniformControl.addNonUniform(a.addNumber(this._width,{title:"resourcePack.editor.brushShape.cylinder.settings.width_radius",tooltip:"resourcePack.editor.brushShape.cylinder.settings.width_radius.tooltip",onChange:t,min:this._minRadius,max:this._maxRadius,isInteger:!0,visible:!this._uniform.value,variant:z.InputFieldAndSlider})),a.addNumber(this._height,{title:"resourcePack.editor.brushShape.common.settings.height",tooltip:"resourcePack.editor.brushShape.common.settings.height.tooltip",onChange:t,min:this._minRadius,max:this._maxHeight,isInteger:!0,variant:z.InputFieldAndSlider}),this._uniformControl.addNonUniform(a.addNumber(this._depth,{title:"resourcePack.editor.brushShape.cylinder.settings.depth_radius",tooltip:"resourcePack.editor.brushShape.cylinder.settings.depth_radius.tooltip",onChange:t,min:this._minRadius,max:this._maxRadius,isInteger:!0,visible:!this._uniform.value,variant:z.InputFieldAndSlider}));const n=a.createSubPane({title:"resourcePack.editor.brushShape.common.settings.rotation"});return n.addNumber(this._xRotation,{title:"resourcePack.editor.brushShape.common.settings.xrot",tooltip:"resourcePack.editor.brushShape.common.settings.xrot.tooltip",visible:!this._hideRotation,onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider}),n.addNumber(this._yRotation,{title:"resourcePack.editor.brushShape.common.settings.yrot",tooltip:"resourcePack.editor.brushShape.common.settings.yrot.tooltip",visible:!this._hideRotation,onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider}),n.addNumber(this._zRotation,{title:"resourcePack.editor.brushShape.common.settings.zrot",tooltip:"resourcePack.editor.brushShape.common.settings.zrot.tooltip",visible:!this._hideRotation,onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider}),this._enableHollowSettings&&Qi(a,{hollow:this._hollow,thickness:this._thickness},t,{maxThickness:Ii}),a}createShape(){const e=zi(this._uniform.value?this._radius.value:this._width.value,this._uniform.value?this._radius.value:this._depth.value,this._height.value,this._xRotation.value,this._yRotation.value,this._zRotation.value);if(!this._enableHollowSettings||!this._hollow.value)return e;if(Ti(this._xRotation.value,this._yRotation.value,this._zRotation.value))return Xi(e,this._thickness.value);const t=this._buildOffsetInnerCylinderVolume();return t?(e.remove(t),e):e}createShapeAsync(e,t){return Ki(this._uniform.value?this._radius.value:this._width.value,this._uniform.value?this._radius.value:this._depth.value,this._height.value,this._xRotation.value,this._yRotation.value,this._zRotation.value,e,t).then((i=>{if(e?.cancelled)return Promise.reject(new Error("Operation cancelled"));if(!this._enableHollowSettings||!this._hollow.value)return i;if(!Ti(this._xRotation.value,this._yRotation.value,this._zRotation.value)){const e=this._buildOffsetInnerCylinderVolume();return e?(i.remove(e),i):i}return Ji(i,this._thickness.value,e,t)}))}_getInnerDimensions(){const e=this._uniform.value?this._radius.value:this._width.value,t=this._uniform.value?this._radius.value:this._depth.value,i=this._height.value,a=Math.max(1,this._thickness.value),n=1===e?0:Math.max(0,e-a),r=1===t?0:Math.max(0,t-a),s=1===i?0:Math.max(0,i-2*a);if(!(n<=0||r<=0||s<=0))return{width:n,height:s,depth:r}}_buildOffsetInnerCylinderVolume(){const e=this._getInnerDimensions();if(!e)return;const t=Math.max(1,this._thickness.value),i=zi(e.width,e.depth,e.height,0,0,0),n=new a.RelativeVolumeListBlockVolume;for(const e of i.getVolumeList()){const i=e.getMin(),a=e.getMax();n.add(new ne.BlockVolume({x:i.x,y:i.y+t,z:i.z},{x:a.x,y:a.y+t,z:a.z}))}return n}applySetting(e){this._uniform.set(e.uniform),this._radius.set(e.radius),this._width.set(e.width),this._height.set(e.height),this._depth.set(e.depth),this._hollow.set(e.hollow??!1),this._thickness.set(e.thickness??1),this._xRotation.set(e.xRotation),this._yRotation.set(e.yRotation),this._zRotation.set(e.zRotation)}estimateBlockCount(){const e=this._uniform.value?this._radius.value:this._width.value,t=this._uniform.value?this._radius.value:this._depth.value,i=this._height.value,a=Math.PI*e*t*i;if(!this._enableHollowSettings||!this._hollow.value)return Math.round(a);const n=(1===e?1:0)+(1===i?1:0)+(1===t?1:0);if(n>=2)return Math.round(a);if(1===n){if(1===i){const i=1===e?1:Math.max(0,e-this._thickness.value),a=1===t?1:Math.max(0,t-this._thickness.value),n=Math.PI*e*t,r=i>0&&a>0?Math.PI*i*a:0;return Math.round(Math.max(0,n-r))}if(1===e){const e=i*(2*t-1),a=Math.max(0,i-2*this._thickness.value),n=Math.max(0,2*t-1-2*this._thickness.value),r=a>0&&n>0?a*n:0;return Math.round(Math.max(0,e-r))}const a=i*(2*e-1),n=Math.max(0,i-2*this._thickness.value),r=Math.max(0,2*e-1-2*this._thickness.value),s=n>0&&r>0?n*r:0;return Math.round(Math.max(0,a-s))}const r=1===e?1:Math.max(0,e-this._thickness.value),s=1===t?1:Math.max(0,t-this._thickness.value),o=1===i?1:Math.max(0,i-2*this._thickness.value);if(r<=0||s<=0||o<=0)return Math.round(a);const l=Math.PI*r*s*o;return Math.round(Math.max(0,a-l))}calculateBounds(){const e=this._uniform.value?this._radius.value:this._width.value,t=Math.ceil(this._height.value/2);return{min:{x:-e,y:-t,z:-e},max:{x:e,y:t,z:e}}}getSettings(){const e=this._uniform.value;return{uniform:e,radius:this._radius.value,width:e?this._radius.value:this._width.value,height:this._height.value,depth:e?this._radius.value:this._depth.value,hollow:this._hollow.value,thickness:this._thickness.value,xRotation:this._xRotation.value,yRotation:this._yRotation.value,zRotation:this._zRotation.value}}}class ia extends Bi{constructor(e){super(wi.Ellipsoid,"resourcePack.editor.brushShape.ellipsoid.name","pack://textures/editor/brushes/Sphere.png"),this._uniformControl=new ji,this._minRadius=e?.minRadius?Math.min(e.minRadius,e?.maxRadius??14):1,this._maxRadius=e?.maxRadius??14,this._uniform=we(e?.uniform??!1),this._radius=we(e?.radius??4),this._width=we(e?.width??4),this._height=we(e?.height??4),this._depth=we(e?.depth??4),this._xRotation=we(e?.xRotation??0),this._yRotation=we(e?.yRotation??0),this._zRotation=we(e?.zRotation??0),this._hollow=we(e?.hollow??!1),this._thickness=we(e?.thickness??1),this._enableHollowSettings=e?.enableHollowSettings??!0}createSettingsPane(e,t,i){this._uniformControl.clear();const a=e.createSubPane(i?{hasExpander:!1,hasMargins:!1}:{title:this.displayName});a.addBool(this._uniform,{title:"resourcePack.editor.brushShape.common.settings.uniform",tooltip:"resourcePack.editor.brushShape.common.settings.uniform.tooltip",onChange:e=>{this._uniformControl.toggle(e),t?.()}}),this._uniformControl.addUniform(a.addNumber(this._radius,{title:"resourcePack.editor.brushShape.common.settings.radius",tooltip:"resourcePack.editor.brushShape.common.settings.radius.tooltip",onChange:t,min:this._minRadius,max:this._maxRadius,visible:this._uniform.value,isInteger:!0,variant:z.InputFieldAndSlider})),this._uniformControl.addNonUniform(a.addNumber(this._width,{title:"resourcePack.editor.brushShape.ellipsoid.settings.width_radius",tooltip:"resourcePack.editor.brushShape.ellipsoid.settings.width_radius.tooltip",onChange:t,min:this._minRadius,max:this._maxRadius,isInteger:!0,visible:!this._uniform.value,variant:z.InputFieldAndSlider})),this._uniformControl.addNonUniform(a.addNumber(this._height,{title:"resourcePack.editor.brushShape.ellipsoid.settings.height_radius",tooltip:"resourcePack.editor.brushShape.ellipsoid.settings.height_radius.tooltip",onChange:t,min:this._minRadius,max:this._maxRadius,isInteger:!0,visible:!this._uniform.value,variant:z.InputFieldAndSlider})),this._uniformControl.addNonUniform(a.addNumber(this._depth,{title:"resourcePack.editor.brushShape.ellipsoid.settings.depth_radius",tooltip:"resourcePack.editor.brushShape.ellipsoid.settings.depth_radius.tooltip",onChange:t,min:this._minRadius,max:this._maxRadius,isInteger:!0,visible:!this._uniform.value,variant:z.InputFieldAndSlider}));const n=a.createSubPane({title:"resourcePack.editor.brushShape.common.settings.rotation"});return n.addNumber(this._xRotation,{title:"resourcePack.editor.brushShape.common.settings.xrot",tooltip:"resourcePack.editor.brushShape.common.settings.xrot.tooltip",onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider}),n.addNumber(this._yRotation,{title:"resourcePack.editor.brushShape.common.settings.yrot",tooltip:"resourcePack.editor.brushShape.common.settings.yrot.tooltip",onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider}),n.addNumber(this._zRotation,{title:"resourcePack.editor.brushShape.common.settings.zrot",tooltip:"resourcePack.editor.brushShape.common.settings.zrot.tooltip",onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider}),this._enableHollowSettings&&Qi(a,{hollow:this._hollow,thickness:this._thickness},t,{maxThickness:Ii}),a}buildEllipsoidBlockVolume(){const e=this._uniform.value?this._radius.value:this._width.value,t=this._uniform.value?this._radius.value:this._height.value,i=this._uniform.value?this._radius.value:this._depth.value;return this.buildEllipsoidBlockVolumeWithSides(e,t,i)}buildEllipsoidBlockVolumeWithSides(e,t,i){let n=[];if(1===e&&1===t&&1===i)n.push({x:0,y:0,z:0},{x:0,y:0,z:0});else if(2===e&&2===t&&2===i)n=[{x:-1,y:0,z:0},{x:-1,y:0,z:0},{x:0,y:0,z:-1},{x:0,y:0,z:1},{x:1,y:0,z:0},{x:1,y:0,z:0},{x:0,y:-1,z:0},{x:0,y:-1,z:0},{x:0,y:1,z:0},{x:0,y:1,z:0}];else try{const a=Di(t,e),r=Di(t,i),s=new Array(2*e+1);for(let e=0;e<s.length;e++)s[e]=new Array(2*i+1);const o=(t,a,n)=>{for(let r=i-a;r<=i+a;r++)s[t][r]=n,s[2*e-t][r]=n};for(let t=0;t<a.length;t++){const i=a.length-(t+1),n=a[i],s=Di(n,r[i]);for(let i=0;i<s.length;i++){const a=s[i];o(i+(e-n),a,t)}}for(let t=0;t<s[0].length;t++)s[e][t]=s[e-1][t];for(let t=0;t<s.length;t++){const a=s[t],r=t-e;for(let e=0;e<a.length;e++){const t=e-i,s=a[e];s>0&&(n.push({x:r,y:-s,z:t}),n.push({x:r,y:+s,z:t}))}}}catch(e){a.editor.log.error(`Error computing ellipsoid: ${ai(e)}`,{channelMask:a.LogChannel.All}),n=[{x:0,y:0,z:0},{x:0,y:0,z:0}]}const r=new a.RelativeVolumeListBlockVolume;for(let e=0;e<n.length;e+=2)r.add(new ne.BlockVolume(n[e],n[e+1]));const s=r.getBoundingBox();return{blockVolume:r,width:s.max.x-s.min.x,height:s.max.y-s.min.y,depth:s.max.z-s.min.z,center:{x:(s.min.x+s.max.x+1)/2,y:(s.min.y+s.max.y+1)/2,z:(s.min.z+s.max.z+1)/2}}}createShape(){const{blockVolume:e,width:t,height:i,depth:a,center:n}=this.buildEllipsoidBlockVolume(),r=Ti(this._xRotation.value,this._yRotation.value,this._zRotation.value),s=r?Fi(t,a,i,n,e,this._xRotation.value,this._yRotation.value,this._zRotation.value):e;if(!this._enableHollowSettings||!this._hollow.value)return s;if(r)return Xi(s,this._thickness.value);const o=this._getInnerRadii();if(!o)return s;const{blockVolume:l}=this.buildEllipsoidBlockVolumeWithSides(o.xSide,o.ySide,o.zSide);return s.remove(l),s}createShapeAsync(e,t){const{blockVolume:i,width:a,height:n,depth:r,center:s}=this.buildEllipsoidBlockVolume();if(!Ti(this._xRotation.value,this._yRotation.value,this._zRotation.value)){const t=i;if(!this._enableHollowSettings||!this._hollow.value)return Promise.resolve(t);if(e?.cancelled)return Promise.reject(new Error("Operation cancelled"));const a=this._getInnerRadii();if(!a)return Promise.resolve(t);const{blockVolume:n}=this.buildEllipsoidBlockVolumeWithSides(a.xSide,a.ySide,a.zSide);return t.remove(n),Promise.resolve(t)}return Yi(a,r,n,s,(e=>i.isInside(e)),this._xRotation.value,this._yRotation.value,this._zRotation.value,e,t).then((i=>e?.cancelled?Promise.reject(new Error("Operation cancelled")):this._enableHollowSettings&&this._hollow.value?Ji(i,this._thickness.value,e,t):i))}applySetting(e){this._uniform.set(e.uniform),this._radius.set(e.radius),this._width.set(e.width),this._height.set(e.height),this._depth.set(e.depth),this._hollow.set(e.hollow??!1),this._thickness.set(e.thickness??1),this._xRotation.set(e.xRotation),this._yRotation.set(e.yRotation),this._zRotation.set(e.zRotation)}_getInnerRadii(){const e=this._uniform.value?this._radius.value:this._width.value,t=this._uniform.value?this._radius.value:this._height.value,i=this._uniform.value?this._radius.value:this._depth.value,a=Math.max(1,this._thickness.value),n=1===e?0:Math.max(0,e-a),r=1===t?0:Math.max(0,t-a),s=1===i?0:Math.max(0,i-a);if(!(n<=0||r<=0||s<=0))return{xSide:n,ySide:r,zSide:s}}estimateBlockCount(){const e=this._uniform.value?this._radius.value:this._width.value,t=this._uniform.value?this._radius.value:this._height.value,i=this._uniform.value?this._radius.value:this._depth.value,a=4/3*Math.PI*e*t*i;if(!this._enableHollowSettings||!this._hollow.value)return Math.round(a);const n=(1===e?1:0)+(1===t?1:0)+(1===i?1:0);if(n>=2)return Math.round(a);if(1===n){if(1===e){const e=Math.PI*t*i,a=1===t?1:Math.max(0,t-this._thickness.value),n=1===i?1:Math.max(0,i-this._thickness.value),r=a>0&&n>0?Math.PI*a*n:0;return Math.round(Math.max(0,e-r))}if(1===t){const t=Math.PI*e*i,a=1===e?1:Math.max(0,e-this._thickness.value),n=1===i?1:Math.max(0,i-this._thickness.value),r=a>0&&n>0?Math.PI*a*n:0;return Math.round(Math.max(0,t-r))}const a=Math.PI*e*t,n=1===e?1:Math.max(0,e-this._thickness.value),r=1===t?1:Math.max(0,t-this._thickness.value),s=n>0&&r>0?Math.PI*n*r:0;return Math.round(Math.max(0,a-s))}const r=1===e?1:Math.max(0,e-this._thickness.value),s=1===t?1:Math.max(0,t-this._thickness.value),o=1===i?1:Math.max(0,i-this._thickness.value);if(r<=0||s<=0||o<=0)return Math.round(a);const l=4/3*Math.PI*r*s*o;return Math.round(Math.max(0,a-l))}calculateBounds(){const e=this._uniform.value?this._radius.value:this._width.value,t=this._uniform.value?this._radius.value:this._height.value,i=this._uniform.value?this._radius.value:this._depth.value,a=Math.ceil(e/2),n=Math.ceil(t/2),r=Math.ceil(i/2);return{min:{x:-a,y:-n,z:-r},max:{x:a,y:n,z:r}}}getSettings(){const e=this._uniform.value;return{uniform:e,radius:this._radius.value,width:e?this._radius.value:this._width.value,height:e?this._radius.value:this._height.value,depth:e?this._radius.value:this._depth.value,hollow:this._hollow.value,thickness:this._thickness.value,xRotation:this._xRotation.value,yRotation:this._yRotation.value,zRotation:this._zRotation.value}}}class aa extends Bi{constructor(e){super(wi.Pyramid,"resourcePack.editor.brushShape.pyramid.name","pack://textures/editor/brushes/Pyramid.png"),this._uniformControl=new ji,this._maxSide=e?.maxSide??21,this._maxHeight=e?.maxHeight??40,this._oddPropertyValidator=new Ai(1,this._maxSide),this._uniform=we(e?.uniform??!1),this._width=we(e?.width??7,this._oddPropertyValidator),this._height=we(e?.height??8),this._depth=we(e?.depth??7,this._oddPropertyValidator),this._xRotation=we(e?.xRotation??0),this._yRotation=we(e?.yRotation??0),this._zRotation=we(e?.zRotation??0),this._hollow=we(e?.hollow??!1),this._thickness=we(e?.thickness??1),this._enableHollowSettings=e?.enableHollowSettings??!0}createSettingsPane(e,t,i){this._uniformControl.clear();const a=e.createSubPane(i?{hasExpander:!1,hasMargins:!1}:{title:this.displayName});a.addBool(this._uniform,{title:"resourcePack.editor.brushShape.common.settings.uniform",tooltip:"resourcePack.editor.brushShape.common.settings.uniform.tooltip",onChange:e=>{this._uniformControl.toggle(e),this._lengthPropertyItem?.setTitle(e?"resourcePack.editor.brushShape.common.settings.length":"resourcePack.editor.brushShape.pyramid.settings.width"),t?.()}}),this._lengthPropertyItem=a.addNumber(this._width,{title:this._uniform.value?"resourcePack.editor.brushShape.common.settings.length":"resourcePack.editor.brushShape.pyramid.settings.width",tooltip:"resourcePack.editor.brushShape.pyramid.settings.width.tooltip",onChange:t,min:1,max:this._maxSide,isInteger:!0,variant:z.InputFieldAndSlider}),a.addNumber(this._height,{title:"resourcePack.editor.brushShape.pyramid.settings.height",tooltip:"resourcePack.editor.brushShape.pyramid.settings.height.tooltip",onChange:t,min:1,max:this._maxHeight,isInteger:!0,variant:z.InputFieldAndSlider}),this._uniformControl.addNonUniform(a.addNumber(this._depth,{title:"resourcePack.editor.brushShape.pyramid.settings.depth",tooltip:"resourcePack.editor.brushShape.pyramid.settings.depth.tooltip",onChange:t,min:1,max:this._maxSide,isInteger:!0,visible:!this._uniform.value,variant:z.InputFieldAndSlider}));const n=a.createSubPane({title:"resourcePack.editor.brushShape.common.settings.rotation"});return n.addNumber(this._xRotation,{title:"resourcePack.editor.brushShape.common.settings.xrot",tooltip:"resourcePack.editor.brushShape.common.settings.xrot.tooltip",onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider}),n.addNumber(this._yRotation,{title:"resourcePack.editor.brushShape.common.settings.yrot",tooltip:"resourcePack.editor.brushShape.common.settings.yrot.tooltip",onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider}),n.addNumber(this._zRotation,{title:"resourcePack.editor.brushShape.common.settings.zrot",tooltip:"resourcePack.editor.brushShape.common.settings.zrot.tooltip",onChange:t,min:-360,max:360,isInteger:!0,variant:z.InputFieldAndSlider}),this._enableHollowSettings&&Qi(a,{hollow:this._hollow,thickness:this._thickness},t,{maxThickness:Ii}),a}buildPyramidBlockVolume(){const e=this._width.value,t=this._uniform.value?this._width.value:this._depth.value,i=this._height.value,n=Math.ceil(e/2),r=Math.ceil(t/2),s=Ri(i,n),o=Ri(i,r),l=new a.RelativeVolumeListBlockVolume;for(let e=0;e<s.length;e++){const t=s.length-(e+1),i=s[e],a=o[e];l.add(new ne.BlockVolume({x:-i,y:t,z:-a},{x:i,y:t,z:a}))}const d=l.getBoundingBox(),h=d.max.x-d.min.x,c=d.max.y-d.min.y;return{blockVolume:l,boundingWidth:h,boundingHeight:c,boundingDepth:d.max.z-d.min.z,center:{x:(d.min.x+d.max.x+1)/2,y:c%2==0?c/2:c/2+.5,z:(d.min.z+d.max.z+1)/2}}}createShape(){const{blockVolume:e,boundingWidth:t,boundingHeight:i,boundingDepth:a,center:n}=this.buildPyramidBlockVolume(),r=Ti(this._xRotation.value,this._yRotation.value,this._zRotation.value),s=r?Fi(t,a,i,n,e,this._xRotation.value,this._yRotation.value,this._zRotation.value):e;if(!this._enableHollowSettings||!this._hollow.value)return s;if(r)return Xi(s,this._thickness.value);const o=this._buildInnerPyramidVolumeFromOuterLayers();return o?(s.remove(o),s):s}createShapeAsync(e,t){const{blockVolume:i,boundingWidth:a,boundingHeight:n,boundingDepth:r,center:s}=this.buildPyramidBlockVolume();if(!Ti(this._xRotation.value,this._yRotation.value,this._zRotation.value)){const t=i;if(!this._enableHollowSettings||!this._hollow.value)return Promise.resolve(t);if(e?.cancelled)return Promise.reject(new Error("Operation cancelled"));const a=this._buildInnerPyramidVolumeFromOuterLayers();return a?(t.remove(a),Promise.resolve(t)):Promise.resolve(t)}return Yi(a,r,n,s,(e=>i.isInside(e)),this._xRotation.value,this._yRotation.value,this._zRotation.value,e,t).then((i=>e?.cancelled?Promise.reject(new Error("Operation cancelled")):this._enableHollowSettings&&this._hollow.value?Ji(i,this._thickness.value,e,t):i))}_buildInnerPyramidVolumeFromOuterLayers(){const e=this._width.value,t=this._uniform.value?this._width.value:this._depth.value,i=this._height.value,n=Math.max(1,this._thickness.value),r=n,s=i-n-1;if(r>s)return;const o=Math.ceil(e/2),l=Math.ceil(t/2),d=Ri(i,o),h=Ri(i,l),c=new a.RelativeVolumeListBlockVolume;for(let e=r;e<=s;e++){const t=d.length-(e+1);if(t<0||t>=d.length)continue;const i=d[t]-n,a=h[t]-n;i<0||a<0||c.add(new ne.BlockVolume({x:-i,y:e,z:-a},{x:i,y:e,z:a}))}return 0!==c.volumeCount?c:void 0}applySetting(e){this._uniform.set(e.uniform),this._width.set(e.width),this._height.set(e.height),this._depth.set(e.depth),this._hollow.set(e.hollow??!1),this._thickness.set(e.thickness??1),this._xRotation.set(e.xRotation),this._yRotation.set(e.yRotation),this._zRotation.set(e.zRotation)}estimateBlockCount(){const e=this._width.value,t=this._uniform.value?this._width.value:this._depth.value,i=this._height.value,a=1/3*e*t*i;if(!this._enableHollowSettings||!this._hollow.value)return Math.round(a);const n=(1===e?1:0)+(1===i?1:0)+(1===t?1:0);if(n>=2)return Math.round(a);if(1===n&&1===i){const i=1===e?1:Math.max(0,e-2*this._thickness.value),a=1===t?1:Math.max(0,t-2*this._thickness.value),n=e*t,r=i>0&&a>0?i*a:0;return Math.round(Math.max(0,n-r))}if(1===n&&1===e){const e=.5*t*i,a=Math.max(0,t-2*this._thickness.value),n=Math.max(0,i-2*this._thickness.value),r=a>0&&n>0?.5*a*n:0;return Math.round(Math.max(0,e-r))}if(1===n&&1===t){const t=.5*e*i,a=Math.max(0,e-2*this._thickness.value),n=Math.max(0,i-2*this._thickness.value),r=a>0&&n>0?.5*a*n:0;return Math.round(Math.max(0,t-r))}const r=1===e?1:Math.max(0,e-2*this._thickness.value),s=1===t?1:Math.max(0,t-2*this._thickness.value),o=1===i?1:Math.max(0,i-2*this._thickness.value);if(r<=0||s<=0||o<=0)return Math.round(a);const l=1/3*r*s*o;return Math.round(Math.max(0,a-l))}calculateBounds(){const e=this._width.value,t=this._height.value,i=this._uniform.value?this._width.value:this._depth.value,a=Math.ceil(e/2),n=Math.ceil(t/2),r=Math.ceil(i/2);return{min:{x:-a,y:-n,z:-r},max:{x:a,y:n,z:r}}}getSettings(){const e=this._uniform.value;return{uniform:e,width:this._width.value,height:this._height.value,depth:e?this._width.value:this._depth.value,hollow:this._hollow.value,thickness:this._thickness.value,xRotation:this._xRotation.value,yRotation:this._yRotation.value,zRotation:this._zRotation.value}}}class na extends Bi{constructor(){super(wi.SingleBlock,"resourcePack.editor.brushShape.singleBlock.name","pack://textures/editor/brushes/Rectangular-Cube.png")}createSettingsPane(){}createShape(){const e=new a.RelativeVolumeListBlockVolume;return e.add({x:0,y:0,z:0}),e}createShapeAsync(e,t){return Promise.resolve(this.createShape())}applySetting(e){}estimateBlockCount(){return 1}calculateBounds(){return{min:{x:0,y:0,z:0},max:{x:0,y:0,z:0}}}getSettings(){}}function ra(e){const t=[new ia({enableHollowSettings:!1}),new ea({enableHollowSettings:!1}),new ta({enableHollowSettings:!1}),new $i({enableHollowSettings:!1}),new aa({enableHollowSettings:!1}),new na];return e?t.filter((t=>!e.includes(t.id))):t}Si(ne.CompoundBlockVolume,"CompoundBlockVolume",(e=>({items:e.items,origin:e.getOrigin()})),(e=>{const t=e.origin,i=e.items,a=new ne.CompoundBlockVolume(t);for(const e of i)a.pushVolume(e);return a})),Si(ne.BlockVolume,"BlockVolume",(e=>({from:e.from,to:e.to})),(e=>{const t=e.from,i=e.to;return new ne.BlockVolume(t,i)})),Si(a.RelativeVolumeListBlockVolume,"RelativeVolumeListBlockVolume",(e=>({volumes:e.getVolumeList(),origin:e.origin})),(e=>{const t=e.volumes,i=e.origin,n=new a.RelativeVolumeListBlockVolume(i);for(const e of t)n.add(e);return n})),ne.system.beforeEvents.watchdogTerminate.subscribe((e=>{e.cancel=!0}))})();var o=s.MFY,l=s.owR,d=s.Rmj,h=s.RDh,c=s.Soq,_=s._Yd,m=s.GOF,u=s.niL,p=s.M1I,g=s.M5h,f=s.N0x,b=s.N$v,v=s.Qel,y=s.QyM,C=s.siZ,S=s.LwN,x=s.VNg,k=s.c7A,P=s.ihg,E=s.Wu3,w=s.ssV,B=s.yo6,I=s.xfY,M=s.UDg,T=s.CHF,R=s.eCG,D=s.tmS,A=s.jXv,W=s.UEA,z=s.NJ1,L=s.lQI,V=s.AEz,O=s.xYT,U=s.buW,N=s.dtU,G=s.eCT,F=s.SfK,H=s.aW2,q=s.Ufb,K=s.Ff3,Y=s.fKT,j=s.jO9,Q=s.CF9,X=s.TNh,J=s.wxB,Z=s.Kzi,$=s.dTl,ee=s.GmC,te=s.hgb,ie=s.zIy,ae=s.bPs,ne=s.NwW,re=s.rLH,se=s.pCB,oe=s.myU,le=s.je8,de=s.oD1,he=s.u8Q,ce=s.hjR,_e=s.Gwt,me=s.hz4,ue=s.uW,pe=s.aFS,ge=s.DxH,fe=s.hjV,be=s.gN_,ve=s.u2r,ye=s.S8x,Ce=s.z_j,Se=s._m7,xe=s.Y7L,ke=s.kZl,Pe=s.fTY,Ee=s.zhX,we=s.elt,Be=s.P3j,Ie=s.KI6,Me=s.wct,Te=s.k8o,Re=s.QxS,De=s.u8R,Ae=s.KNN,We=s.gKd,ze=s.fYo,Le=s.pr,Ve=s.OF9,Oe=s.IrN,Ue=s.qoN,Ne=s.eTI,Ge=s.nZ6,Fe=s.GKA,He=s.YdH,qe=s.s9E,Ke=s.zG2,Ye=s.Z3R,je=s.R8l,Qe=s.gfH,Xe=s.rTu,Je=s.EyH,Ze=s.VHZ,$e=s.zoE,et=s.oq$,tt=s.BIf,it=s._Y0,at=s.Dog,nt=s.eSM,rt=s.ACN,st=s.utP,ot=s.o6g,lt=s.gG5,dt=s.JOQ,ht=s.uGp,ct=s.YYk,_t=s.MX3,mt=s.eon,ut=s.HxD,pt=s.Ml$,gt=s.gqA,ft=s.l2W,bt=s.AOo,vt=s.s47,yt=s.dnR,Ct=s.bOM,St=s.v0M,xt=s.XWe,kt=s.VRW,Pt=s.FTm,Et=s.h0w,wt=s.MJT,Bt=s.XSB,It=s.ZE0,Mt=s.mo3,Tt=s.tMb,Rt=s.don,Dt=s.Sp,At=s.pzk,Wt=s.F_$,zt=s.BHx,Lt=s.pL9,Vt=s.IPR,Ot=s.sc,Ut=s.hXc,Nt=s.CUx,Gt=s.qa8,Ft=s.MIn,Ht=s.plN,qt=s.gk4,Kt=s.DSh,Yt=s.fMx,jt=s.vHS,Qt=s.wtW,Xt=s.VC,Jt=s.DQ8,Zt=s.iBm,$t=s.SM,ei=s.jCy,ti=s.$LY,ii=s.GYs,ai=s.Pj,ni=s.elu,ri=s.cMp,si=s.OIU,oi=s.$FP,li=s.Tlg,di=s.wVq,hi=s.WcT,ci=s.NwA,_i=s.RRR,mi=s.lrQ,ui=s.jKx,pi=s.isv,gi=s.Avk,fi=s.dyM,bi=s.Whc,vi=s.Q5Q,yi=s.cug,Ci=s.xtt,Si=s.ytu,xi=s.XXw,ki=s.TBN,Pi=s.jVz,Ei=s.$Yw,wi=s.m8K,Bi=s.Cks,Ii=s.aax,Mi=s.HNI,Ti=s.McZ,Ri=s.cPI,Di=s.CI1,Ai=s.iHo,Wi=s.C$6,zi=s.jf4,Li=s.hyp,Vi=s.o$N,Oi=s.gFZ,Ui=s.FI,Ni=s.w2S,Gi=s.cfz,Fi=s.g2B,Hi=s.fHL,qi=s.djq,Ki=s.nCU,Yi=s.vJR,ji=s.ck5,Qi=s.vBi,Xi=s.j6y,Ji=s.lKV,Zi=s.iFq,$i=s.n7W,ea=s.mUe,ta=s.niw,ia=s.rCi,aa=s.CD0,na=s.ODZ,ra=s.xJT,sa=s.qCG;export{o as ActionTypes,l as AudioSettings,d as AudioSettingsProperty,h as Axis,c as BedrockEventSubscriptionCache,_ as BlockMaskList,m as BlockMaskListType,u as BlockPalette,p as BlockPaletteItemType,g as BlockPaletteManager,f as BlockPaletteSelectedItemChangeAfterEvent,b as BlockPaletteSelectedItemChangeAfterEventSignal,v as BlockTableOperationType,y as BlockUtilities,C as BoolPropertyItemVariant,S as BrushDirectionalPlacementMode,x as BrushElevationMode,k as BrushShape,P as BrushShapeManager,E as ButtonVariant,w as ClipboardChangeAfterEvent,B as ClipboardChangeAfterEventSignal,I as ClipboardItem,M as ClipboardManager,T as ClipboardWriteOptions,R as CollectionTreeEntryItemType,D as CollectionTreeSortType,A as ColorPickerPropertyItemVariant,W as ComboBoxPropertyItemDataType,z as ConeBrushShape,L as ContiguousSelectionProperties,V as ContiguousSelectionType,O as ContinuousActionState,U as CoreActionBarItemType,N as CoreBrushShapeType,G as CoreMenuType,F as CoreModalDialogType,H as CuboidBrushShape,q as CurrentThemeChangeAfterEvent,K as CurrentThemeChangeAfterEventSignal,Y as CurrentThemeColorChangeAfterEvent,j as CurrentThemeColorChangeAfterEventSignal,Q as Cursor,X as CursorControlMode,J as CursorPosition,Z as CursorProperties,$ as CursorPropertiesChangeAfterEvent,ee as CursorPropertyChangeAfterEventSignal,te as CursorRay,ie as CursorTargetMode,ae as CylinderBrushShape,ne as DataPickerModalDialogVariant,re as DaylightCycle,se as EditorConstants,oe as EditorInputContext,le as EditorMode,de as EditorServerEventType,he as EditorStructure,ce as EditorStructureManager,_e as EditorStructureSearchOptions,me as EllipsoidBrushShape,ue as EntityOperationType,pe as ExportManager,ge as ExportResult,fe as Extension,be as ExtensionContext,ve as ExtensionContextAfterEvents,ye as ExtensionOptionalParameters,Ce as FlattenMode,Se as GameOptions,xe as GamePublishSetting,ke as GraphicsSettings,Pe as GraphicsSettingsProperty,Ee as IBlockPaletteItem,we as ImageResourceType,Be as InputModifier,Ie as InvalidWidgetComponentError,Me as InvalidWidgetError,Te as InvalidWidgetGroupError,Re as KeyProcessingState,De as KeyboardKey,Ae as LayoutAlignment,We as LayoutFlex,ze as LayoutSizeType,Le as ListPaneEntryType,Ve as ListPaneSlotVariant,Oe as ListPaneViewSortType,Ue as ListViewControlFilterFlags,Ne as LocalizationEntry,Ge as LogChannel,Fe as LogProperties,He as Logger,qe as MinecraftEditor,Ke as MinimapItem,Ye as MinimapManager,je as MinimapMarkerType,Qe as MinimapViewType,Xe as ModalDialogResponseType,Je as ModalDialogType,Ze as ModeChangeAfterEvent,$e as ModeChangeAfterEventSignal,et as MouseActionCategory,tt as MouseActionType,it as MouseInputType,at as NumberLimitObservableValidator,nt as NumberPropertyItemVariant,rt as ObservableValidator,st as PaintCompletionState,ot as PaintMode,lt as PaneLayoutType,dt as Plane,ht as PlaytestManager,ct as PlaytestSessionResult,_t as PrimitiveType,mt as ProbabilityBlockPaletteItem,ut as ProgressIndicatorPropertyItemVariant,pt as ProjectAfterEvents,gt as ProjectExportOptions,ft as ProjectExportType,bt as PropertyItemType,vt as PyramidBrushShape,yt as QuickExtrudeProperties,Ct as RelativeVolumeListBlockVolume,St as RootPaneLocation,xt as SelectionChangeAfterEventSignal,kt as SelectionContainerBase,Pt as SelectionContainerEntity,Et as SelectionContainerVolume,wt as SelectionContainerVolumeEvent,Bt as SelectionEventAfterEvent,It as SelectionManager,Mt as SelectionManifestData,Tt as SelectionManifestEntry,Rt as SelectionVolumeEventType,Dt as ServerUXEventType,At as SettingsManager,Wt as SimpleBlockPaletteItem,zt as SimulationState,Lt as SimulationStateAfterEvent,Vt as SimulationStateChangeAfterEventSignal,Ot as SingleBlockBrushShape,Ut as SpeedSettings,Nt as SpeedSettingsProperty,Gt as SplineType,Ft as StatusBarAlignment,Ht as StructureSource,qt as TagContainerActionType,Kt as TagContainerVariant,Yt as ThemeSettings,jt as ThemeSettingsColorKey,Qt as TransactionManager,Xt as TransactionManagerNoChangesError,Jt as UserDefinedTransactionHandlerId,Zt as Vector2LimitObservableValidator,$t as Vector3LimitObservableValidator,ei as WeightedBlock,ti as Widget,ii as WidgetCollisionType,ai as WidgetComponentBase,ni as WidgetComponentBaseOptions,ri as WidgetComponentBoundingBox,si as WidgetComponentBoundingBoxLimit,oi as WidgetComponentBoundingBoxOptions,li as WidgetComponentBoundingBoxStateChangeEventParameters,di as WidgetComponentClipboard,hi as WidgetComponentClipboardOptions,ci as WidgetComponentEntity,_i as WidgetComponentEntityOptions,mi as WidgetComponentGizmo,ui as WidgetComponentGizmoOptions,pi as WidgetComponentGizmoStateChangeEventParameters,gi as WidgetComponentGrid,fi as WidgetComponentGridOptions,bi as WidgetComponentGuide,vi as WidgetComponentGuideOptions,yi as WidgetComponentRenderPrimitive,Ci as WidgetComponentRenderPrimitiveOptions,Si as WidgetComponentRenderPrimitiveTypeAxialSphere,xi as WidgetComponentRenderPrimitiveTypeBase,ki as WidgetComponentRenderPrimitiveTypeBox,Pi as WidgetComponentRenderPrimitiveTypeCone,Ei as WidgetComponentRenderPrimitiveTypeCuboid,wi as WidgetComponentRenderPrimitiveTypeCylinder,Bi as WidgetComponentRenderPrimitiveTypeDisc,Ii as WidgetComponentRenderPrimitiveTypeEllipsoid,Mi as WidgetComponentRenderPrimitiveTypeLine,Ti as WidgetComponentRenderPrimitiveTypePyramid,Ri as WidgetComponentSpline,Di as WidgetComponentSplineOptions,Ai as WidgetComponentText,Wi as WidgetComponentTextOptions,zi as WidgetComponentType,Li as WidgetComponentVolumeOutline,Vi as WidgetComponentVolumeOutlineOptions,Oi as WidgetCreateOptions,Ui as WidgetGizmoEventType,Ni as WidgetGroup,Gi as WidgetGroupCreateOptions,Fi as WidgetGroupSelectionMode,Hi as WidgetManager,qi as WidgetMouseButtonActionType,Ki as WidgetMouseButtonEventData,Yi as WidgetStateChangeEventData,ji as WorldGeneratorType,Qi as deserialize,Xi as editor,Ji as executeLargeOperation,Zi as executeLargeOperationFromIterator,$i as getDefaultAllowBlockList,ea as getDefaultBrushShapes,ta as isInternal,ia as makeObservable,aa as registerEditorExtension,na as registerSerializationForType,ra as registerUserDefinedTransactionHandler,sa as serialize}; |
Xet Storage Details
- Size:
- 278 kB
- Xet hash:
- 6550df1dca4de3ec8b7d65541b77d3dacdc534d4b0c574382a43224e96cc73c7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.