potato-map3d-ui2 0.0.6
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/.vscode/extensions.json +3 -0
- package/README.md +18 -0
- package/components/map3dt/index.vue.d.ts +22 -0
- package/components/map3dt/useMap.d.ts +13 -0
- package/components/zoomIn/index.vue.d.ts +14 -0
- package/components/zoomOut/index.vue.d.ts +14 -0
- package/env.d.ts +7 -0
- package/index.html +17 -0
- package/package.json +31 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/public/Cesium/Assets/Images/bing_maps_credit.png +0 -0
- package/public/Cesium/Assets/Images/cesium_credit.png +0 -0
- package/public/Cesium/Assets/Images/google_earth_credit.png +0 -0
- package/public/Cesium/Assets/Images/ion-credit.png +0 -0
- package/public/Cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/public/Cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/public/Cesium/Assets/Textures/maki/airfield.png +0 -0
- package/public/Cesium/Assets/Textures/maki/airport.png +0 -0
- package/public/Cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/public/Cesium/Assets/Textures/maki/america-football.png +0 -0
- package/public/Cesium/Assets/Textures/maki/art-gallery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bakery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bank.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bar.png +0 -0
- package/public/Cesium/Assets/Textures/maki/baseball.png +0 -0
- package/public/Cesium/Assets/Textures/maki/basketball.png +0 -0
- package/public/Cesium/Assets/Textures/maki/beer.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bicycle.png +0 -0
- package/public/Cesium/Assets/Textures/maki/building.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bus.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cafe.png +0 -0
- package/public/Cesium/Assets/Textures/maki/camera.png +0 -0
- package/public/Cesium/Assets/Textures/maki/campsite.png +0 -0
- package/public/Cesium/Assets/Textures/maki/car.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cemetery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cesium.png +0 -0
- package/public/Cesium/Assets/Textures/maki/chemist.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cinema.png +0 -0
- package/public/Cesium/Assets/Textures/maki/circle-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/circle.png +0 -0
- package/public/Cesium/Assets/Textures/maki/city.png +0 -0
- package/public/Cesium/Assets/Textures/maki/clothing-store.png +0 -0
- package/public/Cesium/Assets/Textures/maki/college.png +0 -0
- package/public/Cesium/Assets/Textures/maki/commercial.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cricket.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cross.png +0 -0
- package/public/Cesium/Assets/Textures/maki/dam.png +0 -0
- package/public/Cesium/Assets/Textures/maki/danger.png +0 -0
- package/public/Cesium/Assets/Textures/maki/disability.png +0 -0
- package/public/Cesium/Assets/Textures/maki/dog-park.png +0 -0
- package/public/Cesium/Assets/Textures/maki/embassy.png +0 -0
- package/public/Cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/public/Cesium/Assets/Textures/maki/entrance.png +0 -0
- package/public/Cesium/Assets/Textures/maki/farm.png +0 -0
- package/public/Cesium/Assets/Textures/maki/fast-food.png +0 -0
- package/public/Cesium/Assets/Textures/maki/ferry.png +0 -0
- package/public/Cesium/Assets/Textures/maki/fire-station.png +0 -0
- package/public/Cesium/Assets/Textures/maki/fuel.png +0 -0
- package/public/Cesium/Assets/Textures/maki/garden.png +0 -0
- package/public/Cesium/Assets/Textures/maki/gift.png +0 -0
- package/public/Cesium/Assets/Textures/maki/golf.png +0 -0
- package/public/Cesium/Assets/Textures/maki/grocery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/hairdresser.png +0 -0
- package/public/Cesium/Assets/Textures/maki/harbor.png +0 -0
- package/public/Cesium/Assets/Textures/maki/heart.png +0 -0
- package/public/Cesium/Assets/Textures/maki/heliport.png +0 -0
- package/public/Cesium/Assets/Textures/maki/hospital.png +0 -0
- package/public/Cesium/Assets/Textures/maki/ice-cream.png +0 -0
- package/public/Cesium/Assets/Textures/maki/industrial.png +0 -0
- package/public/Cesium/Assets/Textures/maki/land-use.png +0 -0
- package/public/Cesium/Assets/Textures/maki/laundry.png +0 -0
- package/public/Cesium/Assets/Textures/maki/library.png +0 -0
- package/public/Cesium/Assets/Textures/maki/lighthouse.png +0 -0
- package/public/Cesium/Assets/Textures/maki/lodging.png +0 -0
- package/public/Cesium/Assets/Textures/maki/logging.png +0 -0
- package/public/Cesium/Assets/Textures/maki/london-underground.png +0 -0
- package/public/Cesium/Assets/Textures/maki/marker-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/marker.png +0 -0
- package/public/Cesium/Assets/Textures/maki/minefield.png +0 -0
- package/public/Cesium/Assets/Textures/maki/mobilephone.png +0 -0
- package/public/Cesium/Assets/Textures/maki/monument.png +0 -0
- package/public/Cesium/Assets/Textures/maki/museum.png +0 -0
- package/public/Cesium/Assets/Textures/maki/music.png +0 -0
- package/public/Cesium/Assets/Textures/maki/oil-well.png +0 -0
- package/public/Cesium/Assets/Textures/maki/park.png +0 -0
- package/public/Cesium/Assets/Textures/maki/park2.png +0 -0
- package/public/Cesium/Assets/Textures/maki/parking-garage.png +0 -0
- package/public/Cesium/Assets/Textures/maki/parking.png +0 -0
- package/public/Cesium/Assets/Textures/maki/pharmacy.png +0 -0
- package/public/Cesium/Assets/Textures/maki/pitch.png +0 -0
- package/public/Cesium/Assets/Textures/maki/place-of-worship.png +0 -0
- package/public/Cesium/Assets/Textures/maki/playground.png +0 -0
- package/public/Cesium/Assets/Textures/maki/police.png +0 -0
- package/public/Cesium/Assets/Textures/maki/polling-place.png +0 -0
- package/public/Cesium/Assets/Textures/maki/post.png +0 -0
- package/public/Cesium/Assets/Textures/maki/prison.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-above.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-light.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-metro.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-underground.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail.png +0 -0
- package/public/Cesium/Assets/Textures/maki/religious-christian.png +0 -0
- package/public/Cesium/Assets/Textures/maki/religious-jewish.png +0 -0
- package/public/Cesium/Assets/Textures/maki/religious-muslim.png +0 -0
- package/public/Cesium/Assets/Textures/maki/restaurant.png +0 -0
- package/public/Cesium/Assets/Textures/maki/roadblock.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rocket.png +0 -0
- package/public/Cesium/Assets/Textures/maki/school.png +0 -0
- package/public/Cesium/Assets/Textures/maki/scooter.png +0 -0
- package/public/Cesium/Assets/Textures/maki/shop.png +0 -0
- package/public/Cesium/Assets/Textures/maki/skiing.png +0 -0
- package/public/Cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/public/Cesium/Assets/Textures/maki/soccer.png +0 -0
- package/public/Cesium/Assets/Textures/maki/square-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/square.png +0 -0
- package/public/Cesium/Assets/Textures/maki/star-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/star.png +0 -0
- package/public/Cesium/Assets/Textures/maki/suitcase.png +0 -0
- package/public/Cesium/Assets/Textures/maki/swimming.png +0 -0
- package/public/Cesium/Assets/Textures/maki/telephone.png +0 -0
- package/public/Cesium/Assets/Textures/maki/tennis.png +0 -0
- package/public/Cesium/Assets/Textures/maki/theatre.png +0 -0
- package/public/Cesium/Assets/Textures/maki/toilets.png +0 -0
- package/public/Cesium/Assets/Textures/maki/town-hall.png +0 -0
- package/public/Cesium/Assets/Textures/maki/town.png +0 -0
- package/public/Cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/triangle.png +0 -0
- package/public/Cesium/Assets/Textures/maki/village.png +0 -0
- package/public/Cesium/Assets/Textures/maki/warehouse.png +0 -0
- package/public/Cesium/Assets/Textures/maki/waste-basket.png +0 -0
- package/public/Cesium/Assets/Textures/maki/water.png +0 -0
- package/public/Cesium/Assets/Textures/maki/wetland.png +0 -0
- package/public/Cesium/Assets/Textures/maki/zoo.png +0 -0
- package/public/Cesium/Assets/Textures/moonSmall.jpg +0 -0
- package/public/Cesium/Assets/Textures/pin.svg +1 -0
- package/public/Cesium/Assets/Textures/waterNormals.jpg +0 -0
- package/public/Cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/public/Cesium/Assets/approximateTerrainHeights.json +1 -0
- package/public/Cesium/Cesium.d.ts +45342 -0
- package/public/Cesium/Cesium.js +80 -0
- package/public/Cesium/Scene/ModelExperimental/CustomShaderGuide/README.md +4 -0
- package/public/Cesium/ThirdParty/Workers/basis_transcoder.js +1 -0
- package/public/Cesium/ThirdParty/Workers/draco_decoder_nodejs.js +117 -0
- package/public/Cesium/ThirdParty/Workers/package.js +26 -0
- package/public/Cesium/ThirdParty/Workers/package.json +1 -0
- package/public/Cesium/ThirdParty/Workers/pako_deflate.min.js +1 -0
- package/public/Cesium/ThirdParty/Workers/pako_inflate.min.js +1 -0
- package/public/Cesium/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/public/Cesium/ThirdParty/basis_transcoder.wasm +0 -0
- package/public/Cesium/ThirdParty/draco_decoder.wasm +0 -0
- package/public/Cesium/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/public/Cesium/Widgets/Animation/Animation.css +1 -0
- package/public/Cesium/Widgets/Animation/lighter.css +1 -0
- package/public/Cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css +1 -0
- package/public/Cesium/Widgets/BaseLayerPicker/lighter.css +1 -0
- package/public/Cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +1 -0
- package/public/Cesium/Widgets/CesiumInspector/CesiumInspector.css +1 -0
- package/public/Cesium/Widgets/CesiumWidget/CesiumWidget.css +1 -0
- package/public/Cesium/Widgets/CesiumWidget/lighter.css +1 -0
- package/public/Cesium/Widgets/FullscreenButton/FullscreenButton.css +1 -0
- package/public/Cesium/Widgets/Geocoder/Geocoder.css +1 -0
- package/public/Cesium/Widgets/Geocoder/lighter.css +1 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/public/Cesium/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/public/Cesium/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/public/Cesium/Widgets/Images/TimelineIcons.png +0 -0
- package/public/Cesium/Widgets/Images/info-loading.gif +0 -0
- package/public/Cesium/Widgets/InfoBox/InfoBox.css +1 -0
- package/public/Cesium/Widgets/InfoBox/InfoBoxDescription.css +1 -0
- package/public/Cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css +1 -0
- package/public/Cesium/Widgets/NavigationHelpButton/lighter.css +1 -0
- package/public/Cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +1 -0
- package/public/Cesium/Widgets/ProjectionPicker/ProjectionPicker.css +1 -0
- package/public/Cesium/Widgets/SceneModePicker/SceneModePicker.css +1 -0
- package/public/Cesium/Widgets/SelectionIndicator/SelectionIndicator.css +1 -0
- package/public/Cesium/Widgets/Timeline/Timeline.css +1 -0
- package/public/Cesium/Widgets/Timeline/lighter.css +1 -0
- package/public/Cesium/Widgets/VRButton/VRButton.css +1 -0
- package/public/Cesium/Widgets/Viewer/Viewer.css +1 -0
- package/public/Cesium/Widgets/lighter.css +1 -0
- package/public/Cesium/Widgets/lighterShared.css +1 -0
- package/public/Cesium/Widgets/shared.css +1 -0
- package/public/Cesium/Widgets/widgets.css +1 -0
- package/public/Cesium/Workers/ArcType-b570b3ee.js +25 -0
- package/public/Cesium/Workers/ArcType-de5d8777.js +25 -0
- package/public/Cesium/Workers/AttributeCompression-5744d52e.js +25 -0
- package/public/Cesium/Workers/AttributeCompression-f967afc2.js +25 -0
- package/public/Cesium/Workers/AxisAlignedBoundingBox-255e5057.js +25 -0
- package/public/Cesium/Workers/AxisAlignedBoundingBox-47db7c7f.js +25 -0
- package/public/Cesium/Workers/AxisAlignedBoundingBox-546c299b.js +25 -0
- package/public/Cesium/Workers/BoundingRectangle-5691ae9d.js +25 -0
- package/public/Cesium/Workers/BoundingRectangle-636ecf9f.js +25 -0
- package/public/Cesium/Workers/BoundingRectangle-869c584d.js +25 -0
- package/public/Cesium/Workers/BoxGeometry-17972137.js +25 -0
- package/public/Cesium/Workers/BoxGeometry-b34a2283.js +25 -0
- package/public/Cesium/Workers/BoxGeometry-f99e1294.js +25 -0
- package/public/Cesium/Workers/Color-301b72e6.js +25 -0
- package/public/Cesium/Workers/Color-62754929.js +25 -0
- package/public/Cesium/Workers/Color-ab712aae.js +25 -0
- package/public/Cesium/Workers/ComponentDatatype-6ff7d2c3.js +25 -0
- package/public/Cesium/Workers/ComponentDatatype-e7fbe225.js +25 -0
- package/public/Cesium/Workers/CoplanarPolygonGeometryLibrary-3c267f31.js +25 -0
- package/public/Cesium/Workers/CoplanarPolygonGeometryLibrary-d343a6d7.js +25 -0
- package/public/Cesium/Workers/CoplanarPolygonGeometryLibrary-eb4bd06f.js +25 -0
- package/public/Cesium/Workers/CorridorGeometryLibrary-5c5a2d97.js +25 -0
- package/public/Cesium/Workers/CorridorGeometryLibrary-b25ae85b.js +25 -0
- package/public/Cesium/Workers/CorridorGeometryLibrary-bb6ab1cc.js +25 -0
- package/public/Cesium/Workers/CylinderGeometry-004fa238.js +25 -0
- package/public/Cesium/Workers/CylinderGeometry-1c699361.js +25 -0
- package/public/Cesium/Workers/CylinderGeometry-3a1d8b87.js +25 -0
- package/public/Cesium/Workers/CylinderGeometryLibrary-24ad1484.js +25 -0
- package/public/Cesium/Workers/CylinderGeometryLibrary-24ffef71.js +25 -0
- package/public/Cesium/Workers/EllipseGeometry-5676dce7.js +25 -0
- package/public/Cesium/Workers/EllipseGeometry-8cfc99b0.js +25 -0
- package/public/Cesium/Workers/EllipseGeometry-b71ca2ae.js +25 -0
- package/public/Cesium/Workers/EllipseGeometryLibrary-6da859ee.js +25 -0
- package/public/Cesium/Workers/EllipseGeometryLibrary-7ab28f68.js +25 -0
- package/public/Cesium/Workers/EllipseGeometryLibrary-9c7a22fb.js +25 -0
- package/public/Cesium/Workers/EllipseOutlineGeometry-35eddd22.js +25 -0
- package/public/Cesium/Workers/EllipseOutlineGeometry-6376df9c.js +25 -0
- package/public/Cesium/Workers/EllipseOutlineGeometry-b0b5806f.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeodesic-84738e5f.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeodesic-ed8a0e40.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeometry-5f95b75b.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeometry-78c28ab4.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeometry-e2286aab.js +25 -0
- package/public/Cesium/Workers/EllipsoidOutlineGeometry-80bdc65f.js +25 -0
- package/public/Cesium/Workers/EllipsoidOutlineGeometry-9a1727ee.js +25 -0
- package/public/Cesium/Workers/EllipsoidOutlineGeometry-fd03887d.js +25 -0
- package/public/Cesium/Workers/EllipsoidRhumbLine-60f14314.js +25 -0
- package/public/Cesium/Workers/EllipsoidRhumbLine-c3b11f35.js +25 -0
- package/public/Cesium/Workers/EllipsoidTangentPlane-7dc686cd.js +25 -0
- package/public/Cesium/Workers/EllipsoidTangentPlane-9813dd6d.js +25 -0
- package/public/Cesium/Workers/EllipsoidTangentPlane-c5c26b0d.js +25 -0
- package/public/Cesium/Workers/EncodedCartesian3-1e797130.js +25 -0
- package/public/Cesium/Workers/EncodedCartesian3-a9a8a281.js +25 -0
- package/public/Cesium/Workers/FrustumGeometry-a6f9f16a.js +25 -0
- package/public/Cesium/Workers/FrustumGeometry-df8261e4.js +25 -0
- package/public/Cesium/Workers/FrustumGeometry-e939fe30.js +25 -0
- package/public/Cesium/Workers/GeometryAttribute-8163e7fe.js +25 -0
- package/public/Cesium/Workers/GeometryAttribute-c4e59d2f.js +25 -0
- package/public/Cesium/Workers/GeometryAttribute-f542c9a2.js +25 -0
- package/public/Cesium/Workers/GeometryAttributes-734a3446.js +25 -0
- package/public/Cesium/Workers/GeometryAttributes-cb1bf806.js +25 -0
- package/public/Cesium/Workers/GeometryInstance-4bfcfe78.js +25 -0
- package/public/Cesium/Workers/GeometryInstance-8a2d7ac1.js +25 -0
- package/public/Cesium/Workers/GeometryOffsetAttribute-59b14f45.js +25 -0
- package/public/Cesium/Workers/GeometryOffsetAttribute-ddcc2f7f.js +25 -0
- package/public/Cesium/Workers/GeometryPipeline-350055a2.js +25 -0
- package/public/Cesium/Workers/GeometryPipeline-6bdfe811.js +25 -0
- package/public/Cesium/Workers/GeometryPipeline-87dd0e0a.js +25 -0
- package/public/Cesium/Workers/IndexDatatype-65271ba3.js +25 -0
- package/public/Cesium/Workers/IndexDatatype-d42fd89c.js +25 -0
- package/public/Cesium/Workers/IntersectionTests-60b7843b.js +25 -0
- package/public/Cesium/Workers/IntersectionTests-7d7483f2.js +25 -0
- package/public/Cesium/Workers/IntersectionTests-a7d8bdc4.js +25 -0
- package/public/Cesium/Workers/Matrix2-735f0ea9.js +25 -0
- package/public/Cesium/Workers/Matrix2-73789715.js +25 -0
- package/public/Cesium/Workers/OrientedBoundingBox-4691d67b.js +25 -0
- package/public/Cesium/Workers/OrientedBoundingBox-5ee9ed67.js +25 -0
- package/public/Cesium/Workers/OrientedBoundingBox-e995cfaf.js +25 -0
- package/public/Cesium/Workers/Plane-6c77dfaf.js +25 -0
- package/public/Cesium/Workers/Plane-e916220d.js +25 -0
- package/public/Cesium/Workers/PolygonGeometryLibrary-1e3a5b27.js +25 -0
- package/public/Cesium/Workers/PolygonGeometryLibrary-9175878e.js +25 -0
- package/public/Cesium/Workers/PolygonGeometryLibrary-aaa1e2e8.js +25 -0
- package/public/Cesium/Workers/PolygonPipeline-22507996.js +25 -0
- package/public/Cesium/Workers/PolygonPipeline-5a1c3ce9.js +25 -0
- package/public/Cesium/Workers/PolygonPipeline-e5fc87bb.js +25 -0
- package/public/Cesium/Workers/PolylinePipeline-192ea676.js +25 -0
- package/public/Cesium/Workers/PolylinePipeline-608e4017.js +25 -0
- package/public/Cesium/Workers/PolylinePipeline-ab9c4512.js +25 -0
- package/public/Cesium/Workers/PolylineVolumeGeometryLibrary-02df6d4c.js +25 -0
- package/public/Cesium/Workers/PolylineVolumeGeometryLibrary-6e5cac20.js +25 -0
- package/public/Cesium/Workers/PolylineVolumeGeometryLibrary-a3701381.js +25 -0
- package/public/Cesium/Workers/PrimitivePipeline-53950dc0.js +25 -0
- package/public/Cesium/Workers/PrimitivePipeline-5711c037.js +25 -0
- package/public/Cesium/Workers/PrimitivePipeline-ee92ce1a.js +25 -0
- package/public/Cesium/Workers/RectangleGeometryLibrary-06a4e4d4.js +25 -0
- package/public/Cesium/Workers/RectangleGeometryLibrary-53def455.js +25 -0
- package/public/Cesium/Workers/RectangleGeometryLibrary-bde82d75.js +25 -0
- package/public/Cesium/Workers/RuntimeError-17a7ed3d.js +25 -0
- package/public/Cesium/Workers/RuntimeError-4f8ec8a2.js +25 -0
- package/public/Cesium/Workers/TerrainEncoding-149a9713.js +25 -0
- package/public/Cesium/Workers/TerrainEncoding-218a6b73.js +25 -0
- package/public/Cesium/Workers/TerrainEncoding-28a34fd9.js +25 -0
- package/public/Cesium/Workers/Transforms-ac54558c.js +63 -0
- package/public/Cesium/Workers/Transforms-b698c16d.js +63 -0
- package/public/Cesium/Workers/Transforms-d4da1631.js +63 -0
- package/public/Cesium/Workers/VertexFormat-4362bb4a.js +25 -0
- package/public/Cesium/Workers/VertexFormat-9886cb81.js +25 -0
- package/public/Cesium/Workers/WallGeometryLibrary-514d3e5b.js +25 -0
- package/public/Cesium/Workers/WallGeometryLibrary-c66f62cf.js +25 -0
- package/public/Cesium/Workers/WallGeometryLibrary-e26bb3f9.js +25 -0
- package/public/Cesium/Workers/WebGLConstants-6da700a2.js +25 -0
- package/public/Cesium/Workers/WebGLConstants-d878ea52.js +25 -0
- package/public/Cesium/Workers/WebMercatorProjection-04ef6bc3.js +25 -0
- package/public/Cesium/Workers/WebMercatorProjection-4d21b562.js +25 -0
- package/public/Cesium/Workers/_commonjsHelpers-3aae1032-65601a27.js +25 -0
- package/public/Cesium/Workers/_commonjsHelpers-c27c962c.js +25 -0
- package/public/Cesium/Workers/arrayRemoveDuplicates-6f91355d.js +25 -0
- package/public/Cesium/Workers/arrayRemoveDuplicates-d332a3bf.js +25 -0
- package/public/Cesium/Workers/cesiumWorkerBootstrapper.js +6 -0
- package/public/Cesium/Workers/combine-c04aaa26.js +25 -0
- package/public/Cesium/Workers/combine-d11b1f00.js +25 -0
- package/public/Cesium/Workers/combineGeometry.js +25 -0
- package/public/Cesium/Workers/createBoxGeometry.js +25 -0
- package/public/Cesium/Workers/createBoxOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCircleGeometry.js +25 -0
- package/public/Cesium/Workers/createCircleOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCoplanarPolygonGeometry.js +25 -0
- package/public/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCorridorGeometry.js +25 -0
- package/public/Cesium/Workers/createCorridorOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCylinderGeometry.js +25 -0
- package/public/Cesium/Workers/createCylinderOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipseGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipseOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipsoidGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipsoidOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createFrustumGeometry.js +25 -0
- package/public/Cesium/Workers/createFrustumOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createGeometry.js +25 -0
- package/public/Cesium/Workers/createGroundPolylineGeometry.js +25 -0
- package/public/Cesium/Workers/createPlaneGeometry.js +25 -0
- package/public/Cesium/Workers/createPlaneOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createPolygonGeometry.js +25 -0
- package/public/Cesium/Workers/createPolygonOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createPolylineGeometry.js +25 -0
- package/public/Cesium/Workers/createPolylineVolumeGeometry.js +25 -0
- package/public/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createRectangleGeometry.js +25 -0
- package/public/Cesium/Workers/createRectangleOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createSimplePolylineGeometry.js +25 -0
- package/public/Cesium/Workers/createSphereGeometry.js +25 -0
- package/public/Cesium/Workers/createSphereOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createTaskProcessorWorker.js +25 -0
- package/public/Cesium/Workers/createVectorTileClampedPolylines.js +25 -0
- package/public/Cesium/Workers/createVectorTileGeometries.js +25 -0
- package/public/Cesium/Workers/createVectorTilePoints.js +25 -0
- package/public/Cesium/Workers/createVectorTilePolygons.js +25 -0
- package/public/Cesium/Workers/createVectorTilePolylines.js +25 -0
- package/public/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +25 -0
- package/public/Cesium/Workers/createVerticesFromHeightmap.js +27 -0
- package/public/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +25 -0
- package/public/Cesium/Workers/createWallGeometry.js +25 -0
- package/public/Cesium/Workers/createWallOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/decodeDraco.js +25 -0
- package/public/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +25 -0
- package/public/Cesium/Workers/defaultValue-6ed27e8d.js +25 -0
- package/public/Cesium/Workers/defaultValue-97284df2.js +25 -0
- package/public/Cesium/Workers/package.js +26 -0
- package/public/Cesium/Workers/package.json +1 -0
- package/public/Cesium/Workers/transcodeKTX2.js +25 -0
- package/public/Cesium/Workers/transferTypedArrayTest.js +1 -0
- package/public/Cesium/Workers/upsampleQuantizedTerrainMesh.js +25 -0
- package/public/Cesium/index.cjs +9781 -0
- package/public/Cesium/index.js +9780 -0
- package/public/tudou3d/README.md +25 -0
- package/public/tudou3d/img/cursor.png +0 -0
- package/public/tudou3d/tudou3d-src.css +34 -0
- package/public/tudou3d/tudou3d-src.js +91704 -0
- package/public/tudou3d/tudou3d.css +8 -0
- package/public/tudou3d/tudou3d.js +6 -0
- package/public/vite.svg +1 -0
- package/src/App.vue +204 -0
- package/src/assets/base-map.svg +15 -0
- package/src/assets/face-map.svg +14 -0
- package/src/assets/north-map.svg +18 -0
- package/src/assets/reset-map.svg +13 -0
- package/src/assets/showcontrol-map.svg +21 -0
- package/src/assets/vue.svg +1 -0
- package/src/assets/zoomin-map.svg +13 -0
- package/src/assets/zoomout-map.svg +13 -0
- package/src/components/map3dt/index.vue +35 -0
- package/src/components/map3dt/useMap.ts +19 -0
- package/src/components/zoomIn/index.vue +37 -0
- package/src/components/zoomOut/index.vue +90 -0
- package/src/images.d.ts +7 -0
- package/src/main.ts +6 -0
- package/src/packages/main.ts +12 -0
- package/src/style.css +85 -0
- package/src/typings/shims-vue.d.ts +23 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +21 -0
- package/tsconfig.node.json +9 -0
- package/uno.config.ts +34 -0
- package/vite.config.ts +44 -0
@@ -0,0 +1 @@
|
|
1
|
+
var BASIS=function(){var e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(e=e||__filename),function(r){var t,n,o=void 0!==(r=r||{})?r:{};o.ready=new Promise((function(e,r){t=e,readyPromiseRejectza=r}));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(e,r){return v||(v=require("fs")),y||(y=require("path")),e=y.normalize(e),v.readFileSync(e,r?null:"utf8")},h=function(e){var r=p(e,!0);return r.buffer||(r=new Uint8Array(r)),P(r.buffer),r},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),c=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof qr))throw e})),process.on("unhandledRejection",Z),function(e){process.exit(e)},o.inspect=function(){return"[Emscripten Module object]"}):s?("undefined"!=typeof read&&(p=function(e){return read(e)}),h=function(e){var r;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(P("object"==typeof(r=read(e,"binary"))),r)},"undefined"!=typeof scriptArgs?c=scriptArgs:void 0!==arguments&&(c=arguments),"function"==typeof quit&&function(e){quit(e)},"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),e&&(m=e),m=0!==m.indexOf("blob:")?m.substr(0,m.lastIndexOf("/")+1):"",p=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},l&&(h=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),d=function(e,r,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?r(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=function(e){e};o.wasmBinary&&(T=o.wasmBinary);var C;o.noExitRuntime;"object"!=typeof WebAssembly&&Z("no native wasm support detected");var $=!1;function P(e,r){e||Z("Assertion failed: "+r)}var A="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function _(e,r,t){for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.subarray&&A)return A.decode(e.subarray(r,o));for(var i="";r<o;){var a=e[r++];if(128&a){var u=63&e[r++];if(192!=(224&a)){var s=63&e[r++];if((a=224==(240&a)?(15&a)<<12|u<<6|s:(7&a)<<18|u<<12|s<<6|63&e[r++])<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 S(e,r){return e?_(F,e,r):""}var W,E,F,k,O,j,R,x,I,D="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function U(e,r){for(var t=e,n=t>>1,o=n+r/2;!(n>=o)&&O[n];)++n;if((t=n<<1)-e>32&&D)return D.decode(F.subarray(e,t));for(var i="",a=0;!(a>=r/2);++a){var u=k[e+2*a>>1];if(0==u)break;i+=String.fromCharCode(u)}return i}function B(e,r,t){if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,o=(t-=2)<2*e.length?t/2:e.length,i=0;i<o;++i){var a=e.charCodeAt(i);k[r>>1]=a,r+=2}return k[r>>1]=0,r-n}function M(e){return 2*e.length}function V(e,r){for(var t=0,n="";!(t>=r/4);){var o=j[e+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 q(e,r,t){if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,o=n+t-4,i=0;i<e.length;++i){var a=e.charCodeAt(i);if(a>=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i);if(j[r>>2]=a,(r+=4)+4>o)break}return j[r>>2]=0,r-n}function H(e){for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r}function z(e){W=e,o.HEAP8=E=new Int8Array(e),o.HEAP16=k=new Int16Array(e),o.HEAP32=j=new Int32Array(e),o.HEAPU8=F=new Uint8Array(e),o.HEAPU16=O=new Uint16Array(e),o.HEAPU32=R=new Uint32Array(e),o.HEAPF32=x=new Float32Array(e),o.HEAPF64=I=new Float64Array(e)}o.INITIAL_MEMORY;var N,G=[],L=[],X=[],J=[];var K=0,Q=null,Y=null;function Z(e){o.onAbort&&o.onAbort(e),w(e+=""),$=!0,1,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}function ee(e,r){return String.prototype.startsWith?e.startsWith(r):0===e.indexOf(r)}o.preloadedImages={},o.preloadedAudios={};var re="data:application/octet-stream;base64,";function te(e){return ee(e,re)}var ne="file://";function oe(e){return ee(e,ne)}var ie,ae="basis_transcoder.wasm";function ue(e){try{if(e==ae&&T)return new Uint8Array(T);if(h)return h(e);throw"both async and sync fetching of the wasm failed"}catch(e){Z(e)}}function se(e){for(;e.length>0;){var r=e.shift();if("function"!=typeof r){var t=r.func;"number"==typeof t?void 0===r.arg?N.get(t)():N.get(t)(r.arg):t(void 0===r.arg?null:r.arg)}else r(o)}}te(ae)||(ie=ae,ae=o.locateFile?o.locateFile(ie,m):m+ie);var ce={};function fe(e){for(;e.length;){var r=e.pop();e.pop()(r)}}function le(e){return this.fromWireType(R[e>>2])}var pe={},de={},he={},ve=48,ye=57;function me(e){if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=ve&&r<=ye?"_"+e:e}function ge(e,r){return e=me(e),new Function("body","return function "+e+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(r)}function we(e,r){var t=ge(r,(function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},t}var Te=void 0;function be(e){throw new Te(e)}function Ce(e,r,t){function n(r){var n=t(r);n.length!==e.length&&be("Mismatched type converter count");for(var o=0;o<e.length;++o)We(e[o],n[o])}e.forEach((function(e){he[e]=r}));var o=new Array(r.length),i=[],a=0;r.forEach((function(e,r){de.hasOwnProperty(e)?o[r]=de[e]:(i.push(e),pe.hasOwnProperty(e)||(pe[e]=[]),pe[e].push((function(){o[r]=de[e],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function $e(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}var Pe=void 0;function Ae(e){for(var r="",t=e;F[t];)r+=Pe[F[t++]];return r}var _e=void 0;function Se(e){throw new _e(e)}function We(e,r,t){if(t=t||{},!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=r.name;if(e||Se('type "'+n+'" must have a positive integer typeid pointer'),de.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;Se("Cannot register type '"+n+"' twice")}if(de[e]=r,delete he[e],pe.hasOwnProperty(e)){var o=pe[e];delete pe[e],o.forEach((function(e){e()}))}}function Ee(e){if(!(this instanceof qe))return!1;if(!(e instanceof qe))return!1;for(var r=this.$$.ptrType.registeredClass,t=this.$$.ptr,n=e.$$.ptrType.registeredClass,o=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return r===n&&t===o}function Fe(e){Se(e.$$.ptrType.registeredClass.name+" instance already deleted")}var ke=!1;function Oe(e){}function je(e){e.count.value-=1,0===e.count.value&&function(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}(e)}function Re(e){return"undefined"==typeof FinalizationGroup?(Re=function(e){return e},e):(ke=new FinalizationGroup((function(e){for(var r=e.next();!r.done;r=e.next()){var t=r.value;t.ptr?je(t):console.warn("object already deleted: "+t.ptr)}})),Re=function(e){return ke.register(e,e.$$,e.$$),e},Oe=function(e){ke.unregister(e.$$)},Re(e))}function xe(){if(this.$$.ptr||Fe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,r=Re(Object.create(Object.getPrototypeOf(this),{$$:{value:(e=this.$$,{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType})}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r}function Ie(){this.$$.ptr||Fe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Se("Object already scheduled for deletion"),Oe(this),je(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function De(){return!this.$$.ptr}var Ue=void 0,Be=[];function Me(){for(;Be.length;){var e=Be.pop();e.$$.deleteScheduled=!1,e.delete()}}function Ve(){return this.$$.ptr||Fe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Se("Object already scheduled for deletion"),Be.push(this),1===Be.length&&Ue&&Ue(Me),this.$$.deleteScheduled=!0,this}function qe(){}var He={};function ze(e,r,t){if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||Se("Function '"+t+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[r].overloadTable+")!"),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}}function Ne(e,r,t){o.hasOwnProperty(e)?((void 0===t||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[t])&&Se("Cannot register public name '"+e+"' twice"),ze(o,e,e),o.hasOwnProperty(t)&&Se("Cannot register multiple overloads of a function with the same number of arguments ("+t+")!"),o[e].overloadTable[t]=r):(o[e]=r,void 0!==t&&(o[e].numArguments=t))}function Ge(e,r,t,n,o,i,a,u){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=u,this.pureVirtualFunctions=[]}function Le(e,r,t){for(;r!==t;)r.upcast||Se("Expected null or instance of "+t.name+", got an instance of "+r.name),e=r.upcast(e),r=r.baseClass;return e}function Xe(e,r){if(null===r)return this.isReference&&Se("null is not a valid "+this.name),0;r.$$||Se('Cannot pass "'+_r(r)+'" as a '+this.name),r.$$.ptr||Se("Cannot pass deleted object as a pointer of type "+this.name);var t=r.$$.ptrType.registeredClass;return Le(r.$$.ptr,t,this.registeredClass)}function Je(e,r){var t;if(null===r)return this.isReference&&Se("null is not a valid "+this.name),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;r.$$||Se('Cannot pass "'+_r(r)+'" as a '+this.name),r.$$.ptr||Se("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&r.$$.ptrType.isConst&&Se("Cannot convert argument of type "+(r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name)+" to parameter type "+this.name);var n=r.$$.ptrType.registeredClass;if(t=Le(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&Se("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:Se("Cannot convert argument of type "+(r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var o=r.clone();t=this.rawShare(t,$r((function(){o.delete()}))),null!==e&&e.push(this.rawDestructor,t)}break;default:Se("Unsupporting sharing policy")}return t}function Ke(e,r){if(null===r)return this.isReference&&Se("null is not a valid "+this.name),0;r.$$||Se('Cannot pass "'+_r(r)+'" as a '+this.name),r.$$.ptr||Se("Cannot pass deleted object as a pointer of type "+this.name),r.$$.ptrType.isConst&&Se("Cannot convert argument of type "+r.$$.ptrType.name+" to parameter type "+this.name);var t=r.$$.ptrType.registeredClass;return Le(r.$$.ptr,t,this.registeredClass)}function Qe(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function Ye(e){this.rawDestructor&&this.rawDestructor(e)}function Ze(e){null!==e&&e.delete()}function er(e,r,t){if(r===t)return e;if(void 0===t.baseClass)return null;var n=er(e,r,t.baseClass);return null===n?null:t.downcast(n)}function rr(){return Object.keys(or).length}function tr(){var e=[];for(var r in or)or.hasOwnProperty(r)&&e.push(or[r]);return e}function nr(e){Ue=e,Be.length&&Ue&&Ue(Me)}var or={};function ir(e,r){return r=function(e,r){for(void 0===r&&Se("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r}(e,r),or[r]}function ar(e,r){return r.ptrType&&r.ptr||be("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!==!!r.smartPtr&&be("Both smartPtrType and smartPtr must be specified"),r.count={value:1},Re(Object.create(e,{$$:{value:r}}))}function ur(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=ir(this.registeredClass,r);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?ar(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):ar(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i,a=this.registeredClass.getActualType(r),u=He[a];if(!u)return o.call(this);i=this.isConst?u.constPointerType:u.pointerType;var s=er(r,this.registeredClass,i.registeredClass);return null===s?o.call(this):this.isSmartPointer?ar(i.registeredClass.instancePrototype,{ptrType:i,ptr:s,smartPtrType:this,smartPtr:e}):ar(i.registeredClass.instancePrototype,{ptrType:i,ptr:s})}function sr(e,r,t,n,o,i,a,u,s,c,f){this.name=e,this.registeredClass=r,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!==r.baseClass?this.toWireType=Je:n?(this.toWireType=Xe,this.destructorFunction=null):(this.toWireType=Ke,this.destructorFunction=null)}function cr(e,r,t){o.hasOwnProperty(e)||be("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==t?o[e].overloadTable[t]=r:(o[e]=r,o[e].argCount=t)}function fr(e,r,t){return-1!=e.indexOf("j")?function(e,r,t){var n=o["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)}(e,r,t):N.get(r).apply(null,t)}function lr(e,r){var t,n,o,i=-1!=(e=Ae(e)).indexOf("j")?(t=e,n=r,o=[],function(){o.length=arguments.length;for(var e=0;e<arguments.length;e++)o[e]=arguments[e];return fr(t,n,o)}):N.get(r);return"function"!=typeof i&&Se("unknown function pointer with signature "+e+": "+r),i}var pr=void 0;function dr(e){var r=Vr(e),t=Ae(r);return Mr(r),t}function hr(e,r){var t=[],n={};throw r.forEach((function e(r){n[r]||de[r]||(he[r]?he[r].forEach(e):(t.push(r),n[r]=!0))})),new pr(e+": "+t.map(dr).join([", "]))}function vr(e,r){for(var t=[],n=0;n<e;n++)t.push(j[(r>>2)+n]);return t}function yr(e,r){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var t=ge(e.name||"unknownFunctionName",(function(){}));t.prototype=e.prototype;var n=new t,o=e.apply(n,r);return o instanceof Object?o:n}function mr(e,r,t,n,o){var i=r.length;i<2&&Se("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==r[1]&&null!==t,u=!1,s=1;s<r.length;++s)if(null!==r[s]&&void 0===r[s].destructorFunction){u=!0;break}var c="void"!==r[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 "+me(e)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+e+" 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=[Se,n,o,fe,r[0],r[1]];a&&(p+="var thisWired = classParam.toWireType("+d+", this);\n");for(s=0;s<i-2;++s)p+="var arg"+s+"Wired = argType"+s+".toWireType("+d+", arg"+s+"); // "+r[s+2].name+"\n",h.push("argType"+s),v.push(r[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<r.length;++s){var y=1===s?"thisWired":"arg"+(s-2)+"Wired";null!==r[s].destructorFunction&&(p+=y+"_dtor("+y+"); // "+r[s].name+"\n",h.push(y+"_dtor"),v.push(r[s].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",h.push(p),yr(Function,h).apply(null,v)}var gr=[],wr=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Tr(e){e>4&&0==--wr[e].refcount&&(wr[e]=void 0,gr.push(e))}function br(){for(var e=0,r=5;r<wr.length;++r)void 0!==wr[r]&&++e;return e}function Cr(){for(var e=5;e<wr.length;++e)if(void 0!==wr[e])return wr[e];return null}function $r(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var r=gr.length?gr.pop():wr.length;return wr[r]={refcount:1,value:e},r}}function Pr(e,r,t){switch(r){case 0:return function(e){var r=t?E:F;return this.fromWireType(r[e])};case 1:return function(e){var r=t?k:O;return this.fromWireType(r[e>>1])};case 2:return function(e){var r=t?j:R;return this.fromWireType(r[e>>2])};default:throw new TypeError("Unknown integer type: "+e)}}function Ar(e,r){var t=de[e];return void 0===t&&Se(r+" has unknown type "+dr(e)),t}function _r(e){if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e}function Sr(e,r){switch(r){case 2:return function(e){return this.fromWireType(x[e>>2])};case 3:return function(e){return this.fromWireType(I[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function Wr(e,r,t){switch(r){case 0:return t?function(e){return E[e]}:function(e){return F[e]};case 1:return t?function(e){return k[e>>1]}:function(e){return O[e>>1]};case 2:return t?function(e){return j[e>>2]}:function(e){return R[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}function Er(e){return e||Se("Cannot use deleted val. handle = "+e),wr[e].value}var Fr={};function kr(e){var r=Fr[e];return void 0===r?Ae(e):r}var Or=[];function jr(){return"object"==typeof globalThis?globalThis:Function("return this")()}var Rr={};function xr(e){try{return C.grow(e-W.byteLength+65535>>>16),z(C.buffer),1}catch(e){}}var Ir={mappings:{},buffers:[null,[],[]],printChar:function(e,r){var t=Ir.buffers[e];0===r||10===r?((1===e?g:w)(_(t,0)),t.length=0):t.push(r)},varargs:void 0,get:function(){return Ir.varargs+=4,j[Ir.varargs-4>>2]},getStr:function(e){return S(e)},get64:function(e,r){return e}};Te=o.InternalError=we(Error,"InternalError"),function(){for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);Pe=e}(),_e=o.BindingError=we(Error,"BindingError"),qe.prototype.isAliasOf=Ee,qe.prototype.clone=xe,qe.prototype.delete=Ie,qe.prototype.isDeleted=De,qe.prototype.deleteLater=Ve,sr.prototype.getPointee=Qe,sr.prototype.destructor=Ye,sr.prototype.argPackAdvance=8,sr.prototype.readValueFromPointer=le,sr.prototype.deleteObject=Ze,sr.prototype.fromWireType=ur,o.getInheritedInstanceCount=rr,o.getLiveInheritedInstances=tr,o.flushPendingDeletes=Me,o.setDelayFunction=nr,pr=o.UnboundTypeError=we(Error,"UnboundTypeError"),o.count_emval_handles=br,o.get_first_emval=Cr;var Dr,Ur={t:function(e){var r=ce[e];delete ce[e];var t=r.rawConstructor,n=r.rawDestructor,o=r.fields;Ce([e],o.map((function(e){return e.getterReturnType})).concat(o.map((function(e){return e.setterArgumentType}))),(function(e){var i={};return o.forEach((function(r,t){var n=r.fieldName,a=e[t],u=r.getter,s=r.getterContext,c=e[t+o.length],f=r.setter,l=r.setterContext;i[n]={read:function(e){return a.fromWireType(u(s,e))},write:function(e,r){var t=[];f(l,e,c.toWireType(t,r)),fe(t)}}})),[{name:r.name,fromWireType:function(e){var r={};for(var t in i)r[t]=i[t].read(e);return n(e),r},toWireType:function(e,r){for(var o in i)if(!(o in r))throw new TypeError('Missing field: "'+o+'"');var a=t();for(o in i)i[o].write(a,r[o]);return null!==e&&e.push(n,a),a},argPackAdvance:8,readValueFromPointer:le,destructorFunction:n}]}))},I:function(e,r,t,n,o){var i=$e(t);We(e,{name:r=Ae(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?n:o},argPackAdvance:8,readValueFromPointer:function(e){var n;if(1===t)n=E;else if(2===t)n=k;else{if(4!==t)throw new TypeError("Unknown boolean type size: "+r);n=j}return this.fromWireType(n[e>>i])},destructorFunction:null})},x:function(e,r,t,n,o,i,a,u,s,c,f,l,p){f=Ae(f),i=lr(o,i),u&&(u=lr(a,u)),c&&(c=lr(s,c)),p=lr(l,p);var d=me(f);Ne(d,(function(){hr("Cannot construct "+f+" due to unbound types",[n])})),Ce([e,r,t],n?[n]:[],(function(r){var t,o;r=r[0],o=n?(t=r.registeredClass).instancePrototype:qe.prototype;var a=ge(d,(function(){if(Object.getPrototypeOf(this)!==s)throw new _e("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new _e(f+" has no accessible constructor");var e=l.constructor_body[arguments.length];if(void 0===e)throw new _e("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(l.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),s=Object.create(o,{constructor:{value:a}});a.prototype=s;var l=new Ge(f,a,s,p,t,i,u,c),h=new sr(f,l,!0,!1,!1),v=new sr(f+"*",l,!1,!1,!1),y=new sr(f+" const*",l,!1,!0,!1);return He[e]={pointerType:v,constPointerType:y},cr(d,a),[h,v,y]}))},w:function(e,r,t,n,o,i){P(r>0);var a=vr(r,t);o=lr(n,o);var u=[i],s=[];Ce([],[e],(function(e){var t="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[r-1])throw new _e("Cannot register multiple constructors with identical number of parameters ("+(r-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[r-1]=function(){hr("Cannot construct "+e.name+" due to unbound types",a)},Ce([],a,(function(n){return e.registeredClass.constructor_body[r-1]=function(){arguments.length!==r-1&&Se(t+" called with "+arguments.length+" arguments, expected "+(r-1)),s.length=0,u.length=r;for(var e=1;e<r;++e)u[e]=n[e].toWireType(s,arguments[e-1]);var i=o.apply(null,u);return fe(s),n[0].fromWireType(i)},[]})),[]}))},d:function(e,r,t,n,o,i,a,u){var s=vr(t,n);r=Ae(r),i=lr(o,i),Ce([],[e],(function(e){var n=(e=e[0]).name+"."+r;function o(){hr("Cannot call "+n+" due to unbound types",s)}u&&e.registeredClass.pureVirtualFunctions.push(r);var c=e.registeredClass.instancePrototype,f=c[r];return void 0===f||void 0===f.overloadTable&&f.className!==e.name&&f.argCount===t-2?(o.argCount=t-2,o.className=e.name,c[r]=o):(ze(c,r,n),c[r].overloadTable[t-2]=o),Ce([],s,(function(o){var u=mr(n,o,e,i,a);return void 0===c[r].overloadTable?(u.argCount=t-2,c[r]=u):c[r].overloadTable[t-2]=u,[]})),[]}))},k:function(e,r,t){e=Ae(e),Ce([],[r],(function(r){return r=r[0],o[e]=r.fromWireType(t),[]}))},H:function(e,r){We(e,{name:r=Ae(r),fromWireType:function(e){var r=wr[e].value;return Tr(e),r},toWireType:function(e,r){return $r(r)},argPackAdvance:8,readValueFromPointer:le,destructorFunction:null})},n:function(e,r,t,n){var o=$e(t);function i(){}r=Ae(r),i.values={},We(e,{name:r,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:function(e,r){return r.value},argPackAdvance:8,readValueFromPointer:Pr(r,o,n),destructorFunction:null}),Ne(r,i)},a:function(e,r,t){var n=Ar(e,"enum");r=Ae(r);var o=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ge(n.name+"_"+r,(function(){}))}});o.values[t]=i,o[r]=i},A:function(e,r,t){var n=$e(t);We(e,{name:r=Ae(r),fromWireType:function(e){return e},toWireType:function(e,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+_r(r)+'" to '+this.name);return r},argPackAdvance:8,readValueFromPointer:Sr(r,n),destructorFunction:null})},i:function(e,r,t,n,o,i){var a=vr(r,t);e=Ae(e),o=lr(n,o),Ne(e,(function(){hr("Cannot call "+e+" due to unbound types",a)}),r-1),Ce([],a,(function(t){var n=[t[0],null].concat(t.slice(1));return cr(e,mr(e,n,null,o,i),r-1),[]}))},j:function(e,r,t,n,o){r=Ae(r),-1===o&&(o=4294967295);var i=$e(t),a=function(e){return e};if(0===n){var u=32-8*t;a=function(e){return e<<u>>>u}}var s=-1!=r.indexOf("unsigned");We(e,{name:r,fromWireType:a,toWireType:function(e,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+_r(t)+'" to '+this.name);if(t<n||t>o)throw new TypeError('Passing a number "'+_r(t)+'" from JS side to C/C++ side to an argument of type "'+r+'", which is outside the valid range ['+n+", "+o+"]!");return s?t>>>0:0|t},argPackAdvance:8,readValueFromPointer:Wr(r,i,0!==n),destructorFunction:null})},h:function(e,r,t){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(e){var r=R,t=r[e>>=2],o=r[e+1];return new n(W,o,t)}We(e,{name:t=Ae(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},B:function(e,r){var t="std::string"===(r=Ae(r));We(e,{name:r,fromWireType:function(e){var r,n=R[e>>2];if(t)for(var o=e+4,i=0;i<=n;++i){var a=e+4+i;if(i==n||0==F[a]){var u=S(o,a-o);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),o=a+1}}else{var s=new Array(n);for(i=0;i<n;++i)s[i]=String.fromCharCode(F[e+4+i]);r=s.join("")}return Mr(e),r},toWireType:function(e,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var o="string"==typeof r;o||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||Se("Cannot pass non-string to std::string"),n=t&&o?function(){return function(e){for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++t)),n<=127?++r:r+=n<=2047?2:n<=65535?3:4}return r}(r)}:function(){return r.length};var i=n(),a=Br(4+i+1);if(R[a>>2]=i,t&&o)(function(e,r,t,n){if(!(n>0))return 0;for(var o=t,i=t+n-1,a=0;a<e.length;++a){var u=e.charCodeAt(a);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&e.charCodeAt(++a)),u<=127){if(t>=i)break;r[t++]=u}else if(u<=2047){if(t+1>=i)break;r[t++]=192|u>>6,r[t++]=128|63&u}else if(u<=65535){if(t+2>=i)break;r[t++]=224|u>>12,r[t++]=128|u>>6&63,r[t++]=128|63&u}else{if(t+3>=i)break;r[t++]=240|u>>18,r[t++]=128|u>>12&63,r[t++]=128|u>>6&63,r[t++]=128|63&u}}r[t]=0})(r,F,a+4,i+1);else if(o)for(var u=0;u<i;++u){var s=r.charCodeAt(u);s>255&&(Mr(a),Se("String has UTF-16 code units that do not fit in 8 bits")),F[a+4+u]=s}else for(u=0;u<i;++u)F[a+4+u]=r[u];return null!==e&&e.push(Mr,a),a},argPackAdvance:8,readValueFromPointer:le,destructorFunction:function(e){Mr(e)}})},v:function(e,r,t){var n,o,i,a,u;t=Ae(t),2===r?(n=U,o=B,a=M,i=function(){return O},u=1):4===r&&(n=V,o=q,a=H,i=function(){return R},u=2),We(e,{name:t,fromWireType:function(e){for(var t,o=R[e>>2],a=i(),s=e+4,c=0;c<=o;++c){var f=e+4+c*r;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+r}}return Mr(e),t},toWireType:function(e,n){"string"!=typeof n&&Se("Cannot pass non-string to C++ string type "+t);var i=a(n),s=Br(4+i+r);return R[s>>2]=i>>u,o(n,s+4,i+r),null!==e&&e.push(Mr,s),s},argPackAdvance:8,readValueFromPointer:le,destructorFunction:function(e){Mr(e)}})},u:function(e,r,t,n,o,i){ce[e]={name:Ae(r),rawConstructor:lr(t,n),rawDestructor:lr(o,i),fields:[]}},c:function(e,r,t,n,o,i,a,u,s,c){ce[e].fields.push({fieldName:Ae(r),getterReturnType:t,getter:lr(n,o),getterContext:i,setterArgumentType:a,setter:lr(u,s),setterContext:c})},J:function(e,r){We(e,{isVoid:!0,name:r=Ae(r),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,r){}})},m:function(e,r,t){e=Er(e),r=Ar(r,"emval::as");var n=[],o=$r(n);return j[t>>2]=o,r.toWireType(n,e)},s:function(e,r,t,n){(e=Or[e])(r=Er(r),t=kr(t),null,n)},b:Tr,y:function(e){return 0===e?$r(jr()):(e=kr(e),$r(jr()[e]))},p:function(e,r){for(var t=function(e,r){for(var t=new Array(e),n=0;n<e;++n)t[n]=Ar(j[(r>>2)+n],"parameter "+n);return t}(e,r),n=t[0],o=n.name+"_$"+t.slice(1).map((function(e){return e.name})).join("_")+"$",i=["retType"],a=[n],u="",s=0;s<e-1;++s)u+=(0!==s?", ":"")+"arg"+s,i.push("argType"+s),a.push(t[1+s]);var c="return function "+me("methodCaller_"+o)+"(handle, name, destructors, args) {\n",f=0;for(s=0;s<e-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<e-1;++s)t[s+1].deleteObject&&(c+=" argType"+s+".deleteObject(arg"+s+");\n");n.isVoid||(c+=" return retType.toWireType(destructors, rv);\n"),c+="};\n",i.push(c);var l,p,d=yr(Function,i).apply(null,a);return l=d,p=Or.length,Or.push(l),p},r:function(e){return e=kr(e),$r(o[e])},e:function(e,r){return $r((e=Er(e))[r=Er(r)])},g:function(e){e>4&&(wr[e].refcount+=1)},q:function(e,r,t,n){e=Er(e);var i=Rr[r];return i||(i=function(e){for(var r="",t=0;t<e;++t)r+=(0!==t?", ":"")+"arg"+t;var n="return function emval_allocator_"+e+"(constructor, argTypes, args) {\n";for(t=0;t<e;++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("+r+");\nreturn __emval_register(obj);\n}\n",new Function("requireRegisteredType","Module","__emval_register",n)(Ar,o,$r)}(r),Rr[r]=i),i(e,t,n)},f:function(e){return $r(kr(e))},l:function(e){fe(wr[e].value),Tr(e)},o:function(){Z()},E:function(e,r,t){F.copyWithin(e,r,r+t)},F:function(e){var r,t,n=F.length,o=2147483648;if((e>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=n*(1+.2/i);if(a=Math.min(a,e+100663296),xr(Math.min(o,((r=Math.max(e,a))%(t=65536)>0&&(r+=t-r%t),r))))return!0}return!1},G:function(e){return 0},C:function(e,r,t,n,o){},z:function(e,r,t,n){for(var o=0,i=0;i<t;i++){for(var a=j[r+8*i>>2],u=j[r+(8*i+4)>>2],s=0;s<u;s++)Ir.printChar(e,F[a+s]);o+=u}return j[n>>2]=o,0},D:function(e){b(0|e)}},Br=(function(){var e={a:Ur};function r(e,r){var t,n=e.exports;o.asm=n,z((C=o.asm.K).buffer),N=o.asm.O,t=o.asm.L,L.unshift(t),function(e){if(K--,o.monitorRunDependencies&&o.monitorRunDependencies(K),0==K&&(null!==Q&&(clearInterval(Q),Q=null),Y)){var r=Y;Y=null,r()}}()}function t(e){r(e.instance)}function i(r){return function(){if(!T&&(f||l)){if("function"==typeof fetch&&!oe(ae))return fetch(ae,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ae+"'";return e.arrayBuffer()})).catch((function(){return ue(ae)}));if(d)return new Promise((function(e,r){d(ae,(function(r){e(new Uint8Array(r))}),r)}))}return Promise.resolve().then((function(){return ue(ae)}))}().then((function(r){return WebAssembly.instantiate(r,e)})).then(r,(function(e){w("failed to asynchronously prepare wasm: "+e),Z(e)}))}if(K++,o.monitorRunDependencies&&o.monitorRunDependencies(K),o.instantiateWasm)try{return o.instantiateWasm(e,r)}catch(e){return w("Module.instantiateWasm callback failed with error: "+e),!1}(T||"function"!=typeof WebAssembly.instantiateStreaming||te(ae)||oe(ae)||"function"!=typeof fetch?i(t):fetch(ae,{credentials:"same-origin"}).then((function(r){return WebAssembly.instantiateStreaming(r,e).then(t,(function(e){return w("wasm streaming compile failed: "+e),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(Br=o._malloc=o.asm.M).apply(null,arguments)}),Mr=o._free=function(){return(Mr=o._free=o.asm.N).apply(null,arguments)},Vr=o.___getTypeName=function(){return(Vr=o.___getTypeName=o.asm.P).apply(null,arguments)};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)};function qr(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Hr(e){function r(){Dr||(Dr=!0,o.calledRun=!0,$||(!0,se(L),se(X),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)e=o.postRun.shift(),J.unshift(e);var e;se(J)}()))}e=e||c,K>0||(!function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)e=o.preRun.shift(),G.unshift(e);var e;se(G)}(),K>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),r()}),1)):r()))}if(Y=function e(){Dr||Hr(),Dr||(Y=e)},o.run=Hr,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Hr(),r.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,117 @@
|
|
1
|
+
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(k){var n=0;return function(){return n<k.length?{done:!1,value:k[n++]}:{done:!0}}};$jscomp.arrayIterator=function(k){return{next:$jscomp.arrayIteratorImpl(k)}};$jscomp.makeIterator=function(k){var n="undefined"!=typeof Symbol&&Symbol.iterator&&k[Symbol.iterator];return n?n.call(k):$jscomp.arrayIterator(k)};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
|
2
|
+
$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.getGlobal=function(k){k=["object"==typeof globalThis&&globalThis,k,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<k.length;++n){var l=k[n];if(l&&l.Math==Math)return l}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
3
|
+
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(k,n,l){if(k==Array.prototype||k==Object.prototype)return k;k[n]=l.value;return k};$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$";
|
4
|
+
var $jscomp$lookupPolyfilledValue=function(k,n){var l=$jscomp.propertyToPolyfillSymbol[n];if(null==l)return k[n];l=k[l];return void 0!==l?l:k[n]};$jscomp.polyfill=function(k,n,l,p){n&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(k,n,l,p):$jscomp.polyfillUnisolated(k,n,l,p))};
|
5
|
+
$jscomp.polyfillUnisolated=function(k,n,l,p){l=$jscomp.global;k=k.split(".");for(p=0;p<k.length-1;p++){var h=k[p];if(!(h in l))return;l=l[h]}k=k[k.length-1];p=l[k];n=n(p);n!=p&&null!=n&&$jscomp.defineProperty(l,k,{configurable:!0,writable:!0,value:n})};
|
6
|
+
$jscomp.polyfillIsolated=function(k,n,l,p){var h=k.split(".");k=1===h.length;p=h[0];p=!k&&p in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var A=0;A<h.length-1;A++){var f=h[A];if(!(f in p))return;p=p[f]}h=h[h.length-1];l=$jscomp.IS_SYMBOL_NATIVE&&"es6"===l?p[h]:null;n=n(l);null!=n&&(k?$jscomp.defineProperty($jscomp.polyfills,h,{configurable:!0,writable:!0,value:n}):n!==l&&(void 0===$jscomp.propertyToPolyfillSymbol[h]&&(l=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[h]=$jscomp.IS_SYMBOL_NATIVE?
|
7
|
+
$jscomp.global.Symbol(h):$jscomp.POLYFILL_PREFIX+l+"$"+h),$jscomp.defineProperty(p,$jscomp.propertyToPolyfillSymbol[h],{configurable:!0,writable:!0,value:n})))};
|
8
|
+
$jscomp.polyfill("Promise",function(k){function n(){this.batch_=null}function l(f){return f instanceof h?f:new h(function(q,v){q(f)})}if(k&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&"undefined"===typeof $jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return k;n.prototype.asyncExecute=function(f){if(null==this.batch_){this.batch_=[];var q=this;this.asyncExecuteFunction(function(){q.executeBatch_()})}this.batch_.push(f)};
|
9
|
+
var p=$jscomp.global.setTimeout;n.prototype.asyncExecuteFunction=function(f){p(f,0)};n.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var f=this.batch_;this.batch_=[];for(var q=0;q<f.length;++q){var v=f[q];f[q]=null;try{v()}catch(z){this.asyncThrow_(z)}}}this.batch_=null};n.prototype.asyncThrow_=function(f){this.asyncExecuteFunction(function(){throw f;})};var h=function(f){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var q=this.createResolveAndReject_();
|
10
|
+
try{f(q.resolve,q.reject)}catch(v){q.reject(v)}};h.prototype.createResolveAndReject_=function(){function f(z){return function(O){v||(v=!0,z.call(q,O))}}var q=this,v=!1;return{resolve:f(this.resolveTo_),reject:f(this.reject_)}};h.prototype.resolveTo_=function(f){if(f===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(f instanceof h)this.settleSameAsPromise_(f);else{a:switch(typeof f){case "object":var q=null!=f;break a;case "function":q=!0;break a;default:q=!1}q?this.resolveToNonPromiseObj_(f):
|
11
|
+
this.fulfill_(f)}};h.prototype.resolveToNonPromiseObj_=function(f){var q=void 0;try{q=f.then}catch(v){this.reject_(v);return}"function"==typeof q?this.settleSameAsThenable_(q,f):this.fulfill_(f)};h.prototype.reject_=function(f){this.settle_(2,f)};h.prototype.fulfill_=function(f){this.settle_(1,f)};h.prototype.settle_=function(f,q){if(0!=this.state_)throw Error("Cannot settle("+f+", "+q+"): Promise already settled in state"+this.state_);this.state_=f;this.result_=q;2===this.state_&&this.scheduleUnhandledRejectionCheck_();
|
12
|
+
this.executeOnSettledCallbacks_()};h.prototype.scheduleUnhandledRejectionCheck_=function(){var f=this;p(function(){if(f.notifyUnhandledRejection_()){var q=$jscomp.global.console;"undefined"!==typeof q&&q.error(f.result_)}},1)};h.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var f=$jscomp.global.CustomEvent,q=$jscomp.global.Event,v=$jscomp.global.dispatchEvent;if("undefined"===typeof v)return!0;"function"===typeof f?f=new f("unhandledrejection",{cancelable:!0}):
|
13
|
+
"function"===typeof q?f=new q("unhandledrejection",{cancelable:!0}):(f=$jscomp.global.document.createEvent("CustomEvent"),f.initCustomEvent("unhandledrejection",!1,!0,f));f.promise=this;f.reason=this.result_;return v(f)};h.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var f=0;f<this.onSettledCallbacks_.length;++f)A.asyncExecute(this.onSettledCallbacks_[f]);this.onSettledCallbacks_=null}};var A=new n;h.prototype.settleSameAsPromise_=function(f){var q=this.createResolveAndReject_();
|
14
|
+
f.callWhenSettled_(q.resolve,q.reject)};h.prototype.settleSameAsThenable_=function(f,q){var v=this.createResolveAndReject_();try{f.call(q,v.resolve,v.reject)}catch(z){v.reject(z)}};h.prototype.then=function(f,q){function v(t,x){return"function"==typeof t?function(D){try{z(t(D))}catch(R){O(R)}}:x}var z,O,ba=new h(function(t,x){z=t;O=x});this.callWhenSettled_(v(f,z),v(q,O));return ba};h.prototype.catch=function(f){return this.then(void 0,f)};h.prototype.callWhenSettled_=function(f,q){function v(){switch(z.state_){case 1:f(z.result_);
|
15
|
+
break;case 2:q(z.result_);break;default:throw Error("Unexpected state: "+z.state_);}}var z=this;null==this.onSettledCallbacks_?A.asyncExecute(v):this.onSettledCallbacks_.push(v);this.isRejectionHandled_=!0};h.resolve=l;h.reject=function(f){return new h(function(q,v){v(f)})};h.race=function(f){return new h(function(q,v){for(var z=$jscomp.makeIterator(f),O=z.next();!O.done;O=z.next())l(O.value).callWhenSettled_(q,v)})};h.all=function(f){var q=$jscomp.makeIterator(f),v=q.next();return v.done?l([]):new h(function(z,
|
16
|
+
O){function ba(D){return function(R){t[D]=R;x--;0==x&&z(t)}}var t=[],x=0;do t.push(void 0),x++,l(v.value).callWhenSettled_(ba(t.length-1),O),v=q.next();while(!v.done)})};return h},"es6","es3");$jscomp.owns=function(k,n){return Object.prototype.hasOwnProperty.call(k,n)};$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(k,n){for(var l=1;l<arguments.length;l++){var p=arguments[l];if(p)for(var h in p)$jscomp.owns(p,h)&&(k[h]=p[h])}return k};
|
17
|
+
$jscomp.polyfill("Object.assign",function(k){return k||$jscomp.assign},"es6","es3");$jscomp.checkStringArgs=function(k,n,l){if(null==k)throw new TypeError("The 'this' value for String.prototype."+l+" must not be null or undefined");if(n instanceof RegExp)throw new TypeError("First argument to String.prototype."+l+" must not be a regular expression");return k+""};
|
18
|
+
$jscomp.polyfill("String.prototype.startsWith",function(k){return k?k:function(n,l){var p=$jscomp.checkStringArgs(this,n,"startsWith");n+="";var h=p.length,A=n.length;l=Math.max(0,Math.min(l|0,p.length));for(var f=0;f<A&&l<h;)if(p[l++]!=n[f++])return!1;return f>=A}},"es6","es3");
|
19
|
+
$jscomp.polyfill("Array.prototype.copyWithin",function(k){function n(l){l=Number(l);return Infinity===l||-Infinity===l?l:l|0}return k?k:function(l,p,h){var A=this.length;l=n(l);p=n(p);h=void 0===h?A:n(h);l=0>l?Math.max(A+l,0):Math.min(l,A);p=0>p?Math.max(A+p,0):Math.min(p,A);h=0>h?Math.max(A+h,0):Math.min(h,A);if(l<p)for(;p<h;)p in this?this[l++]=this[p++]:(delete this[l++],p++);else for(h=Math.min(h,A+p-l),l+=h-p;h>p;)--h in this?this[--l]=this[h]:delete this[--l];return this}},"es6","es3");
|
20
|
+
$jscomp.typedArrayCopyWithin=function(k){return k?k: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");
|
21
|
+
$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");
|
22
|
+
var DracoDecoderModule=function(){var k="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(k=k||__filename);return function(n){function l(e){return a.locateFile?a.locateFile(e,U):U+e}function p(e,b,c){var d=b+c;for(c=b;e[c]&&!(c>=d);)++c;if(16<c-b&&e.buffer&&ua)return ua.decode(e.subarray(b,c));for(d="";b<c;){var g=e[b++];if(g&128){var u=e[b++]&63;if(192==(g&224))d+=String.fromCharCode((g&31)<<6|u);else{var X=e[b++]&63;g=224==
|
23
|
+
(g&240)?(g&15)<<12|u<<6|X:(g&7)<<18|u<<12|X<<6|e[b++]&63;65536>g?d+=String.fromCharCode(g):(g-=65536,d+=String.fromCharCode(55296|g>>10,56320|g&1023))}}else d+=String.fromCharCode(g)}return d}function h(e,b){return e?p(ea,e,b):""}function A(e){va=e;a.HEAP8=Y=new Int8Array(e);a.HEAP16=new Int16Array(e);a.HEAP32=ca=new Int32Array(e);a.HEAPU8=ea=new Uint8Array(e);a.HEAPU16=new Uint16Array(e);a.HEAPU32=V=new Uint32Array(e);a.HEAPF32=new Float32Array(e);a.HEAPF64=new Float64Array(e)}function f(e){if(a.onAbort)a.onAbort(e);
|
24
|
+
e="Aborted("+e+")";da(e);wa=!0;e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info.");ja(e);throw e;}function q(e){try{if(e==P&&fa)return new Uint8Array(fa);if(ma)return ma(e);throw"both async and sync fetching of the wasm failed";}catch(b){f(b)}}function v(){if(!fa&&(xa||ha)){if("function"==typeof fetch&&!P.startsWith("file://"))return fetch(P,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+P+"'";return e.arrayBuffer()}).catch(function(){return q(P)});
|
25
|
+
if(na)return new Promise(function(e,b){na(P,function(c){e(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return q(P)})}function z(e){for(;0<e.length;)e.shift()(a)}function O(e){this.excPtr=e;this.ptr=e-24;this.set_type=function(b){V[this.ptr+4>>2]=b};this.get_type=function(){return V[this.ptr+4>>2]};this.set_destructor=function(b){V[this.ptr+8>>2]=b};this.get_destructor=function(){return V[this.ptr+8>>2]};this.set_refcount=function(b){ca[this.ptr>>2]=b};this.set_caught=function(b){Y[this.ptr+
|
26
|
+
12>>0]=b?1:0};this.get_caught=function(){return 0!=Y[this.ptr+12>>0]};this.set_rethrown=function(b){Y[this.ptr+13>>0]=b?1:0};this.get_rethrown=function(){return 0!=Y[this.ptr+13>>0]};this.init=function(b,c){this.set_adjusted_ptr(0);this.set_type(b);this.set_destructor(c);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){ca[this.ptr>>2]+=1};this.release_ref=function(){var b=ca[this.ptr>>2];ca[this.ptr>>2]=b-1;return 1===b};this.set_adjusted_ptr=function(b){V[this.ptr+
|
27
|
+
16>>2]=b};this.get_adjusted_ptr=function(){return V[this.ptr+16>>2]};this.get_exception_ptr=function(){if(ya(this.get_type()))return V[this.excPtr>>2];var b=this.get_adjusted_ptr();return 0!==b?b:this.excPtr}}function ba(e){function b(){if(!ka&&(ka=!0,a.calledRun=!0,!wa)){za=!0;z(oa);Aa(a);if(a.onRuntimeInitialized)a.onRuntimeInitialized();if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)Ba.unshift(a.postRun.shift());z(Ba)}}if(!(0<aa)){if(a.preRun)for("function"==
|
28
|
+
typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)Ca.unshift(a.preRun.shift());z(Ca);0<aa||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1);b()},1)):b())}}function t(){}function x(e){return(e||t).__cache__}function D(e,b){var c=x(b),d=c[e];if(d)return d;d=Object.create((b||t).prototype);d.ptr=e;return c[e]=d}function R(e){if("string"===typeof e){for(var b=0,c=0;c<e.length;++c){var d=e.charCodeAt(c);127>=d?b++:2047>=d?b+=2:55296<=d&&57343>=
|
29
|
+
d?(b+=4,++c):b+=3}b=Array(b+1);c=0;d=b.length;if(0<d){d=c+d-1;for(var g=0;g<e.length;++g){var u=e.charCodeAt(g);if(55296<=u&&57343>=u){var X=e.charCodeAt(++g);u=65536+((u&1023)<<10)|X&1023}if(127>=u){if(c>=d)break;b[c++]=u}else{if(2047>=u){if(c+1>=d)break;b[c++]=192|u>>6}else{if(65535>=u){if(c+2>=d)break;b[c++]=224|u>>12}else{if(c+3>=d)break;b[c++]=240|u>>18;b[c++]=128|u>>12&63}b[c++]=128|u>>6&63}b[c++]=128|u&63}}b[c]=0}e=r.alloc(b,Y);r.copy(b,Y,e);return e}return e}function pa(e){if("object"===typeof e){var b=
|
30
|
+
r.alloc(e,Y);r.copy(e,Y,b);return b}return e}function Z(){throw"cannot construct a VoidPtr, no constructor in IDL";}function S(){this.ptr=Da();x(S)[this.ptr]=this}function Q(){this.ptr=Ea();x(Q)[this.ptr]=this}function W(){this.ptr=Fa();x(W)[this.ptr]=this}function w(){this.ptr=Ga();x(w)[this.ptr]=this}function C(){this.ptr=Ha();x(C)[this.ptr]=this}function F(){this.ptr=Ia();x(F)[this.ptr]=this}function G(){this.ptr=Ja();x(G)[this.ptr]=this}function E(){this.ptr=Ka();x(E)[this.ptr]=this}function T(){this.ptr=
|
31
|
+
La();x(T)[this.ptr]=this}function B(){throw"cannot construct a Status, no constructor in IDL";}function H(){this.ptr=Ma();x(H)[this.ptr]=this}function I(){this.ptr=Na();x(I)[this.ptr]=this}function J(){this.ptr=Oa();x(J)[this.ptr]=this}function K(){this.ptr=Pa();x(K)[this.ptr]=this}function L(){this.ptr=Qa();x(L)[this.ptr]=this}function M(){this.ptr=Ra();x(M)[this.ptr]=this}function N(){this.ptr=Sa();x(N)[this.ptr]=this}function y(){this.ptr=Ta();x(y)[this.ptr]=this}function m(){this.ptr=Ua();x(m)[this.ptr]=
|
32
|
+
this}n=n||{};var a="undefined"!=typeof n?n:{},Aa,ja;a.ready=new Promise(function(e,b){Aa=e;ja=b});var Va=!1,Wa=!1;a.onRuntimeInitialized=function(){Va=!0;if(Wa&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){Wa=!0;if(Va&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(e){if("string"!==typeof e)return!1;e=e.split(".");return 2>e.length||3<e.length?!1:1==e[0]&&0<=e[1]&&5>=e[1]?!0:0!=e[0]||10<e[1]?!1:!0};var Xa=Object.assign({},
|
33
|
+
a),xa="object"==typeof window,ha="function"==typeof importScripts,Ya="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,U="";if(Ya){U=ha?require("path").dirname(U)+"/":__dirname+"/";if("function"===typeof require){var Za=require("fs");var $a=require("path")}var ab=function(e,b){e=$a.normalize(e);return Za.readFileSync(e,b?void 0:"utf8")};var ma=function(e){e=ab(e,!0);e.buffer||(e=new Uint8Array(e));return e};var na=function(e,b,c){e=$a.normalize(e);
|
34
|
+
Za.readFile(e,function(d,g){d?c(d):b(g.buffer)})};1<process.argv.length&&process.argv[1].replace(/\\/g,"/");process.argv.slice(2);a.inspect=function(){return"[Emscripten Module object]"}}else if(xa||ha)ha?U=self.location.href:"undefined"!=typeof document&&document.currentScript&&(U=document.currentScript.src),k&&(U=k),U=0!==U.indexOf("blob:")?U.substr(0,U.replace(/[?#].*/,"").lastIndexOf("/")+1):"",ab=function(e){var b=new XMLHttpRequest;b.open("GET",e,!1);b.send(null);return b.responseText},ha&&
|
35
|
+
(ma=function(e){var b=new XMLHttpRequest;b.open("GET",e,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),na=function(e,b,c){var d=new XMLHttpRequest;d.open("GET",e,!0);d.responseType="arraybuffer";d.onload=function(){200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)};var wd=a.print||console.log.bind(console),da=a.printErr||console.warn.bind(console);Object.assign(a,Xa);Xa=null;var fa;a.wasmBinary&&(fa=a.wasmBinary);"object"!=typeof WebAssembly&&
|
36
|
+
f("no native wasm support detected");var la,wa=!1,ua="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,va,Y,ea,ca,V,Ca=[],oa=[],Ba=[],za=!1,aa=0,qa=null,ia=null;var P="draco_decoder.wasm";P.startsWith("data:application/octet-stream;base64,")||(P=l(P));var xd=0,yd=[null,[],[]],zd={c:function(e){return bb(e+24)+24},b:function(e,b,c){(new O(e)).init(b,c);xd++;throw e;},a:function(){f("")},h:function(e,b,c){ea.copyWithin(e,b,b+c)},f:function(e){var b=ea.length;e>>>=0;if(2147483648<e)return!1;
|
37
|
+
for(var c=1;4>=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,e+100663296);var g=Math;d=Math.max(e,d);g=g.min.call(g,2147483648,d+(65536-d%65536)%65536);a:{try{la.grow(g-va.byteLength+65535>>>16);A(la.buffer);var u=1;break a}catch(X){}u=void 0}if(u)return!0}return!1},g:function(e){return 52},e:function(e,b,c,d,g){return 70},d:function(e,b,c,d){for(var g=0,u=0;u<c;u++){var X=V[b>>2],cb=V[b+4>>2];b+=8;for(var ra=0;ra<cb;ra++){var sa=ea[X+ra],ta=yd[e];0===sa||10===sa?((1===e?wd:da)(p(ta,0)),ta.length=0):ta.push(sa)}g+=
|
38
|
+
cb}V[d>>2]=g;return 0}};(function(){function e(g,u){a.asm=g.exports;la=a.asm.i;A(la.buffer);oa.unshift(a.asm.j);aa--;a.monitorRunDependencies&&a.monitorRunDependencies(aa);0==aa&&(null!==qa&&(clearInterval(qa),qa=null),ia&&(g=ia,ia=null,g()))}function b(g){e(g.instance)}function c(g){return v().then(function(u){return WebAssembly.instantiate(u,d)}).then(function(u){return u}).then(g,function(u){da("failed to asynchronously prepare wasm: "+u);f(u)})}var d={a:zd};aa++;a.monitorRunDependencies&&a.monitorRunDependencies(aa);
|
39
|
+
if(a.instantiateWasm)try{return a.instantiateWasm(d,e)}catch(g){da("Module.instantiateWasm callback failed with error: "+g),ja(g)}(function(){return fa||"function"!=typeof WebAssembly.instantiateStreaming||P.startsWith("data:application/octet-stream;base64,")||P.startsWith("file://")||Ya||"function"!=typeof fetch?c(b):fetch(P,{credentials:"same-origin"}).then(function(g){return WebAssembly.instantiateStreaming(g,d).then(b,function(u){da("wasm streaming compile failed: "+u);da("falling back to ArrayBuffer instantiation");
|
40
|
+
return c(b)})})})().catch(ja);return{}})();a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.j).apply(null,arguments)};var db=a._emscripten_bind_VoidPtr___destroy___0=function(){return(db=a._emscripten_bind_VoidPtr___destroy___0=a.asm.l).apply(null,arguments)},Da=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(Da=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=a.asm.m).apply(null,arguments)},eb=a._emscripten_bind_DecoderBuffer_Init_2=function(){return(eb=a._emscripten_bind_DecoderBuffer_Init_2=
|
41
|
+
a.asm.n).apply(null,arguments)},fb=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return(fb=a._emscripten_bind_DecoderBuffer___destroy___0=a.asm.o).apply(null,arguments)},Ea=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return(Ea=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=a.asm.p).apply(null,arguments)},gb=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(gb=a._emscripten_bind_AttributeTransformData_transform_type_0=
|
42
|
+
a.asm.q).apply(null,arguments)},hb=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return(hb=a._emscripten_bind_AttributeTransformData___destroy___0=a.asm.r).apply(null,arguments)},Fa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Fa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.s).apply(null,arguments)},ib=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(ib=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.t).apply(null,
|
43
|
+
arguments)},Ga=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Ga=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.u).apply(null,arguments)},jb=a._emscripten_bind_PointAttribute_size_0=function(){return(jb=a._emscripten_bind_PointAttribute_size_0=a.asm.v).apply(null,arguments)},kb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(kb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=a.asm.w).apply(null,arguments)},lb=a._emscripten_bind_PointAttribute_attribute_type_0=
|
44
|
+
function(){return(lb=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.x).apply(null,arguments)},mb=a._emscripten_bind_PointAttribute_data_type_0=function(){return(mb=a._emscripten_bind_PointAttribute_data_type_0=a.asm.y).apply(null,arguments)},nb=a._emscripten_bind_PointAttribute_num_components_0=function(){return(nb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.z).apply(null,arguments)},ob=a._emscripten_bind_PointAttribute_normalized_0=function(){return(ob=a._emscripten_bind_PointAttribute_normalized_0=
|
45
|
+
a.asm.A).apply(null,arguments)},pb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(pb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.B).apply(null,arguments)},qb=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(qb=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.C).apply(null,arguments)},rb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return(rb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.D).apply(null,arguments)},sb=a._emscripten_bind_PointAttribute___destroy___0=
|
46
|
+
function(){return(sb=a._emscripten_bind_PointAttribute___destroy___0=a.asm.E).apply(null,arguments)},Ha=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Ha=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=a.asm.F).apply(null,arguments)},tb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(tb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=a.asm.G).apply(null,
|
47
|
+
arguments)},ub=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(ub=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=a.asm.H).apply(null,arguments)},vb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(vb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=a.asm.I).apply(null,arguments)},wb=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(wb=a._emscripten_bind_AttributeQuantizationTransform_range_0=
|
48
|
+
a.asm.J).apply(null,arguments)},xb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(xb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=a.asm.K).apply(null,arguments)},Ia=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Ia=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=a.asm.L).apply(null,arguments)},yb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=
|
49
|
+
function(){return(yb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=a.asm.M).apply(null,arguments)},zb=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(zb=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=a.asm.N).apply(null,arguments)},Ab=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Ab=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=a.asm.O).apply(null,arguments)},Ja=a._emscripten_bind_PointCloud_PointCloud_0=
|
50
|
+
function(){return(Ja=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.P).apply(null,arguments)},Bb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(Bb=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.Q).apply(null,arguments)},Cb=a._emscripten_bind_PointCloud_num_points_0=function(){return(Cb=a._emscripten_bind_PointCloud_num_points_0=a.asm.R).apply(null,arguments)},Db=a._emscripten_bind_PointCloud___destroy___0=function(){return(Db=a._emscripten_bind_PointCloud___destroy___0=a.asm.S).apply(null,
|
51
|
+
arguments)},Ka=a._emscripten_bind_Mesh_Mesh_0=function(){return(Ka=a._emscripten_bind_Mesh_Mesh_0=a.asm.T).apply(null,arguments)},Eb=a._emscripten_bind_Mesh_num_faces_0=function(){return(Eb=a._emscripten_bind_Mesh_num_faces_0=a.asm.U).apply(null,arguments)},Fb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(Fb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.V).apply(null,arguments)},Gb=a._emscripten_bind_Mesh_num_points_0=function(){return(Gb=a._emscripten_bind_Mesh_num_points_0=a.asm.W).apply(null,
|
52
|
+
arguments)},Hb=a._emscripten_bind_Mesh___destroy___0=function(){return(Hb=a._emscripten_bind_Mesh___destroy___0=a.asm.X).apply(null,arguments)},La=a._emscripten_bind_Metadata_Metadata_0=function(){return(La=a._emscripten_bind_Metadata_Metadata_0=a.asm.Y).apply(null,arguments)},Ib=a._emscripten_bind_Metadata___destroy___0=function(){return(Ib=a._emscripten_bind_Metadata___destroy___0=a.asm.Z).apply(null,arguments)},Jb=a._emscripten_bind_Status_code_0=function(){return(Jb=a._emscripten_bind_Status_code_0=
|
53
|
+
a.asm._).apply(null,arguments)},Kb=a._emscripten_bind_Status_ok_0=function(){return(Kb=a._emscripten_bind_Status_ok_0=a.asm.$).apply(null,arguments)},Lb=a._emscripten_bind_Status_error_msg_0=function(){return(Lb=a._emscripten_bind_Status_error_msg_0=a.asm.aa).apply(null,arguments)},Mb=a._emscripten_bind_Status___destroy___0=function(){return(Mb=a._emscripten_bind_Status___destroy___0=a.asm.ba).apply(null,arguments)},Ma=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return(Ma=
|
54
|
+
a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=a.asm.ca).apply(null,arguments)},Nb=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(Nb=a._emscripten_bind_DracoFloat32Array_GetValue_1=a.asm.da).apply(null,arguments)},Ob=a._emscripten_bind_DracoFloat32Array_size_0=function(){return(Ob=a._emscripten_bind_DracoFloat32Array_size_0=a.asm.ea).apply(null,arguments)},Pb=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(Pb=a._emscripten_bind_DracoFloat32Array___destroy___0=
|
55
|
+
a.asm.fa).apply(null,arguments)},Na=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Na=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.ga).apply(null,arguments)},Qb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(Qb=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.ha).apply(null,arguments)},Rb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(Rb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.ia).apply(null,arguments)},Sb=a._emscripten_bind_DracoInt8Array___destroy___0=
|
56
|
+
function(){return(Sb=a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.ja).apply(null,arguments)},Oa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(Oa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=a.asm.ka).apply(null,arguments)},Tb=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(Tb=a._emscripten_bind_DracoUInt8Array_GetValue_1=a.asm.la).apply(null,arguments)},Ub=a._emscripten_bind_DracoUInt8Array_size_0=function(){return(Ub=a._emscripten_bind_DracoUInt8Array_size_0=
|
57
|
+
a.asm.ma).apply(null,arguments)},Vb=a._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(Vb=a._emscripten_bind_DracoUInt8Array___destroy___0=a.asm.na).apply(null,arguments)},Pa=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Pa=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=a.asm.oa).apply(null,arguments)},Wb=a._emscripten_bind_DracoInt16Array_GetValue_1=function(){return(Wb=a._emscripten_bind_DracoInt16Array_GetValue_1=a.asm.pa).apply(null,arguments)},Xb=
|
58
|
+
a._emscripten_bind_DracoInt16Array_size_0=function(){return(Xb=a._emscripten_bind_DracoInt16Array_size_0=a.asm.qa).apply(null,arguments)},Yb=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return(Yb=a._emscripten_bind_DracoInt16Array___destroy___0=a.asm.ra).apply(null,arguments)},Qa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return(Qa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=a.asm.sa).apply(null,arguments)},Zb=a._emscripten_bind_DracoUInt16Array_GetValue_1=
|
59
|
+
function(){return(Zb=a._emscripten_bind_DracoUInt16Array_GetValue_1=a.asm.ta).apply(null,arguments)},$b=a._emscripten_bind_DracoUInt16Array_size_0=function(){return($b=a._emscripten_bind_DracoUInt16Array_size_0=a.asm.ua).apply(null,arguments)},ac=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(ac=a._emscripten_bind_DracoUInt16Array___destroy___0=a.asm.va).apply(null,arguments)},Ra=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return(Ra=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=
|
60
|
+
a.asm.wa).apply(null,arguments)},bc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(bc=a._emscripten_bind_DracoInt32Array_GetValue_1=a.asm.xa).apply(null,arguments)},cc=a._emscripten_bind_DracoInt32Array_size_0=function(){return(cc=a._emscripten_bind_DracoInt32Array_size_0=a.asm.ya).apply(null,arguments)},dc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return(dc=a._emscripten_bind_DracoInt32Array___destroy___0=a.asm.za).apply(null,arguments)},Sa=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=
|
61
|
+
function(){return(Sa=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=a.asm.Aa).apply(null,arguments)},ec=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(ec=a._emscripten_bind_DracoUInt32Array_GetValue_1=a.asm.Ba).apply(null,arguments)},fc=a._emscripten_bind_DracoUInt32Array_size_0=function(){return(fc=a._emscripten_bind_DracoUInt32Array_size_0=a.asm.Ca).apply(null,arguments)},gc=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(gc=a._emscripten_bind_DracoUInt32Array___destroy___0=
|
62
|
+
a.asm.Da).apply(null,arguments)},Ta=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(Ta=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=a.asm.Ea).apply(null,arguments)},hc=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(hc=a._emscripten_bind_MetadataQuerier_HasEntry_2=a.asm.Fa).apply(null,arguments)},ic=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(ic=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=a.asm.Ga).apply(null,arguments)},jc=
|
63
|
+
a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=function(){return(jc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=a.asm.Ha).apply(null,arguments)},kc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return(kc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=a.asm.Ia).apply(null,arguments)},lc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(lc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=a.asm.Ja).apply(null,arguments)},mc=a._emscripten_bind_MetadataQuerier_NumEntries_1=
|
64
|
+
function(){return(mc=a._emscripten_bind_MetadataQuerier_NumEntries_1=a.asm.Ka).apply(null,arguments)},nc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(nc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=a.asm.La).apply(null,arguments)},oc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return(oc=a._emscripten_bind_MetadataQuerier___destroy___0=a.asm.Ma).apply(null,arguments)},Ua=a._emscripten_bind_Decoder_Decoder_0=function(){return(Ua=a._emscripten_bind_Decoder_Decoder_0=
|
65
|
+
a.asm.Na).apply(null,arguments)},pc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(pc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=a.asm.Oa).apply(null,arguments)},qc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(qc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=a.asm.Pa).apply(null,arguments)},rc=a._emscripten_bind_Decoder_GetAttributeId_2=function(){return(rc=a._emscripten_bind_Decoder_GetAttributeId_2=a.asm.Qa).apply(null,arguments)},sc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=
|
66
|
+
function(){return(sc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=a.asm.Ra).apply(null,arguments)},tc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(tc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=a.asm.Sa).apply(null,arguments)},uc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return(uc=a._emscripten_bind_Decoder_GetAttribute_2=a.asm.Ta).apply(null,arguments)},vc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(vc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=
|
67
|
+
a.asm.Ua).apply(null,arguments)},wc=a._emscripten_bind_Decoder_GetMetadata_1=function(){return(wc=a._emscripten_bind_Decoder_GetMetadata_1=a.asm.Va).apply(null,arguments)},xc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(xc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=a.asm.Wa).apply(null,arguments)},yc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return(yc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=a.asm.Xa).apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=
|
68
|
+
function(){return(zc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=a.asm.Ya).apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(Ac=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=a.asm.Za).apply(null,arguments)},Bc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(Bc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=a.asm._a).apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(Cc=
|
69
|
+
a._emscripten_bind_Decoder_GetAttributeFloat_3=a.asm.$a).apply(null,arguments)},Dc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(Dc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=a.asm.ab).apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(Ec=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=a.asm.bb).apply(null,arguments)},Fc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(Fc=
|
70
|
+
a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=a.asm.cb).apply(null,arguments)},Gc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(Gc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=a.asm.db).apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(Hc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=a.asm.eb).apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=
|
71
|
+
function(){return(Ic=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=a.asm.fb).apply(null,arguments)},Jc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(Jc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=a.asm.gb).apply(null,arguments)},Kc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(Kc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=a.asm.hb).apply(null,arguments)},Lc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=
|
72
|
+
function(){return(Lc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=a.asm.ib).apply(null,arguments)},Mc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Mc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=a.asm.jb).apply(null,arguments)},Nc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Nc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=a.asm.kb).apply(null,arguments)},Oc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=
|
73
|
+
function(){return(Oc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=a.asm.lb).apply(null,arguments)},Pc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return(Pc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=a.asm.mb).apply(null,arguments)},Qc=a._emscripten_bind_Decoder___destroy___0=function(){return(Qc=a._emscripten_bind_Decoder___destroy___0=a.asm.nb).apply(null,arguments)},Rc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Rc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=
|
74
|
+
a.asm.ob).apply(null,arguments)},Sc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return(Sc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=a.asm.pb).apply(null,arguments)},Tc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Tc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=a.asm.qb).apply(null,arguments)},Uc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=
|
75
|
+
function(){return(Uc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=a.asm.rb).apply(null,arguments)},Vc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Vc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.sb).apply(null,arguments)},Wc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(Wc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.tb).apply(null,arguments)},Xc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=
|
76
|
+
function(){return(Xc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.ub).apply(null,arguments)},Yc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(Yc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.vb).apply(null,arguments)},Zc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(Zc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.wb).apply(null,arguments)},$c=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=
|
77
|
+
function(){return($c=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.xb).apply(null,arguments)},ad=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(ad=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.yb).apply(null,arguments)},bd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(bd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.zb).apply(null,arguments)},cd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=
|
78
|
+
function(){return(cd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.Ab).apply(null,arguments)},dd=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return(dd=a._emscripten_enum_draco_DataType_DT_INVALID=a.asm.Bb).apply(null,arguments)},ed=a._emscripten_enum_draco_DataType_DT_INT8=function(){return(ed=a._emscripten_enum_draco_DataType_DT_INT8=a.asm.Cb).apply(null,arguments)},fd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return(fd=a._emscripten_enum_draco_DataType_DT_UINT8=
|
79
|
+
a.asm.Db).apply(null,arguments)},gd=a._emscripten_enum_draco_DataType_DT_INT16=function(){return(gd=a._emscripten_enum_draco_DataType_DT_INT16=a.asm.Eb).apply(null,arguments)},hd=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return(hd=a._emscripten_enum_draco_DataType_DT_UINT16=a.asm.Fb).apply(null,arguments)},id=a._emscripten_enum_draco_DataType_DT_INT32=function(){return(id=a._emscripten_enum_draco_DataType_DT_INT32=a.asm.Gb).apply(null,arguments)},jd=a._emscripten_enum_draco_DataType_DT_UINT32=
|
80
|
+
function(){return(jd=a._emscripten_enum_draco_DataType_DT_UINT32=a.asm.Hb).apply(null,arguments)},kd=a._emscripten_enum_draco_DataType_DT_INT64=function(){return(kd=a._emscripten_enum_draco_DataType_DT_INT64=a.asm.Ib).apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_UINT64=function(){return(ld=a._emscripten_enum_draco_DataType_DT_UINT64=a.asm.Jb).apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(md=a._emscripten_enum_draco_DataType_DT_FLOAT32=a.asm.Kb).apply(null,
|
81
|
+
arguments)},nd=a._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return(nd=a._emscripten_enum_draco_DataType_DT_FLOAT64=a.asm.Lb).apply(null,arguments)},od=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return(od=a._emscripten_enum_draco_DataType_DT_BOOL=a.asm.Mb).apply(null,arguments)},pd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(pd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=a.asm.Nb).apply(null,arguments)},qd=a._emscripten_enum_draco_StatusCode_OK=function(){return(qd=
|
82
|
+
a._emscripten_enum_draco_StatusCode_OK=a.asm.Ob).apply(null,arguments)},rd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(rd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=a.asm.Pb).apply(null,arguments)},sd=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(sd=a._emscripten_enum_draco_StatusCode_IO_ERROR=a.asm.Qb).apply(null,arguments)},td=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(td=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=
|
83
|
+
a.asm.Rb).apply(null,arguments)},ud=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(ud=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=a.asm.Sb).apply(null,arguments)},vd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(vd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=a.asm.Tb).apply(null,arguments)},bb=a._malloc=function(){return(bb=a._malloc=a.asm.Ub).apply(null,arguments)};a._free=function(){return(a._free=a.asm.Vb).apply(null,arguments)};
|
84
|
+
var ya=a.___cxa_is_pointer_type=function(){return(ya=a.___cxa_is_pointer_type=a.asm.Wb).apply(null,arguments)};a.___start_em_js=15856;a.___stop_em_js=15954;var ka;ia=function b(){ka||ba();ka||(ia=b)};if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0<a.preInit.length;)a.preInit.pop()();ba();t.prototype=Object.create(t.prototype);t.prototype.constructor=t;t.prototype.__class__=t;t.__cache__={};a.WrapperObject=t;a.getCache=x;a.wrapPointer=D;a.castObject=function(b,c){return D(b.ptr,
|
85
|
+
c)};a.NULL=D(0);a.destroy=function(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__();delete x(b.__class__)[b.ptr]};a.compare=function(b,c){return b.ptr===c.ptr};a.getPointer=function(b){return b.ptr};a.getClass=function(b){return b.__class__};var r={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(r.needed){for(var b=0;b<r.temps.length;b++)a._free(r.temps[b]);r.temps.length=0;a._free(r.buffer);r.buffer=0;r.size+=r.needed;r.needed=
|
86
|
+
0}r.buffer||(r.size+=128,r.buffer=a._malloc(r.size),r.buffer||f(void 0));r.pos=0},alloc:function(b,c){r.buffer||f(void 0);b=b.length*c.BYTES_PER_ELEMENT;b=b+7&-8;r.pos+b>=r.size?(0<b||f(void 0),r.needed+=b,c=a._malloc(b),r.temps.push(c)):(c=r.buffer+r.pos,r.pos+=b);return c},copy:function(b,c,d){d>>>=0;switch(c.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var g=0;g<b.length;g++)c[d+g]=b[g]}};Z.prototype=Object.create(t.prototype);Z.prototype.constructor=Z;Z.prototype.__class__=
|
87
|
+
Z;Z.__cache__={};a.VoidPtr=Z;Z.prototype.__destroy__=Z.prototype.__destroy__=function(){db(this.ptr)};S.prototype=Object.create(t.prototype);S.prototype.constructor=S;S.prototype.__class__=S;S.__cache__={};a.DecoderBuffer=S;S.prototype.Init=S.prototype.Init=function(b,c){var d=this.ptr;r.prepare();"object"==typeof b&&(b=pa(b));c&&"object"===typeof c&&(c=c.ptr);eb(d,b,c)};S.prototype.__destroy__=S.prototype.__destroy__=function(){fb(this.ptr)};Q.prototype=Object.create(t.prototype);Q.prototype.constructor=
|
88
|
+
Q;Q.prototype.__class__=Q;Q.__cache__={};a.AttributeTransformData=Q;Q.prototype.transform_type=Q.prototype.transform_type=function(){return gb(this.ptr)};Q.prototype.__destroy__=Q.prototype.__destroy__=function(){hb(this.ptr)};W.prototype=Object.create(t.prototype);W.prototype.constructor=W;W.prototype.__class__=W;W.__cache__={};a.GeometryAttribute=W;W.prototype.__destroy__=W.prototype.__destroy__=function(){ib(this.ptr)};w.prototype=Object.create(t.prototype);w.prototype.constructor=w;w.prototype.__class__=
|
89
|
+
w;w.__cache__={};a.PointAttribute=w;w.prototype.size=w.prototype.size=function(){return jb(this.ptr)};w.prototype.GetAttributeTransformData=w.prototype.GetAttributeTransformData=function(){return D(kb(this.ptr),Q)};w.prototype.attribute_type=w.prototype.attribute_type=function(){return lb(this.ptr)};w.prototype.data_type=w.prototype.data_type=function(){return mb(this.ptr)};w.prototype.num_components=w.prototype.num_components=function(){return nb(this.ptr)};w.prototype.normalized=w.prototype.normalized=
|
90
|
+
function(){return!!ob(this.ptr)};w.prototype.byte_stride=w.prototype.byte_stride=function(){return pb(this.ptr)};w.prototype.byte_offset=w.prototype.byte_offset=function(){return qb(this.ptr)};w.prototype.unique_id=w.prototype.unique_id=function(){return rb(this.ptr)};w.prototype.__destroy__=w.prototype.__destroy__=function(){sb(this.ptr)};C.prototype=Object.create(t.prototype);C.prototype.constructor=C;C.prototype.__class__=C;C.__cache__={};a.AttributeQuantizationTransform=C;C.prototype.InitFromAttribute=
|
91
|
+
C.prototype.InitFromAttribute=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return!!tb(c,b)};C.prototype.quantization_bits=C.prototype.quantization_bits=function(){return ub(this.ptr)};C.prototype.min_value=C.prototype.min_value=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return vb(c,b)};C.prototype.range=C.prototype.range=function(){return wb(this.ptr)};C.prototype.__destroy__=C.prototype.__destroy__=function(){xb(this.ptr)};F.prototype=Object.create(t.prototype);
|
92
|
+
F.prototype.constructor=F;F.prototype.__class__=F;F.__cache__={};a.AttributeOctahedronTransform=F;F.prototype.InitFromAttribute=F.prototype.InitFromAttribute=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return!!yb(c,b)};F.prototype.quantization_bits=F.prototype.quantization_bits=function(){return zb(this.ptr)};F.prototype.__destroy__=F.prototype.__destroy__=function(){Ab(this.ptr)};G.prototype=Object.create(t.prototype);G.prototype.constructor=G;G.prototype.__class__=G;G.__cache__=
|
93
|
+
{};a.PointCloud=G;G.prototype.num_attributes=G.prototype.num_attributes=function(){return Bb(this.ptr)};G.prototype.num_points=G.prototype.num_points=function(){return Cb(this.ptr)};G.prototype.__destroy__=G.prototype.__destroy__=function(){Db(this.ptr)};E.prototype=Object.create(t.prototype);E.prototype.constructor=E;E.prototype.__class__=E;E.__cache__={};a.Mesh=E;E.prototype.num_faces=E.prototype.num_faces=function(){return Eb(this.ptr)};E.prototype.num_attributes=E.prototype.num_attributes=function(){return Fb(this.ptr)};
|
94
|
+
E.prototype.num_points=E.prototype.num_points=function(){return Gb(this.ptr)};E.prototype.__destroy__=E.prototype.__destroy__=function(){Hb(this.ptr)};T.prototype=Object.create(t.prototype);T.prototype.constructor=T;T.prototype.__class__=T;T.__cache__={};a.Metadata=T;T.prototype.__destroy__=T.prototype.__destroy__=function(){Ib(this.ptr)};B.prototype=Object.create(t.prototype);B.prototype.constructor=B;B.prototype.__class__=B;B.__cache__={};a.Status=B;B.prototype.code=B.prototype.code=function(){return Jb(this.ptr)};
|
95
|
+
B.prototype.ok=B.prototype.ok=function(){return!!Kb(this.ptr)};B.prototype.error_msg=B.prototype.error_msg=function(){return h(Lb(this.ptr))};B.prototype.__destroy__=B.prototype.__destroy__=function(){Mb(this.ptr)};H.prototype=Object.create(t.prototype);H.prototype.constructor=H;H.prototype.__class__=H;H.__cache__={};a.DracoFloat32Array=H;H.prototype.GetValue=H.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Nb(c,b)};H.prototype.size=H.prototype.size=function(){return Ob(this.ptr)};
|
96
|
+
H.prototype.__destroy__=H.prototype.__destroy__=function(){Pb(this.ptr)};I.prototype=Object.create(t.prototype);I.prototype.constructor=I;I.prototype.__class__=I;I.__cache__={};a.DracoInt8Array=I;I.prototype.GetValue=I.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Qb(c,b)};I.prototype.size=I.prototype.size=function(){return Rb(this.ptr)};I.prototype.__destroy__=I.prototype.__destroy__=function(){Sb(this.ptr)};J.prototype=Object.create(t.prototype);J.prototype.constructor=
|
97
|
+
J;J.prototype.__class__=J;J.__cache__={};a.DracoUInt8Array=J;J.prototype.GetValue=J.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Tb(c,b)};J.prototype.size=J.prototype.size=function(){return Ub(this.ptr)};J.prototype.__destroy__=J.prototype.__destroy__=function(){Vb(this.ptr)};K.prototype=Object.create(t.prototype);K.prototype.constructor=K;K.prototype.__class__=K;K.__cache__={};a.DracoInt16Array=K;K.prototype.GetValue=K.prototype.GetValue=function(b){var c=
|
98
|
+
this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Wb(c,b)};K.prototype.size=K.prototype.size=function(){return Xb(this.ptr)};K.prototype.__destroy__=K.prototype.__destroy__=function(){Yb(this.ptr)};L.prototype=Object.create(t.prototype);L.prototype.constructor=L;L.prototype.__class__=L;L.__cache__={};a.DracoUInt16Array=L;L.prototype.GetValue=L.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Zb(c,b)};L.prototype.size=L.prototype.size=function(){return $b(this.ptr)};
|
99
|
+
L.prototype.__destroy__=L.prototype.__destroy__=function(){ac(this.ptr)};M.prototype=Object.create(t.prototype);M.prototype.constructor=M;M.prototype.__class__=M;M.__cache__={};a.DracoInt32Array=M;M.prototype.GetValue=M.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return bc(c,b)};M.prototype.size=M.prototype.size=function(){return cc(this.ptr)};M.prototype.__destroy__=M.prototype.__destroy__=function(){dc(this.ptr)};N.prototype=Object.create(t.prototype);N.prototype.constructor=
|
100
|
+
N;N.prototype.__class__=N;N.__cache__={};a.DracoUInt32Array=N;N.prototype.GetValue=N.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return ec(c,b)};N.prototype.size=N.prototype.size=function(){return fc(this.ptr)};N.prototype.__destroy__=N.prototype.__destroy__=function(){gc(this.ptr)};y.prototype=Object.create(t.prototype);y.prototype.constructor=y;y.prototype.__class__=y;y.__cache__={};a.MetadataQuerier=y;y.prototype.HasEntry=y.prototype.HasEntry=function(b,c){var d=
|
101
|
+
this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:R(c);return!!hc(d,b,c)};y.prototype.GetIntEntry=y.prototype.GetIntEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:R(c);return ic(d,b,c)};y.prototype.GetIntEntryArray=y.prototype.GetIntEntryArray=function(b,c,d){var g=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:R(c);d&&"object"===typeof d&&(d=d.ptr);jc(g,b,c,
|
102
|
+
d)};y.prototype.GetDoubleEntry=y.prototype.GetDoubleEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:R(c);return kc(d,b,c)};y.prototype.GetStringEntry=y.prototype.GetStringEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:R(c);return h(lc(d,b,c))};y.prototype.NumEntries=y.prototype.NumEntries=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return mc(c,b)};y.prototype.GetEntryName=
|
103
|
+
y.prototype.GetEntryName=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return h(nc(d,b,c))};y.prototype.__destroy__=y.prototype.__destroy__=function(){oc(this.ptr)};m.prototype=Object.create(t.prototype);m.prototype.constructor=m;m.prototype.__class__=m;m.__cache__={};a.Decoder=m;m.prototype.DecodeArrayToPointCloud=m.prototype.DecodeArrayToPointCloud=function(b,c,d){var g=this.ptr;r.prepare();"object"==typeof b&&(b=pa(b));c&&"object"===typeof c&&
|
104
|
+
(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return D(pc(g,b,c,d),B)};m.prototype.DecodeArrayToMesh=m.prototype.DecodeArrayToMesh=function(b,c,d){var g=this.ptr;r.prepare();"object"==typeof b&&(b=pa(b));c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return D(qc(g,b,c,d),B)};m.prototype.GetAttributeId=m.prototype.GetAttributeId=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return rc(d,b,c)};m.prototype.GetAttributeIdByName=m.prototype.GetAttributeIdByName=
|
105
|
+
function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:R(c);return sc(d,b,c)};m.prototype.GetAttributeIdByMetadataEntry=m.prototype.GetAttributeIdByMetadataEntry=function(b,c,d){var g=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:R(c);d=d&&"object"===typeof d?d.ptr:R(d);return tc(g,b,c,d)};m.prototype.GetAttribute=m.prototype.GetAttribute=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===
|
106
|
+
typeof c&&(c=c.ptr);return D(uc(d,b,c),w)};m.prototype.GetAttributeByUniqueId=m.prototype.GetAttributeByUniqueId=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return D(vc(d,b,c),w)};m.prototype.GetMetadata=m.prototype.GetMetadata=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return D(wc(c,b),T)};m.prototype.GetAttributeMetadata=m.prototype.GetAttributeMetadata=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===
|
107
|
+
typeof c&&(c=c.ptr);return D(xc(d,b,c),T)};m.prototype.GetFaceFromMesh=m.prototype.GetFaceFromMesh=function(b,c,d){var g=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!yc(g,b,c,d)};m.prototype.GetTriangleStripsFromMesh=m.prototype.GetTriangleStripsFromMesh=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return zc(d,b,c)};m.prototype.GetTrianglesUInt16Array=m.prototype.GetTrianglesUInt16Array=
|
108
|
+
function(b,c,d){var g=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Ac(g,b,c,d)};m.prototype.GetTrianglesUInt32Array=m.prototype.GetTrianglesUInt32Array=function(b,c,d){var g=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Bc(g,b,c,d)};m.prototype.GetAttributeFloat=m.prototype.GetAttributeFloat=function(b,c,d){var g=this.ptr;b&&"object"===typeof b&&(b=b.ptr);
|
109
|
+
c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Cc(g,b,c,d)};m.prototype.GetAttributeFloatForAllPoints=m.prototype.GetAttributeFloatForAllPoints=function(b,c,d){var g=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Dc(g,b,c,d)};m.prototype.GetAttributeIntForAllPoints=m.prototype.GetAttributeIntForAllPoints=function(b,c,d){var g=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);
|
110
|
+
d&&"object"===typeof d&&(d=d.ptr);return!!Ec(g,b,c,d)};m.prototype.GetAttributeInt8ForAllPoints=m.prototype.GetAttributeInt8ForAllPoints=function(b,c,d){var g=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Fc(g,b,c,d)};m.prototype.GetAttributeUInt8ForAllPoints=m.prototype.GetAttributeUInt8ForAllPoints=function(b,c,d){var g=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=
|
111
|
+
d.ptr);return!!Gc(g,b,c,d)};m.prototype.GetAttributeInt16ForAllPoints=m.prototype.GetAttributeInt16ForAllPoints=function(b,c,d){var g=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Hc(g,b,c,d)};m.prototype.GetAttributeUInt16ForAllPoints=m.prototype.GetAttributeUInt16ForAllPoints=function(b,c,d){var g=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Ic(g,b,c,
|
112
|
+
d)};m.prototype.GetAttributeInt32ForAllPoints=m.prototype.GetAttributeInt32ForAllPoints=function(b,c,d){var g=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Jc(g,b,c,d)};m.prototype.GetAttributeUInt32ForAllPoints=m.prototype.GetAttributeUInt32ForAllPoints=function(b,c,d){var g=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Kc(g,b,c,d)};m.prototype.GetAttributeDataArrayForAllPoints=
|
113
|
+
m.prototype.GetAttributeDataArrayForAllPoints=function(b,c,d,g,u){var X=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);g&&"object"===typeof g&&(g=g.ptr);u&&"object"===typeof u&&(u=u.ptr);return!!Lc(X,b,c,d,g,u)};m.prototype.SkipAttributeTransform=m.prototype.SkipAttributeTransform=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);Mc(c,b)};m.prototype.GetEncodedGeometryType_Deprecated=m.prototype.GetEncodedGeometryType_Deprecated=
|
114
|
+
function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Nc(c,b)};m.prototype.DecodeBufferToPointCloud=m.prototype.DecodeBufferToPointCloud=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return D(Oc(d,b,c),B)};m.prototype.DecodeBufferToMesh=m.prototype.DecodeBufferToMesh=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return D(Pc(d,b,c),B)};m.prototype.__destroy__=m.prototype.__destroy__=
|
115
|
+
function(){Qc(this.ptr)};(function(){function b(){a.ATTRIBUTE_INVALID_TRANSFORM=Rc();a.ATTRIBUTE_NO_TRANSFORM=Sc();a.ATTRIBUTE_QUANTIZATION_TRANSFORM=Tc();a.ATTRIBUTE_OCTAHEDRON_TRANSFORM=Uc();a.INVALID=Vc();a.POSITION=Wc();a.NORMAL=Xc();a.COLOR=Yc();a.TEX_COORD=Zc();a.GENERIC=$c();a.INVALID_GEOMETRY_TYPE=ad();a.POINT_CLOUD=bd();a.TRIANGULAR_MESH=cd();a.DT_INVALID=dd();a.DT_INT8=ed();a.DT_UINT8=fd();a.DT_INT16=gd();a.DT_UINT16=hd();a.DT_INT32=id();a.DT_UINT32=jd();a.DT_INT64=kd();a.DT_UINT64=ld();
|
116
|
+
a.DT_FLOAT32=md();a.DT_FLOAT64=nd();a.DT_BOOL=od();a.DT_TYPES_COUNT=pd();a.OK=qd();a.DRACO_ERROR=rd();a.IO_ERROR=sd();a.INVALID_PARAMETER=td();a.UNSUPPORTED_VERSION=ud();a.UNKNOWN_VERSION=vd()}za?b():oa.unshift(b)})();if("function"===typeof a.onModuleParsed)a.onModuleParsed();a.Decoder.prototype.GetEncodedGeometryType=function(b){if(b.__class__&&b.__class__===a.DecoderBuffer)return a.Decoder.prototype.GetEncodedGeometryType_Deprecated(b);if(8>b.byteLength)return a.INVALID_GEOMETRY_TYPE;switch(b[7]){case 0:return a.POINT_CLOUD;
|
117
|
+
case 1:return a.TRIANGULAR_MESH;default:return a.INVALID_GEOMETRY_TYPE}};return n.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,26 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.96
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
|
26
|
+
module.exports={type:"commonjs"};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"type":"commonjs"}
|
@@ -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=0,_=4,d=0,u=-2,f=-1,c=4,p=2,g=8,m=9,b=286,v=30,w=19,y=2*b+1,k=15,z=3,x=258,B=x+z+1,A=42,C=113,S=1,j=2,E=3,U=4;function D(t,e){return t.msg=l[e],e}function I(t){return(t<<1)-(4<t?9:0)}function O(t){for(var e=t.length;0<=--e;)t[e]=0}function q(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 T(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,q(t.strm)}function L(t,e){t.pending_buf[t.pending++]=e}function N(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function R(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-B?t.strstart-(t.w_size-B):0,o=t.window,_=t.w_mask,d=t.prev,u=t.strstart+x,f=o[i+s-1],c=o[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(o[(a=e)+s]===c&&o[a+s-1]===f&&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<u);if(n=x-(u-i),i=u-x,s<n){if(t.match_start=e,h<=(s=n))break;f=o[i+s-1],c=o[i+s]}}}while((e=d[e&_])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead}function H(t){var e,a,n,i,l,o,_,d,u,f,c=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=c+(c-B)){for(r.arraySet(t.window,t.window,c,c,0),t.match_start-=c,t.strstart-=c,t.block_start-=c,e=a=t.hash_size;n=t.head[--e],t.head[e]=c<=n?n-c:0,--a;);for(e=a=c;n=t.prev[--e],t.prev[e]=c<=n?n-c:0,--a;);i+=c}if(0===t.strm.avail_in)break;if(o=t.strm,_=t.window,d=t.strstart+t.lookahead,f=void 0,(u=i)<(f=o.avail_in)&&(f=u),a=0===f?0:(o.avail_in-=f,r.arraySet(_,o.input,o.next_in,f,d),1===o.state.wrap?o.adler=s(o.adler,_,f,d):2===o.state.wrap&&(o.adler=h(o.adler,_,f,d)),o.next_in+=f,o.total_in+=f,f),t.lookahead+=a,t.lookahead+t.insert>=z)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+z-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<z)););}while(t.lookahead<B&&0!==t.strm.avail_in)}function F(t,e){for(var a,n;;){if(t.lookahead<B){if(H(t),t.lookahead<B&&e===o)return S;if(0===t.lookahead)break}if(a=0,t.lookahead>=z&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+z-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-B&&(t.match_length=R(t,a)),t.match_length>=z)if(n=i._tr_tally(t,t.strstart-t.match_start,t.match_length-z),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=z){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+z-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&&(T(t,!1),0===t.strm.avail_out))return S}return t.insert=t.strstart<z-1?t.strstart:z-1,e===_?(T(t,!0),0===t.strm.avail_out?E:U):t.last_lit&&(T(t,!1),0===t.strm.avail_out)?S:j}function K(t,e){for(var a,n,r;;){if(t.lookahead<B){if(H(t),t.lookahead<B&&e===o)return S;if(0===t.lookahead)break}if(a=0,t.lookahead>=z&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+z-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=z-1,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-B&&(t.match_length=R(t,a),t.match_length<=5&&(1===t.strategy||t.match_length===z&&4096<t.strstart-t.match_start)&&(t.match_length=z-1)),t.prev_length>=z&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-z,n=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-z),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+z-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=z-1,t.strstart++,n&&(T(t,!1),0===t.strm.avail_out))return S}else if(t.match_available){if((n=i._tr_tally(t,0,t.window[t.strstart-1]))&&T(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return S}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<z-1?t.strstart:z-1,e===_?(T(t,!0),0===t.strm.avail_out?E:U):t.last_lit&&(T(t,!1),0===t.strm.avail_out)?S:j}function M(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 P(){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=g,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(2*y),this.dyn_dtree=new r.Buf16(2*(2*v+1)),this.bl_tree=new r.Buf16(2*(2*w+1)),O(this.dyn_ltree),O(this.dyn_dtree),O(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(k+1),this.heap=new r.Buf16(2*b+1),O(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*b+1),O(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 G(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=p,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?A:C,t.adler=2===e.wrap?0:1,e.last_flush=o,i._tr_init(e),d):D(t,u)}function J(t){var e,a=G(t);return a===d&&((e=t.state).window_size=2*e.w_size,O(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=z-1,e.match_available=0,e.ins_h=0),a}function Q(t,e,a,n,i,s){if(!t)return u;var h=1;if(e===f&&(e=6),n<0?(h=0,n=-n):15<n&&(h=2,n-=16),i<1||m<i||a!==g||n<8||15<n||e<0||9<e||s<0||c<s)return D(t,u);8===n&&(n=9);var l=new P;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+z-1)/z),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,J(t)}n=[new M(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(H(t),0===t.lookahead&&e===o)return S;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,T(t,!1),0===t.strm.avail_out))return S;if(t.strstart-t.block_start>=t.w_size-B&&(T(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===_?(T(t,!0),0===t.strm.avail_out?E:U):(t.strstart>t.block_start&&(T(t,!1),t.strm.avail_out),S)})),new M(4,4,8,4,F),new M(4,5,16,8,F),new M(4,6,32,32,F),new M(4,4,16,16,K),new M(8,16,32,32,K),new M(8,16,128,128,K),new M(8,32,128,256,K),new M(32,128,258,1024,K),new M(32,258,258,4096,K)],a.deflateInit=function(t,e){return Q(t,e,g,15,8,0)},a.deflateInit2=Q,a.deflateReset=J,a.deflateResetKeep=G,a.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?u:(t.state.gzhead=e,d):u},a.deflate=function(t,e){var a,r,s,l;if(!t||!t.state||5<e||e<0)return t?D(t,u):u;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&e!==_)return D(t,0===t.avail_out?-5:u);if(r.strm=t,a=r.last_flush,r.last_flush=e,r.status===A)if(2===r.wrap)t.adler=0,L(r,31),L(r,139),L(r,8),r.gzhead?(L(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)),L(r,255&r.gzhead.time),L(r,r.gzhead.time>>8&255),L(r,r.gzhead.time>>16&255),L(r,r.gzhead.time>>24&255),L(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),L(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(L(r,255&r.gzhead.extra.length),L(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):(L(r,0),L(r,0),L(r,0),L(r,0),L(r,0),L(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),L(r,3),r.status=C);else{var f=g+(r.w_bits-8<<4)<<8;f|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(f|=32),f+=31-f%31,r.status=C,N(r,f),0!==r.strstart&&(N(r,t.adler>>>16),N(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)),q(t),s=r.pending,r.pending!==r.pending_buf_size));)L(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)),q(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}L(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)),q(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}L(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&&q(t),r.pending+2<=r.pending_buf_size&&(L(r,255&t.adler),L(r,t.adler>>8&255),t.adler=0,r.status=C)):r.status=C),0!==r.pending){if(q(t),0===t.avail_out)return r.last_flush=-1,d}else if(0===t.avail_in&&I(e)<=I(a)&&e!==_)return D(t,-5);if(666===r.status&&0!==t.avail_in)return D(t,-5);if(0!==t.avail_in||0!==r.lookahead||e!==o&&666!==r.status){var c=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(H(t),0===t.lookahead)){if(e===o)return S;break}if(t.match_length=0,a=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(T(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===_?(T(t,!0),0===t.strm.avail_out?E:U):t.last_lit&&(T(t,!1),0===t.strm.avail_out)?S:j}(r,e):3===r.strategy?function(t,e){for(var a,n,r,s,h=t.window;;){if(t.lookahead<=x){if(H(t),t.lookahead<=x&&e===o)return S;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=z&&0<t.strstart&&(n=h[r=t.strstart-1])===h[++r]&&n===h[++r]&&n===h[++r]){s=t.strstart+x;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=x-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=z?(a=i._tr_tally(t,1,t.match_length-z),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&&(T(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===_?(T(t,!0),0===t.strm.avail_out?E:U):t.last_lit&&(T(t,!1),0===t.strm.avail_out)?S:j}(r,e):n[r.level].func(r,e);if(c!==E&&c!==U||(r.status=666),c===S||c===E)return 0===t.avail_out&&(r.last_flush=-1),d;if(c===j&&(1===e?i._tr_align(r):5!==e&&(i._tr_stored_block(r,0,0,!1),3===e&&(O(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),q(t),0===t.avail_out))return r.last_flush=-1,d}return e!==_?d:r.wrap<=0?1:(2===r.wrap?(L(r,255&t.adler),L(r,t.adler>>8&255),L(r,t.adler>>16&255),L(r,t.adler>>24&255),L(r,255&t.total_in),L(r,t.total_in>>8&255),L(r,t.total_in>>16&255),L(r,t.total_in>>24&255)):(N(r,t.adler>>>16),N(r,65535&t.adler)),q(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?d:1)},a.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==A&&69!==e&&73!==e&&91!==e&&103!==e&&e!==C&&666!==e?D(t,u):(t.state=null,e===C?D(t,-3):d):u},a.deflateSetDictionary=function(t,e){var a,n,i,h,l,o,_,f,c=e.length;if(!t||!t.state)return u;if(2===(h=(a=t.state).wrap)||1===h&&a.status!==A||a.lookahead)return u;for(1===h&&(t.adler=s(t.adler,e,c,0)),a.wrap=0,c>=a.w_size&&(0===h&&(O(a.head),a.strstart=0,a.block_start=0,a.insert=0),f=new r.Buf8(a.w_size),r.arraySet(f,e,c-a.w_size,a.w_size,0),e=f,c=a.w_size),l=t.avail_in,o=t.next_in,_=t.input,t.avail_in=c,t.next_in=0,t.input=e,H(a);a.lookahead>=z;){for(n=a.strstart,i=a.lookahead-(z-1);a.ins_h=(a.ins_h<<a.hash_shift^a.window[n+z-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=z-1,H(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=z-1,a.match_available=0,t.next_in=o,t.input=_,t.avail_in=l,a.wrap=h,d},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=0,s=256,h=s+1+29,l=30,o=19,_=2*h+1,d=15,u=16,f=256,c=16,p=17,g=18,m=[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],b=[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],v=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],w=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],y=new Array(2*(h+2));r(y);var k=new Array(2*l);r(k);var z=new Array(512);r(z);var x=new Array(256);r(x);var B=new Array(29);r(B);var A,C,S,j=new Array(l);function E(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 U(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function D(t){return t<256?z[t]:z[256+(t>>>7)]}function I(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function O(t,e,a){t.bi_valid>u-a?(t.bi_buf|=e<<t.bi_valid&65535,I(t,t.bi_buf),t.bi_buf=e>>u-t.bi_valid,t.bi_valid+=a-u):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)}function q(t,e,a){O(t,a[2*e],a[2*e+1])}function T(t,e){for(var a=0;a|=1&t,t>>>=1,a<<=1,0<--e;);return a>>>1}function L(t,e,a){var n,r,i=new Array(d+1),s=0;for(n=1;n<=d;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=T(i[h]++,h))}}function N(t){var e;for(e=0;e<h;e++)t.dyn_ltree[2*e]=0;for(e=0;e<l;e++)t.dyn_dtree[2*e]=0;for(e=0;e<o;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*f]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function R(t){8<t.bi_valid?I(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 H(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 F(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&H(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!H(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n}function K(t,e,a){var n,r,i,h,l=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],r=t.pending_buf[t.l_buf+l],l++,0===n?q(t,r,e):(q(t,(i=x[r])+s+1,e),0!==(h=m[i])&&O(t,r-=B[i],h),q(t,i=D(--n),a),0!==(h=b[i])&&O(t,n-=j[i],h)),l<t.last_lit;);q(t,f,e)}function M(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=_,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;1<=a;a--)F(t,i,a);for(r=l;a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],F(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,F(t,i,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,o=e.max_code,u=e.stat_desc.static_tree,f=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,g=e.stat_desc.max_length,m=0;for(i=0;i<=d;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<_;a++)g<(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)&&(i=g,m++),l[2*n+1]=i,o<n||(t.bl_count[i]++,s=0,p<=n&&(s=c[n-p]),h=l[2*n],t.opt_len+=h*(i+s),f&&(t.static_len+=h*(u[2*n+1]+s)));if(0!==m){do{for(i=g-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[g]--,m-=2}while(0<m);for(i=g;0!==i;i--)for(n=t.bl_count[i];0!==n;)o<(r=t.heap[--a])||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),L(i,o,t.bl_count)}function P(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[2*c]++):h<=10?t.bl_tree[2*p]++:t.bl_tree[2*g]++,i=r,(h=0)===s?(l=138,o=3):r===s?(l=6,o=3):(l=7,o=4))}function G(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(;q(t,r,t.bl_tree),0!=--h;);else 0!==r?(r!==i&&(q(t,r,t.bl_tree),h--),q(t,c,t.bl_tree),O(t,h-3,2)):h<=10?(q(t,p,t.bl_tree),O(t,h-3,3)):(q(t,g,t.bl_tree),O(t,h-11,7));i=r,(h=0)===s?(l=138,o=3):r===s?(l=6,o=3):(l=7,o=4)}}r(j);var J=!1;function Q(t,e,a,r){var s,h,l;O(t,(i<<1)+(r?1:0),3),h=e,l=a,R(s=t),I(s,l),I(s,~l),n.arraySet(s.pending_buf,s.window,h,l,s.pending),s.pending+=l}a._tr_init=function(t){J||(function(){var t,e,a,n,r,i=new Array(d+1);for(n=a=0;n<28;n++)for(B[n]=a,t=0;t<1<<m[n];t++)x[a++]=n;for(x[a-1]=n,n=r=0;n<16;n++)for(j[n]=r,t=0;t<1<<b[n];t++)z[r++]=n;for(r>>=7;n<l;n++)for(j[n]=r<<7,t=0;t<1<<b[n]-7;t++)z[256+r++]=n;for(e=0;e<=d;e++)i[e]=0;for(t=0;t<=143;)y[2*t+1]=8,t++,i[8]++;for(;t<=255;)y[2*t+1]=9,t++,i[9]++;for(;t<=279;)y[2*t+1]=7,t++,i[7]++;for(;t<=287;)y[2*t+1]=8,t++,i[8]++;for(L(y,h+1,i),t=0;t<l;t++)k[2*t+1]=5,k[2*t]=T(t,5);A=new E(y,m,s+1,h,d),C=new E(k,b,0,l,d),S=new E(new Array(0),v,0,o,7)}(),J=!0),t.l_desc=new U(t.dyn_ltree,A),t.d_desc=new U(t.dyn_dtree,C),t.bl_desc=new U(t.bl_tree,S),t.bi_buf=0,t.bi_valid=0,N(t)},a._tr_stored_block=Q,a._tr_flush_block=function(t,e,a,n){var r,i,h=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<s;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),M(t,t.l_desc),M(t,t.d_desc),h=function(t){var e;for(P(t,t.dyn_ltree,t.l_desc.max_code),P(t,t.dyn_dtree,t.d_desc.max_code),M(t,t.bl_desc),e=o-1;3<=e&&0===t.bl_tree[2*w[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?Q(t,e,a,n):4===t.strategy||i===r?(O(t,2+(n?1:0),3),K(t,y,k)):(O(t,4+(n?1:0),3),function(t,e,a,n){var r;for(O(t,e-257,5),O(t,a-1,5),O(t,n-4,4),r=0;r<n;r++)O(t,t.bl_tree[2*w[r]+1],3);G(t,t.dyn_ltree,e-1),G(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),K(t,t.dyn_ltree,t.dyn_dtree)),N(t),n&&R(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*(x[a]+s+1)]++,t.dyn_dtree[2*D(e)]++),t.last_lit===t.lit_bufsize-1},a._tr_align=function(t){var e;O(t,2,3),q(t,f,y),16===(e=t).bi_valid?(I(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,o=0,_=-1,d=0,u=8;function f(t){if(!(this instanceof f))return new f(t);this.options=r.assign({level:_,method:u,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,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(a!==o)throw new Error(s[a]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var c;if(c="string"==typeof e.dictionary?i.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(a=n.deflateSetDictionary(this.strm,c))!==o)throw new Error(s[a]);this._dict_set=!0}}function c(t,e){var a=new f(e);if(a.push(t,!0),a.err)throw a.msg||s[a.err];return a.result}f.prototype.push=function(t,e){var a,s,h=this.strm,_=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(_),h.next_out=0,h.avail_out=_),1!==(a=n.deflate(h,s))&&a!==o)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,a===o):2!==s||(this.onEnd(o),!(h.avail_out=0))},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===o&&("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=f,a.deflate=c,a.deflateRaw=function(t,e){return(e=e||{}).raw=!0,c(t,e)},a.gzip=function(t,e){return(e=e||{}).gzip=!0,c(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=1,l=2,d=0,c=-2,u=1,h=852,b=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function w(){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 k(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=u,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(h),t.distcode=t.distdyn=new n.Buf32(b),t.sane=1,t.back=-1,d):c}function _(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,k(e)):c}function g(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)?c:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=i,n.wbits=t,_(e))):c}function v(e,t){var i,n;return e?(n=new w,(e.state=n).window=null,(i=g(e,t))!==d&&(e.state=null),i):c}var p,x,y=!0;function S(e){if(y){var t;for(p=new n.Buf32(512),x=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(f,e.lens,0,288,p,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,x,0,e.work,{bits:5}),y=!1}e.lencode=p,e.lenbits=9,e.distcode=x,e.distbits=5}function E(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=_,i.inflateReset2=g,i.inflateResetKeep=k,i.inflateInit=function(e){return v(e,15)},i.inflateInit2=v,i.inflate=function(e,t){var i,h,b,w,k,_,g,v,p,x,y,Z,B,A,z,R,N,O,C,I,D,T,U,F,L=0,H=new n.Buf8(4),j=[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 c;12===(i=e.state).mode&&(i.mode=13),k=e.next_out,b=e.output,g=e.avail_out,w=e.next_in,h=e.input,_=e.avail_in,v=i.hold,p=i.bits,x=_,y=g,T=d;e:for(;;)switch(i.mode){case u:if(0===i.wrap){i.mode=13;break}for(;p<16;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}if(2&i.wrap&&35615===v){H[i.check=0]=255&v,H[1]=v>>>8&255,i.check=r(i.check,H,2,0),p=v=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",i.mode=30;break}if(8!=(15&v)){e.msg="unknown compression method",i.mode=30;break}if(p-=4,D=8+(15&(v>>>=4)),0===i.wbits)i.wbits=D;else if(D>i.wbits){e.msg="invalid window size",i.mode=30;break}i.dmax=1<<D,e.adler=i.check=1,i.mode=512&v?10:12,p=v=0;break;case 2:for(;p<16;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}if(i.flags=v,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=v>>8&1),512&i.flags&&(H[0]=255&v,H[1]=v>>>8&255,i.check=r(i.check,H,2,0)),p=v=0,i.mode=3;case 3:for(;p<32;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}i.head&&(i.head.time=v),512&i.flags&&(H[0]=255&v,H[1]=v>>>8&255,H[2]=v>>>16&255,H[3]=v>>>24&255,i.check=r(i.check,H,4,0)),p=v=0,i.mode=4;case 4:for(;p<16;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}i.head&&(i.head.xflags=255&v,i.head.os=v>>8),512&i.flags&&(H[0]=255&v,H[1]=v>>>8&255,i.check=r(i.check,H,2,0)),p=v=0,i.mode=5;case 5:if(1024&i.flags){for(;p<16;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}i.length=v,i.head&&(i.head.extra_len=v),512&i.flags&&(H[0]=255&v,H[1]=v>>>8&255,i.check=r(i.check,H,2,0)),p=v=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(_<(Z=i.length)&&(Z=_),Z&&(i.head&&(D=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,h,w,Z,D)),512&i.flags&&(i.check=r(i.check,h,Z,w)),_-=Z,w+=Z,i.length-=Z),i.length))break e;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===_)break e;for(Z=0;D=h[w+Z++],i.head&&D&&i.length<65536&&(i.head.name+=String.fromCharCode(D)),D&&Z<_;);if(512&i.flags&&(i.check=r(i.check,h,Z,w)),_-=Z,w+=Z,D)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===_)break e;for(Z=0;D=h[w+Z++],i.head&&D&&i.length<65536&&(i.head.comment+=String.fromCharCode(D)),D&&Z<_;);if(512&i.flags&&(i.check=r(i.check,h,Z,w)),_-=Z,w+=Z,D)break e}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;p<16;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}if(v!==(65535&i.check)){e.msg="header crc mismatch",i.mode=30;break}p=v=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(;p<32;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}e.adler=i.check=m(v),p=v=0,i.mode=11;case 11:if(0===i.havedict)return e.next_out=k,e.avail_out=g,e.next_in=w,e.avail_in=_,i.hold=v,i.bits=p,2;e.adler=i.check=1,i.mode=12;case 12:if(5===t||6===t)break e;case 13:if(i.last){v>>>=7&p,p-=7&p,i.mode=27;break}for(;p<3;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}switch(i.last=1&v,p-=1,3&(v>>>=1)){case 0:i.mode=14;break;case 1:if(S(i),i.mode=20,6!==t)break;v>>>=2,p-=2;break e;case 2:i.mode=17;break;case 3:e.msg="invalid block type",i.mode=30}v>>>=2,p-=2;break;case 14:for(v>>>=7&p,p-=7&p;p<32;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&v,p=v=0,i.mode=15,6===t)break e;case 15:i.mode=16;case 16:if(Z=i.length){if(_<Z&&(Z=_),g<Z&&(Z=g),0===Z)break e;n.arraySet(b,h,w,Z,k),_-=Z,w+=Z,g-=Z,k+=Z,i.length-=Z;break}i.mode=12;break;case 17:for(;p<14;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}if(i.nlen=257+(31&v),v>>>=5,p-=5,i.ndist=1+(31&v),v>>>=5,p-=5,i.ncode=4+(15&v),v>>>=4,p-=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(;p<3;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}i.lens[j[i.have++]]=7&v,v>>>=3,p-=3}for(;i.have<19;)i.lens[j[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,U={bits:i.lenbits},T=s(0,i.lens,0,19,i.lencode,0,i.work,U),i.lenbits=U.bits,T){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(;R=(L=i.lencode[v&(1<<i.lenbits)-1])>>>16&255,N=65535&L,!((z=L>>>24)<=p);){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}if(N<16)v>>>=z,p-=z,i.lens[i.have++]=N;else{if(16===N){for(F=z+2;p<F;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}if(v>>>=z,p-=z,0===i.have){e.msg="invalid bit length repeat",i.mode=30;break}D=i.lens[i.have-1],Z=3+(3&v),v>>>=2,p-=2}else if(17===N){for(F=z+3;p<F;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}p-=z,D=0,Z=3+(7&(v>>>=z)),v>>>=3,p-=3}else{for(F=z+7;p<F;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}p-=z,D=0,Z=11+(127&(v>>>=z)),v>>>=7,p-=7}if(i.have+Z>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=30;break}for(;Z--;)i.lens[i.have++]=D}}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,U={bits:i.lenbits},T=s(f,i.lens,0,i.nlen,i.lencode,0,i.work,U),i.lenbits=U.bits,T){e.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,U={bits:i.distbits},T=s(l,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,U),i.distbits=U.bits,T){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<=_&&258<=g){e.next_out=k,e.avail_out=g,e.next_in=w,e.avail_in=_,i.hold=v,i.bits=p,o(e,y),k=e.next_out,b=e.output,g=e.avail_out,w=e.next_in,h=e.input,_=e.avail_in,v=i.hold,p=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;R=(L=i.lencode[v&(1<<i.lenbits)-1])>>>16&255,N=65535&L,!((z=L>>>24)<=p);){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}if(R&&0==(240&R)){for(O=z,C=R,I=N;R=(L=i.lencode[I+((v&(1<<O+C)-1)>>O)])>>>16&255,N=65535&L,!(O+(z=L>>>24)<=p);){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}v>>>=O,p-=O,i.back+=O}if(v>>>=z,p-=z,i.back+=z,i.length=N,0===R){i.mode=26;break}if(32&R){i.back=-1,i.mode=12;break}if(64&R){e.msg="invalid literal/length code",i.mode=30;break}i.extra=15&R,i.mode=22;case 22:if(i.extra){for(F=i.extra;p<F;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}i.length+=v&(1<<i.extra)-1,v>>>=i.extra,p-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;R=(L=i.distcode[v&(1<<i.distbits)-1])>>>16&255,N=65535&L,!((z=L>>>24)<=p);){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}if(0==(240&R)){for(O=z,C=R,I=N;R=(L=i.distcode[I+((v&(1<<O+C)-1)>>O)])>>>16&255,N=65535&L,!(O+(z=L>>>24)<=p);){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}v>>>=O,p-=O,i.back+=O}if(v>>>=z,p-=z,i.back+=z,64&R){e.msg="invalid distance code",i.mode=30;break}i.offset=N,i.extra=15&R,i.mode=24;case 24:if(i.extra){for(F=i.extra;p<F;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}i.offset+=v&(1<<i.extra)-1,v>>>=i.extra,p-=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===g)break e;if(Z=y-g,i.offset>Z){if((Z=i.offset-Z)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=30;break}Z>i.wnext?(Z-=i.wnext,B=i.wsize-Z):B=i.wnext-Z,Z>i.length&&(Z=i.length),A=i.window}else A=b,B=k-i.offset,Z=i.length;for(g<Z&&(Z=g),g-=Z,i.length-=Z;b[k++]=A[B++],--Z;);0===i.length&&(i.mode=21);break;case 26:if(0===g)break e;b[k++]=i.length,g--,i.mode=21;break;case 27:if(i.wrap){for(;p<32;){if(0===_)break e;_--,v|=h[w++]<<p,p+=8}if(y-=g,e.total_out+=y,i.total+=y,y&&(e.adler=i.check=i.flags?r(i.check,b,y,k-y):a(i.check,b,y,k-y)),y=g,(i.flags?v:m(v))!==i.check){e.msg="incorrect data check",i.mode=30;break}p=v=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;p<32;){if(0===_)break e;_--,v+=h[w++]<<p,p+=8}if(v!==(4294967295&i.total)){e.msg="incorrect length check",i.mode=30;break}p=v=0}i.mode=29;case 29:T=1;break e;case 30:T=-3;break e;case 31:return-4;default:return c}return e.next_out=k,e.avail_out=g,e.next_in=w,e.avail_in=_,i.hold=v,i.bits=p,(i.wsize||y!==e.avail_out&&i.mode<30&&(i.mode<27||4!==t))&&E(e,e.output,e.next_out,y-e.avail_out)?(i.mode=31,-4):(x-=e.avail_in,y-=e.avail_out,e.total_in+=x,e.total_out+=y,i.total+=y,i.wrap&&y&&(e.adler=i.check=i.flags?r(i.check,b,y,e.next_out-y):a(i.check,b,y,e.next_out-y)),e.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0),(0===x&&0===y||4===t)&&T===d&&(T=-5),T)},i.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&(t.window=null),e.state=null,d},i.inflateGetHeader=function(e,t){var i;return e&&e.state?0==(2&(i=e.state).wrap)?c:((i.head=t).done=!1,d):c},i.inflateSetDictionary=function(e,t){var i,n=t.length;return e&&e.state?0!==(i=e.state).wrap&&11!==i.mode?c:11===i.mode&&a(1,t,n,0)!==i.check?-3:E(e,t,n,n)?(i.mode=31,-4):(i.havedict=1,d):c},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:e,Object:t,Number:n,Math:s,Error:r,Uint8Array:a,Uint16Array:o,Uint32Array:i,Int32Array:c,Map:l,DataView:u,Promise:h,TextEncoder:f,crypto:p,postMessage:d,TransformStream:g,ReadableStream:w,WritableStream:y,CompressionStream:m,DecompressionStream:_}=self;class b{constructor(e){return class extends g{constructor(t,n){const s=new e(n);super({transform(e,t){t.enqueue(s.append(e))},flush(e){const t=s.flush();t&&e.enqueue(t)}})}}}}const v=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;v[e]=t}class S{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,s=0|e.length;s>n;n++)t=t>>>8^v[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class k extends g{constructor(){const e=new S;super({transform(t){e.append(t)},flush(t){const n=new a(4);new u(n.buffer).setUint32(0,e.get()),t.enqueue(n)}})}}const z={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],s=z.getPartial(n);return 32===s?e.concat(t):z._shiftRight(t,s,0|n,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+z.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,s.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=z.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>s.round(e/1099511627776)||32,_shiftRight(e,t,n,s){for(void 0===s&&(s=[]);t>=32;t-=32)s.push(n),n=0;if(0===t)return s.concat(e);for(let r=0;r<e.length;r++)s.push(n|e[r]>>>t),n=e[r]<<32-t;const r=e.length?e[e.length-1]:0,a=z.getPartial(r);return s.push(z.partial(t+a&31,t+a>32?n:s.pop(),1)),s}},D={bytes:{fromBits(e){const t=z.bitLength(e)/8,n=new a(t);let s;for(let r=0;t>r;r++)0==(3&r)&&(s=e[r/4]),n[r]=s>>>24,s<<=8;return n},toBits(e){const t=[];let n,s=0;for(n=0;n<e.length;n++)s=s<<8|e[n],3==(3&n)&&(t.push(s),s=0);return 3&n&&t.push(z.partial(8*(3&n),s)),t}}},C={getRandomValues(e){const t=new i(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(s.random()>.5?1:-1))};for(let r,a=0;a<e.length;a+=4){const e=n(4294967296*(r||s.random()));r=987654071*e(),t[a/4]=4294967296*e()|0}return e}},I={importKey:e=>new I.hmacSha1(D.bytes.toBits(e)),pbkdf2(e,t,n,s){if(n=n||1e4,0>s||0>n)throw new r("invalid params to pbkdf2");const a=1+(s>>5)<<2;let o,i,c,l,h;const f=new ArrayBuffer(a),p=new u(f);let d=0;const g=z;for(t=D.bytes.toBits(t),h=1;(a||1)>d;h++){for(o=i=e.encrypt(g.concat(t,[h])),c=1;n>c;c++)for(i=e.encrypt(i),l=0;l<i.length;l++)o[l]^=i[l];for(c=0;(a||1)>d&&c<o.length;c++)p.setInt32(d,o[c]),d+=4}return f.slice(0,s/8)},hmacSha1:class{constructor(t){const n=this,a=n._hash=class{constructor(e){const t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){const e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){const t=this;"string"==typeof e&&(e=D.utf8String.toBits(e));const n=t._buffer=z.concat(t._buffer,e),s=t._length,a=t._length=s+z.bitLength(e);if(a>9007199254740991)throw new r("Cannot hash more than 2^53 - 1 bits");const o=new i(n);let c=0;for(let e=t.blockSize+s-(t.blockSize+s&t.blockSize-1);a>=e;e+=t.blockSize)t._block(o.subarray(16*c,16*(c+1))),c+=1;return n.splice(0,16*c),t}finalize(){const e=this;let t=e._buffer;const n=e._h;t=z.concat(t,[z.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(s.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n}_f(e,t,n,s){return e>19?e>39?e>59?e>79?void 0:t^n^s:t&n|t&s|n&s:t^n^s:t&n|~t&s}_S(e,t){return t<<e|t>>>32-e}_block(t){const n=this,r=n._h,a=e(80);for(let e=0;16>e;e++)a[e]=t[e];let o=r[0],i=r[1],c=r[2],l=r[3],u=r[4];for(let e=0;79>=e;e++){16>e||(a[e]=n._S(1,a[e-3]^a[e-8]^a[e-14]^a[e-16]));const t=n._S(5,o)+n._f(e,i,c,l)+u+a[e]+n._key[s.floor(e/20)]|0;u=l,l=c,c=n._S(30,i),i=o,o=t}r[0]=r[0]+o|0,r[1]=r[1]+i|0,r[2]=r[2]+c|0,r[3]=r[3]+l|0,r[4]=r[4]+u|0}},o=[[],[]];n._baseHash=[new a,new a];const c=n._baseHash[0].blockSize/32;t.length>c&&(t=(new a).update(t).finalize());for(let e=0;c>e;e++)o[0][e]=909522486^t[e],o[1][e]=1549556828^t[e];n._baseHash[0].update(o[0]),n._baseHash[1].update(o[1]),n._resultHash=new a(n._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){this._updated=!0,this._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}encrypt(e){if(this._updated)throw new r("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=void 0!==p&&"function"==typeof p.getRandomValues,A="Invalid password",H="Invalid signature";function q(e){return R?p.getRandomValues(e):C.getRandomValues(e)}const B=16,K={name:"PBKDF2"},V=t.assign({hash:{name:"HMAC"}},K),x=t.assign({iterations:1e3,hash:{name:"SHA-1"}},K),T=["deriveBits"],E=[8,12,16],P=[16,24,32],M=10,N=[0,0,0,0],U="undefined",W="function",L=typeof p!=U,F=L&&p.subtle,G=L&&typeof F!=U,O=D.bytes,X=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],s=t._tables[1],a=e.length;let o,i,c,l=1;if(4!==a&&6!==a&&8!==a)throw new r("invalid aes key size");for(t._key=[i=e.slice(0),c=[]],o=a;4*a+28>o;o++){let e=i[o-1];(o%a==0||8===a&&o%a==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%a==0&&(e=e<<8^e>>>24^l<<24,l=l<<1^283*(l>>7))),i[o]=i[o-a]^e}for(let e=0;o;e++,o--){const t=i[3&e?o:o-4];c[e]=4>=o||4>e?t:s[0][n[t>>>24]]^s[1][n[t>>16&255]]^s[2][n[t>>8&255]]^s[3][n[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],s=t[4],r=[],a=[];let o,i,c,l;for(let e=0;256>e;e++)a[(r[e]=e<<1^283*(e>>7))^e]=e;for(let u=o=0;!n[u];u^=i||1,o=a[o]||1){let a=o^o<<1^o<<2^o<<3^o<<4;a=a>>8^255&a^99,n[u]=a,s[a]=u,l=r[c=r[i=r[u]]];let h=16843009*l^65537*c^257*i^16843008*u,f=257*r[a]^16843008*a;for(let n=0;4>n;n++)e[n][u]=f=f<<24^f>>>8,t[n][a]=h=h<<24^h>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new r("invalid aes block size");const n=this._key[t],s=n.length/4-2,a=[0,0,0,0],o=this._tables[t],i=o[0],c=o[1],l=o[2],u=o[3],h=o[4];let f,p,d,g=e[0]^n[0],w=e[t?3:1]^n[1],y=e[2]^n[2],m=e[t?1:3]^n[3],_=4;for(let e=0;s>e;e++)f=i[g>>>24]^c[w>>16&255]^l[y>>8&255]^u[255&m]^n[_],p=i[w>>>24]^c[y>>16&255]^l[m>>8&255]^u[255&g]^n[_+1],d=i[y>>>24]^c[m>>16&255]^l[g>>8&255]^u[255&w]^n[_+2],m=i[m>>>24]^c[g>>16&255]^l[w>>8&255]^u[255&y]^n[_+3],_+=4,g=f,w=p,y=d;for(let e=0;4>e;e++)a[t?3&-e:e]=h[g>>>24]<<24^h[w>>16&255]<<16^h[y>>8&255]<<8^h[255&m]^n[_++],f=g,g=w,w=y,y=m,m=f;return a}},j=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,s=255&e;255===t?(t=0,255===n?(n=0,255===s?s=0:++s):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=s}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let s;if(!(s=t.length))return[];const r=z.bitLength(t);for(let r=0;s>r;r+=4){this.incCounter(n);const s=e.encrypt(n);t[r]^=s[0],t[r+1]^=s[1],t[r+2]^=s[2],t[r+3]^=s[3]}return z.clamp(t,r)}},J=I.hmacSha1;let Q=L&&G&&typeof F.importKey==W,Y=L&&G&&typeof F.deriveBits==W;class Z extends g{constructor({password:e,signed:n,encryptionStrength:s}){super({start(){t.assign(this,{ready:new h((e=>this.resolveReady=e)),password:e,signed:n,strength:s-1,pending:new a})},async transform(e,t){const n=this,{password:s,strength:o,resolveReady:i,ready:c}=n;s?(await(async(e,t,n,s)=>{const a=await te(e,t,n,se(s,0,E[t])),o=se(s,E[t]);if(a[0]!=o[0]||a[1]!=o[1])throw new r(A)})(n,o,s,se(e,0,E[o]+2)),e=se(e,E[o]+2),i()):await c;const l=new a(e.length-M-(e.length-M)%B);t.enqueue(ee(n,e,l,0,M,!0))},async flush(e){const{signed:t,ctr:n,hmac:s,pending:o,ready:i}=this;await i;const c=se(o,0,o.length-M),l=se(o,o.length-M);let u=new a;if(c.length){const e=ae(O,c);s.update(e);const t=n.update(e);u=re(O,t)}if(t){const e=se(re(O,s.digest()),0,M);for(let t=0;M>t;t++)if(e[t]!=l[t])throw new r(H)}e.enqueue(u)}})}}class $ extends g{constructor({password:e,encryptionStrength:n}){let s;super({start(){t.assign(this,{ready:new h((e=>this.resolveReady=e)),password:e,strength:n-1,pending:new a})},async transform(e,t){const n=this,{password:s,strength:r,resolveReady:o,ready:i}=n;let c=new a;s?(c=await(async(e,t,n)=>{const s=q(new a(E[t]));return ne(s,await te(e,t,n,s))})(n,r,s),o()):await i;const l=new a(c.length+e.length-e.length%B);l.set(c,0),t.enqueue(ee(n,e,l,c.length,0))},async flush(e){const{ctr:t,hmac:n,pending:r,ready:o}=this;await o;let i=new a;if(r.length){const e=t.update(ae(O,r));n.update(e),i=re(O,e)}s.signature=re(O,n.digest()).slice(0,M),e.enqueue(ne(i,s.signature))}}),s=this}}function ee(e,t,n,s,r,o){const{ctr:i,hmac:c,pending:l}=e,u=t.length-r;let h;for(l.length&&(t=ne(l,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new a(t)).set(n,0)}return e})(n,u-u%B)),h=0;u-B>=h;h+=B){const e=ae(O,se(t,h,h+B));o&&c.update(e);const r=i.update(e);o||c.update(r),n.set(re(O,r),h+s)}return e.pending=se(t,h),n}async function te(n,s,r,o){n.password=null;const i=(e=>{if(void 0===f){const t=new a((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new f).encode(e)})(r),c=await(async(e,t,n,s,r)=>{if(!Q)return I.importKey(t);try{return await F.importKey("raw",t,n,!1,r)}catch(e){return Q=!1,I.importKey(t)}})(0,i,V,0,T),l=await(async(e,t,n)=>{if(!Y)return I.pbkdf2(t,e.salt,x.iterations,n);try{return await F.deriveBits(e,t,n)}catch(s){return Y=!1,I.pbkdf2(t,e.salt,x.iterations,n)}})(t.assign({salt:o},x),c,8*(2*P[s]+2)),u=new a(l),h=ae(O,se(u,0,P[s])),p=ae(O,se(u,P[s],2*P[s])),d=se(u,2*P[s]);return t.assign(n,{keys:{key:h,authentication:p,passwordVerification:d},ctr:new j(new X(h),e.from(N)),hmac:new J(p)}),d}function ne(e,t){let n=e;return e.length+t.length&&(n=new a(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function se(e,t,n){return e.subarray(t,n)}function re(e,t){return e.fromBits(t)}function ae(e,t){return e.toBits(t)}class oe extends g{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),ue(this,e)},transform(e,t){const n=this;if(n.password){const t=ce(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new r(A);e=e.subarray(12)}t.enqueue(ce(n,e))}})}}class ie extends g{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),ue(this,e)},transform(e,t){const n=this;let s,r;if(n.password){n.password=null;const t=q(new a(12));t[11]=n.passwordVerification,s=new a(e.length+t.length),s.set(le(n,t),0),r=12}else s=new a(e.length),r=0;s.set(le(n,e),r),t.enqueue(s)}})}}function ce(e,t){const n=new a(t.length);for(let s=0;s<t.length;s++)n[s]=fe(e)^t[s],he(e,n[s]);return n}function le(e,t){const n=new a(t.length);for(let s=0;s<t.length;s++)n[s]=fe(e)^t[s],he(e,t[s]);return n}function ue(e,n){const s=[305419896,591751049,878082192];t.assign(e,{keys:s,crcKey0:new S(s[0]),crcKey2:new S(s[2])});for(let t=0;t<n.length;t++)he(e,n.charCodeAt(t))}function he(e,t){let[n,r,a]=e.keys;e.crcKey0.append([t]),n=~e.crcKey0.get(),r=de(s.imul(de(r+pe(n)),134775813)+1),e.crcKey2.append([r>>>24]),a=~e.crcKey2.get(),e.keys=[n,r,a]}function fe(e){const t=2|e.keys[2];return pe(s.imul(t,1^t)>>>8)}function pe(e){return 255&e}function de(e){return 4294967295&e}const ge="deflate-raw";class we extends g{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:s}){super({});const{compressed:r,encrypted:a,useCompressionStream:o,zipCrypto:i,signed:c,level:l}=e,h=this;let f,p,d=me(super.readable);a&&!i||!c||([d,f]=d.tee(),f=ve(f,new k)),r&&(d=be(d,o,{level:l,chunkSize:t},s,n)),a&&(i?d=ve(d,new ie(e)):(p=new $(e),d=ve(d,p))),_e(h,d,(async()=>{let e;a&&!i&&(e=p.signature),a&&!i||!c||(e=await f.getReader().read(),e=new u(e.value.buffer).getUint32(0)),h.signature=e}))}}class ye extends g{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:s}){super({});const{zipCrypto:a,encrypted:o,signed:i,signature:c,compressed:l,useCompressionStream:h}=e;let f,p,d=me(super.readable);o&&(a?d=ve(d,new oe(e)):(p=new Z(e),d=ve(d,p))),l&&(d=be(d,h,{chunkSize:t},s,n)),o&&!a||!i||([d,f]=d.tee(),f=ve(f,new k)),_e(this,d,(async()=>{if((!o||a)&&i){const e=await f.getReader().read(),t=new u(e.value.buffer);if(c!=t.getUint32(0,!1))throw new r(H)}}))}}function me(e){return ve(e,new g({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function _e(e,n,s){n=ve(n,new g({flush:s})),t.defineProperty(e,"readable",{get:()=>n})}function be(e,t,n,s,r){try{e=ve(e,new(t&&s?s:r)(ge,n))}catch(s){if(!t)throw s;e=ve(e,new r(ge,n))}return e}function ve(e,t){return e.pipeThrough(t)}const Se="data";class ke extends g{constructor(e,n){super({});const s=this,{codecType:r}=e;let a;r.startsWith("deflate")?a=we:r.startsWith("inflate")&&(a=ye);let o=0;const i=new a(e,n),c=super.readable,l=new g({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=i;t.assign(s,{signature:e,size:o})}});t.defineProperty(s,"readable",{get:()=>c.pipeThrough(i).pipeThrough(l)})}}const ze=new l,De=new l;let Ce=0;async function Ie(e){try{const{options:t,scripts:s,config:r}=e;s&&s.length&&importScripts.apply(void 0,s),self.initCodec&&self.initCodec(),r.CompressionStreamNative=self.CompressionStream,r.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(r.CompressionStream=new b(self.Deflate)),self.Inflate&&(r.DecompressionStream=new b(self.Inflate));const a={highWaterMark:1,size:()=>r.chunkSize},o=e.readable||new w({async pull(e){const t=new h((e=>ze.set(Ce,e)));Re({type:"pull",messageId:Ce}),Ce=(Ce+1)%n.MAX_SAFE_INTEGER;const{value:s,done:r}=await t;e.enqueue(s),r&&e.close()}},a),i=e.writable||new y({async write(e){let t;const s=new h((e=>t=e));De.set(Ce,t),Re({type:Se,value:e,messageId:Ce}),Ce=(Ce+1)%n.MAX_SAFE_INTEGER,await s}},a),c=new ke(t,r);await o.pipeThrough(c).pipeTo(i,{preventAbort:!0});try{await i.close()}catch(e){}const{signature:l,size:u}=c;Re({type:"close",result:{signature:l,size:u}})}catch(e){Ae(e)}}function Re(e){let{value:t}=e;if(t)if(t.length)try{t=new a(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ae(e){const{message:t,stack:n,code:s,name:r}=e;d({error:{message:t,stack:n,code:s,name:r}})}function He(e,n,s){return class{constructor(r){const o=this;t.hasOwn(r,"level")&&void 0===r.level&&delete r.level,o.codec=new e(t.assign({},n,r)),s(o.codec,(e=>{if(o.pendingData){const t=o.pendingData;o.pendingData=new a(t.length+e.length);const{pendingData:n}=o;n.set(t,0),n.set(e,t.length)}else o.pendingData=new a(e)}))}append(e){return this.codec.push(e),r(this)}flush(){return this.codec.push(new a,!0),r(this)}};function r(e){if(e.pendingData){const t=e.pendingData;return e.pendingData=null,t}return new a}}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:s,done:r}=e;try{if("start"==t&&Ie(e),t==Se){const e=ze.get(n);ze.delete(n),e({value:new a(s),done:r})}if("ack"==t){const e=De.get(n);De.delete(n),e()}}catch(e){Ae(e)}})),self.initCodec=()=>{const{Deflate:e,Inflate:t}=((e,t={},n)=>({Deflate:He(e.Deflate,t.deflate,n),Inflate:He(e.Inflate,t.inflate,n)}))(pako,{deflate:{raw:!0},inflate:{raw:!0}},((e,t)=>e.onData=t));self.Deflate=e,self.Inflate=t}}();
|
Binary file
|
Binary file
|