@kitware/vtk.js 19.2.13 → 19.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Common/Core/Base64.js +1 -1
- package/Common/Core/CellArray.js +2 -3
- package/Common/Core/ClassHierarchy.js +1 -1
- package/Common/Core/DataArray/Constants.js +1 -2
- package/Common/Core/DataArray.js +3 -4
- package/Common/Core/Endian.js +1 -2
- package/Common/Core/ImageHelper.js +1 -1
- package/Common/Core/LookupTable.js +1 -2
- package/Common/Core/MatrixBuilder.js +1 -1
- package/Common/Core/Points.js +1 -2
- package/Common/Core/PriorityQueue.js +1 -2
- package/Common/Core/ProgressHandler.js +1 -2
- package/Common/Core/ScalarsToColors/Constants.js +1 -2
- package/Common/Core/ScalarsToColors.js +2 -3
- package/Common/Core/StringArray.js +1 -2
- package/Common/Core/URLExtract.js +1 -1
- package/Common/Core/VariantArray.js +1 -2
- package/Common/Core.js +1 -1
- package/Common/DataModel/BoundingBox.js +2 -3
- package/Common/DataModel/Box.js +2 -3
- package/Common/DataModel/CardinalSpline1D.js +1 -2
- package/Common/DataModel/Cell.js +1 -2
- package/Common/DataModel/CellLinks.js +26 -27
- package/Common/DataModel/CellTypes/Constants.js +1 -2
- package/Common/DataModel/CellTypes.js +2 -3
- package/Common/DataModel/Cone.js +1 -2
- package/Common/DataModel/Cylinder.js +2 -3
- package/Common/DataModel/DataSet/Constants.js +1 -2
- package/Common/DataModel/DataSet.js +2 -3
- package/Common/DataModel/DataSetAttributes/Constants.js +1 -2
- package/Common/DataModel/DataSetAttributes/FieldData.js +1 -2
- package/Common/DataModel/DataSetAttributes.js +2 -3
- package/Common/DataModel/ITKHelper.js +1 -1
- package/Common/DataModel/ImageData.js +1 -2
- package/Common/DataModel/ImplicitBoolean/Constants.js +1 -2
- package/Common/DataModel/ImplicitBoolean.js +2 -3
- package/Common/DataModel/KochanekSpline1D.js +1 -2
- package/Common/DataModel/Line/Constants.js +1 -2
- package/Common/DataModel/Line.js +2 -3
- package/Common/DataModel/Molecule.js +1 -2
- package/Common/DataModel/PiecewiseFunction.js +1 -2
- package/Common/DataModel/Plane.js +2 -3
- package/Common/DataModel/PointSet.js +1 -2
- package/Common/DataModel/PolyData/Constants.js +1 -2
- package/Common/DataModel/PolyData.js +1 -2
- package/Common/DataModel/Polygon.js +1 -2
- package/Common/DataModel/SelectionNode/Constants.js +1 -2
- package/Common/DataModel/SelectionNode.js +2 -3
- package/Common/DataModel/Sphere.js +2 -3
- package/Common/DataModel/Spline1D.js +1 -2
- package/Common/DataModel/Spline3D/Constants.js +1 -2
- package/Common/DataModel/Spline3D.js +1 -2
- package/Common/DataModel/StructuredData/Constants.js +1 -2
- package/Common/DataModel/StructuredData.js +2 -3
- package/Common/DataModel/Triangle.js +2 -3
- package/Common/DataModel.js +1 -1
- package/Common/System/MobileVR/headsets.js +1 -1
- package/Common/System/MobileVR.js +1 -1
- package/Common/System/TimerLog.js +1 -2
- package/Common/System.js +1 -1
- package/Common/Transform/LandmarkTransform/Constants.js +1 -2
- package/Common/Transform/LandmarkTransform.js +2 -3
- package/Common/Transform.js +1 -1
- package/Common/index.js +1 -1
- package/Filters/Core/Cutter.js +3 -4
- package/Filters/Core.js +1 -1
- package/Filters/Cornerstone/ImageDataToCornerstoneImage.js +1 -2
- package/Filters/Cornerstone.js +1 -1
- package/Filters/General/AppendPolyData.js +1 -2
- package/Filters/General/Calculator.js +2 -3
- package/Filters/General/ClosedPolyLineToSurfaceFilter.js +1 -2
- package/Filters/General/ImageCropFilter.js +1 -2
- package/Filters/General/ImageMarchingCubes/caseTable.js +1 -1
- package/Filters/General/ImageMarchingCubes.js +1 -2
- package/Filters/General/ImageMarchingSquares/caseTable.js +1 -1
- package/Filters/General/ImageMarchingSquares.js +1 -2
- package/Filters/General/ImageOutlineFilter.js +1 -2
- package/Filters/General/ImageSliceFilter.js +1 -2
- package/Filters/General/ImageStreamline.js +1 -2
- package/Filters/General/LineFilter.js +1 -2
- package/Filters/General/MoleculeToRepresentation.js +1 -2
- package/Filters/General/OutlineFilter.js +1 -2
- package/Filters/General/PaintFilter/PaintFilter.worker.js +3 -3
- package/Filters/General/PaintFilter.js +3 -4
- package/Filters/General/ScalarToRGBA.js +1 -2
- package/Filters/General/TriangleFilter.js +1 -2
- package/Filters/General/TubeFilter/Constants.js +1 -2
- package/Filters/General/TubeFilter.js +1 -2
- package/Filters/General/WarpScalar.js +1 -2
- package/Filters/General/WindowedSincPolyDataFilter.js +43 -44
- package/Filters/General.js +1 -1
- package/Filters/Sources/Arrow2DSource/Constants.js +1 -2
- package/Filters/Sources/Arrow2DSource.js +2 -3
- package/Filters/Sources/ArrowSource.js +1 -2
- package/Filters/Sources/CircleSource.js +2 -3
- package/Filters/Sources/ConcentricCylinderSource.js +1 -2
- package/Filters/Sources/ConeSource.js +1 -2
- package/Filters/Sources/CubeSource.js +1 -2
- package/Filters/Sources/Cursor3D.js +12 -13
- package/Filters/Sources/CylinderSource.js +1 -2
- package/Filters/Sources/ImageGridSource.js +1 -2
- package/Filters/Sources/LineSource.js +1 -2
- package/Filters/Sources/PlaneSource.js +1 -2
- package/Filters/Sources/PointSource.js +1 -2
- package/Filters/Sources/RTAnalyticSource.js +1 -2
- package/Filters/Sources/SLICSource.js +1 -2
- package/Filters/Sources/SphereSource.js +1 -2
- package/Filters/Sources/ViewFinderSource.js +1 -2
- package/Filters/Sources.js +1 -1
- package/Filters/Texture/TextureMapToPlane.js +1 -2
- package/Filters/Texture/TextureMapToSphere.js +1 -2
- package/Filters/Texture.js +1 -1
- package/Filters/index.js +1 -1
- package/IO/Core/BinaryHelper.js +1 -1
- package/IO/Core/DataAccessHelper/HtmlDataAccessHelper.js +1 -1
- package/IO/Core/DataAccessHelper/HttpDataAccessHelper.js +1 -1
- package/IO/Core/DataAccessHelper/JSZipDataAccessHelper.js +3 -3
- package/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.js +1 -1
- package/IO/Core/DataAccessHelper.js +1 -2
- package/IO/Core/HttpDataSetReader.js +1 -2
- package/IO/Core/HttpDataSetSeriesReader.js +1 -2
- package/IO/Core/HttpSceneLoader.js +2 -3
- package/IO/Core/ImageStream/DefaultProtocol.js +1 -1
- package/IO/Core/ImageStream/ViewStream.js +1 -2
- package/IO/Core/ImageStream.js +1 -2
- package/IO/Core/ResourceLoader.js +1 -2
- package/IO/Core/Serializer/ArraySerializer.js +1 -2
- package/IO/Core/Serializer/FieldDataSerializer.js +1 -1
- package/IO/Core/Serializer/ImageDataSerializer.js +1 -1
- package/IO/Core/Serializer/PolyDataSerializer.js +1 -1
- package/IO/Core/Serializer.js +1 -1
- package/IO/Core/WSLinkClient.js +1 -2
- package/IO/Core/ZipMultiDataSetReader.js +3 -4
- package/IO/Core/ZipMultiDataSetWriter.js +3 -4
- package/IO/Core.js +1 -1
- package/IO/Geometry/DracoReader.js +1 -2
- package/IO/Geometry/PLYReader.js +1 -2
- package/IO/Geometry/STLReader.js +1 -2
- package/IO/Geometry/STLWriter/Constants.js +1 -2
- package/IO/Geometry/STLWriter.js +2 -3
- package/IO/Geometry.js +1 -1
- package/IO/Legacy/LegacyAsciiParser.js +1 -1
- package/IO/Legacy/PolyDataReader.js +1 -2
- package/IO/Legacy.js +1 -1
- package/IO/Misc/ElevationReader.js +1 -2
- package/IO/Misc/HttpDataSetLODsLoader.js +1 -2
- package/IO/Misc/ITKImageReader.js +1 -2
- package/IO/Misc/ITKPolyDataReader.js +1 -2
- package/IO/Misc/JSONNucleoReader.js +1 -2
- package/IO/Misc/JSONReader.js +1 -2
- package/IO/Misc/MTLReader.js +2 -3
- package/IO/Misc/OBJReader.js +1 -2
- package/IO/Misc/PDBReader.js +1 -2
- package/IO/Misc/SkyboxReader.js +3 -4
- package/IO/Misc.js +1 -1
- package/IO/XML/XMLImageDataReader.js +1 -2
- package/IO/XML/XMLImageDataWriter.js +2 -3
- package/IO/XML/XMLPolyDataReader.js +1 -2
- package/IO/XML/XMLPolyDataWriter.js +2 -3
- package/IO/XML/XMLReader.js +1 -2
- package/IO/XML/XMLWriter/Constants.js +1 -2
- package/IO/XML/XMLWriter.js +4 -4
- package/IO/XML.js +1 -1
- package/IO/index.js +1 -1
- package/Imaging/Core/AbstractImageInterpolator/Constants.js +1 -2
- package/Imaging/Core/AbstractImageInterpolator/InterpolationInfo.js +2 -3
- package/Imaging/Core/AbstractImageInterpolator.js +2 -3
- package/Imaging/Core/ImageInterpolator.js +2 -3
- package/Imaging/Core/ImagePointDataIterator.js +1 -2
- package/Imaging/Core/ImageReslice/Constants.js +1 -2
- package/Imaging/Core/ImageReslice.js +2 -3
- package/Imaging/Core.js +1 -1
- package/Imaging/Hybrid/SampleFunction.js +2 -3
- package/Imaging/Hybrid.js +1 -1
- package/Imaging/index.js +1 -1
- package/Interaction/Animations/TimeStepBasedAnimationHandler.js +2 -3
- package/Interaction/Manipulators/CompositeCameraManipulator.js +1 -2
- package/Interaction/Manipulators/CompositeGestureManipulator.js +1 -2
- package/Interaction/Manipulators/CompositeKeyboardManipulator.js +1 -2
- package/Interaction/Manipulators/CompositeMouseManipulator.js +1 -2
- package/Interaction/Manipulators/CompositeVRManipulator.js +1 -2
- package/Interaction/Manipulators/GestureCameraManipulator.js +1 -2
- package/Interaction/Manipulators/KeyboardCameraManipulator.js +1 -2
- package/Interaction/Manipulators/MouseBoxSelectorManipulator.js +3 -4
- package/Interaction/Manipulators/MouseCameraAxisRotateManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraSliceManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballFirstPersonManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballMultiRotateManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballPanManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballRollManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballZoomManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballZoomToMouseManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraUnicamManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js +1 -2
- package/Interaction/Manipulators/MouseRangeManipulator.js +1 -2
- package/Interaction/Manipulators/VRButtonPanManipulator.js +1 -2
- package/Interaction/Manipulators.js +1 -1
- package/Interaction/Misc/DeviceOrientationToCamera.js +1 -1
- package/Interaction/Misc.js +1 -1
- package/Interaction/Style/InteractorStyleImage.js +1 -2
- package/Interaction/Style/InteractorStyleMPRSlice.js +1 -2
- package/Interaction/Style/InteractorStyleManipulator/Presets.js +1 -1
- package/Interaction/Style/InteractorStyleManipulator.js +2 -3
- package/Interaction/Style/InteractorStyleRemoteMouse.js +2 -3
- package/Interaction/Style/InteractorStyleTrackballCamera.js +1 -2
- package/Interaction/Style/InteractorStyleUnicam.js +1 -2
- package/Interaction/Style.js +1 -1
- package/Interaction/UI/CornerAnnotation.js +1 -2
- package/Interaction/UI/FPSMonitor.js +2 -3
- package/Interaction/UI/Icons.js +1 -1
- package/Interaction/UI/Slider/Constants.js +1 -2
- package/Interaction/UI/Slider.js +2 -3
- package/Interaction/UI/VolumeController.js +1 -2
- package/Interaction/UI.js +1 -1
- package/Interaction/Widgets/AbstractWidget.js +2 -3
- package/Interaction/Widgets/DistanceRepresentation.js +2 -3
- package/Interaction/Widgets/DistanceWidget.js +2 -3
- package/Interaction/Widgets/HandleRepresentation/Constants.js +1 -2
- package/Interaction/Widgets/HandleRepresentation.js +2 -3
- package/Interaction/Widgets/HandleWidget/Constants.js +1 -2
- package/Interaction/Widgets/HandleWidget.js +2 -3
- package/Interaction/Widgets/ImageCroppingRegionsRepresentation.js +1 -2
- package/Interaction/Widgets/ImageCroppingRegionsWidget/Constants.js +1 -1
- package/Interaction/Widgets/ImageCroppingRegionsWidget.js +2 -3
- package/Interaction/Widgets/LabelRepresentation/Constants.js +1 -2
- package/Interaction/Widgets/LabelRepresentation.js +3 -4
- package/Interaction/Widgets/LabelWidget.js +2 -3
- package/Interaction/Widgets/LineRepresentation/Constants.js +1 -2
- package/Interaction/Widgets/LineRepresentation.js +2 -3
- package/Interaction/Widgets/LineWidget/Constants.js +1 -2
- package/Interaction/Widgets/LineWidget.js +2 -3
- package/Interaction/Widgets/OrientationMarkerWidget/Constants.js +1 -1
- package/Interaction/Widgets/OrientationMarkerWidget.js +2 -3
- package/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js +3 -3
- package/Interaction/Widgets/PiecewiseGaussianWidget.js +15 -16
- package/Interaction/Widgets/PointPlacer.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursor/Constants.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursor.js +2 -3
- package/Interaction/Widgets/ResliceCursor/ResliceCursorActor/Constants.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorActor.js +2 -3
- package/Interaction/Widgets/ResliceCursor/ResliceCursorLineRepresentation.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorPolyDataAlgorithm.js +2 -3
- package/Interaction/Widgets/ResliceCursor/ResliceCursorRepresentation.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorWidget/Constants.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorWidget.js +2 -3
- package/Interaction/Widgets/SphereHandleRepresentation.js +2 -3
- package/Interaction/Widgets/WidgetRepresentation.js +1 -2
- package/Interaction/Widgets.js +1 -1
- package/Interaction/index.js +1 -1
- package/Proxy/Animation/AbstractAnimationProxy.js +1 -2
- package/Proxy/Animation/AnimationProxyManager.js +1 -2
- package/Proxy/Animation/TimeStepBasedAnimationHandlerProxy.js +1 -2
- package/Proxy/Core/AbstractRepresentationProxy.js +1 -1
- package/Proxy/Core/LookupTableProxy/Constants.js +1 -1
- package/Proxy/Core/LookupTableProxy.js +1 -2
- package/Proxy/Core/PiecewiseFunctionProxy/Constants.js +1 -1
- package/Proxy/Core/PiecewiseFunctionProxy.js +2 -3
- package/Proxy/Core/ProxyManager/core.js +2 -2
- package/Proxy/Core/ProxyManager/properties.js +2 -2
- package/Proxy/Core/ProxyManager/state.js +2 -2
- package/Proxy/Core/ProxyManager/view.js +1 -1
- package/Proxy/Core/ProxyManager.js +1 -2
- package/Proxy/Core/SourceProxy.js +1 -2
- package/Proxy/Core/View2DProxy.js +1 -2
- package/Proxy/Core/ViewProxy.js +4 -4
- package/Proxy/Core.js +1 -1
- package/Proxy/Representations/GeometryRepresentationProxy.js +1 -2
- package/Proxy/Representations/GlyphRepresentationProxy.js +1 -2
- package/Proxy/Representations/MoleculeRepresentationProxy.js +1 -2
- package/Proxy/Representations/SkyboxRepresentationProxy.js +1 -2
- package/Proxy/Representations/SliceRepresentationProxy.js +2 -3
- package/Proxy/Representations/SlicedGeometryRepresentationProxy.js +1 -2
- package/Proxy/Representations/VolumeRepresentationProxy.js +1 -2
- package/Proxy/Representations.js +1 -1
- package/Proxy/index.js +1 -1
- package/Rendering/Core/AbstractMapper.js +1 -2
- package/Rendering/Core/AbstractMapper3D.js +1 -2
- package/Rendering/Core/AbstractPicker.js +1 -2
- package/Rendering/Core/Actor.js +2 -3
- package/Rendering/Core/Actor2D.js +1 -2
- package/Rendering/Core/AnnotatedCubeActor/Presets.js +1 -1
- package/Rendering/Core/AnnotatedCubeActor.js +2 -3
- package/Rendering/Core/AxesActor.js +2 -3
- package/Rendering/Core/Camera.js +1 -2
- package/Rendering/Core/CellPicker.js +2 -3
- package/Rendering/Core/ColorTransferFunction/ColorMaps.js +1 -1
- package/Rendering/Core/ColorTransferFunction/ColorMapsLite.js +1 -1
- package/Rendering/Core/ColorTransferFunction/Constants.js +1 -2
- package/Rendering/Core/ColorTransferFunction.js +2 -3
- package/Rendering/Core/Coordinate/Constants.js +1 -2
- package/Rendering/Core/Coordinate.js +2 -3
- package/Rendering/Core/CubeAxesActor.js +2 -3
- package/Rendering/Core/Follower.js +2 -3
- package/Rendering/Core/Glyph3DMapper/Constants.js +1 -2
- package/Rendering/Core/Glyph3DMapper.js +2 -3
- package/Rendering/Core/HardwareSelector.js +1 -2
- package/Rendering/Core/ImageMapper/Constants.js +1 -2
- package/Rendering/Core/ImageMapper.js +2 -3
- package/Rendering/Core/ImageProperty/Constants.js +1 -2
- package/Rendering/Core/ImageProperty.js +1 -2
- package/Rendering/Core/ImageSlice.js +1 -2
- package/Rendering/Core/InteractorObserver.js +2 -3
- package/Rendering/Core/InteractorStyle/Constants.js +1 -2
- package/Rendering/Core/InteractorStyle.js +2 -3
- package/Rendering/Core/Light.js +1 -2
- package/Rendering/Core/Mapper/CoincidentTopologyHelper.js +1 -2
- package/Rendering/Core/Mapper/Constants.js +1 -2
- package/Rendering/Core/Mapper/Static.js +1 -2
- package/Rendering/Core/Mapper.js +2 -3
- package/Rendering/Core/Picker.js +2 -3
- package/Rendering/Core/PixelSpaceCallbackMapper.js +1 -2
- package/Rendering/Core/PointPicker.js +1 -9
- package/Rendering/Core/Prop.js +1 -2
- package/Rendering/Core/Prop3D.js +1 -2
- package/Rendering/Core/Property/Constants.js +1 -2
- package/Rendering/Core/Property.js +2 -3
- package/Rendering/Core/Property2D.js +1 -2
- package/Rendering/Core/RenderWindow.js +1 -2
- package/Rendering/Core/RenderWindowInteractor/Constants.js +1 -2
- package/Rendering/Core/RenderWindowInteractor.js +2 -3
- package/Rendering/Core/Renderer.js +2 -3
- package/Rendering/Core/ScalarBarActor.js +2 -3
- package/Rendering/Core/Skybox.js +1 -2
- package/Rendering/Core/SphereMapper.js +1 -2
- package/Rendering/Core/StickMapper.js +1 -2
- package/Rendering/Core/SurfaceLICInterface/Constants.js +1 -2
- package/Rendering/Core/SurfaceLICInterface.js +1 -2
- package/Rendering/Core/SurfaceLICMapper.js +1 -2
- package/Rendering/Core/Texture.js +1 -2
- package/Rendering/Core/Viewport.js +1 -2
- package/Rendering/Core/Volume.js +1 -2
- package/Rendering/Core/VolumeMapper/Constants.js +1 -2
- package/Rendering/Core/VolumeMapper.js +1 -2
- package/Rendering/Core/VolumeProperty/Constants.js +1 -2
- package/Rendering/Core/VolumeProperty.js +2 -3
- package/Rendering/Core.js +2 -2
- package/Rendering/Misc/CanvasView.js +1 -2
- package/Rendering/Misc/FullScreenRenderWindow.js +1 -2
- package/Rendering/Misc/GenericRenderWindow.js +1 -2
- package/Rendering/Misc/RemoteView.js +1 -2
- package/Rendering/Misc/RenderWindowWithControlBar.js +2 -3
- package/Rendering/Misc/SynchronizableRenderWindow/vtkObjectManager.js +2 -2
- package/Rendering/Misc/SynchronizableRenderWindow.js +3 -4
- package/Rendering/Misc/TextureLODsDownloader.js +1 -2
- package/Rendering/Misc.js +1 -1
- package/Rendering/OpenGL/Actor.js +2 -3
- package/Rendering/OpenGL/Actor2D.js +2 -3
- package/Rendering/OpenGL/BufferObject/Constants.js +1 -2
- package/Rendering/OpenGL/BufferObject.js +2 -3
- package/Rendering/OpenGL/Camera.js +2 -3
- package/Rendering/OpenGL/CellArrayBufferObject.js +2 -4
- package/Rendering/OpenGL/Convolution2DPass.js +1 -2
- package/Rendering/OpenGL/ForwardPass.js +1 -2
- package/Rendering/OpenGL/Framebuffer.js +2 -3
- package/Rendering/OpenGL/Glyph3DMapper.js +3 -4
- package/Rendering/OpenGL/HardwareSelector/Constants.js +1 -2
- package/Rendering/OpenGL/HardwareSelector.js +2 -3
- package/Rendering/OpenGL/Helper.js +1 -2
- package/Rendering/OpenGL/ImageMapper.js +2 -3
- package/Rendering/OpenGL/ImageSlice.js +2 -3
- package/Rendering/OpenGL/PixelSpaceCallbackMapper.js +1 -2
- package/Rendering/OpenGL/PolyDataMapper.js +2 -3
- package/Rendering/OpenGL/RadialDistortionPass.js +1 -2
- package/Rendering/OpenGL/RenderWindow.js +1 -2
- package/Rendering/OpenGL/Renderer.js +2 -3
- package/Rendering/OpenGL/ReplacementShaderMapper.js +1 -1
- package/Rendering/OpenGL/Shader.js +1 -2
- package/Rendering/OpenGL/ShaderCache.js +1 -2
- package/Rendering/OpenGL/ShaderProgram.js +1 -1
- package/Rendering/OpenGL/Skybox.js +2 -3
- package/Rendering/OpenGL/SphereMapper.js +2 -3
- package/Rendering/OpenGL/StickMapper.js +2 -3
- package/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D/pingpong.js +1 -2
- package/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D.js +1 -2
- package/Rendering/OpenGL/SurfaceLIC/SurfaceLICInterface.js +1 -2
- package/Rendering/OpenGL/SurfaceLIC/SurfaceLICMapper.js +3 -4
- package/Rendering/OpenGL/SurfaceLIC.js +1 -1
- package/Rendering/OpenGL/Texture/Constants.js +1 -2
- package/Rendering/OpenGL/Texture.js +3 -4
- package/Rendering/OpenGL/TextureUnitManager.js +1 -2
- package/Rendering/OpenGL/VertexArrayObject.js +1 -2
- package/Rendering/OpenGL/ViewNodeFactory.js +1 -2
- package/Rendering/OpenGL/Volume.js +2 -3
- package/Rendering/OpenGL/VolumeMapper.js +3 -4
- package/Rendering/OpenGL.js +1 -1
- package/Rendering/SceneGraph/RenderPass.js +1 -2
- package/Rendering/SceneGraph/RenderWindowViewNode.js +1 -2
- package/Rendering/SceneGraph/ViewNode.js +1 -1
- package/Rendering/SceneGraph/ViewNodeFactory.js +1 -2
- package/Rendering/SceneGraph.js +1 -1
- package/Rendering/WebGPU/Actor.js +1 -2
- package/Rendering/WebGPU/BindGroup.js +1 -2
- package/Rendering/WebGPU/Buffer.js +2 -3
- package/Rendering/WebGPU/BufferManager/Constants.js +1 -2
- package/Rendering/WebGPU/BufferManager.js +3 -4
- package/Rendering/WebGPU/Camera.js +1 -2
- package/Rendering/WebGPU/Device.js +2 -3
- package/Rendering/WebGPU/ForwardPass.js +1 -2
- package/Rendering/WebGPU/FullScreenQuad.js +1 -2
- package/Rendering/WebGPU/Glyph3DMapper.js +3 -4
- package/Rendering/WebGPU/HardwareSelectionPass.js +1 -2
- package/Rendering/WebGPU/HardwareSelector.js +1 -2
- package/Rendering/WebGPU/MapperHelper.js +1 -2
- package/Rendering/WebGPU/OpaquePass.js +2 -4
- package/Rendering/WebGPU/OrderIndependentTranslucentPass.js +1 -2
- package/Rendering/WebGPU/Pipeline.js +2 -3
- package/Rendering/WebGPU/PixelSpaceCallbackMapper.js +1 -2
- package/Rendering/WebGPU/PolyDataMapper.js +3 -4
- package/Rendering/WebGPU/RenderEncoder.js +2 -3
- package/Rendering/WebGPU/RenderWindow.js +11 -3
- package/Rendering/WebGPU/Renderer.js +2 -3
- package/Rendering/WebGPU/Sampler.js +1 -2
- package/Rendering/WebGPU/ShaderCache.js +1 -2
- package/Rendering/WebGPU/ShaderDescription.js +1 -2
- package/Rendering/WebGPU/ShaderModule.js +1 -1
- package/Rendering/WebGPU/SphereMapper.js +1 -2
- package/Rendering/WebGPU/StickMapper.js +1 -2
- package/Rendering/WebGPU/StorageBuffer.js +1 -2
- package/Rendering/WebGPU/Texture.js +2 -3
- package/Rendering/WebGPU/TextureManager.js +24 -7
- package/Rendering/WebGPU/TextureView.js +19 -4
- package/Rendering/WebGPU/Types.js +83 -42
- package/Rendering/WebGPU/UniformBuffer.js +1 -2
- package/Rendering/WebGPU/VertexInput.js +2 -3
- package/Rendering/WebGPU/ViewNodeFactory.js +1 -2
- package/Rendering/WebGPU/Volume.js +1 -2
- package/Rendering/WebGPU/VolumePass.js +2 -3
- package/Rendering/WebGPU/VolumePassFSQ.js +4 -4
- package/Rendering/WebGPU.js +1 -1
- package/Rendering/index.js +1 -1
- package/ThirdParty/index.js +2 -2
- package/Utilities/DataGenerator/convert-cli.js +10 -8
- package/Utilities/ExampleRunner/example-runner-cli.js +2 -1
- package/Utilities/ExampleRunner/template-config.js +8 -6
- package/Utilities/TestResults/TESTS-Chrome_Headless_93.0.4577.63_(Linux_x86_64).xml +1058 -1058
- package/Utilities/XMLConverter/xml2json-cli.js +5 -4
- package/Widgets/Core/AbstractWidget/Constants.js +1 -2
- package/Widgets/Core/AbstractWidget.js +1 -2
- package/Widgets/Core/AbstractWidgetFactory.js +2 -3
- package/Widgets/Core/StateBuilder/boundsMixin.js +1 -2
- package/Widgets/Core/StateBuilder/colorMixin.js +1 -2
- package/Widgets/Core/StateBuilder/cornerMixin.js +1 -2
- package/Widgets/Core/StateBuilder/directionMixin.js +1 -2
- package/Widgets/Core/StateBuilder/manipulatorMixin.js +1 -2
- package/Widgets/Core/StateBuilder/nameMixin.js +1 -2
- package/Widgets/Core/StateBuilder/orientationMixin.js +1 -2
- package/Widgets/Core/StateBuilder/originMixin.js +1 -2
- package/Widgets/Core/StateBuilder/scale1Mixin.js +1 -2
- package/Widgets/Core/StateBuilder/scale3Mixin.js +1 -2
- package/Widgets/Core/StateBuilder/shapeMixin.js +1 -2
- package/Widgets/Core/StateBuilder/textMixin.js +1 -2
- package/Widgets/Core/StateBuilder/visibleMixin.js +1 -2
- package/Widgets/Core/StateBuilder.js +1 -2
- package/Widgets/Core/WidgetManager/Constants.js +1 -2
- package/Widgets/Core/WidgetManager.js +1 -2
- package/Widgets/Core/WidgetState.js +1 -2
- package/Widgets/Core.js +1 -1
- package/Widgets/Manipulators/LineManipulator.js +1 -2
- package/Widgets/Manipulators/PlaneManipulator.js +1 -2
- package/Widgets/Manipulators/TrackballManipulator.js +1 -2
- package/Widgets/Manipulators.js +1 -1
- package/Widgets/Representations/ArrowHandleRepresentation.js +2 -3
- package/Widgets/Representations/CircleContextRepresentation.js +1 -2
- package/Widgets/Representations/ContextRepresentation.js +2 -3
- package/Widgets/Representations/ConvexFaceContextRepresentation.js +1 -2
- package/Widgets/Representations/CroppingOutlineRepresentation.js +1 -2
- package/Widgets/Representations/CubeHandleRepresentation.js +1 -2
- package/Widgets/Representations/HandleRepresentation.js +2 -3
- package/Widgets/Representations/ImplicitPlaneRepresentation.js +1 -2
- package/Widgets/Representations/OutlineContextRepresentation.js +1 -2
- package/Widgets/Representations/PolyLineRepresentation.js +2 -3
- package/Widgets/Representations/RectangleContextRepresentation.js +1 -2
- package/Widgets/Representations/ResliceCursorContextRepresentation.js +2 -3
- package/Widgets/Representations/SphereHandleRepresentation.js +1 -2
- package/Widgets/Representations/SplineContextRepresentation.js +1 -2
- package/Widgets/Representations/WidgetRepresentation/Constants.js +1 -2
- package/Widgets/Representations/WidgetRepresentation.js +1 -2
- package/Widgets/Representations.js +1 -1
- package/Widgets/SVG/SVGLandmarkRepresentation.js +2 -3
- package/Widgets/SVG/SVGRepresentation.js +3 -2
- package/Widgets/Widgets3D/AngleWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/AngleWidget/state.js +1 -1
- package/Widgets/Widgets3D/AngleWidget.js +1 -2
- package/Widgets/Widgets3D/DistanceWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/DistanceWidget/state.js +1 -1
- package/Widgets/Widgets3D/DistanceWidget.js +1 -2
- package/Widgets/Widgets3D/EllipseWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/EllipseWidget/state.js +1 -1
- package/Widgets/Widgets3D/EllipseWidget.js +2 -3
- package/Widgets/Widgets3D/ImageCroppingWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/ImageCroppingWidget/state.js +1 -1
- package/Widgets/Widgets3D/ImageCroppingWidget.js +1 -2
- package/Widgets/Widgets3D/ImplicitPlaneWidget.js +1 -2
- package/Widgets/Widgets3D/InteractiveOrientationWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/InteractiveOrientationWidget/state.js +1 -2
- package/Widgets/Widgets3D/InteractiveOrientationWidget.js +1 -2
- package/Widgets/Widgets3D/LineWidget/Constants.js +1 -2
- package/Widgets/Widgets3D/LineWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/LineWidget/state.js +1 -1
- package/Widgets/Widgets3D/LineWidget.js +1 -2
- package/Widgets/Widgets3D/PaintWidget.js +1 -2
- package/Widgets/Widgets3D/PolyLineWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/PolyLineWidget/state.js +1 -1
- package/Widgets/Widgets3D/PolyLineWidget.js +1 -2
- package/Widgets/Widgets3D/RectangleWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/RectangleWidget/state.js +1 -1
- package/Widgets/Widgets3D/RectangleWidget.js +2 -3
- package/Widgets/Widgets3D/ResliceCursorWidget/Constants.js +1 -2
- package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget/state.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget.js +1 -2
- package/Widgets/Widgets3D/ShapeWidget/Constants.js +1 -2
- package/Widgets/Widgets3D/ShapeWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/ShapeWidget.js +1 -2
- package/Widgets/Widgets3D/SplineWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/SplineWidget/state.js +1 -1
- package/Widgets/Widgets3D/SplineWidget.js +1 -2
- package/Widgets/Widgets3D.js +1 -1
- package/Widgets/index.js +1 -1
- package/_vendor/base64-js/index.js_commonjs-exports +1 -0
- package/_vendor/blueimp-md5/js/md5.js_commonjs-module +3 -0
- package/_vendor/define-properties/index.js_commonjs-proxy +1 -1
- package/_vendor/globalthis/implementation.browser.js_commonjs-module +3 -0
- package/_vendor/globalthis/implementation.browser.js_commonjs-proxy +1 -1
- package/_vendor/globalthis/polyfill.js_commonjs-proxy +1 -1
- package/_vendor/globalthis/shim.js_commonjs-proxy +2 -1
- package/_vendor/jszip/dist/jszip.min.js_commonjs-module +3 -0
- package/_vendor/object-keys/implementation.js_commonjs-proxy +1 -1
- package/_vendor/object-keys/index.js_commonjs-proxy +1 -1
- package/_vendor/object-keys/isArguments.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/alea.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/alea.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/tychei.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/tychei.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/xor128.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/xor128.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/xor4096.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/xor4096.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/xorshift7.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/xorshift7.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/xorwow.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/xorwow.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/seedrandom.js_commonjs-module +3 -0
- package/_vendor/seedrandom/seedrandom.js_commonjs-proxy +1 -1
- package/_vendor/webworker-promise/lib/register.js_commonjs-module +3 -0
- package/_vendor/webworker-promise/lib/tiny-emitter.js_commonjs-proxy +1 -1
- package/_vendor/webworker-promise/src/tiny-emitter.js_commonjs-proxy +1 -0
- package/_vendor/xmlbuilder2/lib/xmlbuilder2.min.js_commonjs-module +3 -0
- package/_virtual/commonjsHelpers.js +3 -4
- package/_virtual/{polyfill-node_buffer.js → polyfill-node.buffer.js} +1 -1
- package/_virtual/{polyfill-node_global.js → polyfill-node.global.js} +0 -0
- package/_virtual/rollup-plugin-worker-loader__module_Sources/Filters/General/PaintFilter/PaintFilter.worker.js +1 -1
- package/_virtual/rollup-plugin-worker-loader__module_Sources/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js +1 -1
- package/macros.js +4 -5
- package/package.json +54 -55
- package/vendor/base64-js/index.js +1 -87
- package/vendor/blueimp-md5/js/md5.js +6 -3
- package/vendor/d3-array/src/ascending.js +1 -1
- package/vendor/d3-array/src/bisect.js +2 -1
- package/vendor/d3-array/src/bisector.js +21 -23
- package/vendor/d3-array/src/mode.js +1 -0
- package/vendor/d3-scale/src/continuous.js +2 -2
- package/vendor/d3-time/src/ticks.js +1 -0
- package/vendor/define-properties/index.js +2 -1
- package/vendor/globalthis/implementation.browser.js +4 -9
- package/vendor/globalthis/index.js +13 -6
- package/vendor/globalthis/polyfill.js +6 -3
- package/vendor/globalthis/shim.js +12 -9
- package/vendor/jszip/dist/jszip.min.js +11 -0
- package/vendor/object-keys/index.js +2 -2
- package/vendor/pako/dist/pako.esm.mjs +397 -388
- package/vendor/seedrandom/index.js +28 -21
- package/vendor/seedrandom/lib/alea.js +4 -5
- package/vendor/seedrandom/lib/tychei.js +4 -5
- package/vendor/seedrandom/lib/xor128.js +4 -5
- package/vendor/seedrandom/lib/xor4096.js +4 -5
- package/vendor/seedrandom/lib/xorshift7.js +4 -5
- package/vendor/seedrandom/lib/xorwow.js +4 -5
- package/vendor/seedrandom/seedrandom.js +4 -5
- package/vendor/webworker-promise/lib/register.js +14 -8
- package/vendor/webworker-promise/src/index.js +110 -0
- package/vendor/webworker-promise/src/tiny-emitter.js +51 -0
- package/vendor/xmlbuilder2/lib/xmlbuilder2.min.js +6 -7
- package/vtk.js +2 -3
- package/_vendor/base64-js/index.js_commonjs-proxy +0 -1
- package/_vendor/buffer/index.js_commonjs-proxy +0 -1
- package/_vendor/ieee754/index.js_commonjs-proxy +0 -1
- package/_vendor/immediate/lib/browser.js_commonjs-proxy +0 -1
- package/_vendor/inherits/inherits_browser.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/base64.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/compressedObject.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/compressions.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/crc32.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/defaults.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/external.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/flate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/generate/ZipFileWorker.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/generate/index.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/load.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/nodejs/NodejsStreamInputAdapter.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/nodejs/NodejsStreamOutputAdapter.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/nodejsUtils.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/object.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/readable-stream-browser.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/ArrayReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/DataReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/NodeBufferReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/StringReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/Uint8ArrayReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/readerFor.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/signature.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/ConvertWorker.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/Crc32Probe.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/DataLengthProbe.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/DataWorker.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/GenericWorker.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/StreamHelper.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/support.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/utf8.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/utils.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/zipEntries.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/zipEntry.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/zipObject.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/index.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/deflate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/inflate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/utils/common.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/utils/strings.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/adler32.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/constants.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/crc32.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/deflate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/gzheader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/inffast.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/inflate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/inftrees.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/messages.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/trees.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/zstream.js_commonjs-proxy +0 -1
- package/_vendor/lie/lib/browser.js_commonjs-proxy +0 -1
- package/_vendor/safe-buffer/index.js_commonjs-proxy +0 -1
- package/_vendor/set-immediate-shim/index.js_commonjs-proxy +0 -1
- package/_vendor/util/support/isBufferBrowser.js_commonjs-proxy +0 -1
- package/_virtual/_polyfill-node_stream.js_commonjs-proxy.js +0 -6
- package/_virtual/polyfill-node__buffer_list.js +0 -59
- package/_virtual/polyfill-node__stream_duplex.js +0 -44
- package/_virtual/polyfill-node__stream_passthrough.js +0 -15
- package/_virtual/polyfill-node__stream_readable.js +0 -896
- package/_virtual/polyfill-node__stream_transform.js +0 -132
- package/_virtual/polyfill-node__stream_writable.js +0 -480
- package/_virtual/polyfill-node_process.js +0 -225
- package/_virtual/polyfill-node_stream.js +0 -120
- package/vendor/buffer/index.js +0 -2112
- package/vendor/events/events.js +0 -457
- package/vendor/ieee754/index.js +0 -92
- package/vendor/immediate/lib/browser.js +0 -72
- package/vendor/inherits/inherits_browser.js +0 -29
- package/vendor/jszip/lib/base64.js +0 -113
- package/vendor/jszip/lib/compressedObject.js +0 -74
- package/vendor/jszip/lib/compressions.js +0 -20
- package/vendor/jszip/lib/crc32.js +0 -77
- package/vendor/jszip/lib/defaults.js +0 -25
- package/vendor/jszip/lib/external.js +0 -22
- package/vendor/jszip/lib/flate.js +0 -96
- package/vendor/jszip/lib/generate/ZipFileWorker.js +0 -540
- package/vendor/jszip/lib/generate/index.js +0 -61
- package/vendor/jszip/lib/index.js +0 -58
- package/vendor/jszip/lib/load.js +0 -82
- package/vendor/jszip/lib/nodejs/NodejsStreamInputAdapter.js +0 -74
- package/vendor/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +0 -45
- package/vendor/jszip/lib/nodejsUtils.js +0 -59
- package/vendor/jszip/lib/object.js +0 -389
- package/vendor/jszip/lib/readable-stream-browser.js +0 -14
- package/vendor/jszip/lib/reader/ArrayReader.js +0 -58
- package/vendor/jszip/lib/reader/DataReader.js +0 -117
- package/vendor/jszip/lib/reader/NodeBufferReader.js +0 -20
- package/vendor/jszip/lib/reader/StringReader.js +0 -39
- package/vendor/jszip/lib/reader/Uint8ArrayReader.js +0 -23
- package/vendor/jszip/lib/reader/readerFor.js +0 -28
- package/vendor/jszip/lib/signature.js +0 -17
- package/vendor/jszip/lib/stream/ConvertWorker.js +0 -26
- package/vendor/jszip/lib/stream/Crc32Probe.js +0 -24
- package/vendor/jszip/lib/stream/DataLengthProbe.js +0 -28
- package/vendor/jszip/lib/stream/DataWorker.js +0 -116
- package/vendor/jszip/lib/stream/GenericWorker.js +0 -263
- package/vendor/jszip/lib/stream/StreamHelper.js +0 -214
- package/vendor/jszip/lib/support.js +0 -45
- package/vendor/jszip/lib/utf8.js +0 -284
- package/vendor/jszip/lib/utils.js +0 -486
- package/vendor/jszip/lib/zipEntries.js +0 -257
- package/vendor/jszip/lib/zipEntry.js +0 -293
- package/vendor/jszip/lib/zipObject.js +0 -133
- package/vendor/jszip/node_modules/pako/index.js +0 -18
- package/vendor/jszip/node_modules/pako/lib/deflate.js +0 -406
- package/vendor/jszip/node_modules/pako/lib/inflate.js +0 -429
- package/vendor/jszip/node_modules/pako/lib/utils/common.js +0 -110
- package/vendor/jszip/node_modules/pako/lib/utils/strings.js +0 -192
- package/vendor/jszip/node_modules/pako/lib/zlib/adler32.js +0 -51
- package/vendor/jszip/node_modules/pako/lib/zlib/constants.js +0 -68
- package/vendor/jszip/node_modules/pako/lib/zlib/crc32.js +0 -59
- package/vendor/jszip/node_modules/pako/lib/zlib/deflate.js +0 -1892
- package/vendor/jszip/node_modules/pako/lib/zlib/gzheader.js +0 -58
- package/vendor/jszip/node_modules/pako/lib/zlib/inffast.js +0 -345
- package/vendor/jszip/node_modules/pako/lib/zlib/inflate.js +0 -1572
- package/vendor/jszip/node_modules/pako/lib/zlib/inftrees.js +0 -345
- package/vendor/jszip/node_modules/pako/lib/zlib/messages.js +0 -32
- package/vendor/jszip/node_modules/pako/lib/zlib/trees.js +0 -1232
- package/vendor/jszip/node_modules/pako/lib/zlib/zstream.js +0 -47
- package/vendor/lie/lib/browser.js +0 -274
- package/vendor/process/browser.js +0 -190
- package/vendor/safe-buffer/index.js +0 -69
- package/vendor/set-immediate-shim/index.js +0 -8
- package/vendor/string_decoder/lib/string_decoder.js +0 -276
- package/vendor/util/support/isBufferBrowser.js +0 -8
- package/vendor/util/util.js +0 -706
- package/vendor/webworker-promise/lib/index.js +0 -172
package/vendor/util/util.js
DELETED
|
@@ -1,706 +0,0 @@
|
|
|
1
|
-
import { b as browser$1 } from '../../_virtual/polyfill-node_process.js';
|
|
2
|
-
import { c as createCommonjsModule } from '../../_virtual/commonjsHelpers.js';
|
|
3
|
-
import { i as isBufferBrowser } from './support/isBufferBrowser.js';
|
|
4
|
-
import { i as inherits_browser } from '../inherits/inherits_browser.js';
|
|
5
|
-
|
|
6
|
-
var util = createCommonjsModule(function (module, exports) {
|
|
7
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
8
|
-
//
|
|
9
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
10
|
-
// copy of this software and associated documentation files (the
|
|
11
|
-
// "Software"), to deal in the Software without restriction, including
|
|
12
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
13
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
14
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
15
|
-
// following conditions:
|
|
16
|
-
//
|
|
17
|
-
// The above copyright notice and this permission notice shall be included
|
|
18
|
-
// in all copies or substantial portions of the Software.
|
|
19
|
-
//
|
|
20
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
21
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
22
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
23
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
24
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
25
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
26
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
27
|
-
|
|
28
|
-
var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors ||
|
|
29
|
-
function getOwnPropertyDescriptors(obj) {
|
|
30
|
-
var keys = Object.keys(obj);
|
|
31
|
-
var descriptors = {};
|
|
32
|
-
for (var i = 0; i < keys.length; i++) {
|
|
33
|
-
descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);
|
|
34
|
-
}
|
|
35
|
-
return descriptors;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
var formatRegExp = /%[sdj%]/g;
|
|
39
|
-
exports.format = function(f) {
|
|
40
|
-
if (!isString(f)) {
|
|
41
|
-
var objects = [];
|
|
42
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
43
|
-
objects.push(inspect(arguments[i]));
|
|
44
|
-
}
|
|
45
|
-
return objects.join(' ');
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
var i = 1;
|
|
49
|
-
var args = arguments;
|
|
50
|
-
var len = args.length;
|
|
51
|
-
var str = String(f).replace(formatRegExp, function(x) {
|
|
52
|
-
if (x === '%%') return '%';
|
|
53
|
-
if (i >= len) return x;
|
|
54
|
-
switch (x) {
|
|
55
|
-
case '%s': return String(args[i++]);
|
|
56
|
-
case '%d': return Number(args[i++]);
|
|
57
|
-
case '%j':
|
|
58
|
-
try {
|
|
59
|
-
return JSON.stringify(args[i++]);
|
|
60
|
-
} catch (_) {
|
|
61
|
-
return '[Circular]';
|
|
62
|
-
}
|
|
63
|
-
default:
|
|
64
|
-
return x;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
for (var x = args[i]; i < len; x = args[++i]) {
|
|
68
|
-
if (isNull(x) || !isObject(x)) {
|
|
69
|
-
str += ' ' + x;
|
|
70
|
-
} else {
|
|
71
|
-
str += ' ' + inspect(x);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return str;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
// Mark that a method should not be used.
|
|
79
|
-
// Returns a modified function which warns once by default.
|
|
80
|
-
// If --no-deprecation is set, then it is a no-op.
|
|
81
|
-
exports.deprecate = function(fn, msg) {
|
|
82
|
-
if (typeof browser$1 !== 'undefined' && browser$1.noDeprecation === true) {
|
|
83
|
-
return fn;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// Allow for deprecating things in the process of starting up.
|
|
87
|
-
if (typeof browser$1 === 'undefined') {
|
|
88
|
-
return function() {
|
|
89
|
-
return exports.deprecate(fn, msg).apply(this, arguments);
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
var warned = false;
|
|
94
|
-
function deprecated() {
|
|
95
|
-
if (!warned) {
|
|
96
|
-
{
|
|
97
|
-
console.error(msg);
|
|
98
|
-
}
|
|
99
|
-
warned = true;
|
|
100
|
-
}
|
|
101
|
-
return fn.apply(this, arguments);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
return deprecated;
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
var debugs = {};
|
|
109
|
-
var debugEnviron;
|
|
110
|
-
exports.debuglog = function(set) {
|
|
111
|
-
if (isUndefined(debugEnviron))
|
|
112
|
-
debugEnviron = '';
|
|
113
|
-
set = set.toUpperCase();
|
|
114
|
-
if (!debugs[set]) {
|
|
115
|
-
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
|
|
116
|
-
var pid = browser$1.pid;
|
|
117
|
-
debugs[set] = function() {
|
|
118
|
-
var msg = exports.format.apply(exports, arguments);
|
|
119
|
-
console.error('%s %d: %s', set, pid, msg);
|
|
120
|
-
};
|
|
121
|
-
} else {
|
|
122
|
-
debugs[set] = function() {};
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return debugs[set];
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Echos the value of a value. Trys to print the value out
|
|
131
|
-
* in the best way possible given the different types.
|
|
132
|
-
*
|
|
133
|
-
* @param {Object} obj The object to print out.
|
|
134
|
-
* @param {Object} opts Optional options object that alters the output.
|
|
135
|
-
*/
|
|
136
|
-
/* legacy: obj, showHidden, depth, colors*/
|
|
137
|
-
function inspect(obj, opts) {
|
|
138
|
-
// default options
|
|
139
|
-
var ctx = {
|
|
140
|
-
seen: [],
|
|
141
|
-
stylize: stylizeNoColor
|
|
142
|
-
};
|
|
143
|
-
// legacy...
|
|
144
|
-
if (arguments.length >= 3) ctx.depth = arguments[2];
|
|
145
|
-
if (arguments.length >= 4) ctx.colors = arguments[3];
|
|
146
|
-
if (isBoolean(opts)) {
|
|
147
|
-
// legacy...
|
|
148
|
-
ctx.showHidden = opts;
|
|
149
|
-
} else if (opts) {
|
|
150
|
-
// got an "options" object
|
|
151
|
-
exports._extend(ctx, opts);
|
|
152
|
-
}
|
|
153
|
-
// set default options
|
|
154
|
-
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
155
|
-
if (isUndefined(ctx.depth)) ctx.depth = 2;
|
|
156
|
-
if (isUndefined(ctx.colors)) ctx.colors = false;
|
|
157
|
-
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
|
|
158
|
-
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
159
|
-
return formatValue(ctx, obj, ctx.depth);
|
|
160
|
-
}
|
|
161
|
-
exports.inspect = inspect;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
|
165
|
-
inspect.colors = {
|
|
166
|
-
'bold' : [1, 22],
|
|
167
|
-
'italic' : [3, 23],
|
|
168
|
-
'underline' : [4, 24],
|
|
169
|
-
'inverse' : [7, 27],
|
|
170
|
-
'white' : [37, 39],
|
|
171
|
-
'grey' : [90, 39],
|
|
172
|
-
'black' : [30, 39],
|
|
173
|
-
'blue' : [34, 39],
|
|
174
|
-
'cyan' : [36, 39],
|
|
175
|
-
'green' : [32, 39],
|
|
176
|
-
'magenta' : [35, 39],
|
|
177
|
-
'red' : [31, 39],
|
|
178
|
-
'yellow' : [33, 39]
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
// Don't use 'blue' not visible on cmd.exe
|
|
182
|
-
inspect.styles = {
|
|
183
|
-
'special': 'cyan',
|
|
184
|
-
'number': 'yellow',
|
|
185
|
-
'boolean': 'yellow',
|
|
186
|
-
'undefined': 'grey',
|
|
187
|
-
'null': 'bold',
|
|
188
|
-
'string': 'green',
|
|
189
|
-
'date': 'magenta',
|
|
190
|
-
// "name": intentionally not styling
|
|
191
|
-
'regexp': 'red'
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
function stylizeWithColor(str, styleType) {
|
|
196
|
-
var style = inspect.styles[styleType];
|
|
197
|
-
|
|
198
|
-
if (style) {
|
|
199
|
-
return '\u001b[' + inspect.colors[style][0] + 'm' + str +
|
|
200
|
-
'\u001b[' + inspect.colors[style][1] + 'm';
|
|
201
|
-
} else {
|
|
202
|
-
return str;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
function stylizeNoColor(str, styleType) {
|
|
208
|
-
return str;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
function arrayToHash(array) {
|
|
213
|
-
var hash = {};
|
|
214
|
-
|
|
215
|
-
array.forEach(function(val, idx) {
|
|
216
|
-
hash[val] = true;
|
|
217
|
-
});
|
|
218
|
-
|
|
219
|
-
return hash;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
function formatValue(ctx, value, recurseTimes) {
|
|
224
|
-
// Provide a hook for user-specified inspect functions.
|
|
225
|
-
// Check that value is an object with an inspect function on it
|
|
226
|
-
if (ctx.customInspect &&
|
|
227
|
-
value &&
|
|
228
|
-
isFunction(value.inspect) &&
|
|
229
|
-
// Filter out the util module, it's inspect function is special
|
|
230
|
-
value.inspect !== exports.inspect &&
|
|
231
|
-
// Also filter out any prototype objects using the circular check.
|
|
232
|
-
!(value.constructor && value.constructor.prototype === value)) {
|
|
233
|
-
var ret = value.inspect(recurseTimes, ctx);
|
|
234
|
-
if (!isString(ret)) {
|
|
235
|
-
ret = formatValue(ctx, ret, recurseTimes);
|
|
236
|
-
}
|
|
237
|
-
return ret;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// Primitive types cannot have properties
|
|
241
|
-
var primitive = formatPrimitive(ctx, value);
|
|
242
|
-
if (primitive) {
|
|
243
|
-
return primitive;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
// Look up the keys of the object.
|
|
247
|
-
var keys = Object.keys(value);
|
|
248
|
-
var visibleKeys = arrayToHash(keys);
|
|
249
|
-
|
|
250
|
-
if (ctx.showHidden) {
|
|
251
|
-
keys = Object.getOwnPropertyNames(value);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
// IE doesn't make error fields non-enumerable
|
|
255
|
-
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
|
|
256
|
-
if (isError(value)
|
|
257
|
-
&& (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
|
|
258
|
-
return formatError(value);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
// Some type of object without properties can be shortcutted.
|
|
262
|
-
if (keys.length === 0) {
|
|
263
|
-
if (isFunction(value)) {
|
|
264
|
-
var name = value.name ? ': ' + value.name : '';
|
|
265
|
-
return ctx.stylize('[Function' + name + ']', 'special');
|
|
266
|
-
}
|
|
267
|
-
if (isRegExp(value)) {
|
|
268
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
269
|
-
}
|
|
270
|
-
if (isDate(value)) {
|
|
271
|
-
return ctx.stylize(Date.prototype.toString.call(value), 'date');
|
|
272
|
-
}
|
|
273
|
-
if (isError(value)) {
|
|
274
|
-
return formatError(value);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
var base = '', array = false, braces = ['{', '}'];
|
|
279
|
-
|
|
280
|
-
// Make Array say that they are Array
|
|
281
|
-
if (isArray(value)) {
|
|
282
|
-
array = true;
|
|
283
|
-
braces = ['[', ']'];
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
// Make functions say that they are functions
|
|
287
|
-
if (isFunction(value)) {
|
|
288
|
-
var n = value.name ? ': ' + value.name : '';
|
|
289
|
-
base = ' [Function' + n + ']';
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
// Make RegExps say that they are RegExps
|
|
293
|
-
if (isRegExp(value)) {
|
|
294
|
-
base = ' ' + RegExp.prototype.toString.call(value);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
// Make dates with properties first say the date
|
|
298
|
-
if (isDate(value)) {
|
|
299
|
-
base = ' ' + Date.prototype.toUTCString.call(value);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
// Make error with message first say the error
|
|
303
|
-
if (isError(value)) {
|
|
304
|
-
base = ' ' + formatError(value);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
if (keys.length === 0 && (!array || value.length == 0)) {
|
|
308
|
-
return braces[0] + base + braces[1];
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
if (recurseTimes < 0) {
|
|
312
|
-
if (isRegExp(value)) {
|
|
313
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
314
|
-
} else {
|
|
315
|
-
return ctx.stylize('[Object]', 'special');
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
ctx.seen.push(value);
|
|
320
|
-
|
|
321
|
-
var output;
|
|
322
|
-
if (array) {
|
|
323
|
-
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
324
|
-
} else {
|
|
325
|
-
output = keys.map(function(key) {
|
|
326
|
-
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
ctx.seen.pop();
|
|
331
|
-
|
|
332
|
-
return reduceToSingleString(output, base, braces);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
function formatPrimitive(ctx, value) {
|
|
337
|
-
if (isUndefined(value))
|
|
338
|
-
return ctx.stylize('undefined', 'undefined');
|
|
339
|
-
if (isString(value)) {
|
|
340
|
-
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
|
|
341
|
-
.replace(/'/g, "\\'")
|
|
342
|
-
.replace(/\\"/g, '"') + '\'';
|
|
343
|
-
return ctx.stylize(simple, 'string');
|
|
344
|
-
}
|
|
345
|
-
if (isNumber(value))
|
|
346
|
-
return ctx.stylize('' + value, 'number');
|
|
347
|
-
if (isBoolean(value))
|
|
348
|
-
return ctx.stylize('' + value, 'boolean');
|
|
349
|
-
// For some reason typeof null is "object", so special case here.
|
|
350
|
-
if (isNull(value))
|
|
351
|
-
return ctx.stylize('null', 'null');
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
function formatError(value) {
|
|
356
|
-
return '[' + Error.prototype.toString.call(value) + ']';
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
361
|
-
var output = [];
|
|
362
|
-
for (var i = 0, l = value.length; i < l; ++i) {
|
|
363
|
-
if (hasOwnProperty(value, String(i))) {
|
|
364
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
365
|
-
String(i), true));
|
|
366
|
-
} else {
|
|
367
|
-
output.push('');
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
keys.forEach(function(key) {
|
|
371
|
-
if (!key.match(/^\d+$/)) {
|
|
372
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
373
|
-
key, true));
|
|
374
|
-
}
|
|
375
|
-
});
|
|
376
|
-
return output;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
381
|
-
var name, str, desc;
|
|
382
|
-
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
383
|
-
if (desc.get) {
|
|
384
|
-
if (desc.set) {
|
|
385
|
-
str = ctx.stylize('[Getter/Setter]', 'special');
|
|
386
|
-
} else {
|
|
387
|
-
str = ctx.stylize('[Getter]', 'special');
|
|
388
|
-
}
|
|
389
|
-
} else {
|
|
390
|
-
if (desc.set) {
|
|
391
|
-
str = ctx.stylize('[Setter]', 'special');
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
if (!hasOwnProperty(visibleKeys, key)) {
|
|
395
|
-
name = '[' + key + ']';
|
|
396
|
-
}
|
|
397
|
-
if (!str) {
|
|
398
|
-
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
399
|
-
if (isNull(recurseTimes)) {
|
|
400
|
-
str = formatValue(ctx, desc.value, null);
|
|
401
|
-
} else {
|
|
402
|
-
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
403
|
-
}
|
|
404
|
-
if (str.indexOf('\n') > -1) {
|
|
405
|
-
if (array) {
|
|
406
|
-
str = str.split('\n').map(function(line) {
|
|
407
|
-
return ' ' + line;
|
|
408
|
-
}).join('\n').substr(2);
|
|
409
|
-
} else {
|
|
410
|
-
str = '\n' + str.split('\n').map(function(line) {
|
|
411
|
-
return ' ' + line;
|
|
412
|
-
}).join('\n');
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
} else {
|
|
416
|
-
str = ctx.stylize('[Circular]', 'special');
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
if (isUndefined(name)) {
|
|
420
|
-
if (array && key.match(/^\d+$/)) {
|
|
421
|
-
return str;
|
|
422
|
-
}
|
|
423
|
-
name = JSON.stringify('' + key);
|
|
424
|
-
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
425
|
-
name = name.substr(1, name.length - 2);
|
|
426
|
-
name = ctx.stylize(name, 'name');
|
|
427
|
-
} else {
|
|
428
|
-
name = name.replace(/'/g, "\\'")
|
|
429
|
-
.replace(/\\"/g, '"')
|
|
430
|
-
.replace(/(^"|"$)/g, "'");
|
|
431
|
-
name = ctx.stylize(name, 'string');
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
return name + ': ' + str;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
function reduceToSingleString(output, base, braces) {
|
|
440
|
-
var length = output.reduce(function(prev, cur) {
|
|
441
|
-
if (cur.indexOf('\n') >= 0) ;
|
|
442
|
-
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
|
|
443
|
-
}, 0);
|
|
444
|
-
|
|
445
|
-
if (length > 60) {
|
|
446
|
-
return braces[0] +
|
|
447
|
-
(base === '' ? '' : base + '\n ') +
|
|
448
|
-
' ' +
|
|
449
|
-
output.join(',\n ') +
|
|
450
|
-
' ' +
|
|
451
|
-
braces[1];
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
459
|
-
// because it is fragile and can be easily faked with `Object.create()`.
|
|
460
|
-
function isArray(ar) {
|
|
461
|
-
return Array.isArray(ar);
|
|
462
|
-
}
|
|
463
|
-
exports.isArray = isArray;
|
|
464
|
-
|
|
465
|
-
function isBoolean(arg) {
|
|
466
|
-
return typeof arg === 'boolean';
|
|
467
|
-
}
|
|
468
|
-
exports.isBoolean = isBoolean;
|
|
469
|
-
|
|
470
|
-
function isNull(arg) {
|
|
471
|
-
return arg === null;
|
|
472
|
-
}
|
|
473
|
-
exports.isNull = isNull;
|
|
474
|
-
|
|
475
|
-
function isNullOrUndefined(arg) {
|
|
476
|
-
return arg == null;
|
|
477
|
-
}
|
|
478
|
-
exports.isNullOrUndefined = isNullOrUndefined;
|
|
479
|
-
|
|
480
|
-
function isNumber(arg) {
|
|
481
|
-
return typeof arg === 'number';
|
|
482
|
-
}
|
|
483
|
-
exports.isNumber = isNumber;
|
|
484
|
-
|
|
485
|
-
function isString(arg) {
|
|
486
|
-
return typeof arg === 'string';
|
|
487
|
-
}
|
|
488
|
-
exports.isString = isString;
|
|
489
|
-
|
|
490
|
-
function isSymbol(arg) {
|
|
491
|
-
return typeof arg === 'symbol';
|
|
492
|
-
}
|
|
493
|
-
exports.isSymbol = isSymbol;
|
|
494
|
-
|
|
495
|
-
function isUndefined(arg) {
|
|
496
|
-
return arg === void 0;
|
|
497
|
-
}
|
|
498
|
-
exports.isUndefined = isUndefined;
|
|
499
|
-
|
|
500
|
-
function isRegExp(re) {
|
|
501
|
-
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
502
|
-
}
|
|
503
|
-
exports.isRegExp = isRegExp;
|
|
504
|
-
|
|
505
|
-
function isObject(arg) {
|
|
506
|
-
return typeof arg === 'object' && arg !== null;
|
|
507
|
-
}
|
|
508
|
-
exports.isObject = isObject;
|
|
509
|
-
|
|
510
|
-
function isDate(d) {
|
|
511
|
-
return isObject(d) && objectToString(d) === '[object Date]';
|
|
512
|
-
}
|
|
513
|
-
exports.isDate = isDate;
|
|
514
|
-
|
|
515
|
-
function isError(e) {
|
|
516
|
-
return isObject(e) &&
|
|
517
|
-
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
518
|
-
}
|
|
519
|
-
exports.isError = isError;
|
|
520
|
-
|
|
521
|
-
function isFunction(arg) {
|
|
522
|
-
return typeof arg === 'function';
|
|
523
|
-
}
|
|
524
|
-
exports.isFunction = isFunction;
|
|
525
|
-
|
|
526
|
-
function isPrimitive(arg) {
|
|
527
|
-
return arg === null ||
|
|
528
|
-
typeof arg === 'boolean' ||
|
|
529
|
-
typeof arg === 'number' ||
|
|
530
|
-
typeof arg === 'string' ||
|
|
531
|
-
typeof arg === 'symbol' || // ES6 symbol
|
|
532
|
-
typeof arg === 'undefined';
|
|
533
|
-
}
|
|
534
|
-
exports.isPrimitive = isPrimitive;
|
|
535
|
-
|
|
536
|
-
exports.isBuffer = isBufferBrowser;
|
|
537
|
-
|
|
538
|
-
function objectToString(o) {
|
|
539
|
-
return Object.prototype.toString.call(o);
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
function pad(n) {
|
|
544
|
-
return n < 10 ? '0' + n.toString(10) : n.toString(10);
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
|
|
549
|
-
'Oct', 'Nov', 'Dec'];
|
|
550
|
-
|
|
551
|
-
// 26 Feb 16:19:34
|
|
552
|
-
function timestamp() {
|
|
553
|
-
var d = new Date();
|
|
554
|
-
var time = [pad(d.getHours()),
|
|
555
|
-
pad(d.getMinutes()),
|
|
556
|
-
pad(d.getSeconds())].join(':');
|
|
557
|
-
return [d.getDate(), months[d.getMonth()], time].join(' ');
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
// log is just a thin wrapper to console.log that prepends a timestamp
|
|
562
|
-
exports.log = function() {
|
|
563
|
-
console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));
|
|
564
|
-
};
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* Inherit the prototype methods from one constructor into another.
|
|
569
|
-
*
|
|
570
|
-
* The Function.prototype.inherits from lang.js rewritten as a standalone
|
|
571
|
-
* function (not on Function.prototype). NOTE: If this file is to be loaded
|
|
572
|
-
* during bootstrapping this function needs to be rewritten using some native
|
|
573
|
-
* functions as prototype setup using normal JavaScript does not work as
|
|
574
|
-
* expected during bootstrapping (see mirror.js in r114903).
|
|
575
|
-
*
|
|
576
|
-
* @param {function} ctor Constructor function which needs to inherit the
|
|
577
|
-
* prototype.
|
|
578
|
-
* @param {function} superCtor Constructor function to inherit prototype from.
|
|
579
|
-
*/
|
|
580
|
-
exports.inherits = inherits_browser;
|
|
581
|
-
|
|
582
|
-
exports._extend = function(origin, add) {
|
|
583
|
-
// Don't do anything if add isn't an object
|
|
584
|
-
if (!add || !isObject(add)) return origin;
|
|
585
|
-
|
|
586
|
-
var keys = Object.keys(add);
|
|
587
|
-
var i = keys.length;
|
|
588
|
-
while (i--) {
|
|
589
|
-
origin[keys[i]] = add[keys[i]];
|
|
590
|
-
}
|
|
591
|
-
return origin;
|
|
592
|
-
};
|
|
593
|
-
|
|
594
|
-
function hasOwnProperty(obj, prop) {
|
|
595
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
var kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined;
|
|
599
|
-
|
|
600
|
-
exports.promisify = function promisify(original) {
|
|
601
|
-
if (typeof original !== 'function')
|
|
602
|
-
throw new TypeError('The "original" argument must be of type Function');
|
|
603
|
-
|
|
604
|
-
if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
|
|
605
|
-
var fn = original[kCustomPromisifiedSymbol];
|
|
606
|
-
if (typeof fn !== 'function') {
|
|
607
|
-
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
|
608
|
-
}
|
|
609
|
-
Object.defineProperty(fn, kCustomPromisifiedSymbol, {
|
|
610
|
-
value: fn, enumerable: false, writable: false, configurable: true
|
|
611
|
-
});
|
|
612
|
-
return fn;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
function fn() {
|
|
616
|
-
var promiseResolve, promiseReject;
|
|
617
|
-
var promise = new Promise(function (resolve, reject) {
|
|
618
|
-
promiseResolve = resolve;
|
|
619
|
-
promiseReject = reject;
|
|
620
|
-
});
|
|
621
|
-
|
|
622
|
-
var args = [];
|
|
623
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
624
|
-
args.push(arguments[i]);
|
|
625
|
-
}
|
|
626
|
-
args.push(function (err, value) {
|
|
627
|
-
if (err) {
|
|
628
|
-
promiseReject(err);
|
|
629
|
-
} else {
|
|
630
|
-
promiseResolve(value);
|
|
631
|
-
}
|
|
632
|
-
});
|
|
633
|
-
|
|
634
|
-
try {
|
|
635
|
-
original.apply(this, args);
|
|
636
|
-
} catch (err) {
|
|
637
|
-
promiseReject(err);
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
return promise;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
Object.setPrototypeOf(fn, Object.getPrototypeOf(original));
|
|
644
|
-
|
|
645
|
-
if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {
|
|
646
|
-
value: fn, enumerable: false, writable: false, configurable: true
|
|
647
|
-
});
|
|
648
|
-
return Object.defineProperties(
|
|
649
|
-
fn,
|
|
650
|
-
getOwnPropertyDescriptors(original)
|
|
651
|
-
);
|
|
652
|
-
};
|
|
653
|
-
|
|
654
|
-
exports.promisify.custom = kCustomPromisifiedSymbol;
|
|
655
|
-
|
|
656
|
-
function callbackifyOnRejected(reason, cb) {
|
|
657
|
-
// `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).
|
|
658
|
-
// Because `null` is a special error value in callbacks which means "no error
|
|
659
|
-
// occurred", we error-wrap so the callback consumer can distinguish between
|
|
660
|
-
// "the promise rejected with null" or "the promise fulfilled with undefined".
|
|
661
|
-
if (!reason) {
|
|
662
|
-
var newReason = new Error('Promise was rejected with a falsy value');
|
|
663
|
-
newReason.reason = reason;
|
|
664
|
-
reason = newReason;
|
|
665
|
-
}
|
|
666
|
-
return cb(reason);
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
function callbackify(original) {
|
|
670
|
-
if (typeof original !== 'function') {
|
|
671
|
-
throw new TypeError('The "original" argument must be of type Function');
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
// We DO NOT return the promise as it gives the user a false sense that
|
|
675
|
-
// the promise is actually somehow related to the callback's execution
|
|
676
|
-
// and that the callback throwing will reject the promise.
|
|
677
|
-
function callbackified() {
|
|
678
|
-
var args = [];
|
|
679
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
680
|
-
args.push(arguments[i]);
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
var maybeCb = args.pop();
|
|
684
|
-
if (typeof maybeCb !== 'function') {
|
|
685
|
-
throw new TypeError('The last argument must be of type Function');
|
|
686
|
-
}
|
|
687
|
-
var self = this;
|
|
688
|
-
var cb = function() {
|
|
689
|
-
return maybeCb.apply(self, arguments);
|
|
690
|
-
};
|
|
691
|
-
// In true node style we process the callback on `nextTick` with all the
|
|
692
|
-
// implications (stack, `uncaughtException`, `async_hooks`)
|
|
693
|
-
original.apply(this, args)
|
|
694
|
-
.then(function(ret) { browser$1.nextTick(cb, null, ret); },
|
|
695
|
-
function(rej) { browser$1.nextTick(callbackifyOnRejected, rej, cb); });
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));
|
|
699
|
-
Object.defineProperties(callbackified,
|
|
700
|
-
getOwnPropertyDescriptors(original));
|
|
701
|
-
return callbackified;
|
|
702
|
-
}
|
|
703
|
-
exports.callbackify = callbackify;
|
|
704
|
-
});
|
|
705
|
-
|
|
706
|
-
export { util as u };
|