@anov/gis 1.2.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/README.md +122 -0
- package/dist/index.css +4 -0
- package/dist/index.js +58 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/dist/resources/Assets/Images/bing_maps_credit.png +0 -0
- package/dist/resources/Assets/Images/cesium_credit.png +0 -0
- package/dist/resources/Assets/Images/google_earth_credit.png +0 -0
- package/dist/resources/Assets/Images/ion-credit.png +0 -0
- package/dist/resources/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist/resources/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist/resources/Assets/Textures/maki/airfield.png +0 -0
- package/dist/resources/Assets/Textures/maki/airport.png +0 -0
- package/dist/resources/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist/resources/Assets/Textures/maki/america-football.png +0 -0
- package/dist/resources/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist/resources/Assets/Textures/maki/bakery.png +0 -0
- package/dist/resources/Assets/Textures/maki/bank.png +0 -0
- package/dist/resources/Assets/Textures/maki/bar.png +0 -0
- package/dist/resources/Assets/Textures/maki/baseball.png +0 -0
- package/dist/resources/Assets/Textures/maki/basketball.png +0 -0
- package/dist/resources/Assets/Textures/maki/beer.png +0 -0
- package/dist/resources/Assets/Textures/maki/bicycle.png +0 -0
- package/dist/resources/Assets/Textures/maki/building.png +0 -0
- package/dist/resources/Assets/Textures/maki/bus.png +0 -0
- package/dist/resources/Assets/Textures/maki/cafe.png +0 -0
- package/dist/resources/Assets/Textures/maki/camera.png +0 -0
- package/dist/resources/Assets/Textures/maki/campsite.png +0 -0
- package/dist/resources/Assets/Textures/maki/car.png +0 -0
- package/dist/resources/Assets/Textures/maki/cemetery.png +0 -0
- package/dist/resources/Assets/Textures/maki/cesium.png +0 -0
- package/dist/resources/Assets/Textures/maki/chemist.png +0 -0
- package/dist/resources/Assets/Textures/maki/cinema.png +0 -0
- package/dist/resources/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/circle.png +0 -0
- package/dist/resources/Assets/Textures/maki/city.png +0 -0
- package/dist/resources/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist/resources/Assets/Textures/maki/college.png +0 -0
- package/dist/resources/Assets/Textures/maki/commercial.png +0 -0
- package/dist/resources/Assets/Textures/maki/cricket.png +0 -0
- package/dist/resources/Assets/Textures/maki/cross.png +0 -0
- package/dist/resources/Assets/Textures/maki/dam.png +0 -0
- package/dist/resources/Assets/Textures/maki/danger.png +0 -0
- package/dist/resources/Assets/Textures/maki/disability.png +0 -0
- package/dist/resources/Assets/Textures/maki/dog-park.png +0 -0
- package/dist/resources/Assets/Textures/maki/embassy.png +0 -0
- package/dist/resources/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist/resources/Assets/Textures/maki/entrance.png +0 -0
- package/dist/resources/Assets/Textures/maki/farm.png +0 -0
- package/dist/resources/Assets/Textures/maki/fast-food.png +0 -0
- package/dist/resources/Assets/Textures/maki/ferry.png +0 -0
- package/dist/resources/Assets/Textures/maki/fire-station.png +0 -0
- package/dist/resources/Assets/Textures/maki/fuel.png +0 -0
- package/dist/resources/Assets/Textures/maki/garden.png +0 -0
- package/dist/resources/Assets/Textures/maki/gift.png +0 -0
- package/dist/resources/Assets/Textures/maki/golf.png +0 -0
- package/dist/resources/Assets/Textures/maki/grocery.png +0 -0
- package/dist/resources/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist/resources/Assets/Textures/maki/harbor.png +0 -0
- package/dist/resources/Assets/Textures/maki/heart.png +0 -0
- package/dist/resources/Assets/Textures/maki/heliport.png +0 -0
- package/dist/resources/Assets/Textures/maki/hospital.png +0 -0
- package/dist/resources/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist/resources/Assets/Textures/maki/industrial.png +0 -0
- package/dist/resources/Assets/Textures/maki/land-use.png +0 -0
- package/dist/resources/Assets/Textures/maki/laundry.png +0 -0
- package/dist/resources/Assets/Textures/maki/library.png +0 -0
- package/dist/resources/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist/resources/Assets/Textures/maki/lodging.png +0 -0
- package/dist/resources/Assets/Textures/maki/logging.png +0 -0
- package/dist/resources/Assets/Textures/maki/london-underground.png +0 -0
- package/dist/resources/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/marker.png +0 -0
- package/dist/resources/Assets/Textures/maki/minefield.png +0 -0
- package/dist/resources/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist/resources/Assets/Textures/maki/monument.png +0 -0
- package/dist/resources/Assets/Textures/maki/museum.png +0 -0
- package/dist/resources/Assets/Textures/maki/music.png +0 -0
- package/dist/resources/Assets/Textures/maki/oil-well.png +0 -0
- package/dist/resources/Assets/Textures/maki/park.png +0 -0
- package/dist/resources/Assets/Textures/maki/park2.png +0 -0
- package/dist/resources/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist/resources/Assets/Textures/maki/parking.png +0 -0
- package/dist/resources/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist/resources/Assets/Textures/maki/pitch.png +0 -0
- package/dist/resources/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist/resources/Assets/Textures/maki/playground.png +0 -0
- package/dist/resources/Assets/Textures/maki/police.png +0 -0
- package/dist/resources/Assets/Textures/maki/polling-place.png +0 -0
- package/dist/resources/Assets/Textures/maki/post.png +0 -0
- package/dist/resources/Assets/Textures/maki/prison.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail-above.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail-light.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail.png +0 -0
- package/dist/resources/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist/resources/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist/resources/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist/resources/Assets/Textures/maki/restaurant.png +0 -0
- package/dist/resources/Assets/Textures/maki/roadblock.png +0 -0
- package/dist/resources/Assets/Textures/maki/rocket.png +0 -0
- package/dist/resources/Assets/Textures/maki/school.png +0 -0
- package/dist/resources/Assets/Textures/maki/scooter.png +0 -0
- package/dist/resources/Assets/Textures/maki/shop.png +0 -0
- package/dist/resources/Assets/Textures/maki/skiing.png +0 -0
- package/dist/resources/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist/resources/Assets/Textures/maki/soccer.png +0 -0
- package/dist/resources/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/square.png +0 -0
- package/dist/resources/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/star.png +0 -0
- package/dist/resources/Assets/Textures/maki/suitcase.png +0 -0
- package/dist/resources/Assets/Textures/maki/swimming.png +0 -0
- package/dist/resources/Assets/Textures/maki/telephone.png +0 -0
- package/dist/resources/Assets/Textures/maki/tennis.png +0 -0
- package/dist/resources/Assets/Textures/maki/theatre.png +0 -0
- package/dist/resources/Assets/Textures/maki/toilets.png +0 -0
- package/dist/resources/Assets/Textures/maki/town-hall.png +0 -0
- package/dist/resources/Assets/Textures/maki/town.png +0 -0
- package/dist/resources/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/triangle.png +0 -0
- package/dist/resources/Assets/Textures/maki/village.png +0 -0
- package/dist/resources/Assets/Textures/maki/warehouse.png +0 -0
- package/dist/resources/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist/resources/Assets/Textures/maki/water.png +0 -0
- package/dist/resources/Assets/Textures/maki/wetland.png +0 -0
- package/dist/resources/Assets/Textures/maki/zoo.png +0 -0
- package/dist/resources/Assets/Textures/moonSmall.jpg +0 -0
- package/dist/resources/Assets/Textures/pin.svg +1 -0
- package/dist/resources/Assets/Textures/waterNormals.jpg +0 -0
- package/dist/resources/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist/resources/Assets/approximateTerrainHeights.json +1 -0
- package/dist/resources/ThirdParty/Workers/basis_transcoder.js +1 -0
- package/dist/resources/ThirdParty/Workers/draco_decoder_nodejs.js +1 -0
- package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +1 -0
- package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +1 -0
- package/dist/resources/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/dist/resources/ThirdParty/basis_transcoder.wasm +0 -0
- package/dist/resources/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/dist/resources/Widgets/Animation/Animation.css +1 -0
- package/dist/resources/Widgets/Animation/lighter.css +1 -0
- package/dist/resources/Widgets/BaseLayerPicker/BaseLayerPicker.css +1 -0
- package/dist/resources/Widgets/BaseLayerPicker/lighter.css +1 -0
- package/dist/resources/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +1 -0
- package/dist/resources/Widgets/CesiumInspector/CesiumInspector.css +1 -0
- package/dist/resources/Widgets/CesiumWidget/CesiumWidget.css +1 -0
- package/dist/resources/Widgets/CesiumWidget/lighter.css +1 -0
- package/dist/resources/Widgets/FullscreenButton/FullscreenButton.css +1 -0
- package/dist/resources/Widgets/Geocoder/Geocoder.css +1 -0
- package/dist/resources/Widgets/Geocoder/lighter.css +1 -0
- package/dist/resources/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/dist/resources/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/dist/resources/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/dist/resources/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/dist/resources/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/dist/resources/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/dist/resources/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/dist/resources/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/dist/resources/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/dist/resources/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/dist/resources/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/dist/resources/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/dist/resources/Widgets/Images/TimelineIcons.png +0 -0
- package/dist/resources/Widgets/Images/info-loading.gif +0 -0
- package/dist/resources/Widgets/InfoBox/InfoBox.css +1 -0
- package/dist/resources/Widgets/InfoBox/InfoBoxDescription.css +1 -0
- package/dist/resources/Widgets/NavigationHelpButton/NavigationHelpButton.css +1 -0
- package/dist/resources/Widgets/NavigationHelpButton/lighter.css +1 -0
- package/dist/resources/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +1 -0
- package/dist/resources/Widgets/ProjectionPicker/ProjectionPicker.css +1 -0
- package/dist/resources/Widgets/SceneModePicker/SceneModePicker.css +1 -0
- package/dist/resources/Widgets/SelectionIndicator/SelectionIndicator.css +1 -0
- package/dist/resources/Widgets/Timeline/Timeline.css +1 -0
- package/dist/resources/Widgets/Timeline/lighter.css +1 -0
- package/dist/resources/Widgets/VRButton/VRButton.css +1 -0
- package/dist/resources/Widgets/Viewer/Viewer.css +1 -0
- package/dist/resources/Widgets/lighter.css +1 -0
- package/dist/resources/Widgets/lighterShared.css +1 -0
- package/dist/resources/Widgets/shared.css +1 -0
- package/dist/resources/Widgets/widgets.css +1 -0
- package/dist/resources/Workers/ArcType-de5d8777.js +25 -0
- package/dist/resources/Workers/AttributeCompression-5744d52e.js +25 -0
- package/dist/resources/Workers/AxisAlignedBoundingBox-b1c095aa.js +25 -0
- package/dist/resources/Workers/BoundingRectangle-2b0ebbdd.js +25 -0
- package/dist/resources/Workers/BoxGeometry-acd0c697.js +25 -0
- package/dist/resources/Workers/Color-c7fd1307.js +25 -0
- package/dist/resources/Workers/ComponentDatatype-e7fbe225.js +25 -0
- package/dist/resources/Workers/CoplanarPolygonGeometryLibrary-edaba606.js +25 -0
- package/dist/resources/Workers/CorridorGeometryLibrary-ab3e6481.js +25 -0
- package/dist/resources/Workers/CylinderGeometry-679e50b4.js +25 -0
- package/dist/resources/Workers/CylinderGeometryLibrary-24ad1484.js +25 -0
- package/dist/resources/Workers/EllipseGeometry-e6f948bb.js +25 -0
- package/dist/resources/Workers/EllipseGeometryLibrary-0adcaeed.js +25 -0
- package/dist/resources/Workers/EllipseOutlineGeometry-418492dc.js +25 -0
- package/dist/resources/Workers/EllipsoidGeodesic-ed8a0e40.js +25 -0
- package/dist/resources/Workers/EllipsoidGeometry-539fb9e2.js +25 -0
- package/dist/resources/Workers/EllipsoidOutlineGeometry-6c13760b.js +25 -0
- package/dist/resources/Workers/EllipsoidRhumbLine-60f14314.js +25 -0
- package/dist/resources/Workers/EllipsoidTangentPlane-7ae496b2.js +25 -0
- package/dist/resources/Workers/EncodedCartesian3-a9a8a281.js +25 -0
- package/dist/resources/Workers/FrustumGeometry-be9b9578.js +25 -0
- package/dist/resources/Workers/GeometryAttribute-fd1d7e90.js +25 -0
- package/dist/resources/Workers/GeometryAttributes-734a3446.js +25 -0
- package/dist/resources/Workers/GeometryInstance-4bfcfe78.js +25 -0
- package/dist/resources/Workers/GeometryOffsetAttribute-59b14f45.js +25 -0
- package/dist/resources/Workers/GeometryPipeline-a847e31f.js +25 -0
- package/dist/resources/Workers/IndexDatatype-65271ba3.js +25 -0
- package/dist/resources/Workers/IntersectionTests-33ace2d6.js +25 -0
- package/dist/resources/Workers/Matrix2-73789715.js +25 -0
- package/dist/resources/Workers/OrientedBoundingBox-ee3011f6.js +25 -0
- package/dist/resources/Workers/Plane-e916220d.js +25 -0
- package/dist/resources/Workers/PolygonGeometryLibrary-0f0c78d4.js +25 -0
- package/dist/resources/Workers/PolygonPipeline-00dc0c6e.js +25 -0
- package/dist/resources/Workers/PolylinePipeline-ebd42f23.js +25 -0
- package/dist/resources/Workers/PolylineVolumeGeometryLibrary-a4b92b4e.js +25 -0
- package/dist/resources/Workers/PrimitivePipeline-42d69f96.js +25 -0
- package/dist/resources/Workers/RectangleGeometryLibrary-cff60d30.js +25 -0
- package/dist/resources/Workers/RuntimeError-4f8ec8a2.js +25 -0
- package/dist/resources/Workers/TerrainEncoding-080f16eb.js +25 -0
- package/dist/resources/Workers/Transforms-d3d3b2a9.js +66 -0
- package/dist/resources/Workers/VertexFormat-9886cb81.js +25 -0
- package/dist/resources/Workers/WallGeometryLibrary-27f90b78.js +25 -0
- package/dist/resources/Workers/WebGLConstants-6da700a2.js +25 -0
- package/dist/resources/Workers/WebMercatorProjection-04ef6bc3.js +25 -0
- package/dist/resources/Workers/_commonjsHelpers-3aae1032-65601a27.js +25 -0
- package/dist/resources/Workers/arrayRemoveDuplicates-6f91355d.js +25 -0
- package/dist/resources/Workers/cesiumWorkerBootstrapper.js +6 -0
- package/dist/resources/Workers/combine-d11b1f00.js +25 -0
- package/dist/resources/Workers/combineGeometry.js +25 -0
- package/dist/resources/Workers/createBoxGeometry.js +25 -0
- package/dist/resources/Workers/createBoxOutlineGeometry.js +25 -0
- package/dist/resources/Workers/createCircleGeometry.js +25 -0
- package/dist/resources/Workers/createCircleOutlineGeometry.js +25 -0
- package/dist/resources/Workers/createCoplanarPolygonGeometry.js +25 -0
- package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +25 -0
- package/dist/resources/Workers/createCorridorGeometry.js +25 -0
- package/dist/resources/Workers/createCorridorOutlineGeometry.js +25 -0
- package/dist/resources/Workers/createCylinderGeometry.js +25 -0
- package/dist/resources/Workers/createCylinderOutlineGeometry.js +25 -0
- package/dist/resources/Workers/createEllipseGeometry.js +25 -0
- package/dist/resources/Workers/createEllipseOutlineGeometry.js +25 -0
- package/dist/resources/Workers/createEllipsoidGeometry.js +25 -0
- package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +25 -0
- package/dist/resources/Workers/createFrustumGeometry.js +25 -0
- package/dist/resources/Workers/createFrustumOutlineGeometry.js +25 -0
- package/dist/resources/Workers/createGeometry.js +25 -0
- package/dist/resources/Workers/createGroundPolylineGeometry.js +25 -0
- package/dist/resources/Workers/createPlaneGeometry.js +25 -0
- package/dist/resources/Workers/createPlaneOutlineGeometry.js +25 -0
- package/dist/resources/Workers/createPolygonGeometry.js +25 -0
- package/dist/resources/Workers/createPolygonOutlineGeometry.js +25 -0
- package/dist/resources/Workers/createPolylineGeometry.js +25 -0
- package/dist/resources/Workers/createPolylineVolumeGeometry.js +25 -0
- package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +25 -0
- package/dist/resources/Workers/createRectangleGeometry.js +25 -0
- package/dist/resources/Workers/createRectangleOutlineGeometry.js +25 -0
- package/dist/resources/Workers/createSimplePolylineGeometry.js +25 -0
- package/dist/resources/Workers/createSphereGeometry.js +25 -0
- package/dist/resources/Workers/createSphereOutlineGeometry.js +25 -0
- package/dist/resources/Workers/createTaskProcessorWorker.js +25 -0
- package/dist/resources/Workers/createVectorTileClampedPolylines.js +25 -0
- package/dist/resources/Workers/createVectorTileGeometries.js +25 -0
- package/dist/resources/Workers/createVectorTilePoints.js +25 -0
- package/dist/resources/Workers/createVectorTilePolygons.js +25 -0
- package/dist/resources/Workers/createVectorTilePolylines.js +25 -0
- package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +25 -0
- package/dist/resources/Workers/createVerticesFromHeightmap.js +27 -0
- package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +25 -0
- package/dist/resources/Workers/createWallGeometry.js +25 -0
- package/dist/resources/Workers/createWallOutlineGeometry.js +25 -0
- package/dist/resources/Workers/decodeDraco.js +25 -0
- package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +25 -0
- package/dist/resources/Workers/defaultValue-97284df2.js +25 -0
- package/dist/resources/Workers/transcodeKTX2.js +25 -0
- package/dist/resources/Workers/transferTypedArrayTest.js +1 -0
- package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +25 -0
- package/dist/resources/static/images/CesiumLogo.png +0 -0
- package/dist/resources/static/images/bingAerial.png +0 -0
- package/dist/resources/static/images/bingAerialLabels.png +0 -0
- package/dist/resources/static/images/bingRoads.png +0 -0
- package/dist/resources/static/images/blueblack.png +0 -0
- package/dist/resources/static/images/circle_blue.png +0 -0
- package/dist/resources/static/images/circle_red.png +0 -0
- package/dist/resources/static/images/circle_yellow.png +0 -0
- package/dist/resources/static/images/cloud.jpg +0 -0
- package/dist/resources/static/images/esriWorldImagery.png +0 -0
- package/dist/resources/static/images/fence.png +0 -0
- package/dist/resources/static/images/gaode_img.png +0 -0
- package/dist/resources/static/images/gnjg.png +0 -0
- package/dist/resources/static/images/google_vec.png +0 -0
- package/dist/resources/static/images/lighting.png +0 -0
- package/dist/resources/static/images/linegradient.png +0 -0
- package/dist/resources/static/images/space_line.png +0 -0
- package/dist/resources/static/images/tdt_ter.png +0 -0
- package/dist/resources/static/images/tdt_vec.png +0 -0
- package/dist/resources/static/images/wallflow.png +0 -0
- package/dist/resources/static/images/wallgradient.png +0 -0
- package/dist/resources/static/js/viewerCesiumNavigationMixin.js +12 -0
- package/package.json +75 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var BASIS=function(){var r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(r=r||__filename),function(e){var t,n,o=void 0!==(e=e||{})?e:{};o.ready=new Promise((function(r,e){t=r,readyPromiseRejectza=e}));var i,a={};for(i in o)o.hasOwnProperty(i)&&(a[i]=o[i]);var u,s,c=[],f=!1,l=!1;f="object"==typeof window,l="function"==typeof importScripts,u="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,s=!f&&!u&&!l;var p,d,h,v,y,m="";u?(m=l?require("path").dirname(m)+"/":__dirname+"/",p=function(r,e){return v||(v=require("fs")),y||(y=require("path")),r=y.normalize(r),v.readFileSync(r,e?null:"utf8")},h=function(r){var e=p(r,!0);return e.buffer||(e=new Uint8Array(e)),$(e.buffer),e},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),c=process.argv.slice(2),process.on("uncaughtException",(function(r){if(!(r instanceof Ne))throw r})),process.on("unhandledRejection",er),o.inspect=function(){return"[Emscripten Module object]"}):s?("undefined"!=typeof read&&(p=function(r){return read(r)}),h=function(r){var e;return"function"==typeof readbuffer?new Uint8Array(readbuffer(r)):($("object"==typeof(e=read(r,"binary"))),e)},"undefined"!=typeof scriptArgs?c=scriptArgs:void 0!==arguments&&(c=arguments),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(f||l)&&(l?m=self.location.href:"undefined"!=typeof document&&document.currentScript&&(m=document.currentScript.src),r&&(m=r),m=0!==m.indexOf("blob:")?m.substr(0,m.lastIndexOf("/")+1):"",p=function(r){var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText},l&&(h=function(r){var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),d=function(r,e,t){var n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):t()},n.onerror=t,n.send(null)});var g=o.print||console.log.bind(console),w=o.printErr||console.warn.bind(console);for(i in a)a.hasOwnProperty(i)&&(o[i]=a[i]);a=null,o.arguments&&(c=o.arguments),o.thisProgram&&o.thisProgram,o.quit&&o.quit;var T,b;o.wasmBinary&&(T=o.wasmBinary),o.noExitRuntime,"object"!=typeof WebAssembly&&er("no native wasm support detected");var C=!1;function $(r,e){r||er("Assertion failed: "+e)}var P="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function A(r,e,t){for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.subarray&&P)return P.decode(r.subarray(e,o));for(var i="";e<o;){var a=r[e++];if(128&a){var u=63&r[e++];if(192!=(224&a)){var s=63&r[e++];if((a=224==(240&a)?(15&a)<<12|u<<6|s:(7&a)<<18|u<<12|s<<6|63&r[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|u)}else i+=String.fromCharCode(a)}return i}function _(r,e){return r?A(E,r,e):""}var S,W,E,F,k,O,j,R,I,x="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function D(r,e){for(var t=r,n=t>>1,o=n+e/2;!(n>=o)&&k[n];)++n;if((t=n<<1)-r>32&&x)return x.decode(E.subarray(r,t));for(var i="",a=0;!(a>=e/2);++a){var u=F[r+2*a>>1];if(0==u)break;i+=String.fromCharCode(u)}return i}function U(r,e,t){if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=e,o=(t-=2)<2*r.length?t/2:r.length,i=0;i<o;++i){var a=r.charCodeAt(i);F[e>>1]=a,e+=2}return F[e>>1]=0,e-n}function B(r){return 2*r.length}function M(r,e){for(var t=0,n="";!(t>=e/4);){var o=O[r+4*t>>2];if(0==o)break;if(++t,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function V(r,e,t){if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=e,o=n+t-4,i=0;i<r.length;++i){var a=r.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&r.charCodeAt(++i)),O[e>>2]=a,(e+=4)+4>o)break}return O[e>>2]=0,e-n}function H(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e}function q(r,e){return r%e>0&&(r+=e-r%e),r}function z(r){S=r,o.HEAP8=W=new Int8Array(r),o.HEAP16=F=new Int16Array(r),o.HEAP32=O=new Int32Array(r),o.HEAPU8=E=new Uint8Array(r),o.HEAPU16=k=new Uint16Array(r),o.HEAPU32=j=new Uint32Array(r),o.HEAPF32=R=new Float32Array(r),o.HEAPF64=I=new Float64Array(r)}o.INITIAL_MEMORY;var N,G=[],L=[],X=[],J=[];function K(r){G.unshift(r)}function Q(r){J.unshift(r)}var Y=0,Z=null,rr=null;function er(r){o.onAbort&&o.onAbort(r),w(r+=""),C=!0,r="abort("+r+"). Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(r);throw n(e),e}function tr(r,e){return String.prototype.startsWith?r.startsWith(e):0===r.indexOf(e)}o.preloadedImages={},o.preloadedAudios={};var nr="data:application/octet-stream;base64,";function or(r){return tr(r,nr)}var ir="file://";function ar(r){return tr(r,ir)}var ur="basis_transcoder.wasm";function sr(r){try{if(r==ur&&T)return new Uint8Array(T);if(h)return h(r);throw"both async and sync fetching of the wasm failed"}catch(r){er(r)}}function cr(r){for(;r.length>0;){var e=r.shift();if("function"!=typeof e){var t=e.func;"number"==typeof t?void 0===e.arg?N.get(t)():N.get(t)(e.arg):t(void 0===e.arg?null:e.arg)}else e(o)}}or(ur)||(ur=function(r){return o.locateFile?o.locateFile(r,m):m+r}(ur));var fr={};function lr(r){for(;r.length;){var e=r.pop();r.pop()(e)}}function pr(r){return this.fromWireType(j[r>>2])}var dr={},hr={},vr={},yr=48,mr=57;function gr(r){if(void 0===r)return"_unknown";var e=(r=r.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=yr&&e<=mr?"_"+r:r}function wr(r,e){return r=gr(r),new Function("body","return function "+r+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(e)}function Tr(r,e){var t=wr(e,(function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},t}var br=void 0;function Cr(r){throw new br(r)}function $r(r,e,t){function n(e){var n=t(e);n.length!==r.length&&Cr("Mismatched type converter count");for(var o=0;o<r.length;++o)Er(r[o],n[o])}r.forEach((function(r){vr[r]=e}));var o=new Array(e.length),i=[],a=0;e.forEach((function(r,e){hr.hasOwnProperty(r)?o[e]=hr[r]:(i.push(r),dr.hasOwnProperty(r)||(dr[r]=[]),dr[r].push((function(){o[e]=hr[r],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function Pr(r){switch(r){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+r)}}var Ar=void 0;function _r(r){for(var e="",t=r;E[t];)e+=Ar[E[t++]];return e}var Sr=void 0;function Wr(r){throw new Sr(r)}function Er(r,e,t){if(t=t||{},!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(r||Wr('type "'+n+'" must have a positive integer typeid pointer'),hr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;Wr("Cannot register type '"+n+"' twice")}if(hr[r]=e,delete vr[r],dr.hasOwnProperty(r)){var o=dr[r];delete dr[r],o.forEach((function(r){r()}))}}function Fr(r){if(!(this instanceof zr))return!1;if(!(r instanceof zr))return!1;for(var e=this.$$.ptrType.registeredClass,t=this.$$.ptr,n=r.$$.ptrType.registeredClass,o=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&t===o}function kr(r){return{count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}}function Or(r){Wr(r.$$.ptrType.registeredClass.name+" instance already deleted")}var jr=!1;function Rr(r){}function Ir(r){r.count.value-=1,0===r.count.value&&function(r){r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)}(r)}function xr(r){return"undefined"==typeof FinalizationGroup?(xr=function(r){return r},r):(jr=new FinalizationGroup((function(r){for(var e=r.next();!e.done;e=r.next()){var t=e.value;t.ptr?Ir(t):console.warn("object already deleted: "+t.ptr)}})),xr=function(r){return jr.register(r,r.$$,r.$$),r},Rr=function(r){jr.unregister(r.$$)},xr(r))}function Dr(){if(this.$$.ptr||Or(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=xr(Object.create(Object.getPrototypeOf(this),{$$:{value:kr(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r}function Ur(){this.$$.ptr||Or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Wr("Object already scheduled for deletion"),Rr(this),Ir(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Br(){return!this.$$.ptr}var Mr=void 0,Vr=[];function Hr(){for(;Vr.length;){var r=Vr.pop();r.$$.deleteScheduled=!1,r.delete()}}function qr(){return this.$$.ptr||Or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Wr("Object already scheduled for deletion"),Vr.push(this),1===Vr.length&&Mr&&Mr(Hr),this.$$.deleteScheduled=!0,this}function zr(){}var Nr={};function Gr(r,e,t){if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(){return r[e].overloadTable.hasOwnProperty(arguments.length)||Wr("Function '"+t+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+r[e].overloadTable+")!"),r[e].overloadTable[arguments.length].apply(this,arguments)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}}function Lr(r,e,t){o.hasOwnProperty(r)?((void 0===t||void 0!==o[r].overloadTable&&void 0!==o[r].overloadTable[t])&&Wr("Cannot register public name '"+r+"' twice"),Gr(o,r,r),o.hasOwnProperty(t)&&Wr("Cannot register multiple overloads of a function with the same number of arguments ("+t+")!"),o[r].overloadTable[t]=e):(o[r]=e,void 0!==t&&(o[r].numArguments=t))}function Xr(r,e,t,n,o,i,a,u){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=u,this.pureVirtualFunctions=[]}function Jr(r,e,t){for(;e!==t;)e.upcast||Wr("Expected null or instance of "+t.name+", got an instance of "+e.name),r=e.upcast(r),e=e.baseClass;return r}function Kr(r,e){if(null===e)return this.isReference&&Wr("null is not a valid "+this.name),0;e.$$||Wr('Cannot pass "'+We(e)+'" as a '+this.name),e.$$.ptr||Wr("Cannot pass deleted object as a pointer of type "+this.name);var t=e.$$.ptrType.registeredClass;return Jr(e.$$.ptr,t,this.registeredClass)}function Qr(r,e){var t;if(null===e)return this.isReference&&Wr("null is not a valid "+this.name),this.isSmartPointer?(t=this.rawConstructor(),null!==r&&r.push(this.rawDestructor,t),t):0;e.$$||Wr('Cannot pass "'+We(e)+'" as a '+this.name),e.$$.ptr||Wr("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&Wr("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(t=Jr(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&Wr("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:Wr("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var o=e.clone();t=this.rawShare(t,Ae((function(){o.delete()}))),null!==r&&r.push(this.rawDestructor,t)}break;default:Wr("Unsupporting sharing policy")}return t}function Yr(r,e){if(null===e)return this.isReference&&Wr("null is not a valid "+this.name),0;e.$$||Wr('Cannot pass "'+We(e)+'" as a '+this.name),e.$$.ptr||Wr("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&Wr("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var t=e.$$.ptrType.registeredClass;return Jr(e.$$.ptr,t,this.registeredClass)}function Zr(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r}function re(r){this.rawDestructor&&this.rawDestructor(r)}function ee(r){null!==r&&r.delete()}function te(r,e,t){if(e===t)return r;if(void 0===t.baseClass)return null;var n=te(r,e,t.baseClass);return null===n?null:t.downcast(n)}function ne(){return Object.keys(ae).length}function oe(){var r=[];for(var e in ae)ae.hasOwnProperty(e)&&r.push(ae[e]);return r}function ie(r){Mr=r,Vr.length&&Mr&&Mr(Hr)}var ae={};function ue(r,e){return e=function(r,e){for(void 0===e&&Wr("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e}(r,e),ae[e]}function se(r,e){return e.ptrType&&e.ptr||Cr("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&Cr("Both smartPtrType and smartPtr must be specified"),e.count={value:1},xr(Object.create(r,{$$:{value:e}}))}function ce(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=ue(this.registeredClass,e);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function o(){return this.isSmartPointer?se(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):se(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var i,a=this.registeredClass.getActualType(e),u=Nr[a];if(!u)return o.call(this);i=this.isConst?u.constPointerType:u.pointerType;var s=te(e,this.registeredClass,i.registeredClass);return null===s?o.call(this):this.isSmartPointer?se(i.registeredClass.instancePrototype,{ptrType:i,ptr:s,smartPtrType:this,smartPtr:r}):se(i.registeredClass.instancePrototype,{ptrType:i,ptr:s})}function fe(r,e,t,n,o,i,a,u,s,c,f){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=u,this.rawConstructor=s,this.rawShare=c,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=Qr:n?(this.toWireType=Kr,this.destructorFunction=null):(this.toWireType=Yr,this.destructorFunction=null)}function le(r,e,t){o.hasOwnProperty(r)||Cr("Replacing nonexistant public symbol"),void 0!==o[r].overloadTable&&void 0!==t?o[r].overloadTable[t]=e:(o[r]=e,o[r].argCount=t)}function pe(r,e,t){return-1!=r.indexOf("j")?function(r,e,t){var n=o["dynCall_"+r];return t&&t.length?n.apply(null,[e].concat(t)):n.call(null,e)}(r,e,t):N.get(e).apply(null,t)}function de(r,e){var t=-1!=(r=_r(r)).indexOf("j")?function(r,e){var t=[];return function(){t.length=arguments.length;for(var n=0;n<arguments.length;n++)t[n]=arguments[n];return pe(r,e,t)}}(r,e):N.get(e);return"function"!=typeof t&&Wr("unknown function pointer with signature "+r+": "+e),t}var he=void 0;function ve(r){var e=ze(r),t=_r(e);return qe(e),t}function ye(r,e){var t=[],n={};throw e.forEach((function r(e){n[e]||hr[e]||(vr[e]?vr[e].forEach(r):(t.push(e),n[e]=!0))})),new he(r+": "+t.map(ve).join([", "]))}function me(r,e){for(var t=[],n=0;n<r;n++)t.push(O[(e>>2)+n]);return t}function ge(r,e){if(!(r instanceof Function))throw new TypeError("new_ called with constructor type "+typeof r+" which is not a function");var t=wr(r.name||"unknownFunctionName",(function(){}));t.prototype=r.prototype;var n=new t,o=r.apply(n,e);return o instanceof Object?o:n}function we(r,e,t,n,o){var i=e.length;i<2&&Wr("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&null!==t,u=!1,s=1;s<e.length;++s)if(null!==e[s]&&void 0===e[s].destructorFunction){u=!0;break}var c="void"!==e[0].name,f="",l="";for(s=0;s<i-2;++s)f+=(0!==s?", ":"")+"arg"+s,l+=(0!==s?", ":"")+"arg"+s+"Wired";var p="return function "+gr(r)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+r+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";u&&(p+="var destructors = [];\n");var d=u?"destructors":"null",h=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[Wr,n,o,lr,e[0],e[1]];for(a&&(p+="var thisWired = classParam.toWireType("+d+", this);\n"),s=0;s<i-2;++s)p+="var arg"+s+"Wired = argType"+s+".toWireType("+d+", arg"+s+"); // "+e[s+2].name+"\n",h.push("argType"+s),v.push(e[s+2]);if(a&&(l="thisWired"+(l.length>0?", ":"")+l),p+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",u)p+="runDestructors(destructors);\n";else for(s=a?1:2;s<e.length;++s){var y=1===s?"thisWired":"arg"+(s-2)+"Wired";null!==e[s].destructorFunction&&(p+=y+"_dtor("+y+"); // "+e[s].name+"\n",h.push(y+"_dtor"),v.push(e[s].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",h.push(p),ge(Function,h).apply(null,v)}var Te=[],be=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Ce(r){r>4&&0==--be[r].refcount&&(be[r]=void 0,Te.push(r))}function $e(){for(var r=0,e=5;e<be.length;++e)void 0!==be[e]&&++r;return r}function Pe(){for(var r=5;r<be.length;++r)if(void 0!==be[r])return be[r];return null}function Ae(r){switch(r){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=Te.length?Te.pop():be.length;return be[e]={refcount:1,value:r},e}}function _e(r,e,t){switch(e){case 0:return function(r){var e=t?W:E;return this.fromWireType(e[r])};case 1:return function(r){var e=t?F:k;return this.fromWireType(e[r>>1])};case 2:return function(r){var e=t?O:j;return this.fromWireType(e[r>>2])};default:throw new TypeError("Unknown integer type: "+r)}}function Se(r,e){var t=hr[r];return void 0===t&&Wr(e+" has unknown type "+ve(r)),t}function We(r){if(null===r)return"null";var e=typeof r;return"object"===e||"array"===e||"function"===e?r.toString():""+r}function Ee(r,e){switch(e){case 2:return function(r){return this.fromWireType(R[r>>2])};case 3:return function(r){return this.fromWireType(I[r>>3])};default:throw new TypeError("Unknown float type: "+r)}}function Fe(r,e,t){switch(e){case 0:return t?function(r){return W[r]}:function(r){return E[r]};case 1:return t?function(r){return F[r>>1]}:function(r){return k[r>>1]};case 2:return t?function(r){return O[r>>2]}:function(r){return j[r>>2]};default:throw new TypeError("Unknown integer type: "+r)}}function ke(r){return r||Wr("Cannot use deleted val. handle = "+r),be[r].value}var Oe={};function je(r){var e=Oe[r];return void 0===e?_r(r):e}var Re=[];function Ie(){return"object"==typeof globalThis?globalThis:Function("return this")()}function xe(r){for(var e="",t=0;t<r;++t)e+=(0!==t?", ":"")+"arg"+t;var n="return function emval_allocator_"+r+"(constructor, argTypes, args) {\n";for(t=0;t<r;++t)n+="var argType"+t+" = requireRegisteredType(Module['HEAP32'][(argTypes >>> 2) + "+t+'], "parameter '+t+'");\nvar arg'+t+" = argType"+t+".readValueFromPointer(args);\nargs += argType"+t+"['argPackAdvance'];\n";return n+="var obj = new constructor("+e+");\nreturn __emval_register(obj);\n}\n",new Function("requireRegisteredType","Module","__emval_register",n)(Se,o,Ae)}var De={};function Ue(r){try{return b.grow(r-S.byteLength+65535>>>16),z(b.buffer),1}catch(r){}}var Be={mappings:{},buffers:[null,[],[]],printChar:function(r,e){var t=Be.buffers[r];0===e||10===e?((1===r?g:w)(A(t,0)),t.length=0):t.push(e)},varargs:void 0,get:function(){return Be.varargs+=4,O[Be.varargs-4>>2]},getStr:function(r){return _(r)},get64:function(r,e){return r}};br=o.InternalError=Tr(Error,"InternalError"),function(){for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Ar=r}(),Sr=o.BindingError=Tr(Error,"BindingError"),zr.prototype.isAliasOf=Fr,zr.prototype.clone=Dr,zr.prototype.delete=Ur,zr.prototype.isDeleted=Br,zr.prototype.deleteLater=qr,fe.prototype.getPointee=Zr,fe.prototype.destructor=re,fe.prototype.argPackAdvance=8,fe.prototype.readValueFromPointer=pr,fe.prototype.deleteObject=ee,fe.prototype.fromWireType=ce,o.getInheritedInstanceCount=ne,o.getLiveInheritedInstances=oe,o.flushPendingDeletes=Hr,o.setDelayFunction=ie,he=o.UnboundTypeError=Tr(Error,"UnboundTypeError"),o.count_emval_handles=$e,o.get_first_emval=Pe;var Me,Ve={t:function(r){var e=fr[r];delete fr[r];var t=e.rawConstructor,n=e.rawDestructor,o=e.fields;$r([r],o.map((function(r){return r.getterReturnType})).concat(o.map((function(r){return r.setterArgumentType}))),(function(r){var i={};return o.forEach((function(e,t){var n=e.fieldName,a=r[t],u=e.getter,s=e.getterContext,c=r[t+o.length],f=e.setter,l=e.setterContext;i[n]={read:function(r){return a.fromWireType(u(s,r))},write:function(r,e){var t=[];f(l,r,c.toWireType(t,e)),lr(t)}}})),[{name:e.name,fromWireType:function(r){var e={};for(var t in i)e[t]=i[t].read(r);return n(r),e},toWireType:function(r,e){for(var o in i)if(!(o in e))throw new TypeError('Missing field: "'+o+'"');var a=t();for(o in i)i[o].write(a,e[o]);return null!==r&&r.push(n,a),a},argPackAdvance:8,readValueFromPointer:pr,destructorFunction:n}]}))},I:function(r,e,t,n,o){var i=Pr(t);Er(r,{name:e=_r(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?n:o},argPackAdvance:8,readValueFromPointer:function(r){var n;if(1===t)n=W;else if(2===t)n=F;else{if(4!==t)throw new TypeError("Unknown boolean type size: "+e);n=O}return this.fromWireType(n[r>>i])},destructorFunction:null})},x:function(r,e,t,n,o,i,a,u,s,c,f,l,p){f=_r(f),i=de(o,i),u&&(u=de(a,u)),c&&(c=de(s,c)),p=de(l,p);var d=gr(f);Lr(d,(function(){ye("Cannot construct "+f+" due to unbound types",[n])})),$r([r,e,t],n?[n]:[],(function(e){var t,o;e=e[0],o=n?(t=e.registeredClass).instancePrototype:zr.prototype;var a=wr(d,(function(){if(Object.getPrototypeOf(this)!==s)throw new Sr("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new Sr(f+" has no accessible constructor");var r=l.constructor_body[arguments.length];if(void 0===r)throw new Sr("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(l.constructor_body).toString()+") parameters instead!");return r.apply(this,arguments)})),s=Object.create(o,{constructor:{value:a}});a.prototype=s;var l=new Xr(f,a,s,p,t,i,u,c),h=new fe(f,l,!0,!1,!1),v=new fe(f+"*",l,!1,!1,!1),y=new fe(f+" const*",l,!1,!0,!1);return Nr[r]={pointerType:v,constPointerType:y},le(d,a),[h,v,y]}))},w:function(r,e,t,n,o,i){$(e>0);var a=me(e,t);o=de(n,o);var u=[i],s=[];$r([],[r],(function(r){var t="constructor "+(r=r[0]).name;if(void 0===r.registeredClass.constructor_body&&(r.registeredClass.constructor_body=[]),void 0!==r.registeredClass.constructor_body[e-1])throw new Sr("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+r.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return r.registeredClass.constructor_body[e-1]=function(){ye("Cannot construct "+r.name+" due to unbound types",a)},$r([],a,(function(n){return r.registeredClass.constructor_body[e-1]=function(){arguments.length!==e-1&&Wr(t+" called with "+arguments.length+" arguments, expected "+(e-1)),s.length=0,u.length=e;for(var r=1;r<e;++r)u[r]=n[r].toWireType(s,arguments[r-1]);var i=o.apply(null,u);return lr(s),n[0].fromWireType(i)},[]})),[]}))},d:function(r,e,t,n,o,i,a,u){var s=me(t,n);e=_r(e),i=de(o,i),$r([],[r],(function(r){var n=(r=r[0]).name+"."+e;function o(){ye("Cannot call "+n+" due to unbound types",s)}u&&r.registeredClass.pureVirtualFunctions.push(e);var c=r.registeredClass.instancePrototype,f=c[e];return void 0===f||void 0===f.overloadTable&&f.className!==r.name&&f.argCount===t-2?(o.argCount=t-2,o.className=r.name,c[e]=o):(Gr(c,e,n),c[e].overloadTable[t-2]=o),$r([],s,(function(o){var u=we(n,o,r,i,a);return void 0===c[e].overloadTable?(u.argCount=t-2,c[e]=u):c[e].overloadTable[t-2]=u,[]})),[]}))},k:function(r,e,t){r=_r(r),$r([],[e],(function(e){return e=e[0],o[r]=e.fromWireType(t),[]}))},H:function(r,e){Er(r,{name:e=_r(e),fromWireType:function(r){var e=be[r].value;return Ce(r),e},toWireType:function(r,e){return Ae(e)},argPackAdvance:8,readValueFromPointer:pr,destructorFunction:null})},n:function(r,e,t,n){var o=Pr(t);function i(){}e=_r(e),i.values={},Er(r,{name:e,constructor:i,fromWireType:function(r){return this.constructor.values[r]},toWireType:function(r,e){return e.value},argPackAdvance:8,readValueFromPointer:_e(e,o,n),destructorFunction:null}),Lr(e,i)},a:function(r,e,t){var n=Se(r,"enum");e=_r(e);var o=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:wr(n.name+"_"+e,(function(){}))}});o.values[t]=i,o[e]=i},A:function(r,e,t){var n=Pr(t);Er(r,{name:e=_r(e),fromWireType:function(r){return r},toWireType:function(r,e){if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError('Cannot convert "'+We(e)+'" to '+this.name);return e},argPackAdvance:8,readValueFromPointer:Ee(e,n),destructorFunction:null})},i:function(r,e,t,n,o,i){var a=me(e,t);r=_r(r),o=de(n,o),Lr(r,(function(){ye("Cannot call "+r+" due to unbound types",a)}),e-1),$r([],a,(function(t){var n=[t[0],null].concat(t.slice(1));return le(r,we(r,n,null,o,i),e-1),[]}))},j:function(r,e,t,n,o){e=_r(e),-1===o&&(o=4294967295);var i=Pr(t),a=function(r){return r};if(0===n){var u=32-8*t;a=function(r){return r<<u>>>u}}var s=-1!=e.indexOf("unsigned");Er(r,{name:e,fromWireType:a,toWireType:function(r,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+We(t)+'" to '+this.name);if(t<n||t>o)throw new TypeError('Passing a number "'+We(t)+'" from JS side to C/C++ side to an argument of type "'+e+'", which is outside the valid range ['+n+", "+o+"]!");return s?t>>>0:0|t},argPackAdvance:8,readValueFromPointer:Fe(e,i,0!==n),destructorFunction:null})},h:function(r,e,t){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(r){var e=j,t=e[r>>=2],o=e[r+1];return new n(S,o,t)}Er(r,{name:t=_r(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},B:function(r,e){var t="std::string"===(e=_r(e));Er(r,{name:e,fromWireType:function(r){var e,n=j[r>>2];if(t)for(var o=r+4,i=0;i<=n;++i){var a=r+4+i;if(i==n||0==E[a]){var u=_(o,a-o);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),o=a+1}}else{var s=new Array(n);for(i=0;i<n;++i)s[i]=String.fromCharCode(E[r+4+i]);e=s.join("")}return qe(r),e},toWireType:function(r,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||Wr("Cannot pass non-string to std::string");var o=(t&&n?function(){return function(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&r.charCodeAt(++t)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}(e)}:function(){return e.length})(),i=He(4+o+1);if(j[i>>2]=o,t&&n)!function(r,e,t){(function(r,e,t,n){if(!(n>0))return 0;for(var o=t,i=t+n-1,a=0;a<r.length;++a){var u=r.charCodeAt(a);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++a)),u<=127){if(t>=i)break;e[t++]=u}else if(u<=2047){if(t+1>=i)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=i)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=i)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u}}e[t]=0})(r,E,e,t)}(e,i+4,o+1);else if(n)for(var a=0;a<o;++a){var u=e.charCodeAt(a);u>255&&(qe(i),Wr("String has UTF-16 code units that do not fit in 8 bits")),E[i+4+a]=u}else for(a=0;a<o;++a)E[i+4+a]=e[a];return null!==r&&r.push(qe,i),i},argPackAdvance:8,readValueFromPointer:pr,destructorFunction:function(r){qe(r)}})},v:function(r,e,t){var n,o,i,a,u;t=_r(t),2===e?(n=D,o=U,a=B,i=function(){return k},u=1):4===e&&(n=M,o=V,a=H,i=function(){return j},u=2),Er(r,{name:t,fromWireType:function(r){for(var t,o=j[r>>2],a=i(),s=r+4,c=0;c<=o;++c){var f=r+4+c*e;if(c==o||0==a[f>>u]){var l=n(s,f-s);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),s=f+e}}return qe(r),t},toWireType:function(r,n){"string"!=typeof n&&Wr("Cannot pass non-string to C++ string type "+t);var i=a(n),s=He(4+i+e);return j[s>>2]=i>>u,o(n,s+4,i+e),null!==r&&r.push(qe,s),s},argPackAdvance:8,readValueFromPointer:pr,destructorFunction:function(r){qe(r)}})},u:function(r,e,t,n,o,i){fr[r]={name:_r(e),rawConstructor:de(t,n),rawDestructor:de(o,i),fields:[]}},c:function(r,e,t,n,o,i,a,u,s,c){fr[r].fields.push({fieldName:_r(e),getterReturnType:t,getter:de(n,o),getterContext:i,setterArgumentType:a,setter:de(u,s),setterContext:c})},J:function(r,e){Er(r,{isVoid:!0,name:e=_r(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(r,e){}})},m:function(r,e,t){r=ke(r),e=Se(e,"emval::as");var n=[],o=Ae(n);return O[t>>2]=o,e.toWireType(n,r)},s:function(r,e,t,n){(r=Re[r])(e=ke(e),t=je(t),null,n)},b:Ce,y:function(r){return 0===r?Ae(Ie()):(r=je(r),Ae(Ie()[r]))},p:function(r,e){for(var t=function(r,e){for(var t=new Array(r),n=0;n<r;++n)t[n]=Se(O[(e>>2)+n],"parameter "+n);return t}(r,e),n=t[0],o=n.name+"_$"+t.slice(1).map((function(r){return r.name})).join("_")+"$",i=["retType"],a=[n],u="",s=0;s<r-1;++s)u+=(0!==s?", ":"")+"arg"+s,i.push("argType"+s),a.push(t[1+s]);var c="return function "+gr("methodCaller_"+o)+"(handle, name, destructors, args) {\n",f=0;for(s=0;s<r-1;++s)c+=" var arg"+s+" = argType"+s+".readValueFromPointer(args"+(f?"+"+f:"")+");\n",f+=t[s+1].argPackAdvance;for(c+=" var rv = handle[name]("+u+");\n",s=0;s<r-1;++s)t[s+1].deleteObject&&(c+=" argType"+s+".deleteObject(arg"+s+");\n");return n.isVoid||(c+=" return retType.toWireType(destructors, rv);\n"),c+="};\n",i.push(c),function(r){var e=Re.length;return Re.push(r),e}(ge(Function,i).apply(null,a))},r:function(r){return r=je(r),Ae(o[r])},e:function(r,e){return Ae((r=ke(r))[e=ke(e)])},g:function(r){r>4&&(be[r].refcount+=1)},q:function(r,e,t,n){r=ke(r);var o=De[e];return o||(o=xe(e),De[e]=o),o(r,t,n)},f:function(r){return Ae(je(r))},l:function(r){lr(be[r].value),Ce(r)},o:function(){er()},E:function(r,e,t){E.copyWithin(r,e,e+t)},F:function(r){var e=E.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var o=e*(1+.2/n);if(o=Math.min(o,r+100663296),Ue(Math.min(t,q(Math.max(r,o),65536))))return!0}return!1},G:function(r){return 0},C:function(r,e,t,n,o){},z:function(r,e,t,n){for(var o=0,i=0;i<t;i++){for(var a=O[e+8*i>>2],u=O[e+(8*i+4)>>2],s=0;s<u;s++)Be.printChar(r,E[a+s]);o+=u}return O[n>>2]=o,0},D:function(r){}},He=(function(){var r={a:Ve};function e(r,e){var t=r.exports;o.asm=t,z((b=o.asm.K).buffer),N=o.asm.O,function(r){L.unshift(r)}(o.asm.L),function(r){if(Y--,o.monitorRunDependencies&&o.monitorRunDependencies(Y),0==Y&&(null!==Z&&(clearInterval(Z),Z=null),rr)){var e=rr;rr=null,e()}}()}function t(r){e(r.instance)}function i(e){return function(){if(!T&&(f||l)){if("function"==typeof fetch&&!ar(ur))return fetch(ur,{credentials:"same-origin"}).then((function(r){if(!r.ok)throw"failed to load wasm binary file at '"+ur+"'";return r.arrayBuffer()})).catch((function(){return sr(ur)}));if(d)return new Promise((function(r,e){d(ur,(function(e){r(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return sr(ur)}))}().then((function(e){return WebAssembly.instantiate(e,r)})).then(e,(function(r){w("failed to asynchronously prepare wasm: "+r),er(r)}))}if(Y++,o.monitorRunDependencies&&o.monitorRunDependencies(Y),o.instantiateWasm)try{return o.instantiateWasm(r,e)}catch(r){return w("Module.instantiateWasm callback failed with error: "+r),!1}(T||"function"!=typeof WebAssembly.instantiateStreaming||or(ur)||ar(ur)||"function"!=typeof fetch?i(t):fetch(ur,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,r).then(t,(function(r){return w("wasm streaming compile failed: "+r),w("falling back to ArrayBuffer instantiation"),i(t)}))}))).catch(n)}(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.L).apply(null,arguments)},o._malloc=function(){return(He=o._malloc=o.asm.M).apply(null,arguments)}),qe=o._free=function(){return(qe=o._free=o.asm.N).apply(null,arguments)},ze=o.___getTypeName=function(){return(ze=o.___getTypeName=o.asm.P).apply(null,arguments)};function Ne(r){this.name="ExitStatus",this.message="Program terminated with exit("+r+")",this.status=r}function Ge(r){function e(){Me||(Me=!0,o.calledRun=!0,C||(cr(L),cr(X),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)Q(o.postRun.shift());cr(J)}()))}r=r||c,Y>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)K(o.preRun.shift());cr(G)}(),Y>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),e()}),1)):e()))}if(o.___embind_register_native_and_builtin_types=function(){return(o.___embind_register_native_and_builtin_types=o.asm.Q).apply(null,arguments)},o.dynCall_jiji=function(){return(o.dynCall_jiji=o.asm.R).apply(null,arguments)},rr=function r(){Me||Ge(),Me||(rr=r)},o.run=Ge,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Ge(),e.ready}}();"object"==typeof exports&&"object"==typeof module?module.exports=BASIS:"function"==typeof define&&define.amd?define([],(function(){return BASIS})):"object"==typeof exports&&(exports.BASIS=BASIS);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.owns=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){return t==Array.prototype||t==Object.prototype||(t[e]=r.value),t},$jscomp.getGlobal=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var r=t[e];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(t,e){var r=$jscomp.propertyToPolyfillSymbol[e];return null==r?t[e]:void 0!==(r=t[r])?r:t[e]};$jscomp.polyfill=function(t,e,r,n){e&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,e,r,n):$jscomp.polyfillUnisolated(t,e,r,n))},$jscomp.polyfillUnisolated=function(t,e,r,n){for(r=$jscomp.global,t=t.split("."),n=0;n<t.length-1;n++){var o=t[n];if(!(o in r))return;r=r[o]}(e=e(n=r[t=t[t.length-1]]))!=n&&null!=e&&$jscomp.defineProperty(r,t,{configurable:!0,writable:!0,value:e})},$jscomp.polyfillIsolated=function(t,e,r,n){var o=t.split(".");t=1===o.length,n=o[0],n=!t&&n in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var _=0;_<o.length-1;_++){var i=o[_];if(!(i in n))return;n=n[i]}o=o[o.length-1],null!=(e=e(r=$jscomp.IS_SYMBOL_NATIVE&&"es6"===r?n[o]:null))&&(t?$jscomp.defineProperty($jscomp.polyfills,o,{configurable:!0,writable:!0,value:e}):e!==r&&(void 0===$jscomp.propertyToPolyfillSymbol[o]&&(r=1e9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[o]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(o):$jscomp.POLYFILL_PREFIX+r+"$"+o),$jscomp.defineProperty(n,$jscomp.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:e})))},$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(t,e){for(var r=1;r<arguments.length;r++){var n=arguments[r];if(n)for(var o in n)$jscomp.owns(n,o)&&(t[o]=n[o])}return t},$jscomp.polyfill("Object.assign",(function(t){return t||$jscomp.assign}),"es6","es3"),$jscomp.arrayIteratorImpl=function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}},$jscomp.arrayIterator=function(t){return{next:$jscomp.arrayIteratorImpl(t)}},$jscomp.makeIterator=function(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):$jscomp.arrayIterator(t)},$jscomp.polyfill("Promise",(function(t){function e(){this.batch_=null}function r(t){return t instanceof o?t:new o((function(e,r){e(t)}))}if(t&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&void 0===$jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return t;e.prototype.asyncExecute=function(t){if(null==this.batch_){this.batch_=[];var e=this;this.asyncExecuteFunction((function(){e.executeBatch_()}))}this.batch_.push(t)};var n=$jscomp.global.setTimeout;e.prototype.asyncExecuteFunction=function(t){n(t,0)},e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var t=this.batch_;this.batch_=[];for(var e=0;e<t.length;++e){var r=t[e];t[e]=null;try{r()}catch(t){this.asyncThrow_(t)}}}this.batch_=null},e.prototype.asyncThrow_=function(t){this.asyncExecuteFunction((function(){throw t}))};var o=function(t){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var e=this.createResolveAndReject_();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}};o.prototype.createResolveAndReject_=function(){function t(t){return function(n){r||(r=!0,t.call(e,n))}}var e=this,r=!1;return{resolve:t(this.resolveTo_),reject:t(this.reject_)}},o.prototype.resolveTo_=function(t){if(t===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof o)this.settleSameAsPromise_(t);else{t:switch(typeof t){case"object":var e=null!=t;break t;case"function":e=!0;break t;default:e=!1}e?this.resolveToNonPromiseObj_(t):this.fulfill_(t)}},o.prototype.resolveToNonPromiseObj_=function(t){var e=void 0;try{e=t.then}catch(t){return void this.reject_(t)}"function"==typeof e?this.settleSameAsThenable_(e,t):this.fulfill_(t)},o.prototype.reject_=function(t){this.settle_(2,t)},o.prototype.fulfill_=function(t){this.settle_(1,t)},o.prototype.settle_=function(t,e){if(0!=this.state_)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.state_);this.state_=t,this.result_=e,2===this.state_&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var t=this;n((function(){if(t.notifyUnhandledRejection_()){var e=$jscomp.global.console;void 0!==e&&e.error(t.result_)}}),1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var t=$jscomp.global.CustomEvent,e=$jscomp.global.Event,r=$jscomp.global.dispatchEvent;return void 0===r||("function"==typeof t?t=new t("unhandledrejection",{cancelable:!0}):"function"==typeof e?t=new e("unhandledrejection",{cancelable:!0}):(t=$jscomp.global.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,t),t.promise=this,t.reason=this.result_,r(t))},o.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var t=0;t<this.onSettledCallbacks_.length;++t)_.asyncExecute(this.onSettledCallbacks_[t]);this.onSettledCallbacks_=null}};var _=new e;return o.prototype.settleSameAsPromise_=function(t){var e=this.createResolveAndReject_();t.callWhenSettled_(e.resolve,e.reject)},o.prototype.settleSameAsThenable_=function(t,e){var r=this.createResolveAndReject_();try{t.call(e,r.resolve,r.reject)}catch(t){r.reject(t)}},o.prototype.then=function(t,e){function r(t,e){return"function"==typeof t?function(e){try{n(t(e))}catch(t){_(t)}}:e}var n,_,i=new o((function(t,e){n=t,_=e}));return this.callWhenSettled_(r(t,n),r(e,_)),i},o.prototype.catch=function(t){return this.then(void 0,t)},o.prototype.callWhenSettled_=function(t,e){function r(){switch(n.state_){case 1:t(n.result_);break;case 2:e(n.result_);break;default:throw Error("Unexpected state: "+n.state_)}}var n=this;null==this.onSettledCallbacks_?_.asyncExecute(r):this.onSettledCallbacks_.push(r),this.isRejectionHandled_=!0},o.resolve=r,o.reject=function(t){return new o((function(e,r){r(t)}))},o.race=function(t){return new o((function(e,n){for(var o=$jscomp.makeIterator(t),_=o.next();!_.done;_=o.next())r(_.value).callWhenSettled_(e,n)}))},o.all=function(t){var e=$jscomp.makeIterator(t),n=e.next();return n.done?r([]):new o((function(t,o){function _(e){return function(r){i[e]=r,0==--p&&t(i)}}var i=[],p=0;do{i.push(void 0),p++,r(n.value).callWhenSettled_(_(i.length-1),o),n=e.next()}while(!n.done)}))},o}),"es6","es3"),$jscomp.checkStringArgs=function(t,e,r){if(null==t)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return t+""},$jscomp.polyfill("String.prototype.startsWith",(function(t){return t||function(t,e){var r=$jscomp.checkStringArgs(this,t,"startsWith");t+="";var n=r.length,o=t.length;e=Math.max(0,Math.min(0|e,r.length));for(var _=0;_<o&&e<n;)if(r[e++]!=t[_++])return!1;return _>=o}}),"es6","es3"),$jscomp.polyfill("Array.prototype.copyWithin",(function(t){function e(t){return 1/0===(t=Number(t))||-1/0===t?t:0|t}return t||function(t,r,n){var o=this.length;if(t=e(t),r=e(r),n=void 0===n?o:e(n),t=0>t?Math.max(o+t,0):Math.min(t,o),r=0>r?Math.max(o+r,0):Math.min(r,o),n=0>n?Math.max(o+n,0):Math.min(n,o),t<r)for(;r<n;)r in this?this[t++]=this[r++]:(delete this[t++],r++);else for(t+=(n=Math.min(n,o+r-t))-r;n>r;)--n in this?this[--t]=this[n]:delete this[--t];return this}}),"es6","es3"),$jscomp.typedArrayCopyWithin=function(t){return t||Array.prototype.copyWithin},$jscomp.polyfill("Int8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Uint8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Int16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Uint16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Int32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Uint32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Float32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Float64Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");var DracoDecoderModule=function(){var t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(t=t||__filename),function(e){function r(t,e,r){var n=e+r;for(r=e;t[r]&&!(r>=n);)++r;if(16<r-e&&t.subarray&&at)return at.decode(t.subarray(e,r));for(n="";e<r;){var o=t[e++];if(128&o){var _=63&t[e++];if(192==(224&o))n+=String.fromCharCode((31&o)<<6|_);else{var i=63&t[e++];65536>(o=224==(240&o)?(15&o)<<12|_<<6|i:(7&o)<<18|_<<12|i<<6|63&t[e++])?n+=String.fromCharCode(o):(o-=65536,n+=String.fromCharCode(55296|o>>10,56320|1023&o))}}else n+=String.fromCharCode(o)}return n}function n(t,e){return t?r(ot,t,e):""}function o(t){rt=t,$.HEAP8=nt=new Int8Array(t),$.HEAP16=new Int16Array(t),$.HEAP32=_t=new Int32Array(t),$.HEAPU8=ot=new Uint8Array(t),$.HEAPU16=new Uint16Array(t),$.HEAPU32=new Uint32Array(t),$.HEAPF32=new Float32Array(t),$.HEAPF64=new Float64Array(t)}function _(t){throw $.onAbort&&$.onAbort(t),tt(t="Aborted("+t+")"),pt=!0,t=new WebAssembly.RuntimeError(t+". Build with -s ASSERTIONS=1 for more info."),L(t),t}function i(t){try{if(t==bt&&J)return new Uint8Array(J);if(X)return X(t);throw"both async and sync fetching of the wasm failed"}catch(t){_(t)}}function p(t){for(;0<t.length;){var e=t.shift();if("function"==typeof e)e($);else{var r=e.func;"number"==typeof r?void 0===e.arg?a(r)():a(r)(e.arg):r(void 0===e.arg?null:e.arg)}}}function a(t){var e=ht[t];return e||(t>=ht.length&&(ht.length=t+1),ht[t]=e=it.get(t)),e}function c(t){this.excPtr=t,this.ptr=t-16,this.set_type=function(t){_t[this.ptr+4>>2]=t},this.get_type=function(){return _t[this.ptr+4>>2]},this.set_destructor=function(t){_t[this.ptr+8>>2]=t},this.get_destructor=function(){return _t[this.ptr+8>>2]},this.set_refcount=function(t){_t[this.ptr>>2]=t},this.set_caught=function(t){nt[this.ptr+12>>0]=t?1:0},this.get_caught=function(){return 0!=nt[this.ptr+12>>0]},this.set_rethrown=function(t){nt[this.ptr+13>>0]=t?1:0},this.get_rethrown=function(){return 0!=nt[this.ptr+13>>0]},this.init=function(t,e){this.set_type(t),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){_t[this.ptr>>2]+=1},this.release_ref=function(){var t=_t[this.ptr>>2];return _t[this.ptr>>2]=t-1,1===t}}function s(t){function e(){if(!Dt&&(Dt=!0,$.calledRun=!0,!pt)){if(lt=!0,p(st),C($),$.onRuntimeInitialized&&$.onRuntimeInitialized(),$.postRun)for("function"==typeof $.postRun&&($.postRun=[$.postRun]);$.postRun.length;)ut.unshift($.postRun.shift());p(ut)}}if(!(0<yt)){if($.preRun)for("function"==typeof $.preRun&&($.preRun=[$.preRun]);$.preRun.length;)ct.unshift($.preRun.shift());p(ct),0<yt||($.setStatus?($.setStatus("Running..."),setTimeout((function(){setTimeout((function(){$.setStatus("")}),1),e()}),1)):e())}}function u(){}function l(t){return(t||u).__cache__}function y(t,e){var r=l(e),n=r[t];return n||((n=Object.create((e||u).prototype)).ptr=t,r[t]=n)}function f(t){if("string"==typeof t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);55296<=n&&57343>=n&&(n=65536+((1023&n)<<10)|1023&t.charCodeAt(++r)),127>=n?++e:e=2047>=n?e+2:65535>=n?e+3:e+4}if(r=0,0<(n=(e=Array(e+1)).length)){n=r+n-1;for(var o=0;o<t.length;++o){var _=t.charCodeAt(o);if(55296<=_&&57343>=_)_=65536+((1023&_)<<10)|1023&t.charCodeAt(++o);if(127>=_){if(r>=n)break;e[r++]=_}else{if(2047>=_){if(r+1>=n)break;e[r++]=192|_>>6}else{if(65535>=_){if(r+2>=n)break;e[r++]=224|_>>12}else{if(r+3>=n)break;e[r++]=240|_>>18,e[r++]=128|_>>12&63}e[r++]=128|_>>6&63}e[r++]=128|63&_}}e[r]=0}return t=on.alloc(e,nt),on.copy(e,nt,t),t}return t}function m(t){if("object"==typeof t){var e=on.alloc(t,nt);return on.copy(t,nt,e),e}return t}function d(){throw"cannot construct a VoidPtr, no constructor in IDL"}function b(){this.ptr=jt(),l(b)[this.ptr]=this}function h(){this.ptr=Gt(),l(h)[this.ptr]=this}function A(){this.ptr=Rt(),l(A)[this.ptr]=this}function T(){this.ptr=gt(),l(T)[this.ptr]=this}function D(){this.ptr=Bt(),l(D)[this.ptr]=this}function I(){this.ptr=Ht(),l(I)[this.ptr]=this}function j(){this.ptr=Jt(),l(j)[this.ptr]=this}function E(){this.ptr=re(),l(E)[this.ptr]=this}function v(){this.ptr=pe(),l(v)[this.ptr]=this}function G(){throw"cannot construct a Status, no constructor in IDL"}function O(){this.ptr=ye(),l(O)[this.ptr]=this}function P(){this.ptr=be(),l(P)[this.ptr]=this}function R(){this.ptr=De(),l(R)[this.ptr]=this}function S(){this.ptr=ve(),l(S)[this.ptr]=this}function g(){this.ptr=Re(),l(g)[this.ptr]=this}function M(){this.ptr=Ne(),l(M)[this.ptr]=this}function N(){this.ptr=Le(),l(N)[this.ptr]=this}function U(){this.ptr=Ve(),l(U)[this.ptr]=this}function F(){this.ptr=Xe(),l(F)[this.ptr]=this}var C,L,$=void 0!==(e=e||{})?e:{},w=Object.assign;$.ready=new Promise((function(t,e){C=t,L=e}));var z=!1,V=!1;$.onRuntimeInitialized=function(){z=!0,V&&"function"==typeof $.onModuleLoaded&&$.onModuleLoaded($)},$.onModuleParsed=function(){V=!0,z&&"function"==typeof $.onModuleLoaded&&$.onModuleLoaded($)},$.isVersionSupported=function(t){return"string"==typeof t&&(!(2>(t=t.split(".")).length||3<t.length)&&(1==t[0]&&0<=t[1]&&5>=t[1]||!(0!=t[0]||10<t[1])))};var B,W,k=w({},$),Q="object"==typeof window,x="function"==typeof importScripts,Y="";if("object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node){Y=x?require("path").dirname(Y)+"/":__dirname+"/";var H=function(){W||(B=require("fs"),W=require("path"))},q=function(t,e){return H(),t=W.normalize(t),B.readFileSync(t,e?null:"utf8")},X=function(t){return(t=q(t,!0)).buffer||(t=new Uint8Array(t)),t},K=function(t,e,r){H(),t=W.normalize(t),B.readFile(t,(function(t,n){t?r(t):e(n.buffer)}))};1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),$.inspect=function(){return"[Emscripten Module object]"}}else(Q||x)&&(x?Y=self.location.href:"undefined"!=typeof document&&document.currentScript&&(Y=document.currentScript.src),t&&(Y=t),Y=0!==Y.indexOf("blob:")?Y.substr(0,Y.replace(/[?#].*/,"").lastIndexOf("/")+1):"",q=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},x&&(X=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),K=function(t,e,r){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});var J,Z=$.print||console.log.bind(console),tt=$.printErr||console.warn.bind(console);w($,k),k=null,$.wasmBinary&&(J=$.wasmBinary),"object"!=typeof WebAssembly&&_("no native wasm support detected");var et,rt,nt,ot,_t,it,pt=!1,at="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ct=[],st=[],ut=[],lt=!1,yt=0,ft=null,mt=null;$.preloadedImages={},$.preloadedAudios={};var dt,bt="draco_decoder.wasm";bt.startsWith("data:application/octet-stream;base64,")||(dt=bt,bt=$.locateFile?$.locateFile(dt,Y):Y+dt);var ht=[],At={mappings:{},buffers:[null,[],[]],printChar:function(t,e){var n=At.buffers[t];0===e||10===e?((1===t?Z:tt)(r(n,0)),n.length=0):n.push(e)},varargs:void 0,get:function(){return At.varargs+=4,_t[At.varargs-4>>2]},getStr:function(t){return n(t)},get64:function(t,e){return t}},Tt={h:function(t){return nn(t+16)+16},g:function(t,e,r){throw new c(t).init(e,r),t},a:function(){_("")},f:function(t,e,r){ot.copyWithin(t,e,e+r)},d:function(t){var e=ot.length;if(2147483648<(t>>>=0))return!1;for(var r=1;4>=r;r*=2){var n=e*(1+.2/r);n=Math.min(n,t+100663296);var _=Math,i=_.min;0<(n=Math.max(t,n))%65536&&(n+=65536-n%65536),_=i.call(_,2147483648,n);t:{try{et.grow(_-rt.byteLength+65535>>>16),o(et.buffer);var p=1;break t}catch(t){}p=void 0}if(p)return!0}return!1},e:function(t){return 0},c:function(t,e,r,n,o){},b:function(t,e,r,n){for(var o=0,_=0;_<r;_++){var i=_t[e>>2],p=_t[e+4>>2];e+=8;for(var a=0;a<p;a++)At.printChar(t,ot[i+a]);o+=p}return _t[n>>2]=o,0}};!function(){function t(t,e){$.asm=t.exports,o((et=$.asm.i).buffer),it=$.asm.k,st.unshift($.asm.j),yt--,$.monitorRunDependencies&&$.monitorRunDependencies(yt),0==yt&&(null!==ft&&(clearInterval(ft),ft=null),mt&&(t=mt,mt=null,t()))}function e(e){t(e.instance)}function r(t){return function(){if(!J&&(Q||x)){if("function"==typeof fetch&&!bt.startsWith("file://"))return fetch(bt,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+bt+"'";return t.arrayBuffer()})).catch((function(){return i(bt)}));if(K)return new Promise((function(t,e){K(bt,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return i(bt)}))}().then((function(t){return WebAssembly.instantiate(t,n)})).then((function(t){return t})).then(t,(function(t){tt("failed to asynchronously prepare wasm: "+t),_(t)}))}var n={a:Tt};if(yt++,$.monitorRunDependencies&&$.monitorRunDependencies(yt),$.instantiateWasm)try{return $.instantiateWasm(n,t)}catch(t){return tt("Module.instantiateWasm callback failed with error: "+t),!1}(J||"function"!=typeof WebAssembly.instantiateStreaming||bt.startsWith("data:application/octet-stream;base64,")||bt.startsWith("file://")||"function"!=typeof fetch?r(e):fetch(bt,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,n).then(e,(function(t){return tt("wasm streaming compile failed: "+t),tt("falling back to ArrayBuffer instantiation"),r(e)}))}))).catch(L)}(),$.___wasm_call_ctors=function(){return($.___wasm_call_ctors=$.asm.j).apply(null,arguments)};var Dt,It=$._emscripten_bind_VoidPtr___destroy___0=function(){return(It=$._emscripten_bind_VoidPtr___destroy___0=$.asm.l).apply(null,arguments)},jt=$._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(jt=$._emscripten_bind_DecoderBuffer_DecoderBuffer_0=$.asm.m).apply(null,arguments)},Et=$._emscripten_bind_DecoderBuffer_Init_2=function(){return(Et=$._emscripten_bind_DecoderBuffer_Init_2=$.asm.n).apply(null,arguments)},vt=$._emscripten_bind_DecoderBuffer___destroy___0=function(){return(vt=$._emscripten_bind_DecoderBuffer___destroy___0=$.asm.o).apply(null,arguments)},Gt=$._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return(Gt=$._emscripten_bind_AttributeTransformData_AttributeTransformData_0=$.asm.p).apply(null,arguments)},Ot=$._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(Ot=$._emscripten_bind_AttributeTransformData_transform_type_0=$.asm.q).apply(null,arguments)},Pt=$._emscripten_bind_AttributeTransformData___destroy___0=function(){return(Pt=$._emscripten_bind_AttributeTransformData___destroy___0=$.asm.r).apply(null,arguments)},Rt=$._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Rt=$._emscripten_bind_GeometryAttribute_GeometryAttribute_0=$.asm.s).apply(null,arguments)},St=$._emscripten_bind_GeometryAttribute___destroy___0=function(){return(St=$._emscripten_bind_GeometryAttribute___destroy___0=$.asm.t).apply(null,arguments)},gt=$._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(gt=$._emscripten_bind_PointAttribute_PointAttribute_0=$.asm.u).apply(null,arguments)},Mt=$._emscripten_bind_PointAttribute_size_0=function(){return(Mt=$._emscripten_bind_PointAttribute_size_0=$.asm.v).apply(null,arguments)},Nt=$._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(Nt=$._emscripten_bind_PointAttribute_GetAttributeTransformData_0=$.asm.w).apply(null,arguments)},Ut=$._emscripten_bind_PointAttribute_attribute_type_0=function(){return(Ut=$._emscripten_bind_PointAttribute_attribute_type_0=$.asm.x).apply(null,arguments)},Ft=$._emscripten_bind_PointAttribute_data_type_0=function(){return(Ft=$._emscripten_bind_PointAttribute_data_type_0=$.asm.y).apply(null,arguments)},Ct=$._emscripten_bind_PointAttribute_num_components_0=function(){return(Ct=$._emscripten_bind_PointAttribute_num_components_0=$.asm.z).apply(null,arguments)},Lt=$._emscripten_bind_PointAttribute_normalized_0=function(){return(Lt=$._emscripten_bind_PointAttribute_normalized_0=$.asm.A).apply(null,arguments)},$t=$._emscripten_bind_PointAttribute_byte_stride_0=function(){return($t=$._emscripten_bind_PointAttribute_byte_stride_0=$.asm.B).apply(null,arguments)},wt=$._emscripten_bind_PointAttribute_byte_offset_0=function(){return(wt=$._emscripten_bind_PointAttribute_byte_offset_0=$.asm.C).apply(null,arguments)},zt=$._emscripten_bind_PointAttribute_unique_id_0=function(){return(zt=$._emscripten_bind_PointAttribute_unique_id_0=$.asm.D).apply(null,arguments)},Vt=$._emscripten_bind_PointAttribute___destroy___0=function(){return(Vt=$._emscripten_bind_PointAttribute___destroy___0=$.asm.E).apply(null,arguments)},Bt=$._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Bt=$._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=$.asm.F).apply(null,arguments)},Wt=$._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(Wt=$._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=$.asm.G).apply(null,arguments)},kt=$._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(kt=$._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=$.asm.H).apply(null,arguments)},Qt=$._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(Qt=$._emscripten_bind_AttributeQuantizationTransform_min_value_1=$.asm.I).apply(null,arguments)},xt=$._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(xt=$._emscripten_bind_AttributeQuantizationTransform_range_0=$.asm.J).apply(null,arguments)},Yt=$._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(Yt=$._emscripten_bind_AttributeQuantizationTransform___destroy___0=$.asm.K).apply(null,arguments)},Ht=$._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Ht=$._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=$.asm.L).apply(null,arguments)},qt=$._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return(qt=$._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=$.asm.M).apply(null,arguments)},Xt=$._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Xt=$._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=$.asm.N).apply(null,arguments)},Kt=$._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Kt=$._emscripten_bind_AttributeOctahedronTransform___destroy___0=$.asm.O).apply(null,arguments)},Jt=$._emscripten_bind_PointCloud_PointCloud_0=function(){return(Jt=$._emscripten_bind_PointCloud_PointCloud_0=$.asm.P).apply(null,arguments)},Zt=$._emscripten_bind_PointCloud_num_attributes_0=function(){return(Zt=$._emscripten_bind_PointCloud_num_attributes_0=$.asm.Q).apply(null,arguments)},te=$._emscripten_bind_PointCloud_num_points_0=function(){return(te=$._emscripten_bind_PointCloud_num_points_0=$.asm.R).apply(null,arguments)},ee=$._emscripten_bind_PointCloud___destroy___0=function(){return(ee=$._emscripten_bind_PointCloud___destroy___0=$.asm.S).apply(null,arguments)},re=$._emscripten_bind_Mesh_Mesh_0=function(){return(re=$._emscripten_bind_Mesh_Mesh_0=$.asm.T).apply(null,arguments)},ne=$._emscripten_bind_Mesh_num_faces_0=function(){return(ne=$._emscripten_bind_Mesh_num_faces_0=$.asm.U).apply(null,arguments)},oe=$._emscripten_bind_Mesh_num_attributes_0=function(){return(oe=$._emscripten_bind_Mesh_num_attributes_0=$.asm.V).apply(null,arguments)},_e=$._emscripten_bind_Mesh_num_points_0=function(){return(_e=$._emscripten_bind_Mesh_num_points_0=$.asm.W).apply(null,arguments)},ie=$._emscripten_bind_Mesh___destroy___0=function(){return(ie=$._emscripten_bind_Mesh___destroy___0=$.asm.X).apply(null,arguments)},pe=$._emscripten_bind_Metadata_Metadata_0=function(){return(pe=$._emscripten_bind_Metadata_Metadata_0=$.asm.Y).apply(null,arguments)},ae=$._emscripten_bind_Metadata___destroy___0=function(){return(ae=$._emscripten_bind_Metadata___destroy___0=$.asm.Z).apply(null,arguments)},ce=$._emscripten_bind_Status_code_0=function(){return(ce=$._emscripten_bind_Status_code_0=$.asm._).apply(null,arguments)},se=$._emscripten_bind_Status_ok_0=function(){return(se=$._emscripten_bind_Status_ok_0=$.asm.$).apply(null,arguments)},ue=$._emscripten_bind_Status_error_msg_0=function(){return(ue=$._emscripten_bind_Status_error_msg_0=$.asm.aa).apply(null,arguments)},le=$._emscripten_bind_Status___destroy___0=function(){return(le=$._emscripten_bind_Status___destroy___0=$.asm.ba).apply(null,arguments)},ye=$._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return(ye=$._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=$.asm.ca).apply(null,arguments)},fe=$._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(fe=$._emscripten_bind_DracoFloat32Array_GetValue_1=$.asm.da).apply(null,arguments)},me=$._emscripten_bind_DracoFloat32Array_size_0=function(){return(me=$._emscripten_bind_DracoFloat32Array_size_0=$.asm.ea).apply(null,arguments)},de=$._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(de=$._emscripten_bind_DracoFloat32Array___destroy___0=$.asm.fa).apply(null,arguments)},be=$._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(be=$._emscripten_bind_DracoInt8Array_DracoInt8Array_0=$.asm.ga).apply(null,arguments)},he=$._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(he=$._emscripten_bind_DracoInt8Array_GetValue_1=$.asm.ha).apply(null,arguments)},Ae=$._emscripten_bind_DracoInt8Array_size_0=function(){return(Ae=$._emscripten_bind_DracoInt8Array_size_0=$.asm.ia).apply(null,arguments)},Te=$._emscripten_bind_DracoInt8Array___destroy___0=function(){return(Te=$._emscripten_bind_DracoInt8Array___destroy___0=$.asm.ja).apply(null,arguments)},De=$._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(De=$._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=$.asm.ka).apply(null,arguments)},Ie=$._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(Ie=$._emscripten_bind_DracoUInt8Array_GetValue_1=$.asm.la).apply(null,arguments)},je=$._emscripten_bind_DracoUInt8Array_size_0=function(){return(je=$._emscripten_bind_DracoUInt8Array_size_0=$.asm.ma).apply(null,arguments)},Ee=$._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(Ee=$._emscripten_bind_DracoUInt8Array___destroy___0=$.asm.na).apply(null,arguments)},ve=$._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(ve=$._emscripten_bind_DracoInt16Array_DracoInt16Array_0=$.asm.oa).apply(null,arguments)},Ge=$._emscripten_bind_DracoInt16Array_GetValue_1=function(){return(Ge=$._emscripten_bind_DracoInt16Array_GetValue_1=$.asm.pa).apply(null,arguments)},Oe=$._emscripten_bind_DracoInt16Array_size_0=function(){return(Oe=$._emscripten_bind_DracoInt16Array_size_0=$.asm.qa).apply(null,arguments)},Pe=$._emscripten_bind_DracoInt16Array___destroy___0=function(){return(Pe=$._emscripten_bind_DracoInt16Array___destroy___0=$.asm.ra).apply(null,arguments)},Re=$._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return(Re=$._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=$.asm.sa).apply(null,arguments)},Se=$._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return(Se=$._emscripten_bind_DracoUInt16Array_GetValue_1=$.asm.ta).apply(null,arguments)},ge=$._emscripten_bind_DracoUInt16Array_size_0=function(){return(ge=$._emscripten_bind_DracoUInt16Array_size_0=$.asm.ua).apply(null,arguments)},Me=$._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(Me=$._emscripten_bind_DracoUInt16Array___destroy___0=$.asm.va).apply(null,arguments)},Ne=$._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return(Ne=$._emscripten_bind_DracoInt32Array_DracoInt32Array_0=$.asm.wa).apply(null,arguments)},Ue=$._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(Ue=$._emscripten_bind_DracoInt32Array_GetValue_1=$.asm.xa).apply(null,arguments)},Fe=$._emscripten_bind_DracoInt32Array_size_0=function(){return(Fe=$._emscripten_bind_DracoInt32Array_size_0=$.asm.ya).apply(null,arguments)},Ce=$._emscripten_bind_DracoInt32Array___destroy___0=function(){return(Ce=$._emscripten_bind_DracoInt32Array___destroy___0=$.asm.za).apply(null,arguments)},Le=$._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=function(){return(Le=$._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=$.asm.Aa).apply(null,arguments)},$e=$._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return($e=$._emscripten_bind_DracoUInt32Array_GetValue_1=$.asm.Ba).apply(null,arguments)},we=$._emscripten_bind_DracoUInt32Array_size_0=function(){return(we=$._emscripten_bind_DracoUInt32Array_size_0=$.asm.Ca).apply(null,arguments)},ze=$._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(ze=$._emscripten_bind_DracoUInt32Array___destroy___0=$.asm.Da).apply(null,arguments)},Ve=$._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(Ve=$._emscripten_bind_MetadataQuerier_MetadataQuerier_0=$.asm.Ea).apply(null,arguments)},Be=$._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(Be=$._emscripten_bind_MetadataQuerier_HasEntry_2=$.asm.Fa).apply(null,arguments)},We=$._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(We=$._emscripten_bind_MetadataQuerier_GetIntEntry_2=$.asm.Ga).apply(null,arguments)},ke=$._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=function(){return(ke=$._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=$.asm.Ha).apply(null,arguments)},Qe=$._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return(Qe=$._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=$.asm.Ia).apply(null,arguments)},xe=$._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(xe=$._emscripten_bind_MetadataQuerier_GetStringEntry_2=$.asm.Ja).apply(null,arguments)},Ye=$._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return(Ye=$._emscripten_bind_MetadataQuerier_NumEntries_1=$.asm.Ka).apply(null,arguments)},He=$._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(He=$._emscripten_bind_MetadataQuerier_GetEntryName_2=$.asm.La).apply(null,arguments)},qe=$._emscripten_bind_MetadataQuerier___destroy___0=function(){return(qe=$._emscripten_bind_MetadataQuerier___destroy___0=$.asm.Ma).apply(null,arguments)},Xe=$._emscripten_bind_Decoder_Decoder_0=function(){return(Xe=$._emscripten_bind_Decoder_Decoder_0=$.asm.Na).apply(null,arguments)},Ke=$._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(Ke=$._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=$.asm.Oa).apply(null,arguments)},Je=$._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(Je=$._emscripten_bind_Decoder_DecodeArrayToMesh_3=$.asm.Pa).apply(null,arguments)},Ze=$._emscripten_bind_Decoder_GetAttributeId_2=function(){return(Ze=$._emscripten_bind_Decoder_GetAttributeId_2=$.asm.Qa).apply(null,arguments)},tr=$._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return(tr=$._emscripten_bind_Decoder_GetAttributeIdByName_2=$.asm.Ra).apply(null,arguments)},er=$._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(er=$._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=$.asm.Sa).apply(null,arguments)},rr=$._emscripten_bind_Decoder_GetAttribute_2=function(){return(rr=$._emscripten_bind_Decoder_GetAttribute_2=$.asm.Ta).apply(null,arguments)},nr=$._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(nr=$._emscripten_bind_Decoder_GetAttributeByUniqueId_2=$.asm.Ua).apply(null,arguments)},or=$._emscripten_bind_Decoder_GetMetadata_1=function(){return(or=$._emscripten_bind_Decoder_GetMetadata_1=$.asm.Va).apply(null,arguments)},_r=$._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(_r=$._emscripten_bind_Decoder_GetAttributeMetadata_2=$.asm.Wa).apply(null,arguments)},ir=$._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return(ir=$._emscripten_bind_Decoder_GetFaceFromMesh_3=$.asm.Xa).apply(null,arguments)},pr=$._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=function(){return(pr=$._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=$.asm.Ya).apply(null,arguments)},ar=$._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(ar=$._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=$.asm.Za).apply(null,arguments)},cr=$._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(cr=$._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=$.asm._a).apply(null,arguments)},sr=$._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(sr=$._emscripten_bind_Decoder_GetAttributeFloat_3=$.asm.$a).apply(null,arguments)},ur=$._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(ur=$._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=$.asm.ab).apply(null,arguments)},lr=$._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(lr=$._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=$.asm.bb).apply(null,arguments)},yr=$._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(yr=$._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=$.asm.cb).apply(null,arguments)},fr=$._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(fr=$._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=$.asm.db).apply(null,arguments)},mr=$._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(mr=$._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=$.asm.eb).apply(null,arguments)},dr=$._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=function(){return(dr=$._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=$.asm.fb).apply(null,arguments)},br=$._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(br=$._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=$.asm.gb).apply(null,arguments)},hr=$._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(hr=$._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=$.asm.hb).apply(null,arguments)},Ar=$._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=function(){return(Ar=$._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=$.asm.ib).apply(null,arguments)},Tr=$._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Tr=$._emscripten_bind_Decoder_SkipAttributeTransform_1=$.asm.jb).apply(null,arguments)},Dr=$._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Dr=$._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=$.asm.kb).apply(null,arguments)},Ir=$._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return(Ir=$._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=$.asm.lb).apply(null,arguments)},jr=$._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return(jr=$._emscripten_bind_Decoder_DecodeBufferToMesh_2=$.asm.mb).apply(null,arguments)},Er=$._emscripten_bind_Decoder___destroy___0=function(){return(Er=$._emscripten_bind_Decoder___destroy___0=$.asm.nb).apply(null,arguments)},vr=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(vr=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=$.asm.ob).apply(null,arguments)},Gr=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return(Gr=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=$.asm.pb).apply(null,arguments)},Or=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Or=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=$.asm.qb).apply(null,arguments)},Pr=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=function(){return(Pr=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=$.asm.rb).apply(null,arguments)},Rr=$._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Rr=$._emscripten_enum_draco_GeometryAttribute_Type_INVALID=$.asm.sb).apply(null,arguments)},Sr=$._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(Sr=$._emscripten_enum_draco_GeometryAttribute_Type_POSITION=$.asm.tb).apply(null,arguments)},gr=$._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(gr=$._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=$.asm.ub).apply(null,arguments)},Mr=$._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(Mr=$._emscripten_enum_draco_GeometryAttribute_Type_COLOR=$.asm.vb).apply(null,arguments)},Nr=$._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(Nr=$._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=$.asm.wb).apply(null,arguments)},Ur=$._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(Ur=$._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=$.asm.xb).apply(null,arguments)},Fr=$._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(Fr=$._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=$.asm.yb).apply(null,arguments)},Cr=$._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(Cr=$._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=$.asm.zb).apply(null,arguments)},Lr=$._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(Lr=$._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=$.asm.Ab).apply(null,arguments)},$r=$._emscripten_enum_draco_DataType_DT_INVALID=function(){return($r=$._emscripten_enum_draco_DataType_DT_INVALID=$.asm.Bb).apply(null,arguments)},wr=$._emscripten_enum_draco_DataType_DT_INT8=function(){return(wr=$._emscripten_enum_draco_DataType_DT_INT8=$.asm.Cb).apply(null,arguments)},zr=$._emscripten_enum_draco_DataType_DT_UINT8=function(){return(zr=$._emscripten_enum_draco_DataType_DT_UINT8=$.asm.Db).apply(null,arguments)},Vr=$._emscripten_enum_draco_DataType_DT_INT16=function(){return(Vr=$._emscripten_enum_draco_DataType_DT_INT16=$.asm.Eb).apply(null,arguments)},Br=$._emscripten_enum_draco_DataType_DT_UINT16=function(){return(Br=$._emscripten_enum_draco_DataType_DT_UINT16=$.asm.Fb).apply(null,arguments)},Wr=$._emscripten_enum_draco_DataType_DT_INT32=function(){return(Wr=$._emscripten_enum_draco_DataType_DT_INT32=$.asm.Gb).apply(null,arguments)},kr=$._emscripten_enum_draco_DataType_DT_UINT32=function(){return(kr=$._emscripten_enum_draco_DataType_DT_UINT32=$.asm.Hb).apply(null,arguments)},Qr=$._emscripten_enum_draco_DataType_DT_INT64=function(){return(Qr=$._emscripten_enum_draco_DataType_DT_INT64=$.asm.Ib).apply(null,arguments)},xr=$._emscripten_enum_draco_DataType_DT_UINT64=function(){return(xr=$._emscripten_enum_draco_DataType_DT_UINT64=$.asm.Jb).apply(null,arguments)},Yr=$._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(Yr=$._emscripten_enum_draco_DataType_DT_FLOAT32=$.asm.Kb).apply(null,arguments)},Hr=$._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return(Hr=$._emscripten_enum_draco_DataType_DT_FLOAT64=$.asm.Lb).apply(null,arguments)},qr=$._emscripten_enum_draco_DataType_DT_BOOL=function(){return(qr=$._emscripten_enum_draco_DataType_DT_BOOL=$.asm.Mb).apply(null,arguments)},Xr=$._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(Xr=$._emscripten_enum_draco_DataType_DT_TYPES_COUNT=$.asm.Nb).apply(null,arguments)},Kr=$._emscripten_enum_draco_StatusCode_OK=function(){return(Kr=$._emscripten_enum_draco_StatusCode_OK=$.asm.Ob).apply(null,arguments)},Jr=$._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(Jr=$._emscripten_enum_draco_StatusCode_DRACO_ERROR=$.asm.Pb).apply(null,arguments)},Zr=$._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(Zr=$._emscripten_enum_draco_StatusCode_IO_ERROR=$.asm.Qb).apply(null,arguments)},tn=$._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(tn=$._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=$.asm.Rb).apply(null,arguments)},en=$._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(en=$._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=$.asm.Sb).apply(null,arguments)},rn=$._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(rn=$._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=$.asm.Tb).apply(null,arguments)},nn=$._malloc=function(){return(nn=$._malloc=$.asm.Ub).apply(null,arguments)};if($._free=function(){return($._free=$.asm.Vb).apply(null,arguments)},mt=function t(){Dt||s(),Dt||(mt=t)},$.run=s,$.preInit)for("function"==typeof $.preInit&&($.preInit=[$.preInit]);0<$.preInit.length;)$.preInit.pop()();s(),u.prototype=Object.create(u.prototype),u.prototype.constructor=u,u.prototype.__class__=u,u.__cache__={},$.WrapperObject=u,$.getCache=l,$.wrapPointer=y,$.castObject=function(t,e){return y(t.ptr,e)},$.NULL=y(0),$.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete l(t.__class__)[t.ptr]},$.compare=function(t,e){return t.ptr===e.ptr},$.getPointer=function(t){return t.ptr},$.getClass=function(t){return t.__class__};var on={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(on.needed){for(var t=0;t<on.temps.length;t++)$._free(on.temps[t]);on.temps.length=0,$._free(on.buffer),on.buffer=0,on.size+=on.needed,on.needed=0}on.buffer||(on.size+=128,on.buffer=$._malloc(on.size),on.buffer||_(void 0)),on.pos=0},alloc:function(t,e){return on.buffer||_(void 0),t=(t=t.length*e.BYTES_PER_ELEMENT)+7&-8,on.pos+t>=on.size?(0<t||_(void 0),on.needed+=t,e=$._malloc(t),on.temps.push(e)):(e=on.buffer+on.pos,on.pos+=t),e},copy:function(t,e,r){switch(r>>>=0,e.BYTES_PER_ELEMENT){case 2:r>>>=1;break;case 4:r>>>=2;break;case 8:r>>>=3}for(var n=0;n<t.length;n++)e[r+n]=t[n]}};return d.prototype=Object.create(u.prototype),d.prototype.constructor=d,d.prototype.__class__=d,d.__cache__={},$.VoidPtr=d,d.prototype.__destroy__=d.prototype.__destroy__=function(){It(this.ptr)},b.prototype=Object.create(u.prototype),b.prototype.constructor=b,b.prototype.__class__=b,b.__cache__={},$.DecoderBuffer=b,b.prototype.Init=b.prototype.Init=function(t,e){var r=this.ptr;on.prepare(),"object"==typeof t&&(t=m(t)),e&&"object"==typeof e&&(e=e.ptr),Et(r,t,e)},b.prototype.__destroy__=b.prototype.__destroy__=function(){vt(this.ptr)},h.prototype=Object.create(u.prototype),h.prototype.constructor=h,h.prototype.__class__=h,h.__cache__={},$.AttributeTransformData=h,h.prototype.transform_type=h.prototype.transform_type=function(){return Ot(this.ptr)},h.prototype.__destroy__=h.prototype.__destroy__=function(){Pt(this.ptr)},A.prototype=Object.create(u.prototype),A.prototype.constructor=A,A.prototype.__class__=A,A.__cache__={},$.GeometryAttribute=A,A.prototype.__destroy__=A.prototype.__destroy__=function(){St(this.ptr)},T.prototype=Object.create(u.prototype),T.prototype.constructor=T,T.prototype.__class__=T,T.__cache__={},$.PointAttribute=T,T.prototype.size=T.prototype.size=function(){return Mt(this.ptr)},T.prototype.GetAttributeTransformData=T.prototype.GetAttributeTransformData=function(){return y(Nt(this.ptr),h)},T.prototype.attribute_type=T.prototype.attribute_type=function(){return Ut(this.ptr)},T.prototype.data_type=T.prototype.data_type=function(){return Ft(this.ptr)},T.prototype.num_components=T.prototype.num_components=function(){return Ct(this.ptr)},T.prototype.normalized=T.prototype.normalized=function(){return!!Lt(this.ptr)},T.prototype.byte_stride=T.prototype.byte_stride=function(){return $t(this.ptr)},T.prototype.byte_offset=T.prototype.byte_offset=function(){return wt(this.ptr)},T.prototype.unique_id=T.prototype.unique_id=function(){return zt(this.ptr)},T.prototype.__destroy__=T.prototype.__destroy__=function(){Vt(this.ptr)},D.prototype=Object.create(u.prototype),D.prototype.constructor=D,D.prototype.__class__=D,D.__cache__={},$.AttributeQuantizationTransform=D,D.prototype.InitFromAttribute=D.prototype.InitFromAttribute=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!Wt(e,t)},D.prototype.quantization_bits=D.prototype.quantization_bits=function(){return kt(this.ptr)},D.prototype.min_value=D.prototype.min_value=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Qt(e,t)},D.prototype.range=D.prototype.range=function(){return xt(this.ptr)},D.prototype.__destroy__=D.prototype.__destroy__=function(){Yt(this.ptr)},I.prototype=Object.create(u.prototype),I.prototype.constructor=I,I.prototype.__class__=I,I.__cache__={},$.AttributeOctahedronTransform=I,I.prototype.InitFromAttribute=I.prototype.InitFromAttribute=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!qt(e,t)},I.prototype.quantization_bits=I.prototype.quantization_bits=function(){return Xt(this.ptr)},I.prototype.__destroy__=I.prototype.__destroy__=function(){Kt(this.ptr)},j.prototype=Object.create(u.prototype),j.prototype.constructor=j,j.prototype.__class__=j,j.__cache__={},$.PointCloud=j,j.prototype.num_attributes=j.prototype.num_attributes=function(){return Zt(this.ptr)},j.prototype.num_points=j.prototype.num_points=function(){return te(this.ptr)},j.prototype.__destroy__=j.prototype.__destroy__=function(){ee(this.ptr)},E.prototype=Object.create(u.prototype),E.prototype.constructor=E,E.prototype.__class__=E,E.__cache__={},$.Mesh=E,E.prototype.num_faces=E.prototype.num_faces=function(){return ne(this.ptr)},E.prototype.num_attributes=E.prototype.num_attributes=function(){return oe(this.ptr)},E.prototype.num_points=E.prototype.num_points=function(){return _e(this.ptr)},E.prototype.__destroy__=E.prototype.__destroy__=function(){ie(this.ptr)},v.prototype=Object.create(u.prototype),v.prototype.constructor=v,v.prototype.__class__=v,v.__cache__={},$.Metadata=v,v.prototype.__destroy__=v.prototype.__destroy__=function(){ae(this.ptr)},G.prototype=Object.create(u.prototype),G.prototype.constructor=G,G.prototype.__class__=G,G.__cache__={},$.Status=G,G.prototype.code=G.prototype.code=function(){return ce(this.ptr)},G.prototype.ok=G.prototype.ok=function(){return!!se(this.ptr)},G.prototype.error_msg=G.prototype.error_msg=function(){return n(ue(this.ptr))},G.prototype.__destroy__=G.prototype.__destroy__=function(){le(this.ptr)},O.prototype=Object.create(u.prototype),O.prototype.constructor=O,O.prototype.__class__=O,O.__cache__={},$.DracoFloat32Array=O,O.prototype.GetValue=O.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),fe(e,t)},O.prototype.size=O.prototype.size=function(){return me(this.ptr)},O.prototype.__destroy__=O.prototype.__destroy__=function(){de(this.ptr)},P.prototype=Object.create(u.prototype),P.prototype.constructor=P,P.prototype.__class__=P,P.__cache__={},$.DracoInt8Array=P,P.prototype.GetValue=P.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),he(e,t)},P.prototype.size=P.prototype.size=function(){return Ae(this.ptr)},P.prototype.__destroy__=P.prototype.__destroy__=function(){Te(this.ptr)},R.prototype=Object.create(u.prototype),R.prototype.constructor=R,R.prototype.__class__=R,R.__cache__={},$.DracoUInt8Array=R,R.prototype.GetValue=R.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Ie(e,t)},R.prototype.size=R.prototype.size=function(){return je(this.ptr)},R.prototype.__destroy__=R.prototype.__destroy__=function(){Ee(this.ptr)},S.prototype=Object.create(u.prototype),S.prototype.constructor=S,S.prototype.__class__=S,S.__cache__={},$.DracoInt16Array=S,S.prototype.GetValue=S.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Ge(e,t)},S.prototype.size=S.prototype.size=function(){return Oe(this.ptr)},S.prototype.__destroy__=S.prototype.__destroy__=function(){Pe(this.ptr)},g.prototype=Object.create(u.prototype),g.prototype.constructor=g,g.prototype.__class__=g,g.__cache__={},$.DracoUInt16Array=g,g.prototype.GetValue=g.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Se(e,t)},g.prototype.size=g.prototype.size=function(){return ge(this.ptr)},g.prototype.__destroy__=g.prototype.__destroy__=function(){Me(this.ptr)},M.prototype=Object.create(u.prototype),M.prototype.constructor=M,M.prototype.__class__=M,M.__cache__={},$.DracoInt32Array=M,M.prototype.GetValue=M.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Ue(e,t)},M.prototype.size=M.prototype.size=function(){return Fe(this.ptr)},M.prototype.__destroy__=M.prototype.__destroy__=function(){Ce(this.ptr)},N.prototype=Object.create(u.prototype),N.prototype.constructor=N,N.prototype.__class__=N,N.__cache__={},$.DracoUInt32Array=N,N.prototype.GetValue=N.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),$e(e,t)},N.prototype.size=N.prototype.size=function(){return we(this.ptr)},N.prototype.__destroy__=N.prototype.__destroy__=function(){ze(this.ptr)},U.prototype=Object.create(u.prototype),U.prototype.constructor=U,U.prototype.__class__=U,U.__cache__={},$.MetadataQuerier=U,U.prototype.HasEntry=U.prototype.HasEntry=function(t,e){var r=this.ptr;return on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),!!Be(r,t,e)},U.prototype.GetIntEntry=U.prototype.GetIntEntry=function(t,e){var r=this.ptr;return on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),We(r,t,e)},U.prototype.GetIntEntryArray=U.prototype.GetIntEntryArray=function(t,e,r){var n=this.ptr;on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),r&&"object"==typeof r&&(r=r.ptr),ke(n,t,e,r)},U.prototype.GetDoubleEntry=U.prototype.GetDoubleEntry=function(t,e){var r=this.ptr;return on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),Qe(r,t,e)},U.prototype.GetStringEntry=U.prototype.GetStringEntry=function(t,e){var r=this.ptr;return on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),n(xe(r,t,e))},U.prototype.NumEntries=U.prototype.NumEntries=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Ye(e,t)},U.prototype.GetEntryName=U.prototype.GetEntryName=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),n(He(r,t,e))},U.prototype.__destroy__=U.prototype.__destroy__=function(){qe(this.ptr)},F.prototype=Object.create(u.prototype),F.prototype.constructor=F,F.prototype.__class__=F,F.__cache__={},$.Decoder=F,F.prototype.DecodeArrayToPointCloud=F.prototype.DecodeArrayToPointCloud=function(t,e,r){var n=this.ptr;return on.prepare(),"object"==typeof t&&(t=m(t)),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),y(Ke(n,t,e,r),G)},F.prototype.DecodeArrayToMesh=F.prototype.DecodeArrayToMesh=function(t,e,r){var n=this.ptr;return on.prepare(),"object"==typeof t&&(t=m(t)),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),y(Je(n,t,e,r),G)},F.prototype.GetAttributeId=F.prototype.GetAttributeId=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Ze(r,t,e)},F.prototype.GetAttributeIdByName=F.prototype.GetAttributeIdByName=function(t,e){var r=this.ptr;return on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),tr(r,t,e)},F.prototype.GetAttributeIdByMetadataEntry=F.prototype.GetAttributeIdByMetadataEntry=function(t,e,r){var n=this.ptr;return on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),r=r&&"object"==typeof r?r.ptr:f(r),er(n,t,e,r)},F.prototype.GetAttribute=F.prototype.GetAttribute=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(rr(r,t,e),T)},F.prototype.GetAttributeByUniqueId=F.prototype.GetAttributeByUniqueId=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(nr(r,t,e),T)},F.prototype.GetMetadata=F.prototype.GetMetadata=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),y(or(e,t),v)},F.prototype.GetAttributeMetadata=F.prototype.GetAttributeMetadata=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(_r(r,t,e),v)},F.prototype.GetFaceFromMesh=F.prototype.GetFaceFromMesh=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!ir(n,t,e,r)},F.prototype.GetTriangleStripsFromMesh=F.prototype.GetTriangleStripsFromMesh=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),pr(r,t,e)},F.prototype.GetTrianglesUInt16Array=F.prototype.GetTrianglesUInt16Array=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!ar(n,t,e,r)},F.prototype.GetTrianglesUInt32Array=F.prototype.GetTrianglesUInt32Array=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!cr(n,t,e,r)},F.prototype.GetAttributeFloat=F.prototype.GetAttributeFloat=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!sr(n,t,e,r)},F.prototype.GetAttributeFloatForAllPoints=F.prototype.GetAttributeFloatForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!ur(n,t,e,r)},F.prototype.GetAttributeIntForAllPoints=F.prototype.GetAttributeIntForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!lr(n,t,e,r)},F.prototype.GetAttributeInt8ForAllPoints=F.prototype.GetAttributeInt8ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!yr(n,t,e,r)},F.prototype.GetAttributeUInt8ForAllPoints=F.prototype.GetAttributeUInt8ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!fr(n,t,e,r)},F.prototype.GetAttributeInt16ForAllPoints=F.prototype.GetAttributeInt16ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!mr(n,t,e,r)},F.prototype.GetAttributeUInt16ForAllPoints=F.prototype.GetAttributeUInt16ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!dr(n,t,e,r)},F.prototype.GetAttributeInt32ForAllPoints=F.prototype.GetAttributeInt32ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!br(n,t,e,r)},F.prototype.GetAttributeUInt32ForAllPoints=F.prototype.GetAttributeUInt32ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!hr(n,t,e,r)},F.prototype.GetAttributeDataArrayForAllPoints=F.prototype.GetAttributeDataArrayForAllPoints=function(t,e,r,n,o){var _=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),n&&"object"==typeof n&&(n=n.ptr),o&&"object"==typeof o&&(o=o.ptr),!!Ar(_,t,e,r,n,o)},F.prototype.SkipAttributeTransform=F.prototype.SkipAttributeTransform=function(t){var e=this.ptr;t&&"object"==typeof t&&(t=t.ptr),Tr(e,t)},F.prototype.GetEncodedGeometryType_Deprecated=F.prototype.GetEncodedGeometryType_Deprecated=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Dr(e,t)},F.prototype.DecodeBufferToPointCloud=F.prototype.DecodeBufferToPointCloud=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(Ir(r,t,e),G)},F.prototype.DecodeBufferToMesh=F.prototype.DecodeBufferToMesh=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(jr(r,t,e),G)},F.prototype.__destroy__=F.prototype.__destroy__=function(){Er(this.ptr)},function(){function t(){$.ATTRIBUTE_INVALID_TRANSFORM=vr(),$.ATTRIBUTE_NO_TRANSFORM=Gr(),$.ATTRIBUTE_QUANTIZATION_TRANSFORM=Or(),$.ATTRIBUTE_OCTAHEDRON_TRANSFORM=Pr(),$.INVALID=Rr(),$.POSITION=Sr(),$.NORMAL=gr(),$.COLOR=Mr(),$.TEX_COORD=Nr(),$.GENERIC=Ur(),$.INVALID_GEOMETRY_TYPE=Fr(),$.POINT_CLOUD=Cr(),$.TRIANGULAR_MESH=Lr(),$.DT_INVALID=$r(),$.DT_INT8=wr(),$.DT_UINT8=zr(),$.DT_INT16=Vr(),$.DT_UINT16=Br(),$.DT_INT32=Wr(),$.DT_UINT32=kr(),$.DT_INT64=Qr(),$.DT_UINT64=xr(),$.DT_FLOAT32=Yr(),$.DT_FLOAT64=Hr(),$.DT_BOOL=qr(),$.DT_TYPES_COUNT=Xr(),$.OK=Kr(),$.DRACO_ERROR=Jr(),$.IO_ERROR=Zr(),$.INVALID_PARAMETER=tn(),$.UNSUPPORTED_VERSION=en(),$.UNKNOWN_VERSION=rn()}lt?t():st.unshift(t)}(),"function"==typeof $.onModuleParsed&&$.onModuleParsed(),$.Decoder.prototype.GetEncodedGeometryType=function(t){if(t.__class__&&t.__class__===$.DecoderBuffer)return $.Decoder.prototype.GetEncodedGeometryType_Deprecated(t);if(8>t.byteLength)return $.INVALID_GEOMETRY_TYPE;switch(t[7]){case 0:return $.POINT_CLOUD;case 1:return $.TRIANGULAR_MESH;default:return $.INVALID_GEOMETRY_TYPE}},e.ready}}();"object"==typeof exports&&"object"==typeof module?module.exports=DracoDecoderModule:"function"==typeof define&&define.amd?define([],(function(){return DracoDecoderModule})):"object"==typeof exports&&(exports.DracoDecoderModule=DracoDecoderModule);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pako=t()}((function(){return function t(e,a,n){function r(s,h){if(!a[s]){if(!e[s]){var l="function"==typeof require&&require;if(!h&&l)return l(s,!0);if(i)return i(s,!0);var o=new Error("Cannot find module '"+s+"'");throw o.code="MODULE_NOT_FOUND",o}var _=a[s]={exports:{}};e[s][0].call(_.exports,(function(t){return r(e[s][1][t]||t)}),_,_.exports,t,e,a,n)}return a[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)r(n[s]);return r}({1:[function(t,e,a){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;a.assign=function(t){for(var e,a,n=Array.prototype.slice.call(arguments,1);n.length;){var r=n.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)e=r,a=i,Object.prototype.hasOwnProperty.call(e,a)&&(t[i]=r[i])}}return t},a.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,a,n,r){if(e.subarray&&t.subarray)t.set(e.subarray(a,a+n),r);else for(var i=0;i<n;i++)t[r+i]=e[a+i]},flattenChunks:function(t){var e,a,n,r,i,s;for(e=n=0,a=t.length;e<a;e++)n+=t[e].length;for(s=new Uint8Array(n),e=r=0,a=t.length;e<a;e++)i=t[e],s.set(i,r),r+=i.length;return s}},i={arraySet:function(t,e,a,n,r){for(var i=0;i<n;i++)t[r+i]=e[a+i]},flattenChunks:function(t){return[].concat.apply([],t)}};a.setTyped=function(t){t?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,r)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,i))},a.setTyped(n)},{}],2:[function(t,e,a){"use strict";var n=t("./common"),r=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){i=!1}for(var s=new n.Buf8(256),h=0;h<256;h++)s[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function l(t,e){if(e<65534&&(t.subarray&&i||!t.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var a="",s=0;s<e;s++)a+=String.fromCharCode(t[s]);return a}s[254]=s[254]=1,a.string2buf=function(t){var e,a,r,i,s,h=t.length,l=0;for(i=0;i<h;i++)55296==(64512&(a=t.charCodeAt(i)))&&i+1<h&&56320==(64512&(r=t.charCodeAt(i+1)))&&(a=65536+(a-55296<<10)+(r-56320),i++),l+=a<128?1:a<2048?2:a<65536?3:4;for(e=new n.Buf8(l),i=s=0;s<l;i++)55296==(64512&(a=t.charCodeAt(i)))&&i+1<h&&56320==(64512&(r=t.charCodeAt(i+1)))&&(a=65536+(a-55296<<10)+(r-56320),i++),a<128?e[s++]=a:(a<2048?e[s++]=192|a>>>6:(a<65536?e[s++]=224|a>>>12:(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63),e[s++]=128|a>>>6&63),e[s++]=128|63&a);return e},a.buf2binstring=function(t){return l(t,t.length)},a.binstring2buf=function(t){for(var e=new n.Buf8(t.length),a=0,r=e.length;a<r;a++)e[a]=t.charCodeAt(a);return e},a.buf2string=function(t,e){var a,n,r,i,h=e||t.length,o=new Array(2*h);for(a=n=0;a<h;)if((r=t[a++])<128)o[n++]=r;else if(4<(i=s[r]))o[n++]=65533,a+=i-1;else{for(r&=2===i?31:3===i?15:7;1<i&&a<h;)r=r<<6|63&t[a++],i--;1<i?o[n++]=65533:r<65536?o[n++]=r:(r-=65536,o[n++]=55296|r>>10&1023,o[n++]=56320|1023&r)}return l(o,n)},a.utf8border=function(t,e){var a;for((e=e||t.length)>t.length&&(e=t.length),a=e-1;0<=a&&128==(192&t[a]);)a--;return a<0||0===a?e:a+s[t[a]]>e?a:e}},{"./common":1}],3:[function(t,e,a){"use strict";e.exports=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){for(a-=s=2e3<a?2e3:a;i=i+(r=r+e[n++]|0)|0,--s;);r%=65521,i%=65521}return r|i<<16|0}},{}],4:[function(t,e,a){"use strict";var n=function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}();e.exports=function(t,e,a,r){var i=n,s=r+a;t^=-1;for(var h=r;h<s;h++)t=t>>>8^i[255&(t^e[h])];return-1^t}},{}],5:[function(t,e,a){"use strict";var n,r=t("../utils/common"),i=t("./trees"),s=t("./adler32"),h=t("./crc32"),l=t("./messages"),o=-2,_=258,d=262,u=113;function f(t,e){return t.msg=l[e],e}function c(t){return(t<<1)-(4<t?9:0)}function p(t){for(var e=t.length;0<=--e;)t[e]=0}function g(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(r.arraySet(t.output,e.pending_buf,e.pending_out,a,t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function m(t,e){i._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,g(t.strm)}function b(t,e){t.pending_buf[t.pending++]=e}function v(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function w(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-d?t.strstart-(t.w_size-d):0,o=t.window,u=t.w_mask,f=t.prev,c=t.strstart+_,p=o[i+s-1],g=o[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(o[(a=e)+s]===g&&o[a+s-1]===p&&o[a]===o[i]&&o[++a]===o[i+1]){i+=2,a++;do{}while(o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&i<c);if(n=_-(c-i),i=c-_,s<n){if(t.match_start=e,h<=(s=n))break;p=o[i+s-1],g=o[i+s]}}}while((e=f[e&u])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead}function y(t){var e,a,n,i,l,o,_,u,f,c,p=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-d)){for(r.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=a=t.hash_size;n=t.head[--e],t.head[e]=p<=n?n-p:0,--a;);for(e=a=p;n=t.prev[--e],t.prev[e]=p<=n?n-p:0,--a;);i+=p}if(0===t.strm.avail_in)break;if(o=t.strm,_=t.window,u=t.strstart+t.lookahead,c=void 0,(f=i)<(c=o.avail_in)&&(c=f),a=0===c?0:(o.avail_in-=c,r.arraySet(_,o.input,o.next_in,c,u),1===o.state.wrap?o.adler=s(o.adler,_,c,u):2===o.state.wrap&&(o.adler=h(o.adler,_,c,u)),o.next_in+=c,o.total_in+=c,c),t.lookahead+=a,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<d&&0!==t.strm.avail_in)}function k(t,e){for(var a,n;;){if(t.lookahead<d){if(y(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-d&&(t.match_length=w(t,a)),t.match_length>=3)if(n=i._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}function z(t,e){for(var a,n,r;;){if(t.lookahead<d){if(y(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-d&&(t.match_length=w(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-3,n=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(m(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=i._tr_tally(t,0,t.window[t.strstart-1]))&&m(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=i._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}function x(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}function B(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),p(this.dyn_ltree),p(this.dyn_dtree),p(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),p(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),p(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function A(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:u,t.adler=2===e.wrap?0:1,e.last_flush=0,i._tr_init(e),0):f(t,o)}function C(t){var e,a=A(t);return 0===a&&((e=t.state).window_size=2*e.w_size,p(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a}function S(t,e,a,n,i,s){if(!t)return o;var h=1;if(-1===e&&(e=6),n<0?(h=0,n=-n):15<n&&(h=2,n-=16),i<1||9<i||8!==a||n<8||15<n||e<0||9<e||s<0||4<s)return f(t,o);8===n&&(n=9);var l=new B;return(t.state=l).strm=t,l.wrap=h,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=a,C(t)}n=[new x(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,m(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-d&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(m(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(m(t,!1),t.strm.avail_out),1)})),new x(4,4,8,4,k),new x(4,5,16,8,k),new x(4,6,32,32,k),new x(4,4,16,16,z),new x(8,16,32,32,z),new x(8,16,128,128,z),new x(8,32,128,256,z),new x(32,128,258,1024,z),new x(32,258,258,4096,z)],a.deflateInit=function(t,e){return S(t,e,8,15,8,0)},a.deflateInit2=S,a.deflateReset=C,a.deflateResetKeep=A,a.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?o:(t.state.gzhead=e,0):o},a.deflate=function(t,e){var a,r,s,l;if(!t||!t.state||5<e||e<0)return t?f(t,o):o;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&4!==e)return f(t,0===t.avail_out?-5:o);if(r.strm=t,a=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,b(r,31),b(r,139),b(r,8),r.gzhead?(b(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),b(r,255&r.gzhead.time),b(r,r.gzhead.time>>8&255),b(r,r.gzhead.time>>16&255),b(r,r.gzhead.time>>24&255),b(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),b(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(b(r,255&r.gzhead.extra.length),b(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=h(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(b(r,0),b(r,0),b(r,0),b(r,0),b(r,0),b(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),b(r,3),r.status=u);else{var d=8+(r.w_bits-8<<4)<<8;d|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(d|=32),d+=31-d%31,r.status=u,v(r,d),0!==r.strstart&&(v(r,t.adler>>>16),v(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),g(t),s=r.pending,r.pending!==r.pending_buf_size));)b(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),g(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}b(r,l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),g(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}b(r,l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&g(t),r.pending+2<=r.pending_buf_size&&(b(r,255&t.adler),b(r,t.adler>>8&255),t.adler=0,r.status=u)):r.status=u),0!==r.pending){if(g(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&c(e)<=c(a)&&4!==e)return f(t,-5);if(666===r.status&&0!==t.avail_in)return f(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&666!==r.status){var w=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,s,h=t.window;;){if(t.lookahead<=_){if(y(t),t.lookahead<=_&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(n=h[r=t.strstart-1])===h[++r]&&n===h[++r]&&n===h[++r]){s=t.strstart+_;do{}while(n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&r<s);t.match_length=_-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=i._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}(r,e):n[r.level].func(r,e);if(3!==w&&4!==w||(r.status=666),1===w||3===w)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===w&&(1===e?i._tr_align(r):5!==e&&(i._tr_stored_block(r,0,0,!1),3===e&&(p(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),g(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(b(r,255&t.adler),b(r,t.adler>>8&255),b(r,t.adler>>16&255),b(r,t.adler>>24&255),b(r,255&t.total_in),b(r,t.total_in>>8&255),b(r,t.total_in>>16&255),b(r,t.total_in>>24&255)):(v(r,t.adler>>>16),v(r,65535&t.adler)),g(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?0:1)},a.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&e!==u&&666!==e?f(t,o):(t.state=null,e===u?f(t,-3):0):o},a.deflateSetDictionary=function(t,e){var a,n,i,h,l,_,d,u,f=e.length;if(!t||!t.state)return o;if(2===(h=(a=t.state).wrap)||1===h&&42!==a.status||a.lookahead)return o;for(1===h&&(t.adler=s(t.adler,e,f,0)),a.wrap=0,f>=a.w_size&&(0===h&&(p(a.head),a.strstart=0,a.block_start=0,a.insert=0),u=new r.Buf8(a.w_size),r.arraySet(u,e,f-a.w_size,a.w_size,0),e=u,f=a.w_size),l=t.avail_in,_=t.next_in,d=t.input,t.avail_in=f,t.next_in=0,t.input=e,y(a);a.lookahead>=3;){for(n=a.strstart,i=a.lookahead-2;a.ins_h=(a.ins_h<<a.hash_shift^a.window[n+3-1])&a.hash_mask,a.prev[n&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=n,n++,--i;);a.strstart=n,a.lookahead=2,y(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=2,a.match_available=0,t.next_in=_,t.input=d,t.avail_in=l,a.wrap=h,0},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(t,e,a){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(t,e,a){"use strict";var n=t("../utils/common");function r(t){for(var e=t.length;0<=--e;)t[e]=0}var i=15,s=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],h=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],o=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=new Array(576);r(_);var d=new Array(60);r(d);var u=new Array(512);r(u);var f=new Array(256);r(f);var c=new Array(29);r(c);var p,g,m,b=new Array(30);function v(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function y(t){return t<256?u[t]:u[256+(t>>>7)]}function k(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function z(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)}function x(t,e,a){z(t,a[2*e],a[2*e+1])}function B(t,e){for(var a=0;a|=1&t,t>>>=1,a<<=1,0<--e;);return a>>>1}function A(t,e,a){var n,r,s=new Array(16),h=0;for(n=1;n<=i;n++)s[n]=h=h+a[n-1]<<1;for(r=0;r<=e;r++){var l=t[2*r+1];0!==l&&(t[2*r]=B(s[l]++,l))}}function C(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function S(t){8<t.bi_valid?k(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function j(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]}function E(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&j(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!j(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n}function U(t,e,a){var n,r,i,l,o=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],r=t.pending_buf[t.l_buf+o],o++,0===n?x(t,r,e):(x(t,(i=f[r])+256+1,e),0!==(l=s[i])&&z(t,r-=c[i],l),x(t,i=y(--n),a),0!==(l=h[i])&&z(t,n-=b[i],l)),o<t.last_lit;);x(t,256,e)}function D(t,e){var a,n,r,s=e.dyn_tree,h=e.stat_desc.static_tree,l=e.stat_desc.has_stree,o=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<o;a++)0!==s[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,l&&(t.static_len-=h[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;1<=a;a--)E(t,s,a);for(r=o;a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],E(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,E(t,s,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,h,l,o=e.dyn_tree,_=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(o[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)p<(s=o[2*o[2*(n=t.heap[a])+1]+1]+1)&&(s=p,g++),o[2*n+1]=s,_<n||(t.bl_count[s]++,h=0,c<=n&&(h=f[n-c]),l=o[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(0<g);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)_<(r=t.heap[--a])||(o[2*r+1]!==s&&(t.opt_len+=(s-o[2*r+1])*o[2*r],o[2*r+1]=s),n--)}}(t,e),A(s,_,t.bl_count)}function I(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,o=4;for(0===s&&(l=138,o=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<o?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,i=r,(h=0)===s?(l=138,o=3):r===s?(l=6,o=3):(l=7,o=4))}function O(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,o=4;for(0===s&&(l=138,o=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<o)for(;x(t,r,t.bl_tree),0!=--h;);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),h--),x(t,16,t.bl_tree),z(t,h-3,2)):h<=10?(x(t,17,t.bl_tree),z(t,h-3,3)):(x(t,18,t.bl_tree),z(t,h-11,7));i=r,(h=0)===s?(l=138,o=3):r===s?(l=6,o=3):(l=7,o=4)}}r(b);var q=!1;function T(t,e,a,r){var i,s,h;z(t,0+(r?1:0),3),s=e,h=a,S(i=t),k(i,h),k(i,~h),n.arraySet(i.pending_buf,i.window,s,h,i.pending),i.pending+=h}a._tr_init=function(t){q||(function(){var t,e,a,n,r,o=new Array(16);for(n=a=0;n<28;n++)for(c[n]=a,t=0;t<1<<s[n];t++)f[a++]=n;for(f[a-1]=n,n=r=0;n<16;n++)for(b[n]=r,t=0;t<1<<h[n];t++)u[r++]=n;for(r>>=7;n<30;n++)for(b[n]=r<<7,t=0;t<1<<h[n]-7;t++)u[256+r++]=n;for(e=0;e<=i;e++)o[e]=0;for(t=0;t<=143;)_[2*t+1]=8,t++,o[8]++;for(;t<=255;)_[2*t+1]=9,t++,o[9]++;for(;t<=279;)_[2*t+1]=7,t++,o[7]++;for(;t<=287;)_[2*t+1]=8,t++,o[8]++;for(A(_,287,o),t=0;t<30;t++)d[2*t+1]=5,d[2*t]=B(t,5);p=new v(_,s,257,286,i),g=new v(d,h,0,30,i),m=new v(new Array(0),l,0,19,7)}(),q=!0),t.l_desc=new w(t.dyn_ltree,p),t.d_desc=new w(t.dyn_dtree,g),t.bl_desc=new w(t.bl_tree,m),t.bi_buf=0,t.bi_valid=0,C(t)},a._tr_stored_block=T,a._tr_flush_block=function(t,e,a,n){var r,i,s=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),s=function(t){var e;for(I(t,t.dyn_ltree,t.l_desc.max_code),I(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*o[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(i=t.static_len+3+7>>>3)<=r&&(r=i)):r=i=a+5,a+4<=r&&-1!==e?T(t,e,a,n):4===t.strategy||i===r?(z(t,2+(n?1:0),3),U(t,_,d)):(z(t,4+(n?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*o[r]+1],3);O(t,t.dyn_ltree,e-1),O(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),U(t,t.dyn_ltree,t.dyn_dtree)),C(t),n&&S(t)},a._tr_tally=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(f[a]+256+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},a._tr_align=function(t){var e;z(t,2,3),x(t,256,_),16===(e=t).bi_valid?(k(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":1}],8:[function(t,e,a){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(t,e,a){"use strict";var n=t("./zlib/deflate"),r=t("./utils/common"),i=t("./utils/strings"),s=t("./zlib/messages"),h=t("./zlib/zstream"),l=Object.prototype.toString;function o(t){if(!(this instanceof o))return new o(t);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var a=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==a)throw new Error(s[a]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var _;if(_="string"==typeof e.dictionary?i.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(a=n.deflateSetDictionary(this.strm,_)))throw new Error(s[a]);this._dict_set=!0}}function _(t,e){var a=new o(e);if(a.push(t,!0),a.err)throw a.msg||s[a.err];return a.result}o.prototype.push=function(t,e){var a,s,h=this.strm,o=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?h.input=i.string2buf(t):"[object ArrayBuffer]"===l.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new r.Buf8(o),h.next_out=0,h.avail_out=o),1!==(a=n.deflate(h,s))&&0!==a)return this.onEnd(a),!(this.ended=!0);0!==h.avail_out&&(0!==h.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(i.buf2binstring(r.shrinkBuf(h.output,h.next_out))):this.onData(r.shrinkBuf(h.output,h.next_out)))}while((0<h.avail_in||0===h.avail_out)&&1!==a);return 4===s?(a=n.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,0===a):2!==s||(this.onEnd(0),!(h.avail_out=0))},o.prototype.onData=function(t){this.chunks.push(t)},o.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},a.Deflate=o,a.deflate=_,a.deflateRaw=function(t,e){return(e=e||{}).raw=!0,_(t,e)},a.gzip=function(t,e){return(e=e||{}).gzip=!0,_(t,e)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pako=e()}((function(){return function e(t,i,n){function a(o,s){if(!i[o]){if(!t[o]){var f="function"==typeof require&&require;if(!s&&f)return f(o,!0);if(r)return r(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var d=i[o]={exports:{}};t[o][0].call(d.exports,(function(e){return a(t[o][1][e]||e)}),d,d.exports,e,t,i,n)}return i[o].exports}for(var r="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(e,t,i){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(e){for(var t,i,n=Array.prototype.slice.call(arguments,1);n.length;){var a=n.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var r in a)t=a,i=r,Object.prototype.hasOwnProperty.call(t,i)&&(e[r]=a[r])}}return e},i.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,i,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(i,i+n),a);else for(var r=0;r<n;r++)e[a+r]=t[i+r]},flattenChunks:function(e){var t,i,n,a,r,o;for(t=n=0,i=e.length;t<i;t++)n+=e[t].length;for(o=new Uint8Array(n),t=a=0,i=e.length;t<i;t++)r=e[t],o.set(r,a),a+=r.length;return o}},r={arraySet:function(e,t,i,n,a){for(var r=0;r<n;r++)e[a+r]=t[i+r]},flattenChunks:function(e){return[].concat.apply([],e)}};i.setTyped=function(e){e?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,r))},i.setTyped(n)},{}],2:[function(e,t,i){"use strict";var n=e("./common"),a=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){r=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function f(e,t){if(t<65534&&(e.subarray&&r||!e.subarray&&a))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var i="",o=0;o<t;o++)i+=String.fromCharCode(e[o]);return i}o[254]=o[254]=1,i.string2buf=function(e){var t,i,a,r,o,s=e.length,f=0;for(r=0;r<s;r++)55296==(64512&(i=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(a=e.charCodeAt(r+1)))&&(i=65536+(i-55296<<10)+(a-56320),r++),f+=i<128?1:i<2048?2:i<65536?3:4;for(t=new n.Buf8(f),r=o=0;o<f;r++)55296==(64512&(i=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(a=e.charCodeAt(r+1)))&&(i=65536+(i-55296<<10)+(a-56320),r++),i<128?t[o++]=i:(i<2048?t[o++]=192|i>>>6:(i<65536?t[o++]=224|i>>>12:(t[o++]=240|i>>>18,t[o++]=128|i>>>12&63),t[o++]=128|i>>>6&63),t[o++]=128|63&i);return t},i.buf2binstring=function(e){return f(e,e.length)},i.binstring2buf=function(e){for(var t=new n.Buf8(e.length),i=0,a=t.length;i<a;i++)t[i]=e.charCodeAt(i);return t},i.buf2string=function(e,t){var i,n,a,r,s=t||e.length,l=new Array(2*s);for(i=n=0;i<s;)if((a=e[i++])<128)l[n++]=a;else if(4<(r=o[a]))l[n++]=65533,i+=r-1;else{for(a&=2===r?31:3===r?15:7;1<r&&i<s;)a=a<<6|63&e[i++],r--;1<r?l[n++]=65533:a<65536?l[n++]=a:(a-=65536,l[n++]=55296|a>>10&1023,l[n++]=56320|1023&a)}return f(l,n)},i.utf8border=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;0<=i&&128==(192&e[i]);)i--;return i<0||0===i?t:i+o[e[i]]>t?i:t}},{"./common":1}],3:[function(e,t,i){"use strict";t.exports=function(e,t,i,n){for(var a=65535&e|0,r=e>>>16&65535|0,o=0;0!==i;){for(i-=o=2e3<i?2e3:i;r=r+(a=a+t[n++]|0)|0,--o;);a%=65521,r%=65521}return a|r<<16|0}},{}],4:[function(e,t,i){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(e,t,i){"use strict";var n=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();t.exports=function(e,t,i,a){var r=n,o=a+i;e^=-1;for(var s=a;s<o;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}},{}],6:[function(e,t,i){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],7:[function(e,t,i){"use strict";t.exports=function(e,t){var i,n,a,r,o,s,f,l,d,c,u,h,b,m,w,k,_,g,v,p,x,y,S,E,Z;i=e.state,n=e.next_in,E=e.input,a=n+(e.avail_in-5),r=e.next_out,Z=e.output,o=r-(t-e.avail_out),s=r+(e.avail_out-257),f=i.dmax,l=i.wsize,d=i.whave,c=i.wnext,u=i.window,h=i.hold,b=i.bits,m=i.lencode,w=i.distcode,k=(1<<i.lenbits)-1,_=(1<<i.distbits)-1;e:do{b<15&&(h+=E[n++]<<b,b+=8,h+=E[n++]<<b,b+=8),g=m[h&k];t:for(;;){if(h>>>=v=g>>>24,b-=v,0==(v=g>>>16&255))Z[r++]=65535&g;else{if(!(16&v)){if(0==(64&v)){g=m[(65535&g)+(h&(1<<v)-1)];continue t}if(32&v){i.mode=12;break e}e.msg="invalid literal/length code",i.mode=30;break e}p=65535&g,(v&=15)&&(b<v&&(h+=E[n++]<<b,b+=8),p+=h&(1<<v)-1,h>>>=v,b-=v),b<15&&(h+=E[n++]<<b,b+=8,h+=E[n++]<<b,b+=8),g=w[h&_];i:for(;;){if(h>>>=v=g>>>24,b-=v,!(16&(v=g>>>16&255))){if(0==(64&v)){g=w[(65535&g)+(h&(1<<v)-1)];continue i}e.msg="invalid distance code",i.mode=30;break e}if(x=65535&g,b<(v&=15)&&(h+=E[n++]<<b,(b+=8)<v&&(h+=E[n++]<<b,b+=8)),f<(x+=h&(1<<v)-1)){e.msg="invalid distance too far back",i.mode=30;break e}if(h>>>=v,b-=v,(v=r-o)<x){if(d<(v=x-v)&&i.sane){e.msg="invalid distance too far back",i.mode=30;break e}if(S=u,(y=0)===c){if(y+=l-v,v<p){for(p-=v;Z[r++]=u[y++],--v;);y=r-x,S=Z}}else if(c<v){if(y+=l+c-v,(v-=c)<p){for(p-=v;Z[r++]=u[y++],--v;);if(y=0,c<p){for(p-=v=c;Z[r++]=u[y++],--v;);y=r-x,S=Z}}}else if(y+=c-v,v<p){for(p-=v;Z[r++]=u[y++],--v;);y=r-x,S=Z}for(;2<p;)Z[r++]=S[y++],Z[r++]=S[y++],Z[r++]=S[y++],p-=3;p&&(Z[r++]=S[y++],1<p&&(Z[r++]=S[y++]))}else{for(y=r-x;Z[r++]=Z[y++],Z[r++]=Z[y++],Z[r++]=Z[y++],2<(p-=3););p&&(Z[r++]=Z[y++],1<p&&(Z[r++]=Z[y++]))}break}}break}}while(n<a&&r<s);n-=p=b>>3,h&=(1<<(b-=p<<3))-1,e.next_in=n,e.next_out=r,e.avail_in=n<a?a-n+5:5-(n-a),e.avail_out=r<s?s-r+257:257-(r-s),i.hold=h,i.bits=b}},{}],8:[function(e,t,i){"use strict";var n=e("../utils/common"),a=e("./adler32"),r=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),f=-2;function l(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):f}function u(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,c(e)):f}function h(e,t){var i,n;return e&&e.state?(n=e.state,t<0?(i=0,t=-t):(i=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?f:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=i,n.wbits=t,u(e))):f}function b(e,t){var i,n;return e?(n=new d,(e.state=n).window=null,0!==(i=h(e,t))&&(e.state=null),i):f}var m,w,k=!0;function _(e){if(k){var t;for(m=new n.Buf32(512),w=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,w,0,e.work,{bits:5}),k=!1}e.lencode=m,e.lenbits=9,e.distcode=w,e.distbits=5}function g(e,t,i,a){var r,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),a>=o.wsize?(n.arraySet(o.window,t,i-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a<(r=o.wsize-o.wnext)&&(r=a),n.arraySet(o.window,t,i-a,r,o.wnext),(a-=r)?(n.arraySet(o.window,t,i-a,a,0),o.wnext=a,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=r))),0}i.inflateReset=u,i.inflateReset2=h,i.inflateResetKeep=c,i.inflateInit=function(e){return b(e,15)},i.inflateInit2=b,i.inflate=function(e,t){var i,d,c,u,h,b,m,w,k,v,p,x,y,S,E,Z,B,A,z,R,N,O,C,I,D=0,T=new n.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return f;12===(i=e.state).mode&&(i.mode=13),h=e.next_out,c=e.output,m=e.avail_out,u=e.next_in,d=e.input,b=e.avail_in,w=i.hold,k=i.bits,v=b,p=m,O=0;e:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;k<16;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(2&i.wrap&&35615===w){T[i.check=0]=255&w,T[1]=w>>>8&255,i.check=r(i.check,T,2,0),k=w=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",i.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",i.mode=30;break}if(k-=4,N=8+(15&(w>>>=4)),0===i.wbits)i.wbits=N;else if(N>i.wbits){e.msg="invalid window size",i.mode=30;break}i.dmax=1<<N,e.adler=i.check=1,i.mode=512&w?10:12,k=w=0;break;case 2:for(;k<16;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(i.flags=w,8!=(255&i.flags)){e.msg="unknown compression method",i.mode=30;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=30;break}i.head&&(i.head.text=w>>8&1),512&i.flags&&(T[0]=255&w,T[1]=w>>>8&255,i.check=r(i.check,T,2,0)),k=w=0,i.mode=3;case 3:for(;k<32;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}i.head&&(i.head.time=w),512&i.flags&&(T[0]=255&w,T[1]=w>>>8&255,T[2]=w>>>16&255,T[3]=w>>>24&255,i.check=r(i.check,T,4,0)),k=w=0,i.mode=4;case 4:for(;k<16;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}i.head&&(i.head.xflags=255&w,i.head.os=w>>8),512&i.flags&&(T[0]=255&w,T[1]=w>>>8&255,i.check=r(i.check,T,2,0)),k=w=0,i.mode=5;case 5:if(1024&i.flags){for(;k<16;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}i.length=w,i.head&&(i.head.extra_len=w),512&i.flags&&(T[0]=255&w,T[1]=w>>>8&255,i.check=r(i.check,T,2,0)),k=w=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(b<(x=i.length)&&(x=b),x&&(i.head&&(N=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,d,u,x,N)),512&i.flags&&(i.check=r(i.check,d,x,u)),b-=x,u+=x,i.length-=x),i.length))break e;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===b)break e;for(x=0;N=d[u+x++],i.head&&N&&i.length<65536&&(i.head.name+=String.fromCharCode(N)),N&&x<b;);if(512&i.flags&&(i.check=r(i.check,d,x,u)),b-=x,u+=x,N)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===b)break e;for(x=0;N=d[u+x++],i.head&&N&&i.length<65536&&(i.head.comment+=String.fromCharCode(N)),N&&x<b;);if(512&i.flags&&(i.check=r(i.check,d,x,u)),b-=x,u+=x,N)break e}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;k<16;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(w!==(65535&i.check)){e.msg="header crc mismatch",i.mode=30;break}k=w=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=12;break;case 10:for(;k<32;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}e.adler=i.check=l(w),k=w=0,i.mode=11;case 11:if(0===i.havedict)return e.next_out=h,e.avail_out=m,e.next_in=u,e.avail_in=b,i.hold=w,i.bits=k,2;e.adler=i.check=1,i.mode=12;case 12:if(5===t||6===t)break e;case 13:if(i.last){w>>>=7&k,k-=7&k,i.mode=27;break}for(;k<3;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}switch(i.last=1&w,k-=1,3&(w>>>=1)){case 0:i.mode=14;break;case 1:if(_(i),i.mode=20,6!==t)break;w>>>=2,k-=2;break e;case 2:i.mode=17;break;case 3:e.msg="invalid block type",i.mode=30}w>>>=2,k-=2;break;case 14:for(w>>>=7&k,k-=7&k;k<32;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&w,k=w=0,i.mode=15,6===t)break e;case 15:i.mode=16;case 16:if(x=i.length){if(b<x&&(x=b),m<x&&(x=m),0===x)break e;n.arraySet(c,d,u,x,h),b-=x,u+=x,m-=x,h+=x,i.length-=x;break}i.mode=12;break;case 17:for(;k<14;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(i.nlen=257+(31&w),w>>>=5,k-=5,i.ndist=1+(31&w),w>>>=5,k-=5,i.ncode=4+(15&w),w>>>=4,k-=4,286<i.nlen||30<i.ndist){e.msg="too many length or distance symbols",i.mode=30;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;k<3;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}i.lens[U[i.have++]]=7&w,w>>>=3,k-=3}for(;i.have<19;)i.lens[U[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,C={bits:i.lenbits},O=s(0,i.lens,0,19,i.lencode,0,i.work,C),i.lenbits=C.bits,O){e.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;Z=(D=i.lencode[w&(1<<i.lenbits)-1])>>>16&255,B=65535&D,!((E=D>>>24)<=k);){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(B<16)w>>>=E,k-=E,i.lens[i.have++]=B;else{if(16===B){for(I=E+2;k<I;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(w>>>=E,k-=E,0===i.have){e.msg="invalid bit length repeat",i.mode=30;break}N=i.lens[i.have-1],x=3+(3&w),w>>>=2,k-=2}else if(17===B){for(I=E+3;k<I;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}k-=E,N=0,x=3+(7&(w>>>=E)),w>>>=3,k-=3}else{for(I=E+7;k<I;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}k-=E,N=0,x=11+(127&(w>>>=E)),w>>>=7,k-=7}if(i.have+x>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=30;break}for(;x--;)i.lens[i.have++]=N}}if(30===i.mode)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,C={bits:i.lenbits},O=s(1,i.lens,0,i.nlen,i.lencode,0,i.work,C),i.lenbits=C.bits,O){e.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,C={bits:i.distbits},O=s(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,C),i.distbits=C.bits,O){e.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===t)break e;case 20:i.mode=21;case 21:if(6<=b&&258<=m){e.next_out=h,e.avail_out=m,e.next_in=u,e.avail_in=b,i.hold=w,i.bits=k,o(e,p),h=e.next_out,c=e.output,m=e.avail_out,u=e.next_in,d=e.input,b=e.avail_in,w=i.hold,k=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;Z=(D=i.lencode[w&(1<<i.lenbits)-1])>>>16&255,B=65535&D,!((E=D>>>24)<=k);){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(Z&&0==(240&Z)){for(A=E,z=Z,R=B;Z=(D=i.lencode[R+((w&(1<<A+z)-1)>>A)])>>>16&255,B=65535&D,!(A+(E=D>>>24)<=k);){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}w>>>=A,k-=A,i.back+=A}if(w>>>=E,k-=E,i.back+=E,i.length=B,0===Z){i.mode=26;break}if(32&Z){i.back=-1,i.mode=12;break}if(64&Z){e.msg="invalid literal/length code",i.mode=30;break}i.extra=15&Z,i.mode=22;case 22:if(i.extra){for(I=i.extra;k<I;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}i.length+=w&(1<<i.extra)-1,w>>>=i.extra,k-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;Z=(D=i.distcode[w&(1<<i.distbits)-1])>>>16&255,B=65535&D,!((E=D>>>24)<=k);){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(0==(240&Z)){for(A=E,z=Z,R=B;Z=(D=i.distcode[R+((w&(1<<A+z)-1)>>A)])>>>16&255,B=65535&D,!(A+(E=D>>>24)<=k);){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}w>>>=A,k-=A,i.back+=A}if(w>>>=E,k-=E,i.back+=E,64&Z){e.msg="invalid distance code",i.mode=30;break}i.offset=B,i.extra=15&Z,i.mode=24;case 24:if(i.extra){for(I=i.extra;k<I;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}i.offset+=w&(1<<i.extra)-1,w>>>=i.extra,k-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===m)break e;if(x=p-m,i.offset>x){if((x=i.offset-x)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=30;break}x>i.wnext?(x-=i.wnext,y=i.wsize-x):y=i.wnext-x,x>i.length&&(x=i.length),S=i.window}else S=c,y=h-i.offset,x=i.length;for(m<x&&(x=m),m-=x,i.length-=x;c[h++]=S[y++],--x;);0===i.length&&(i.mode=21);break;case 26:if(0===m)break e;c[h++]=i.length,m--,i.mode=21;break;case 27:if(i.wrap){for(;k<32;){if(0===b)break e;b--,w|=d[u++]<<k,k+=8}if(p-=m,e.total_out+=p,i.total+=p,p&&(e.adler=i.check=i.flags?r(i.check,c,p,h-p):a(i.check,c,p,h-p)),p=m,(i.flags?w:l(w))!==i.check){e.msg="incorrect data check",i.mode=30;break}k=w=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;k<32;){if(0===b)break e;b--,w+=d[u++]<<k,k+=8}if(w!==(4294967295&i.total)){e.msg="incorrect length check",i.mode=30;break}k=w=0}i.mode=29;case 29:O=1;break e;case 30:O=-3;break e;case 31:return-4;default:return f}return e.next_out=h,e.avail_out=m,e.next_in=u,e.avail_in=b,i.hold=w,i.bits=k,(i.wsize||p!==e.avail_out&&i.mode<30&&(i.mode<27||4!==t))&&g(e,e.output,e.next_out,p-e.avail_out)?(i.mode=31,-4):(v-=e.avail_in,p-=e.avail_out,e.total_in+=v,e.total_out+=p,i.total+=p,i.wrap&&p&&(e.adler=i.check=i.flags?r(i.check,c,p,e.next_out-p):a(i.check,c,p,e.next_out-p)),e.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0),(0===v&&0===p||4===t)&&0===O&&(O=-5),O)},i.inflateEnd=function(e){if(!e||!e.state)return f;var t=e.state;return t.window&&(t.window=null),e.state=null,0},i.inflateGetHeader=function(e,t){var i;return e&&e.state?0==(2&(i=e.state).wrap)?f:((i.head=t).done=!1,0):f},i.inflateSetDictionary=function(e,t){var i,n=t.length;return e&&e.state?0!==(i=e.state).wrap&&11!==i.mode?f:11===i.mode&&a(1,t,n,0)!==i.check?-3:g(e,t,n,n)?(i.mode=31,-4):(i.havedict=1,0):f},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":5,"./inffast":7,"./inftrees":9}],9:[function(e,t,i){"use strict";var n=e("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],r=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,i,f,l,d,c,u){var h,b,m,w,k,_,g,v,p,x=u.bits,y=0,S=0,E=0,Z=0,B=0,A=0,z=0,R=0,N=0,O=0,C=null,I=0,D=new n.Buf16(16),T=new n.Buf16(16),U=null,F=0;for(y=0;y<=15;y++)D[y]=0;for(S=0;S<f;S++)D[t[i+S]]++;for(B=x,Z=15;1<=Z&&0===D[Z];Z--);if(Z<B&&(B=Z),0===Z)return l[d++]=20971520,l[d++]=20971520,u.bits=1,0;for(E=1;E<Z&&0===D[E];E++);for(B<E&&(B=E),y=R=1;y<=15;y++)if(R<<=1,(R-=D[y])<0)return-1;if(0<R&&(0===e||1!==Z))return-1;for(T[1]=0,y=1;y<15;y++)T[y+1]=T[y]+D[y];for(S=0;S<f;S++)0!==t[i+S]&&(c[T[t[i+S]]++]=S);if(0===e?(C=U=c,_=19):1===e?(C=a,I-=257,U=r,F-=257,_=256):(C=o,U=s,_=-1),y=E,k=d,z=S=O=0,m=-1,w=(N=1<<(A=B))-1,1===e&&852<N||2===e&&592<N)return 1;for(;;){for(g=y-z,c[S]<_?(v=0,p=c[S]):c[S]>_?(v=U[F+c[S]],p=C[I+c[S]]):(v=96,p=0),h=1<<y-z,E=b=1<<A;l[k+(O>>z)+(b-=h)]=g<<24|v<<16|p|0,0!==b;);for(h=1<<y-1;O&h;)h>>=1;if(0!==h?(O&=h-1,O+=h):O=0,S++,0==--D[y]){if(y===Z)break;y=t[i+c[S]]}if(B<y&&(O&w)!==m){for(0===z&&(z=B),k+=E,R=1<<(A=y-z);A+z<Z&&!((R-=D[A+z])<=0);)A++,R<<=1;if(N+=1<<A,1===e&&852<N||2===e&&592<N)return 1;l[m=O&w]=B<<24|A<<16|k-d|0}}return 0!==O&&(l[k+O]=y-z<<24|64<<16|0),u.bits=B,0}},{"../utils/common":1}],10:[function(e,t,i){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],11:[function(e,t,i){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/inflate.js":[function(e,t,i){"use strict";var n=e("./zlib/inflate"),a=e("./utils/common"),r=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),f=e("./zlib/zstream"),l=e("./zlib/gzheader"),d=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,t.windowBits);if(i!==o.Z_OK)throw new Error(s[i]);if(this.header=new l,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=r.string2buf(t.dictionary):"[object ArrayBuffer]"===d.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(i=n.inflateSetDictionary(this.strm,t.dictionary))!==o.Z_OK))throw new Error(s[i])}function u(e,t){var i=new c(t);if(i.push(e,!0),i.err)throw i.msg||s[i.err];return i.result}c.prototype.push=function(e,t){var i,s,f,l,c,u=this.strm,h=this.options.chunkSize,b=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?u.input=r.binstring2buf(e):"[object ArrayBuffer]"===d.call(e)?u.input=new Uint8Array(e):u.input=e,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new a.Buf8(h),u.next_out=0,u.avail_out=h),(i=n.inflate(u,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&b&&(i=n.inflateSetDictionary(this.strm,b)),i===o.Z_BUF_ERROR&&!0===m&&(i=o.Z_OK,m=!1),i!==o.Z_STREAM_END&&i!==o.Z_OK)return this.onEnd(i),!(this.ended=!0);u.next_out&&(0!==u.avail_out&&i!==o.Z_STREAM_END&&(0!==u.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(f=r.utf8border(u.output,u.next_out),l=u.next_out-f,c=r.buf2string(u.output,f),u.next_out=l,u.avail_out=h-l,l&&a.arraySet(u.output,u.output,f,l,0),this.onData(c)):this.onData(a.shrinkBuf(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(m=!0)}while((0<u.avail_in||0===u.avail_out)&&i!==o.Z_STREAM_END);return i===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(u.avail_out=0))},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},i.Inflate=c,i.inflate=u,i.inflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},i.ungzip=u},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){"use strict";const{Array:t,Object:e,Math:n,Error:s,Uint8Array:r,Uint16Array:a,Uint32Array:i,Int32Array:c,DataView:o,TextEncoder:l,crypto:h,postMessage:p}=globalThis,d=[];for(let t=0;256>t;t++){let e=t;for(let t=0;8>t;t++)1&e?e=e>>>1^3988292384:e>>>=1;d[t]=e}class u{constructor(t){this.crc=t||-1}append(t){let e=0|this.crc;for(let n=0,s=0|t.length;s>n;n++)e=e>>>8^d[255&(e^t[n])];this.crc=e}get(){return~this.crc}}const f={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const n=t[t.length-1],s=f.getPartial(n);return 32===s?t.concat(e):f._shiftRight(e,s,0|n,t.slice(0,t.length-1))},bitLength(t){const e=t.length;if(0===e)return 0;const n=t[e-1];return 32*(e-1)+f.getPartial(n)},clamp(t,e){if(32*t.length<e)return t;const s=(t=t.slice(0,n.ceil(e/32))).length;return e&=31,s>0&&e&&(t[s-1]=f.partial(e,t[s-1]&2147483648>>e-1,1)),t},partial:(t,e,n)=>32===t?e:(n?0|e:e<<32-t)+1099511627776*t,getPartial:t=>n.round(t/1099511627776)||32,_shiftRight(t,e,n,s){for(void 0===s&&(s=[]);e>=32;e-=32)s.push(n),n=0;if(0===e)return s.concat(t);for(let r=0;r<t.length;r++)s.push(n|t[r]>>>e),n=t[r]<<32-e;const r=t.length?t[t.length-1]:0,a=f.getPartial(r);return s.push(f.partial(e+a&31,e+a>32?n:s.pop(),1)),s}},g={bytes:{fromBits(t){const e=f.bitLength(t)/8,n=new r(e);let s;for(let r=0;e>r;r++)0==(3&r)&&(s=t[r/4]),n[r]=s>>>24,s<<=8;return n},toBits(t){const e=[];let n,s=0;for(n=0;n<t.length;n++)s=s<<8|t[n],3==(3&n)&&(e.push(s),s=0);return 3&n&&e.push(f.partial(8*(3&n),s)),e}}},w={sha1:function(t){t?(this._h=t._h.slice(0),this._buffer=t._buffer.slice(0),this._length=t._length):this.reset()}};w.sha1.prototype={blockSize:512,reset:function(){const t=this;return t._h=this._init.slice(0),t._buffer=[],t._length=0,t},update:function(t){const e=this;"string"==typeof t&&(t=g.utf8String.toBits(t));const n=e._buffer=f.concat(e._buffer,t),r=e._length,a=e._length=r+f.bitLength(t);if(a>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const c=new i(n);let o=0;for(let t=e.blockSize+r-(e.blockSize+r&e.blockSize-1);a>=t;t+=e.blockSize)e._block(c.subarray(16*o,16*(o+1))),o+=1;return n.splice(0,16*o),e},finalize:function(){const t=this;let e=t._buffer;const s=t._h;e=f.concat(e,[f.partial(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(n.floor(t._length/4294967296)),e.push(0|t._length);e.length;)t._block(e.splice(0,16));return t.reset(),s},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:(t,e,n,s)=>t>19?t>39?t>59?t>79?void 0:e^n^s:e&n|e&s|n&s:e^n^s:e&n|~e&s,_S:(t,e)=>e<<t|e>>>32-t,_block:function(e){const s=this,r=s._h,a=t(80);for(let t=0;16>t;t++)a[t]=e[t];let i=r[0],c=r[1],o=r[2],l=r[3],h=r[4];for(let t=0;79>=t;t++){16>t||(a[t]=s._S(1,a[t-3]^a[t-8]^a[t-14]^a[t-16]));const e=s._S(5,i)+s._f(t,c,o,l)+h+a[t]+s._key[n.floor(t/20)]|0;h=l,l=o,o=s._S(30,c),c=i,i=e}r[0]=r[0]+i|0,r[1]=r[1]+c|0,r[2]=r[2]+o|0,r[3]=r[3]+l|0,r[4]=r[4]+h|0}};const y={getRandomValues(t){const e=new i(t.buffer),s=t=>{let e=987654321;const s=4294967295;return()=>(e=36969*(65535&e)+(e>>16)&s,(((e<<16)+(t=18e3*(65535&t)+(t>>16)&s)&s)/4294967296+.5)*(n.random()>.5?1:-1))};for(let r,a=0;a<t.length;a+=4){const t=s(4294967296*(r||n.random()));r=987654071*t(),e[a/4]=4294967296*t()|0}return t}},_={importKey:t=>new _.hmacSha1(g.bytes.toBits(t)),pbkdf2(t,e,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const a=1+(r>>5)<<2;let i,c,l,h,p;const d=new ArrayBuffer(a),u=new o(d);let w=0;const y=f;for(e=g.bytes.toBits(e),p=1;(a||1)>w;p++){for(i=c=t.encrypt(y.concat(e,[p])),l=1;n>l;l++)for(c=t.encrypt(c),h=0;h<c.length;h++)i[h]^=c[h];for(l=0;(a||1)>w&&l<i.length;l++)u.setInt32(w,i[l]),w+=4}return d.slice(0,r/8)},hmacSha1:class{constructor(t){const e=this,n=e._hash=w.sha1,s=[[],[]],r=n.prototype.blockSize/32;e._baseHash=[new n,new n],t.length>r&&(t=n.hash(t));for(let e=0;r>e;e++)s[0][e]=909522486^t[e],s[1][e]=1549556828^t[e];e._baseHash[0].update(s[0]),e._baseHash[1].update(s[1]),e._resultHash=new n(e._baseHash[0])}reset(){const t=this;t._resultHash=new t._hash(t._baseHash[0]),t._updated=!1}update(t){this._updated=!0,this._resultHash.update(t)}digest(){const t=this,e=t._resultHash.finalize(),n=new t._hash(t._baseHash[1]).update(e).finalize();return t.reset(),n}encrypt(t){if(this._updated)throw new s("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},m="Invalid pasword",b=16,k={name:"PBKDF2"},v=e.assign({hash:{name:"HMAC"}},k),z=e.assign({iterations:1e3,hash:{name:"SHA-1"}},k),C=["deriveBits"],S=[8,12,16],B=[16,24,32],I=10,D=[0,0,0,0],V=void 0!==h,H=V&&void 0!==h.subtle,K=g.bytes,A=class{constructor(t){const e=this;e._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],e._tables[0][0][0]||e._precompute();const n=e._tables[0][4],r=e._tables[1],a=t.length;let i,c,o,l=1;if(4!==a&&6!==a&&8!==a)throw new s("invalid aes key size");for(e._key=[c=t.slice(0),o=[]],i=a;4*a+28>i;i++){let t=c[i-1];(i%a==0||8===a&&i%a==4)&&(t=n[t>>>24]<<24^n[t>>16&255]<<16^n[t>>8&255]<<8^n[255&t],i%a==0&&(t=t<<8^t>>>24^l<<24,l=l<<1^283*(l>>7))),c[i]=c[i-a]^t}for(let t=0;i;t++,i--){const e=c[3&t?i:i-4];o[t]=4>=i||4>t?e:r[0][n[e>>>24]]^r[1][n[e>>16&255]]^r[2][n[e>>8&255]]^r[3][n[255&e]]}}encrypt(t){return this._crypt(t,0)}decrypt(t){return this._crypt(t,1)}_precompute(){const t=this._tables[0],e=this._tables[1],n=t[4],s=e[4],r=[],a=[];let i,c,o,l;for(let t=0;256>t;t++)a[(r[t]=t<<1^283*(t>>7))^t]=t;for(let h=i=0;!n[h];h^=c||1,i=a[i]||1){let a=i^i<<1^i<<2^i<<3^i<<4;a=a>>8^255&a^99,n[h]=a,s[a]=h,l=r[o=r[c=r[h]]];let p=16843009*l^65537*o^257*c^16843008*h,d=257*r[a]^16843008*a;for(let n=0;4>n;n++)t[n][h]=d=d<<24^d>>>8,e[n][a]=p=p<<24^p>>>8}for(let n=0;5>n;n++)t[n]=t[n].slice(0),e[n]=e[n].slice(0)}_crypt(t,e){if(4!==t.length)throw new s("invalid aes block size");const n=this._key[e],r=n.length/4-2,a=[0,0,0,0],i=this._tables[e],c=i[0],o=i[1],l=i[2],h=i[3],p=i[4];let d,u,f,g=t[0]^n[0],w=t[e?3:1]^n[1],y=t[2]^n[2],_=t[e?1:3]^n[3],m=4;for(let t=0;r>t;t++)d=c[g>>>24]^o[w>>16&255]^l[y>>8&255]^h[255&_]^n[m],u=c[w>>>24]^o[y>>16&255]^l[_>>8&255]^h[255&g]^n[m+1],f=c[y>>>24]^o[_>>16&255]^l[g>>8&255]^h[255&w]^n[m+2],_=c[_>>>24]^o[g>>16&255]^l[w>>8&255]^h[255&y]^n[m+3],m+=4,g=d,w=u,y=f;for(let t=0;4>t;t++)a[e?3&-t:t]=p[g>>>24]<<24^p[w>>16&255]<<16^p[y>>8&255]<<8^p[255&_]^n[m++],d=g,g=w,w=y,y=_,_=d;return a}},R=class{constructor(t,e){this._prf=t,this._initIv=e,this._iv=e}reset(){this._iv=this._initIv}update(t){return this.calculate(this._prf,t,this._iv)}incWord(t){if(255==(t>>24&255)){let e=t>>16&255,n=t>>8&255,s=255&t;255===e?(e=0,255===n?(n=0,255===s?s=0:++s):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=s}else t+=1<<24;return t}incCounter(t){0===(t[0]=this.incWord(t[0]))&&(t[1]=this.incWord(t[1]))}calculate(t,e,n){let s;if(!(s=e.length))return[];const r=f.bitLength(e);for(let r=0;s>r;r+=4){this.incCounter(n);const s=t.encrypt(n);e[r]^=s[0],e[r+1]^=s[1],e[r+2]^=s[2],e[r+3]^=s[3]}return f.clamp(e,r)}},W=_.hmacSha1;class T{constructor(t,n,s){e.assign(this,{password:t,signed:n,strength:s-1,pendingInput:new r(0)})}async append(e){const n=this;if(n.password){const r=E(e,0,S[n.strength]+2);await(async(t,e,n)=>{await L(t,n,E(e,0,S[t.strength]));const r=E(e,S[t.strength]),a=t.keys.passwordVerification;if(a[0]!=r[0]||a[1]!=r[1])throw new s(m)})(n,r,n.password),n.password=null,n.aesCtrGladman=new R(new A(n.keys.key),t.from(D)),n.hmac=new W(n.keys.authentication),e=E(e,S[n.strength]+2)}return G(n,e,new r(e.length-I-(e.length-I)%b),0,I,!0)}flush(){const t=this,e=t.pendingInput,n=E(e,0,e.length-I),s=E(e,e.length-I);let a=new r(0);if(n.length){const e=K.toBits(n);t.hmac.update(e);const s=t.aesCtrGladman.update(e);a=K.fromBits(s)}let i=!0;if(t.signed){const e=E(K.fromBits(t.hmac.digest()),0,I);for(let t=0;I>t;t++)e[t]!=s[t]&&(i=!1)}return{valid:i,data:a}}}class U{constructor(t,n){e.assign(this,{password:t,strength:n-1,pendingInput:new r(0)})}async append(e){const n=this;let s=new r(0);n.password&&(s=await(async(t,e)=>{const n=(s=new r(S[t.strength]),V&&"function"==typeof h.getRandomValues?h.getRandomValues(s):y.getRandomValues(s));var s;return await L(t,e,n),P(n,t.keys.passwordVerification)})(n,n.password),n.password=null,n.aesCtrGladman=new R(new A(n.keys.key),t.from(D)),n.hmac=new W(n.keys.authentication));const a=new r(s.length+e.length-e.length%b);return a.set(s,0),G(n,e,a,s.length,0)}flush(){const t=this;let e=new r(0);if(t.pendingInput.length){const n=t.aesCtrGladman.update(K.toBits(t.pendingInput));t.hmac.update(n),e=K.fromBits(n)}const n=E(K.fromBits(t.hmac.digest()),0,I);return{data:P(e,n),signature:n}}}function G(t,e,n,s,a,i){const c=e.length-a;let o;for(t.pendingInput.length&&(e=P(t.pendingInput,e),n=((t,e)=>{if(e&&e>t.length){const n=t;(t=new r(e)).set(n,0)}return t})(n,c-c%b)),o=0;c-b>=o;o+=b){const r=K.toBits(E(e,o,o+b));i&&t.hmac.update(r);const a=t.aesCtrGladman.update(r);i||t.hmac.update(a),n.set(K.fromBits(a),o+s)}return t.pendingInput=E(e,o),n}async function L(t,n,s){const a=(t=>{if(void 0===l){const e=new r((t=unescape(encodeURIComponent(t))).length);for(let n=0;n<e.length;n++)e[n]=t.charCodeAt(n);return e}return(new l).encode(t)})(n),i=await((t,e,n,s,r)=>V&&H&&"function"==typeof h.subtle.importKey?h.subtle.importKey("raw",e,n,!1,r):_.importKey(e))(0,a,v,0,C),c=await(async(t,e,n)=>V&&H&&"function"==typeof h.subtle.deriveBits?await h.subtle.deriveBits(t,e,n):_.pbkdf2(e,t.salt,z.iterations,n))(e.assign({salt:s},z),i,8*(2*B[t.strength]+2)),o=new r(c);t.keys={key:K.toBits(E(o,0,B[t.strength])),authentication:K.toBits(E(o,B[t.strength],2*B[t.strength])),passwordVerification:E(o,2*B[t.strength])}}function P(t,e){let n=t;return t.length+e.length&&(n=new r(t.length+e.length),n.set(t,0),n.set(e,t.length)),n}function E(t,e,n){return t.subarray(e,n)}class M{constructor(t,n){e.assign(this,{password:t,passwordVerification:n}),O(this,t)}append(t){const e=this;if(e.password){const n=x(e,t.subarray(0,12));if(e.password=null,n[11]!=e.passwordVerification)throw new s(m);t=t.subarray(12)}return x(e,t)}flush(){return{valid:!0,data:new r(0)}}}class j{constructor(t,n){e.assign(this,{password:t,passwordVerification:n}),O(this,t)}append(t){const e=this;let n,s;if(e.password){e.password=null;const a=h.getRandomValues(new r(12));a[11]=e.passwordVerification,n=new r(t.length+a.length),n.set(F(e,a),0),s=12}else n=new r(t.length),s=0;return n.set(F(e,t),s),n}flush(){return{data:new r(0)}}}function x(t,e){const n=new r(e.length);for(let s=0;s<e.length;s++)n[s]=J(t)^e[s],q(t,n[s]);return n}function F(t,e){const n=new r(e.length);for(let s=0;s<e.length;s++)n[s]=J(t)^e[s],q(t,e[s]);return n}function O(t,e){t.keys=[305419896,591751049,878082192],t.crcKey0=new u(t.keys[0]),t.crcKey2=new u(t.keys[2]);for(let n=0;n<e.length;n++)q(t,e.charCodeAt(n))}function q(t,e){t.crcKey0.append([e]),t.keys[0]=~t.crcKey0.get(),t.keys[1]=Q(t.keys[1]+N(t.keys[0])),t.keys[1]=Q(n.imul(t.keys[1],134775813)+1),t.crcKey2.append([t.keys[1]>>>24]),t.keys[2]=~t.crcKey2.get()}function J(t){const e=2|t.keys[2];return N(n.imul(e,1^e)>>>8)}function N(t){return 255&t}function Q(t){return 4294967295&t}const X="deflate",Y="inflate",Z="Invalid signature";class ${constructor(t,{signature:n,password:s,signed:r,compressed:a,zipCrypto:i,passwordVerification:c,encryptionStrength:o},{chunkSize:l}){const h=!!s;e.assign(this,{signature:n,encrypted:h,signed:r,compressed:a,inflate:a&&new t({chunkSize:l}),crc32:r&&new u,zipCrypto:i,decrypt:h&&i?new M(s,c):new T(s,r,o)})}async append(t){const e=this;return e.encrypted&&t.length&&(t=await e.decrypt.append(t)),e.compressed&&t.length&&(t=await e.inflate.append(t)),(!e.encrypted||e.zipCrypto)&&e.signed&&t.length&&e.crc32.append(t),t}async flush(){const t=this;let e,n=new r(0);if(t.encrypted){const e=t.decrypt.flush();if(!e.valid)throw new s(Z);n=e.data}if((!t.encrypted||t.zipCrypto)&&t.signed){const n=new o(new r(4).buffer);if(e=t.crc32.get(),n.setUint32(0,e),t.signature!=n.getUint32(0,!1))throw new s(Z)}return t.compressed&&(n=await t.inflate.append(n)||new r(0),await t.inflate.flush()),{data:n,signature:e}}}class tt{constructor(t,{encrypted:n,signed:s,compressed:r,level:a,zipCrypto:i,password:c,passwordVerification:o,encryptionStrength:l},{chunkSize:h}){e.assign(this,{encrypted:n,signed:s,compressed:r,deflate:r&&new t({level:a||5,chunkSize:h}),crc32:s&&new u,zipCrypto:i,encrypt:n&&i?new j(c,o):new U(c,l)})}async append(t){const e=this;let n=t;return e.compressed&&t.length&&(n=await e.deflate.append(t)),e.encrypted&&n.length&&(n=await e.encrypt.append(n)),(!e.encrypted||e.zipCrypto)&&e.signed&&t.length&&e.crc32.append(t),n}async flush(){const t=this;let e,n=new r(0);if(t.compressed&&(n=await t.deflate.flush()||new r(0)),t.encrypted){n=await t.encrypt.append(n);const s=t.encrypt.flush();e=s.signature;const a=new r(n.length+s.data.length);a.set(n,0),a.set(s.data,n.length),n=a}return t.encrypted&&!t.zipCrypto||!t.signed||(e=t.crc32.get()),{data:n,signature:e}}}const et={init(t){t.scripts&&t.scripts.length&&importScripts.apply(void 0,t.scripts);const e=t.options;let n;self.initCodec&&self.initCodec(),e.codecType.startsWith(X)?n=self.Deflate:e.codecType.startsWith(Y)&&(n=self.Inflate),nt=((t,e,n)=>e.codecType.startsWith(X)?new tt(t,e,n):e.codecType.startsWith(Y)?new $(t,e,n):void 0)(n,e,t.config)},append:async t=>({data:await nt.append(t.data)}),flush:()=>nt.flush()};let nt;function st(t,n,s){return class{constructor(a){const i=this;i.codec=new t(e.assign({},n,a)),s(i.codec,(t=>{if(i.pendingData){const e=i.pendingData;i.pendingData=new r(e.length+t.length),i.pendingData.set(e,0),i.pendingData.set(t,e.length)}else i.pendingData=new r(t)}))}append(t){return this.codec.push(t),a(this)}flush(){return this.codec.push(new r(0),!0),a(this)}};function a(t){if(t.pendingData){const e=t.pendingData;return t.pendingData=null,e}return new r(0)}}addEventListener("message",(async t=>{const e=t.data,n=e.type,s=et[n];if(s)try{e.data&&(e.data=new r(e.data));const t=await s(e)||{};if(t.type=n,t.data)try{t.data=t.data.buffer,p(t,[t.data])}catch(e){p(t)}else p(t)}catch(t){p({type:n,error:{message:t.message,stack:t.stack}})}})),self.initCodec=()=>{const{Deflate:t,Inflate:e}=((t,e={},n)=>({Deflate:st(t.Deflate,e.deflate,n),Inflate:st(t.Inflate,e.inflate,n)}))(pako,{deflate:{raw:!0},inflate:{raw:!0}},((t,e)=>t.onData=e));self.Deflate=t,self.Inflate=e}}();
|
|
Binary file
|
|
Binary file
|