create-swdg-frontend 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -13
- package/bin/index.js +3 -244
- package/lib/argv.js +43 -0
- package/lib/cli.js +141 -0
- package/lib/constants.js +24 -0
- package/lib/gis.js +92 -0
- package/lib/manifest.js +23 -0
- package/lib/prompts.js +55 -0
- package/lib/scaffold.js +118 -0
- package/package.json +6 -2
- package/scripts/sync-template.js +120 -0
- package/scripts/validate-template.mjs +74 -0
- package/stubs/tsconfig.node.json +11 -0
- package/stubs/types-env.d.ts +9 -0
- package/stubs/vite.config.ts +64 -0
- package/template/.env.example +6 -0
- package/template/.github/workflows/ci.yml +23 -0
- package/template/.github/workflows/release.yml +69 -0
- package/template/.stylelintrc.json +7 -1
- package/template/README.md +95 -32
- package/template/auto-imports.d.ts +10 -0
- package/template/docs/MAINTAINER.md +77 -0
- package/template/docs/ONBOARDING.md +284 -0
- package/template/docs/TESTING.md +104 -0
- package/template/package.json +48 -41
- package/template/pnpm-lock.yaml +6360 -0
- package/template/scripts/gen-api.cjs +20 -7
- package/template/scripts/release.mjs +22 -28
- package/template/scripts/set-release-version.mjs +46 -0
- package/template/scripts/test-pipeline.mjs +85 -0
- package/template/scripts/test-scaffold.mjs +197 -0
- package/template/scripts/test-template.mjs +52 -0
- package/template/scripts/verify.mjs +28 -0
- package/template/scripts/vite-plugin-cesium-dev.ts +56 -0
- package/template/src/api/README.md +4 -0
- package/template/src/components/Body/index.vue +65 -35
- package/template/src/components/CesiumViewer/index.vue +36 -0
- package/template/src/components/Header/index.vue +16 -5
- package/template/src/components/OnboardingDeck/index.vue +449 -0
- package/template/src/data/onboardingSlides.ts +208 -0
- package/template/src/main.ts +1 -0
- package/template/src/router/index.ts +20 -14
- package/template/src/router/routeUtils.ts +13 -0
- package/template/src/styles/shell.css +232 -0
- package/template/src/utils/axios-middleware.js +1 -1
- package/template/src/utils/cesium/index.ts +71 -0
- package/template/src/utils/composables/useFeatureGis.ts +24 -0
- package/template/src/views/examples/cesium/index.vue +85 -0
- package/template/src/views/examples/guide/index.vue +42 -0
- package/template/src/views/examples/test/index.vue +63 -0
- package/template/src/views/index.vue +2 -3
- package/template/tests/README.md +1 -0
- package/template/tests/unit/onboardingSlides.test.ts +20 -0
- package/template/tests/unit/router.utils.test.ts +21 -0
- package/template/tests/unit/scaffold.lib.test.ts +44 -0
- package/template/tests/unit/useFeatureGis.test.ts +14 -0
- package/template/tsconfig.json +17 -17
- package/template/tsconfig.node.json +1 -1
- package/template/types/env.d.ts +13 -0
- package/template/vite.config.ts +26 -5
- package/template/vitest.config.ts +13 -0
- package/template/.env +0 -1
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +0 -438
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +0 -1012
- package/template/public/Cesium1.119/Assets/Images/bing_maps_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/cesium_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/google_earth_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/ion-credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/tilemapresource.xml +0 -14
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/airfield.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/airport.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/america-football.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/art-gallery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bakery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bank.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bar.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/baseball.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/basketball.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/beer.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bicycle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/building.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bus.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cafe.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/camera.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/campsite.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/car.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cemetery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cesium.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/chemist.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cinema.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/circle-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/circle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/city.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/clothing-store.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/college.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/commercial.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cricket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cross.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/dam.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/danger.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/disability.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/dog-park.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/embassy.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/entrance.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/farm.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fast-food.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/ferry.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fire-station.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fuel.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/garden.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/gift.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/golf.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/grocery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/hairdresser.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/harbor.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/heart.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/heliport.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/hospital.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/ice-cream.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/industrial.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/land-use.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/laundry.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/library.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/lighthouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/lodging.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/logging.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/london-underground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/marker-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/marker.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/minefield.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/mobilephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/monument.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/museum.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/music.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/oil-well.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/park.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/park2.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/parking-garage.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/parking.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/pharmacy.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/pitch.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/place-of-worship.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/playground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/police.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/polling-place.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/post.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/prison.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-above.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-light.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-metro.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-underground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-christian.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-jewish.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-muslim.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/restaurant.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/roadblock.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rocket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/school.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/scooter.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/shop.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/skiing.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/soccer.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/square-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/square.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/star-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/star.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/suitcase.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/swimming.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/telephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/tennis.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/theatre.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/toilets.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/town-hall.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/town.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/triangle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/village.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/warehouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/waste-basket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/water.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/wetland.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/zoo.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/moonSmall.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/pin.svg +0 -1
- package/template/public/Cesium1.119/Assets/Textures/waterNormals.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/template/public/Cesium1.119/Assets/approximateTerrainHeights.json +0 -10924
- package/template/public/Cesium1.119/Cesium.js +0 -185772
- package/template/public/Cesium1.119/ThirdParty/Workers/package.json +0 -3
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +0 -1681
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +0 -1489
- package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +0 -1070
- package/template/public/Cesium1.119/ThirdParty/basis_transcoder.wasm +0 -0
- package/template/public/Cesium1.119/ThirdParty/draco_decoder.wasm +0 -0
- package/template/public/Cesium1.119/ThirdParty/google-earth-dbroot-parser.js +0 -11424
- package/template/public/Cesium1.119/Widgets/Animation/Animation.css +0 -127
- package/template/public/Cesium1.119/Widgets/Animation/lighter.css +0 -78
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +0 -112
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +0 -28
- package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +0 -104
- package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +0 -115
- package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +0 -119
- package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +0 -14
- package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +0 -8
- package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +0 -72
- package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +0 -17
- package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +0 -27
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Mouse.svg +0 -84
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +0 -120
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +0 -129
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +0 -135
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +0 -74
- package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/TimelineIcons.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/info-loading.gif +0 -0
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBox.css +0 -94
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +0 -178
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +0 -95
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +0 -38
- package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +0 -15
- package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +0 -46
- package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +0 -72
- package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +0 -22
- package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +0 -103
- package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +0 -18
- package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +0 -8
- package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +0 -107
- package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +0 -18
- package/template/public/Cesium1.119/Widgets/lighter.css +0 -246
- package/template/public/Cesium1.119/Widgets/lighterShared.css +0 -46
- package/template/public/Cesium1.119/Widgets/shared.css +0 -103
- package/template/public/Cesium1.119/Widgets/widgets.css +0 -1376
- package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +0 -611
- package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +0 -166
- package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +0 -264
- package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +0 -128
- package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +0 -8046
- package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +0 -341
- package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +0 -269
- package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +0 -28
- package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +0 -199
- package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +0 -1102
- package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +0 -485
- package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +0 -76
- package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +0 -91
- package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +0 -42
- package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +0 -2678
- package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +0 -516
- package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +0 -399
- package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +0 -65
- package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +0 -92
- package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +0 -672
- package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +0 -287
- package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +0 -50
- package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +0 -28
- package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +0 -124
- package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +0 -31
- package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +0 -331
- package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +0 -258
- package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +0 -162
- package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +0 -773
- package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +0 -162
- package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +0 -857
- package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +0 -183
- package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +0 -85
- package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +0 -108
- package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +0 -73
- package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +0 -2372
- package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +0 -73
- package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +0 -538
- package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +0 -1670
- package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +0 -392
- package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +0 -57
- package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +0 -72
- package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +0 -37
- package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +0 -814
- package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +0 -579
- package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +0 -376
- package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +0 -111
- package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +0 -573
- package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +0 -633
- package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +0 -271
- package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +0 -173
- package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +0 -217
- package/template/public/Cesium1.119/Workers/combineGeometry.js +0 -53
- package/template/public/Cesium1.119/Workers/createBoxGeometry.js +0 -45
- package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +0 -189
- package/template/public/Cesium1.119/Workers/createCircleGeometry.js +0 -148
- package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +0 -105
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +0 -293
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +0 -143
- package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +0 -830
- package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +0 -417
- package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +0 -47
- package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +0 -170
- package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +0 -58
- package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +0 -51
- package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +0 -46
- package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +0 -45
- package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +0 -45
- package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +0 -164
- package/template/public/Cesium1.119/Workers/createGeometry.js +0 -159
- package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +0 -911
- package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +0 -185
- package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +0 -93
- package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +0 -884
- package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +0 -359
- package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +0 -349
- package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +0 -262
- package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +0 -177
- package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +0 -787
- package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +0 -299
- package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +0 -294
- package/template/public/Cesium1.119/Workers/createSphereGeometry.js +0 -84
- package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +0 -83
- package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +0 -28
- package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +0 -289
- package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +0 -258
- package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +0 -79
- package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +0 -275
- package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +0 -176
- package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -375
- package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +0 -1772
- package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -425
- package/template/public/Cesium1.119/Workers/createWallGeometry.js +0 -320
- package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +0 -229
- package/template/public/Cesium1.119/Workers/decodeDraco.js +0 -227
- package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +0 -1836
- package/template/public/Cesium1.119/Workers/decodeI3S.js +0 -924
- package/template/public/Cesium1.119/Workers/transcodeKTX2.js +0 -3180
- package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +0 -34
- package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +0 -534
- package/template/public/Cesium1.119/index.cjs +0 -185632
- package/template/public/Cesium1.119/index.js +0 -182874
- package/template/src/views/Test/index.vue +0 -56
- package/template/tests/unit/example.test.ts +0 -7
|
@@ -1,1070 +0,0 @@
|
|
|
1
|
-
(function () {
|
|
2
|
-
"use strict";
|
|
3
|
-
const {
|
|
4
|
-
Array: te,
|
|
5
|
-
Object: m,
|
|
6
|
-
Number: ne,
|
|
7
|
-
Math: A,
|
|
8
|
-
Error: v,
|
|
9
|
-
Uint8Array: w,
|
|
10
|
-
Uint16Array: nt,
|
|
11
|
-
Uint32Array: se,
|
|
12
|
-
Int32Array: st,
|
|
13
|
-
Map: re,
|
|
14
|
-
DataView: W,
|
|
15
|
-
Promise: M,
|
|
16
|
-
TextEncoder: ae,
|
|
17
|
-
crypto: B,
|
|
18
|
-
postMessage: K,
|
|
19
|
-
TransformStream: b,
|
|
20
|
-
ReadableStream: Ve,
|
|
21
|
-
WritableStream: xe,
|
|
22
|
-
CompressionStream: rt,
|
|
23
|
-
DecompressionStream: at,
|
|
24
|
-
} = self,
|
|
25
|
-
j = void 0,
|
|
26
|
-
N = "undefined",
|
|
27
|
-
O = "function";
|
|
28
|
-
class oe {
|
|
29
|
-
constructor(e) {
|
|
30
|
-
return class extends b {
|
|
31
|
-
constructor(n, s) {
|
|
32
|
-
const r = new e(s);
|
|
33
|
-
super({
|
|
34
|
-
transform(a, o) {
|
|
35
|
-
o.enqueue(r.append(a));
|
|
36
|
-
},
|
|
37
|
-
flush(a) {
|
|
38
|
-
const o = r.flush();
|
|
39
|
-
o && a.enqueue(o);
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
const ie = [];
|
|
47
|
-
for (let t = 0; 256 > t; t++) {
|
|
48
|
-
let e = t;
|
|
49
|
-
for (let n = 0; 8 > n; n++)
|
|
50
|
-
1 & e ? (e = (e >>> 1) ^ 3988292384) : (e >>>= 1);
|
|
51
|
-
ie[t] = e;
|
|
52
|
-
}
|
|
53
|
-
class G {
|
|
54
|
-
constructor(e) {
|
|
55
|
-
this.crc = e || -1;
|
|
56
|
-
}
|
|
57
|
-
append(e) {
|
|
58
|
-
let n = 0 | this.crc;
|
|
59
|
-
for (let s = 0, r = 0 | e.length; r > s; s++)
|
|
60
|
-
n = (n >>> 8) ^ ie[255 & (n ^ e[s])];
|
|
61
|
-
this.crc = n;
|
|
62
|
-
}
|
|
63
|
-
get() {
|
|
64
|
-
return ~this.crc;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
class ce extends b {
|
|
68
|
-
constructor() {
|
|
69
|
-
let e;
|
|
70
|
-
const n = new G();
|
|
71
|
-
(super({
|
|
72
|
-
transform(s, r) {
|
|
73
|
-
(n.append(s), r.enqueue(s));
|
|
74
|
-
},
|
|
75
|
-
flush() {
|
|
76
|
-
const s = new w(4);
|
|
77
|
-
(new W(s.buffer).setUint32(0, n.get()), (e.value = s));
|
|
78
|
-
},
|
|
79
|
-
}),
|
|
80
|
-
(e = this));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
const _ = {
|
|
84
|
-
concat(t, e) {
|
|
85
|
-
if (t.length === 0 || e.length === 0) return t.concat(e);
|
|
86
|
-
const n = t[t.length - 1],
|
|
87
|
-
s = _.getPartial(n);
|
|
88
|
-
return s === 32
|
|
89
|
-
? t.concat(e)
|
|
90
|
-
: _._shiftRight(e, s, 0 | n, t.slice(0, t.length - 1));
|
|
91
|
-
},
|
|
92
|
-
bitLength(t) {
|
|
93
|
-
const e = t.length;
|
|
94
|
-
if (e === 0) return 0;
|
|
95
|
-
const n = t[e - 1];
|
|
96
|
-
return 32 * (e - 1) + _.getPartial(n);
|
|
97
|
-
},
|
|
98
|
-
clamp(t, e) {
|
|
99
|
-
if (32 * t.length < e) return t;
|
|
100
|
-
const n = (t = t.slice(0, A.ceil(e / 32))).length;
|
|
101
|
-
return (
|
|
102
|
-
(e &= 31),
|
|
103
|
-
n > 0 &&
|
|
104
|
-
e &&
|
|
105
|
-
(t[n - 1] = _.partial(e, t[n - 1] & (2147483648 >> (e - 1)), 1)),
|
|
106
|
-
t
|
|
107
|
-
);
|
|
108
|
-
},
|
|
109
|
-
partial: (t, e, n) =>
|
|
110
|
-
t === 32 ? e : (n ? 0 | e : e << (32 - t)) + 1099511627776 * t,
|
|
111
|
-
getPartial: (t) => A.round(t / 1099511627776) || 32,
|
|
112
|
-
_shiftRight(t, e, n, s) {
|
|
113
|
-
for (s === void 0 && (s = []); e >= 32; e -= 32) (s.push(n), (n = 0));
|
|
114
|
-
if (e === 0) return s.concat(t);
|
|
115
|
-
for (let o = 0; o < t.length; o++)
|
|
116
|
-
(s.push(n | (t[o] >>> e)), (n = t[o] << (32 - e)));
|
|
117
|
-
const r = t.length ? t[t.length - 1] : 0,
|
|
118
|
-
a = _.getPartial(r);
|
|
119
|
-
return (
|
|
120
|
-
s.push(_.partial((e + a) & 31, e + a > 32 ? n : s.pop(), 1)),
|
|
121
|
-
s
|
|
122
|
-
);
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
L = {
|
|
126
|
-
bytes: {
|
|
127
|
-
fromBits(t) {
|
|
128
|
-
const e = _.bitLength(t) / 8,
|
|
129
|
-
n = new w(e);
|
|
130
|
-
let s;
|
|
131
|
-
for (let r = 0; e > r; r++)
|
|
132
|
-
(3 & r || (s = t[r / 4]), (n[r] = s >>> 24), (s <<= 8));
|
|
133
|
-
return n;
|
|
134
|
-
},
|
|
135
|
-
toBits(t) {
|
|
136
|
-
const e = [];
|
|
137
|
-
let n,
|
|
138
|
-
s = 0;
|
|
139
|
-
for (n = 0; n < t.length; n++)
|
|
140
|
-
((s = (s << 8) | t[n]), 3 & ~n || (e.push(s), (s = 0)));
|
|
141
|
-
return (3 & n && e.push(_.partial(8 * (3 & n), s)), e);
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
Ee = class {
|
|
146
|
-
constructor(t) {
|
|
147
|
-
const e = this;
|
|
148
|
-
((e.blockSize = 512),
|
|
149
|
-
(e._init = [
|
|
150
|
-
1732584193, 4023233417, 2562383102, 271733878, 3285377520,
|
|
151
|
-
]),
|
|
152
|
-
(e._key = [1518500249, 1859775393, 2400959708, 3395469782]),
|
|
153
|
-
t
|
|
154
|
-
? ((e._h = t._h.slice(0)),
|
|
155
|
-
(e._buffer = t._buffer.slice(0)),
|
|
156
|
-
(e._length = t._length))
|
|
157
|
-
: e.reset());
|
|
158
|
-
}
|
|
159
|
-
reset() {
|
|
160
|
-
const t = this;
|
|
161
|
-
return (
|
|
162
|
-
(t._h = t._init.slice(0)),
|
|
163
|
-
(t._buffer = []),
|
|
164
|
-
(t._length = 0),
|
|
165
|
-
t
|
|
166
|
-
);
|
|
167
|
-
}
|
|
168
|
-
update(t) {
|
|
169
|
-
const e = this;
|
|
170
|
-
typeof t == "string" && (t = L.utf8String.toBits(t));
|
|
171
|
-
const n = (e._buffer = _.concat(e._buffer, t)),
|
|
172
|
-
s = e._length,
|
|
173
|
-
r = (e._length = s + _.bitLength(t));
|
|
174
|
-
if (r > 9007199254740991)
|
|
175
|
-
throw new v("Cannot hash more than 2^53 - 1 bits");
|
|
176
|
-
const a = new se(n);
|
|
177
|
-
let o = 0;
|
|
178
|
-
for (
|
|
179
|
-
let l = e.blockSize + s - ((e.blockSize + s) & (e.blockSize - 1));
|
|
180
|
-
r >= l;
|
|
181
|
-
l += e.blockSize
|
|
182
|
-
)
|
|
183
|
-
(e._block(a.subarray(16 * o, 16 * (o + 1))), (o += 1));
|
|
184
|
-
return (n.splice(0, 16 * o), e);
|
|
185
|
-
}
|
|
186
|
-
finalize() {
|
|
187
|
-
const t = this;
|
|
188
|
-
let e = t._buffer;
|
|
189
|
-
const n = t._h;
|
|
190
|
-
e = _.concat(e, [_.partial(1, 1)]);
|
|
191
|
-
for (let s = e.length + 2; 15 & s; s++) e.push(0);
|
|
192
|
-
for (
|
|
193
|
-
e.push(A.floor(t._length / 4294967296)), e.push(0 | t._length);
|
|
194
|
-
e.length;
|
|
195
|
-
)
|
|
196
|
-
t._block(e.splice(0, 16));
|
|
197
|
-
return (t.reset(), n);
|
|
198
|
-
}
|
|
199
|
-
_f(t, e, n, s) {
|
|
200
|
-
return t > 19
|
|
201
|
-
? t > 39
|
|
202
|
-
? t > 59
|
|
203
|
-
? t > 79
|
|
204
|
-
? void 0
|
|
205
|
-
: e ^ n ^ s
|
|
206
|
-
: (e & n) | (e & s) | (n & s)
|
|
207
|
-
: e ^ n ^ s
|
|
208
|
-
: (e & n) | (~e & s);
|
|
209
|
-
}
|
|
210
|
-
_S(t, e) {
|
|
211
|
-
return (e << t) | (e >>> (32 - t));
|
|
212
|
-
}
|
|
213
|
-
_block(t) {
|
|
214
|
-
const e = this,
|
|
215
|
-
n = e._h,
|
|
216
|
-
s = te(80);
|
|
217
|
-
for (let c = 0; 16 > c; c++) s[c] = t[c];
|
|
218
|
-
let r = n[0],
|
|
219
|
-
a = n[1],
|
|
220
|
-
o = n[2],
|
|
221
|
-
l = n[3],
|
|
222
|
-
u = n[4];
|
|
223
|
-
for (let c = 0; 79 >= c; c++) {
|
|
224
|
-
16 > c ||
|
|
225
|
-
(s[c] = e._S(1, s[c - 3] ^ s[c - 8] ^ s[c - 14] ^ s[c - 16]));
|
|
226
|
-
const i =
|
|
227
|
-
(e._S(5, r) +
|
|
228
|
-
e._f(c, a, o, l) +
|
|
229
|
-
u +
|
|
230
|
-
s[c] +
|
|
231
|
-
e._key[A.floor(c / 20)]) |
|
|
232
|
-
0;
|
|
233
|
-
((u = l), (l = o), (o = e._S(30, a)), (a = r), (r = i));
|
|
234
|
-
}
|
|
235
|
-
((n[0] = (n[0] + r) | 0),
|
|
236
|
-
(n[1] = (n[1] + a) | 0),
|
|
237
|
-
(n[2] = (n[2] + o) | 0),
|
|
238
|
-
(n[3] = (n[3] + l) | 0),
|
|
239
|
-
(n[4] = (n[4] + u) | 0));
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
Ue = {
|
|
243
|
-
getRandomValues(t) {
|
|
244
|
-
const e = new se(t.buffer),
|
|
245
|
-
n = (s) => {
|
|
246
|
-
let r = 987654321;
|
|
247
|
-
const a = 4294967295;
|
|
248
|
-
return () => (
|
|
249
|
-
(r = (36969 * (65535 & r) + (r >> 16)) & a),
|
|
250
|
-
((((r << 16) + (s = (18e3 * (65535 & s) + (s >> 16)) & a)) & a) /
|
|
251
|
-
4294967296 +
|
|
252
|
-
0.5) *
|
|
253
|
-
(A.random() > 0.5 ? 1 : -1)
|
|
254
|
-
);
|
|
255
|
-
};
|
|
256
|
-
for (let s, r = 0; r < t.length; r += 4) {
|
|
257
|
-
const a = n(4294967296 * (s || A.random()));
|
|
258
|
-
((s = 987654071 * a()), (e[r / 4] = (4294967296 * a()) | 0));
|
|
259
|
-
}
|
|
260
|
-
return t;
|
|
261
|
-
},
|
|
262
|
-
},
|
|
263
|
-
H = {
|
|
264
|
-
importKey: (t) => new H.hmacSha1(L.bytes.toBits(t)),
|
|
265
|
-
pbkdf2(t, e, n, s) {
|
|
266
|
-
if (((n = n || 1e4), 0 > s || 0 > n))
|
|
267
|
-
throw new v("invalid params to pbkdf2");
|
|
268
|
-
const r = (1 + (s >> 5)) << 2;
|
|
269
|
-
let a, o, l, u, c;
|
|
270
|
-
const i = new ArrayBuffer(r),
|
|
271
|
-
f = new W(i);
|
|
272
|
-
let h = 0;
|
|
273
|
-
const p = _;
|
|
274
|
-
for (e = L.bytes.toBits(e), c = 1; (r || 1) > h; c++) {
|
|
275
|
-
for (a = o = t.encrypt(p.concat(e, [c])), l = 1; n > l; l++)
|
|
276
|
-
for (o = t.encrypt(o), u = 0; u < o.length; u++) a[u] ^= o[u];
|
|
277
|
-
for (l = 0; (r || 1) > h && l < a.length; l++)
|
|
278
|
-
(f.setInt32(h, a[l]), (h += 4));
|
|
279
|
-
}
|
|
280
|
-
return i.slice(0, s / 8);
|
|
281
|
-
},
|
|
282
|
-
hmacSha1: class {
|
|
283
|
-
constructor(t) {
|
|
284
|
-
const e = this,
|
|
285
|
-
n = (e._hash = Ee),
|
|
286
|
-
s = [[], []];
|
|
287
|
-
e._baseHash = [new n(), new n()];
|
|
288
|
-
const r = e._baseHash[0].blockSize / 32;
|
|
289
|
-
t.length > r && (t = new n().update(t).finalize());
|
|
290
|
-
for (let a = 0; r > a; a++)
|
|
291
|
-
((s[0][a] = 909522486 ^ t[a]), (s[1][a] = 1549556828 ^ t[a]));
|
|
292
|
-
(e._baseHash[0].update(s[0]),
|
|
293
|
-
e._baseHash[1].update(s[1]),
|
|
294
|
-
(e._resultHash = new n(e._baseHash[0])));
|
|
295
|
-
}
|
|
296
|
-
reset() {
|
|
297
|
-
const t = this;
|
|
298
|
-
((t._resultHash = new t._hash(t._baseHash[0])), (t._updated = !1));
|
|
299
|
-
}
|
|
300
|
-
update(t) {
|
|
301
|
-
((this._updated = !0), this._resultHash.update(t));
|
|
302
|
-
}
|
|
303
|
-
digest() {
|
|
304
|
-
const t = this,
|
|
305
|
-
e = t._resultHash.finalize(),
|
|
306
|
-
n = new t._hash(t._baseHash[1]).update(e).finalize();
|
|
307
|
-
return (t.reset(), n);
|
|
308
|
-
}
|
|
309
|
-
encrypt(t) {
|
|
310
|
-
if (this._updated)
|
|
311
|
-
throw new v("encrypt on already updated hmac called!");
|
|
312
|
-
return (this.update(t), this.digest(t));
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
},
|
|
316
|
-
We = typeof B != N && typeof B.getRandomValues == O,
|
|
317
|
-
le = "Invalid password",
|
|
318
|
-
ue = "Invalid signature",
|
|
319
|
-
he = "zipjs-abort-check-password";
|
|
320
|
-
function fe(t) {
|
|
321
|
-
return We ? B.getRandomValues(t) : Ue.getRandomValues(t);
|
|
322
|
-
}
|
|
323
|
-
const P = 16,
|
|
324
|
-
pe = { name: "PBKDF2" },
|
|
325
|
-
Me = m.assign({ hash: { name: "HMAC" } }, pe),
|
|
326
|
-
X = m.assign({ iterations: 1e3, hash: { name: "SHA-1" } }, pe),
|
|
327
|
-
Ne = ["deriveBits"],
|
|
328
|
-
T = [8, 12, 16],
|
|
329
|
-
V = [16, 24, 32],
|
|
330
|
-
q = 10,
|
|
331
|
-
Oe = [0, 0, 0, 0],
|
|
332
|
-
F = typeof B != N,
|
|
333
|
-
x = F && B.subtle,
|
|
334
|
-
de = F && typeof x != N,
|
|
335
|
-
z = L.bytes,
|
|
336
|
-
Le = class {
|
|
337
|
-
constructor(t) {
|
|
338
|
-
const e = this;
|
|
339
|
-
((e._tables = [
|
|
340
|
-
[[], [], [], [], []],
|
|
341
|
-
[[], [], [], [], []],
|
|
342
|
-
]),
|
|
343
|
-
e._tables[0][0][0] || e._precompute());
|
|
344
|
-
const n = e._tables[0][4],
|
|
345
|
-
s = e._tables[1],
|
|
346
|
-
r = t.length;
|
|
347
|
-
let a,
|
|
348
|
-
o,
|
|
349
|
-
l,
|
|
350
|
-
u = 1;
|
|
351
|
-
if (r !== 4 && r !== 6 && r !== 8) throw new v("invalid aes key size");
|
|
352
|
-
for (
|
|
353
|
-
e._key = [(o = t.slice(0)), (l = [])], a = r;
|
|
354
|
-
4 * r + 28 > a;
|
|
355
|
-
a++
|
|
356
|
-
) {
|
|
357
|
-
let c = o[a - 1];
|
|
358
|
-
((a % r == 0 || (r === 8 && a % r == 4)) &&
|
|
359
|
-
((c =
|
|
360
|
-
(n[c >>> 24] << 24) ^
|
|
361
|
-
(n[(c >> 16) & 255] << 16) ^
|
|
362
|
-
(n[(c >> 8) & 255] << 8) ^
|
|
363
|
-
n[255 & c]),
|
|
364
|
-
a % r == 0 &&
|
|
365
|
-
((c = (c << 8) ^ (c >>> 24) ^ (u << 24)),
|
|
366
|
-
(u = (u << 1) ^ (283 * (u >> 7))))),
|
|
367
|
-
(o[a] = o[a - r] ^ c));
|
|
368
|
-
}
|
|
369
|
-
for (let c = 0; a; c++, a--) {
|
|
370
|
-
const i = o[3 & c ? a : a - 4];
|
|
371
|
-
l[c] =
|
|
372
|
-
4 >= a || 4 > c
|
|
373
|
-
? i
|
|
374
|
-
: s[0][n[i >>> 24]] ^
|
|
375
|
-
s[1][n[(i >> 16) & 255]] ^
|
|
376
|
-
s[2][n[(i >> 8) & 255]] ^
|
|
377
|
-
s[3][n[255 & i]];
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
encrypt(t) {
|
|
381
|
-
return this._crypt(t, 0);
|
|
382
|
-
}
|
|
383
|
-
decrypt(t) {
|
|
384
|
-
return this._crypt(t, 1);
|
|
385
|
-
}
|
|
386
|
-
_precompute() {
|
|
387
|
-
const t = this._tables[0],
|
|
388
|
-
e = this._tables[1],
|
|
389
|
-
n = t[4],
|
|
390
|
-
s = e[4],
|
|
391
|
-
r = [],
|
|
392
|
-
a = [];
|
|
393
|
-
let o, l, u, c;
|
|
394
|
-
for (let i = 0; 256 > i; i++)
|
|
395
|
-
a[(r[i] = (i << 1) ^ (283 * (i >> 7))) ^ i] = i;
|
|
396
|
-
for (let i = (o = 0); !n[i]; i ^= l || 1, o = a[o] || 1) {
|
|
397
|
-
let f = o ^ (o << 1) ^ (o << 2) ^ (o << 3) ^ (o << 4);
|
|
398
|
-
((f = (f >> 8) ^ (255 & f) ^ 99),
|
|
399
|
-
(n[i] = f),
|
|
400
|
-
(s[f] = i),
|
|
401
|
-
(c = r[(u = r[(l = r[i])])]));
|
|
402
|
-
let h = (16843009 * c) ^ (65537 * u) ^ (257 * l) ^ (16843008 * i),
|
|
403
|
-
p = (257 * r[f]) ^ (16843008 * f);
|
|
404
|
-
for (let d = 0; 4 > d; d++)
|
|
405
|
-
((t[d][i] = p = (p << 24) ^ (p >>> 8)),
|
|
406
|
-
(e[d][f] = h = (h << 24) ^ (h >>> 8)));
|
|
407
|
-
}
|
|
408
|
-
for (let i = 0; 5 > i; i++)
|
|
409
|
-
((t[i] = t[i].slice(0)), (e[i] = e[i].slice(0)));
|
|
410
|
-
}
|
|
411
|
-
_crypt(t, e) {
|
|
412
|
-
if (t.length !== 4) throw new v("invalid aes block size");
|
|
413
|
-
const n = this._key[e],
|
|
414
|
-
s = n.length / 4 - 2,
|
|
415
|
-
r = [0, 0, 0, 0],
|
|
416
|
-
a = this._tables[e],
|
|
417
|
-
o = a[0],
|
|
418
|
-
l = a[1],
|
|
419
|
-
u = a[2],
|
|
420
|
-
c = a[3],
|
|
421
|
-
i = a[4];
|
|
422
|
-
let f,
|
|
423
|
-
h,
|
|
424
|
-
p,
|
|
425
|
-
d = t[0] ^ n[0],
|
|
426
|
-
g = t[e ? 3 : 1] ^ n[1],
|
|
427
|
-
y = t[2] ^ n[2],
|
|
428
|
-
S = t[e ? 1 : 3] ^ n[3],
|
|
429
|
-
I = 4;
|
|
430
|
-
for (let C = 0; s > C; C++)
|
|
431
|
-
((f =
|
|
432
|
-
o[d >>> 24] ^
|
|
433
|
-
l[(g >> 16) & 255] ^
|
|
434
|
-
u[(y >> 8) & 255] ^
|
|
435
|
-
c[255 & S] ^
|
|
436
|
-
n[I]),
|
|
437
|
-
(h =
|
|
438
|
-
o[g >>> 24] ^
|
|
439
|
-
l[(y >> 16) & 255] ^
|
|
440
|
-
u[(S >> 8) & 255] ^
|
|
441
|
-
c[255 & d] ^
|
|
442
|
-
n[I + 1]),
|
|
443
|
-
(p =
|
|
444
|
-
o[y >>> 24] ^
|
|
445
|
-
l[(S >> 16) & 255] ^
|
|
446
|
-
u[(d >> 8) & 255] ^
|
|
447
|
-
c[255 & g] ^
|
|
448
|
-
n[I + 2]),
|
|
449
|
-
(S =
|
|
450
|
-
o[S >>> 24] ^
|
|
451
|
-
l[(d >> 16) & 255] ^
|
|
452
|
-
u[(g >> 8) & 255] ^
|
|
453
|
-
c[255 & y] ^
|
|
454
|
-
n[I + 3]),
|
|
455
|
-
(I += 4),
|
|
456
|
-
(d = f),
|
|
457
|
-
(g = h),
|
|
458
|
-
(y = p));
|
|
459
|
-
for (let C = 0; 4 > C; C++)
|
|
460
|
-
((r[e ? 3 & -C : C] =
|
|
461
|
-
(i[d >>> 24] << 24) ^
|
|
462
|
-
(i[(g >> 16) & 255] << 16) ^
|
|
463
|
-
(i[(y >> 8) & 255] << 8) ^
|
|
464
|
-
i[255 & S] ^
|
|
465
|
-
n[I++]),
|
|
466
|
-
(f = d),
|
|
467
|
-
(d = g),
|
|
468
|
-
(g = y),
|
|
469
|
-
(y = S),
|
|
470
|
-
(S = f));
|
|
471
|
-
return r;
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
|
-
Fe = class {
|
|
475
|
-
constructor(t, e) {
|
|
476
|
-
((this._prf = t), (this._initIv = e), (this._iv = e));
|
|
477
|
-
}
|
|
478
|
-
reset() {
|
|
479
|
-
this._iv = this._initIv;
|
|
480
|
-
}
|
|
481
|
-
update(t) {
|
|
482
|
-
return this.calculate(this._prf, t, this._iv);
|
|
483
|
-
}
|
|
484
|
-
incWord(t) {
|
|
485
|
-
if (255 & ~(t >> 24)) t += 1 << 24;
|
|
486
|
-
else {
|
|
487
|
-
let e = (t >> 16) & 255,
|
|
488
|
-
n = (t >> 8) & 255,
|
|
489
|
-
s = 255 & t;
|
|
490
|
-
(e === 255
|
|
491
|
-
? ((e = 0), n === 255 ? ((n = 0), s === 255 ? (s = 0) : ++s) : ++n)
|
|
492
|
-
: ++e,
|
|
493
|
-
(t = 0),
|
|
494
|
-
(t += e << 16),
|
|
495
|
-
(t += n << 8),
|
|
496
|
-
(t += s));
|
|
497
|
-
}
|
|
498
|
-
return t;
|
|
499
|
-
}
|
|
500
|
-
incCounter(t) {
|
|
501
|
-
(t[0] = this.incWord(t[0])) === 0 && (t[1] = this.incWord(t[1]));
|
|
502
|
-
}
|
|
503
|
-
calculate(t, e, n) {
|
|
504
|
-
let s;
|
|
505
|
-
if (!(s = e.length)) return [];
|
|
506
|
-
const r = _.bitLength(e);
|
|
507
|
-
for (let a = 0; s > a; a += 4) {
|
|
508
|
-
this.incCounter(n);
|
|
509
|
-
const o = t.encrypt(n);
|
|
510
|
-
((e[a] ^= o[0]),
|
|
511
|
-
(e[a + 1] ^= o[1]),
|
|
512
|
-
(e[a + 2] ^= o[2]),
|
|
513
|
-
(e[a + 3] ^= o[3]));
|
|
514
|
-
}
|
|
515
|
-
return _.clamp(e, r);
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
je = H.hmacSha1;
|
|
519
|
-
let ge = F && de && typeof x.importKey == O,
|
|
520
|
-
we = F && de && typeof x.deriveBits == O;
|
|
521
|
-
class Ge extends b {
|
|
522
|
-
constructor({
|
|
523
|
-
password: e,
|
|
524
|
-
rawPassword: n,
|
|
525
|
-
signed: s,
|
|
526
|
-
encryptionStrength: r,
|
|
527
|
-
checkPasswordOnly: a,
|
|
528
|
-
}) {
|
|
529
|
-
super({
|
|
530
|
-
start() {
|
|
531
|
-
m.assign(this, {
|
|
532
|
-
ready: new M((o) => (this.resolveReady = o)),
|
|
533
|
-
password: _e(e, n),
|
|
534
|
-
signed: s,
|
|
535
|
-
strength: r - 1,
|
|
536
|
-
pending: new w(),
|
|
537
|
-
});
|
|
538
|
-
},
|
|
539
|
-
async transform(o, l) {
|
|
540
|
-
const u = this,
|
|
541
|
-
{ password: c, strength: i, resolveReady: f, ready: h } = u;
|
|
542
|
-
c
|
|
543
|
-
? (await (async (d, g, y, S) => {
|
|
544
|
-
const I = await me(d, g, y, k(S, 0, T[g])),
|
|
545
|
-
C = k(S, T[g]);
|
|
546
|
-
if (I[0] != C[0] || I[1] != C[1]) throw new v(le);
|
|
547
|
-
})(u, i, c, k(o, 0, T[i] + 2)),
|
|
548
|
-
(o = k(o, T[i] + 2)),
|
|
549
|
-
a ? l.error(new v(he)) : f())
|
|
550
|
-
: await h;
|
|
551
|
-
const p = new w(o.length - q - ((o.length - q) % P));
|
|
552
|
-
l.enqueue(ye(u, o, p, 0, q, !0));
|
|
553
|
-
},
|
|
554
|
-
async flush(o) {
|
|
555
|
-
const { signed: l, ctr: u, hmac: c, pending: i, ready: f } = this;
|
|
556
|
-
if (c && u) {
|
|
557
|
-
await f;
|
|
558
|
-
const h = k(i, 0, i.length - q),
|
|
559
|
-
p = k(i, i.length - q);
|
|
560
|
-
let d = new w();
|
|
561
|
-
if (h.length) {
|
|
562
|
-
const g = U(z, h);
|
|
563
|
-
c.update(g);
|
|
564
|
-
const y = u.update(g);
|
|
565
|
-
d = E(z, y);
|
|
566
|
-
}
|
|
567
|
-
if (l) {
|
|
568
|
-
const g = k(E(z, c.digest()), 0, q);
|
|
569
|
-
for (let y = 0; q > y; y++) if (g[y] != p[y]) throw new v(ue);
|
|
570
|
-
}
|
|
571
|
-
o.enqueue(d);
|
|
572
|
-
}
|
|
573
|
-
},
|
|
574
|
-
});
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
class Xe extends b {
|
|
578
|
-
constructor({ password: e, rawPassword: n, encryptionStrength: s }) {
|
|
579
|
-
let r;
|
|
580
|
-
(super({
|
|
581
|
-
start() {
|
|
582
|
-
m.assign(this, {
|
|
583
|
-
ready: new M((a) => (this.resolveReady = a)),
|
|
584
|
-
password: _e(e, n),
|
|
585
|
-
strength: s - 1,
|
|
586
|
-
pending: new w(),
|
|
587
|
-
});
|
|
588
|
-
},
|
|
589
|
-
async transform(a, o) {
|
|
590
|
-
const l = this,
|
|
591
|
-
{ password: u, strength: c, resolveReady: i, ready: f } = l;
|
|
592
|
-
let h = new w();
|
|
593
|
-
u
|
|
594
|
-
? ((h = await (async (d, g, y) => {
|
|
595
|
-
const S = fe(new w(T[g]));
|
|
596
|
-
return J(S, await me(d, g, y, S));
|
|
597
|
-
})(l, c, u)),
|
|
598
|
-
i())
|
|
599
|
-
: await f;
|
|
600
|
-
const p = new w(h.length + a.length - (a.length % P));
|
|
601
|
-
(p.set(h, 0), o.enqueue(ye(l, a, p, h.length, 0)));
|
|
602
|
-
},
|
|
603
|
-
async flush(a) {
|
|
604
|
-
const { ctr: o, hmac: l, pending: u, ready: c } = this;
|
|
605
|
-
if (l && o) {
|
|
606
|
-
await c;
|
|
607
|
-
let i = new w();
|
|
608
|
-
if (u.length) {
|
|
609
|
-
const f = o.update(U(z, u));
|
|
610
|
-
(l.update(f), (i = E(z, f)));
|
|
611
|
-
}
|
|
612
|
-
((r.signature = E(z, l.digest()).slice(0, q)),
|
|
613
|
-
a.enqueue(J(i, r.signature)));
|
|
614
|
-
}
|
|
615
|
-
},
|
|
616
|
-
}),
|
|
617
|
-
(r = this));
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
function ye(t, e, n, s, r, a) {
|
|
621
|
-
const { ctr: o, hmac: l, pending: u } = t,
|
|
622
|
-
c = e.length - r;
|
|
623
|
-
let i;
|
|
624
|
-
for (
|
|
625
|
-
u.length &&
|
|
626
|
-
((e = J(u, e)),
|
|
627
|
-
(n = ((f, h) => {
|
|
628
|
-
if (h && h > f.length) {
|
|
629
|
-
const p = f;
|
|
630
|
-
(f = new w(h)).set(p, 0);
|
|
631
|
-
}
|
|
632
|
-
return f;
|
|
633
|
-
})(n, c - (c % P)))),
|
|
634
|
-
i = 0;
|
|
635
|
-
c - P >= i;
|
|
636
|
-
i += P
|
|
637
|
-
) {
|
|
638
|
-
const f = U(z, k(e, i, i + P));
|
|
639
|
-
a && l.update(f);
|
|
640
|
-
const h = o.update(f);
|
|
641
|
-
(a || l.update(h), n.set(E(z, h), i + s));
|
|
642
|
-
}
|
|
643
|
-
return ((t.pending = k(e, i)), n);
|
|
644
|
-
}
|
|
645
|
-
async function me(t, e, n, s) {
|
|
646
|
-
t.password = null;
|
|
647
|
-
const r = await (async (i, f, h, p, d) => {
|
|
648
|
-
if (!ge) return H.importKey(f);
|
|
649
|
-
try {
|
|
650
|
-
return await x.importKey("raw", f, h, !1, d);
|
|
651
|
-
} catch {
|
|
652
|
-
return ((ge = !1), H.importKey(f));
|
|
653
|
-
}
|
|
654
|
-
})(0, n, Me, 0, Ne),
|
|
655
|
-
a = await (async (i, f, h) => {
|
|
656
|
-
if (!we) return H.pbkdf2(f, i.salt, X.iterations, h);
|
|
657
|
-
try {
|
|
658
|
-
return await x.deriveBits(i, f, h);
|
|
659
|
-
} catch {
|
|
660
|
-
return ((we = !1), H.pbkdf2(f, i.salt, X.iterations, h));
|
|
661
|
-
}
|
|
662
|
-
})(m.assign({ salt: s }, X), r, 8 * (2 * V[e] + 2)),
|
|
663
|
-
o = new w(a),
|
|
664
|
-
l = U(z, k(o, 0, V[e])),
|
|
665
|
-
u = U(z, k(o, V[e], 2 * V[e])),
|
|
666
|
-
c = k(o, 2 * V[e]);
|
|
667
|
-
return (
|
|
668
|
-
m.assign(t, {
|
|
669
|
-
keys: { key: l, authentication: u, passwordVerification: c },
|
|
670
|
-
ctr: new Fe(new Le(l), te.from(Oe)),
|
|
671
|
-
hmac: new je(u),
|
|
672
|
-
}),
|
|
673
|
-
c
|
|
674
|
-
);
|
|
675
|
-
}
|
|
676
|
-
function _e(t, e) {
|
|
677
|
-
return e === j
|
|
678
|
-
? ((n) => {
|
|
679
|
-
if (typeof ae == N) {
|
|
680
|
-
const s = new w((n = unescape(encodeURIComponent(n))).length);
|
|
681
|
-
for (let r = 0; r < s.length; r++) s[r] = n.charCodeAt(r);
|
|
682
|
-
return s;
|
|
683
|
-
}
|
|
684
|
-
return new ae().encode(n);
|
|
685
|
-
})(t)
|
|
686
|
-
: e;
|
|
687
|
-
}
|
|
688
|
-
function J(t, e) {
|
|
689
|
-
let n = t;
|
|
690
|
-
return (
|
|
691
|
-
t.length + e.length &&
|
|
692
|
-
((n = new w(t.length + e.length)), n.set(t, 0), n.set(e, t.length)),
|
|
693
|
-
n
|
|
694
|
-
);
|
|
695
|
-
}
|
|
696
|
-
function k(t, e, n) {
|
|
697
|
-
return t.subarray(e, n);
|
|
698
|
-
}
|
|
699
|
-
function E(t, e) {
|
|
700
|
-
return t.fromBits(e);
|
|
701
|
-
}
|
|
702
|
-
function U(t, e) {
|
|
703
|
-
return t.toBits(e);
|
|
704
|
-
}
|
|
705
|
-
class Je extends b {
|
|
706
|
-
constructor({
|
|
707
|
-
password: e,
|
|
708
|
-
passwordVerification: n,
|
|
709
|
-
checkPasswordOnly: s,
|
|
710
|
-
}) {
|
|
711
|
-
super({
|
|
712
|
-
start() {
|
|
713
|
-
(m.assign(this, { password: e, passwordVerification: n }),
|
|
714
|
-
ve(this, e));
|
|
715
|
-
},
|
|
716
|
-
transform(r, a) {
|
|
717
|
-
const o = this;
|
|
718
|
-
if (o.password) {
|
|
719
|
-
const l = be(o, r.subarray(0, 12));
|
|
720
|
-
if (((o.password = null), l[11] != o.passwordVerification))
|
|
721
|
-
throw new v(le);
|
|
722
|
-
r = r.subarray(12);
|
|
723
|
-
}
|
|
724
|
-
s ? a.error(new v(he)) : a.enqueue(be(o, r));
|
|
725
|
-
},
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
class Qe extends b {
|
|
730
|
-
constructor({ password: e, passwordVerification: n }) {
|
|
731
|
-
super({
|
|
732
|
-
start() {
|
|
733
|
-
(m.assign(this, { password: e, passwordVerification: n }),
|
|
734
|
-
ve(this, e));
|
|
735
|
-
},
|
|
736
|
-
transform(s, r) {
|
|
737
|
-
const a = this;
|
|
738
|
-
let o, l;
|
|
739
|
-
if (a.password) {
|
|
740
|
-
a.password = null;
|
|
741
|
-
const u = fe(new w(12));
|
|
742
|
-
((u[11] = a.passwordVerification),
|
|
743
|
-
(o = new w(s.length + u.length)),
|
|
744
|
-
o.set(Se(a, u), 0),
|
|
745
|
-
(l = 12));
|
|
746
|
-
} else ((o = new w(s.length)), (l = 0));
|
|
747
|
-
(o.set(Se(a, s), l), r.enqueue(o));
|
|
748
|
-
},
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
function be(t, e) {
|
|
753
|
-
const n = new w(e.length);
|
|
754
|
-
for (let s = 0; s < e.length; s++) ((n[s] = ke(t) ^ e[s]), Q(t, n[s]));
|
|
755
|
-
return n;
|
|
756
|
-
}
|
|
757
|
-
function Se(t, e) {
|
|
758
|
-
const n = new w(e.length);
|
|
759
|
-
for (let s = 0; s < e.length; s++) ((n[s] = ke(t) ^ e[s]), Q(t, e[s]));
|
|
760
|
-
return n;
|
|
761
|
-
}
|
|
762
|
-
function ve(t, e) {
|
|
763
|
-
const n = [305419896, 591751049, 878082192];
|
|
764
|
-
m.assign(t, { keys: n, crcKey0: new G(n[0]), crcKey2: new G(n[2]) });
|
|
765
|
-
for (let s = 0; s < e.length; s++) Q(t, e.charCodeAt(s));
|
|
766
|
-
}
|
|
767
|
-
function Q(t, e) {
|
|
768
|
-
let [n, s, r] = t.keys;
|
|
769
|
-
(t.crcKey0.append([e]),
|
|
770
|
-
(n = ~t.crcKey0.get()),
|
|
771
|
-
(s = De(A.imul(De(s + ze(n)), 134775813) + 1)),
|
|
772
|
-
t.crcKey2.append([s >>> 24]),
|
|
773
|
-
(r = ~t.crcKey2.get()),
|
|
774
|
-
(t.keys = [n, s, r]));
|
|
775
|
-
}
|
|
776
|
-
function ke(t) {
|
|
777
|
-
const e = 2 | t.keys[2];
|
|
778
|
-
return ze(A.imul(e, 1 ^ e) >>> 8);
|
|
779
|
-
}
|
|
780
|
-
function ze(t) {
|
|
781
|
-
return 255 & t;
|
|
782
|
-
}
|
|
783
|
-
function De(t) {
|
|
784
|
-
return 4294967295 & t;
|
|
785
|
-
}
|
|
786
|
-
const Ce = "deflate-raw";
|
|
787
|
-
class Ye extends b {
|
|
788
|
-
constructor(
|
|
789
|
-
e,
|
|
790
|
-
{ chunkSize: n, CompressionStream: s, CompressionStreamNative: r },
|
|
791
|
-
) {
|
|
792
|
-
super({});
|
|
793
|
-
const {
|
|
794
|
-
compressed: a,
|
|
795
|
-
encrypted: o,
|
|
796
|
-
useCompressionStream: l,
|
|
797
|
-
zipCrypto: u,
|
|
798
|
-
signed: c,
|
|
799
|
-
level: i,
|
|
800
|
-
} = e,
|
|
801
|
-
f = this;
|
|
802
|
-
let h,
|
|
803
|
-
p,
|
|
804
|
-
d = Ie(super.readable);
|
|
805
|
-
((o && !u) || !c || ((h = new ce()), (d = D(d, h))),
|
|
806
|
-
a && (d = qe(d, l, { level: i, chunkSize: n }, r, s)),
|
|
807
|
-
o && (u ? (d = D(d, new Qe(e))) : ((p = new Xe(e)), (d = D(d, p)))),
|
|
808
|
-
Ae(f, d, () => {
|
|
809
|
-
let g;
|
|
810
|
-
(o && !u && (g = p.signature),
|
|
811
|
-
(o && !u) || !c || (g = new W(h.value.buffer).getUint32(0)),
|
|
812
|
-
(f.signature = g));
|
|
813
|
-
}));
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
class Ze extends b {
|
|
817
|
-
constructor(
|
|
818
|
-
e,
|
|
819
|
-
{ chunkSize: n, DecompressionStream: s, DecompressionStreamNative: r },
|
|
820
|
-
) {
|
|
821
|
-
super({});
|
|
822
|
-
const {
|
|
823
|
-
zipCrypto: a,
|
|
824
|
-
encrypted: o,
|
|
825
|
-
signed: l,
|
|
826
|
-
signature: u,
|
|
827
|
-
compressed: c,
|
|
828
|
-
useCompressionStream: i,
|
|
829
|
-
} = e;
|
|
830
|
-
let f,
|
|
831
|
-
h,
|
|
832
|
-
p = Ie(super.readable);
|
|
833
|
-
(o && (a ? (p = D(p, new Je(e))) : ((h = new Ge(e)), (p = D(p, h)))),
|
|
834
|
-
c && (p = qe(p, i, { chunkSize: n }, r, s)),
|
|
835
|
-
(o && !a) || !l || ((f = new ce()), (p = D(p, f))),
|
|
836
|
-
Ae(this, p, () => {
|
|
837
|
-
if ((!o || a) && l) {
|
|
838
|
-
const d = new W(f.value.buffer);
|
|
839
|
-
if (u != d.getUint32(0, !1)) throw new v(ue);
|
|
840
|
-
}
|
|
841
|
-
}));
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
function Ie(t) {
|
|
845
|
-
return D(
|
|
846
|
-
t,
|
|
847
|
-
new b({
|
|
848
|
-
transform(e, n) {
|
|
849
|
-
e && e.length && n.enqueue(e);
|
|
850
|
-
},
|
|
851
|
-
}),
|
|
852
|
-
);
|
|
853
|
-
}
|
|
854
|
-
function Ae(t, e, n) {
|
|
855
|
-
((e = D(e, new b({ flush: n }))),
|
|
856
|
-
m.defineProperty(t, "readable", { get: () => e }));
|
|
857
|
-
}
|
|
858
|
-
function qe(t, e, n, s, r) {
|
|
859
|
-
try {
|
|
860
|
-
t = D(t, new (e && s ? s : r)(Ce, n));
|
|
861
|
-
} catch {
|
|
862
|
-
if (!e) return t;
|
|
863
|
-
try {
|
|
864
|
-
t = D(t, new r(Ce, n));
|
|
865
|
-
} catch {
|
|
866
|
-
return t;
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
return t;
|
|
870
|
-
}
|
|
871
|
-
function D(t, e) {
|
|
872
|
-
return t.pipeThrough(e);
|
|
873
|
-
}
|
|
874
|
-
const Re = "data",
|
|
875
|
-
He = "close";
|
|
876
|
-
class $e extends b {
|
|
877
|
-
constructor(e, n) {
|
|
878
|
-
super({});
|
|
879
|
-
const s = this,
|
|
880
|
-
{ codecType: r } = e;
|
|
881
|
-
let a;
|
|
882
|
-
r.startsWith("deflate") ? (a = Ye) : r.startsWith("inflate") && (a = Ze);
|
|
883
|
-
let o = 0,
|
|
884
|
-
l = 0;
|
|
885
|
-
const u = new a(e, n),
|
|
886
|
-
c = super.readable,
|
|
887
|
-
i = new b({
|
|
888
|
-
transform(h, p) {
|
|
889
|
-
h && h.length && ((l += h.length), p.enqueue(h));
|
|
890
|
-
},
|
|
891
|
-
flush() {
|
|
892
|
-
m.assign(s, { inputSize: l });
|
|
893
|
-
},
|
|
894
|
-
}),
|
|
895
|
-
f = new b({
|
|
896
|
-
transform(h, p) {
|
|
897
|
-
h && h.length && ((o += h.length), p.enqueue(h));
|
|
898
|
-
},
|
|
899
|
-
flush() {
|
|
900
|
-
const { signature: h } = u;
|
|
901
|
-
m.assign(s, { signature: h, outputSize: o, inputSize: l });
|
|
902
|
-
},
|
|
903
|
-
});
|
|
904
|
-
m.defineProperty(s, "readable", {
|
|
905
|
-
get: () => c.pipeThrough(i).pipeThrough(u).pipeThrough(f),
|
|
906
|
-
});
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
class et extends b {
|
|
910
|
-
constructor(e) {
|
|
911
|
-
let n;
|
|
912
|
-
super({
|
|
913
|
-
transform: function s(r, a) {
|
|
914
|
-
if (n) {
|
|
915
|
-
const o = new w(n.length + r.length);
|
|
916
|
-
(o.set(n), o.set(r, n.length), (r = o), (n = null));
|
|
917
|
-
}
|
|
918
|
-
r.length > e ? (a.enqueue(r.slice(0, e)), s(r.slice(e), a)) : (n = r);
|
|
919
|
-
},
|
|
920
|
-
flush(s) {
|
|
921
|
-
n && n.length && s.enqueue(n);
|
|
922
|
-
},
|
|
923
|
-
});
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
const Y = new re(),
|
|
927
|
-
Z = new re();
|
|
928
|
-
let $,
|
|
929
|
-
R = 0,
|
|
930
|
-
Pe = !0;
|
|
931
|
-
async function tt(t) {
|
|
932
|
-
try {
|
|
933
|
-
const { options: e, scripts: n, config: s } = t;
|
|
934
|
-
if (n && n.length)
|
|
935
|
-
try {
|
|
936
|
-
Pe ? importScripts.apply(j, n) : await Be(n);
|
|
937
|
-
} catch {
|
|
938
|
-
((Pe = !1), await Be(n));
|
|
939
|
-
}
|
|
940
|
-
(self.initCodec && self.initCodec(),
|
|
941
|
-
(s.CompressionStreamNative = self.CompressionStream),
|
|
942
|
-
(s.DecompressionStreamNative = self.DecompressionStream),
|
|
943
|
-
self.Deflate && (s.CompressionStream = new oe(self.Deflate)),
|
|
944
|
-
self.Inflate && (s.DecompressionStream = new oe(self.Inflate)));
|
|
945
|
-
const r = { highWaterMark: 1 },
|
|
946
|
-
a =
|
|
947
|
-
t.readable ||
|
|
948
|
-
new Ve(
|
|
949
|
-
{
|
|
950
|
-
async pull(h) {
|
|
951
|
-
const p = new M((y) => Y.set(R, y));
|
|
952
|
-
(ee({ type: "pull", messageId: R }),
|
|
953
|
-
(R = (R + 1) % ne.MAX_SAFE_INTEGER));
|
|
954
|
-
const { value: d, done: g } = await p;
|
|
955
|
-
(h.enqueue(d), g && h.close());
|
|
956
|
-
},
|
|
957
|
-
},
|
|
958
|
-
r,
|
|
959
|
-
),
|
|
960
|
-
o =
|
|
961
|
-
t.writable ||
|
|
962
|
-
new xe(
|
|
963
|
-
{
|
|
964
|
-
async write(h) {
|
|
965
|
-
let p;
|
|
966
|
-
const d = new M((g) => (p = g));
|
|
967
|
-
(Z.set(R, p),
|
|
968
|
-
ee({ type: Re, value: h, messageId: R }),
|
|
969
|
-
(R = (R + 1) % ne.MAX_SAFE_INTEGER),
|
|
970
|
-
await d);
|
|
971
|
-
},
|
|
972
|
-
},
|
|
973
|
-
r,
|
|
974
|
-
),
|
|
975
|
-
l = new $e(e, s);
|
|
976
|
-
$ = new AbortController();
|
|
977
|
-
const { signal: u } = $;
|
|
978
|
-
(await a
|
|
979
|
-
.pipeThrough(l)
|
|
980
|
-
.pipeThrough(new et(s.chunkSize))
|
|
981
|
-
.pipeTo(o, { signal: u, preventClose: !0, preventAbort: !0 }),
|
|
982
|
-
await o.getWriter().close());
|
|
983
|
-
const { signature: c, inputSize: i, outputSize: f } = l;
|
|
984
|
-
ee({ type: He, result: { signature: c, inputSize: i, outputSize: f } });
|
|
985
|
-
} catch (e) {
|
|
986
|
-
Ke(e);
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
async function Be(t) {
|
|
990
|
-
for (const e of t) await import(e);
|
|
991
|
-
}
|
|
992
|
-
function ee(t) {
|
|
993
|
-
let { value: e } = t;
|
|
994
|
-
if (e)
|
|
995
|
-
if (e.length)
|
|
996
|
-
try {
|
|
997
|
-
((e = new w(e)), (t.value = e.buffer), K(t, [t.value]));
|
|
998
|
-
} catch {
|
|
999
|
-
K(t);
|
|
1000
|
-
}
|
|
1001
|
-
else K(t);
|
|
1002
|
-
else K(t);
|
|
1003
|
-
}
|
|
1004
|
-
function Ke(t = new v("Unknown error")) {
|
|
1005
|
-
const { message: e, stack: n, code: s, name: r } = t;
|
|
1006
|
-
K({ error: { message: e, stack: n, code: s, name: r } });
|
|
1007
|
-
}
|
|
1008
|
-
function Te(t, e, n) {
|
|
1009
|
-
return class {
|
|
1010
|
-
constructor(r) {
|
|
1011
|
-
const a = this;
|
|
1012
|
-
var o, l;
|
|
1013
|
-
((o = r),
|
|
1014
|
-
(l = "level"),
|
|
1015
|
-
(typeof m.hasOwn === O ? m.hasOwn(o, l) : o.hasOwnProperty(l)) &&
|
|
1016
|
-
r.level === j &&
|
|
1017
|
-
delete r.level,
|
|
1018
|
-
(a.codec = new t(m.assign({}, e, r))),
|
|
1019
|
-
n(a.codec, (u) => {
|
|
1020
|
-
if (a.pendingData) {
|
|
1021
|
-
const c = a.pendingData;
|
|
1022
|
-
a.pendingData = new w(c.length + u.length);
|
|
1023
|
-
const { pendingData: i } = a;
|
|
1024
|
-
(i.set(c, 0), i.set(u, c.length));
|
|
1025
|
-
} else a.pendingData = new w(u);
|
|
1026
|
-
}));
|
|
1027
|
-
}
|
|
1028
|
-
append(r) {
|
|
1029
|
-
return (this.codec.push(r), s(this));
|
|
1030
|
-
}
|
|
1031
|
-
flush() {
|
|
1032
|
-
return (this.codec.push(new w(), !0), s(this));
|
|
1033
|
-
}
|
|
1034
|
-
};
|
|
1035
|
-
function s(r) {
|
|
1036
|
-
if (r.pendingData) {
|
|
1037
|
-
const a = r.pendingData;
|
|
1038
|
-
return ((r.pendingData = null), a);
|
|
1039
|
-
}
|
|
1040
|
-
return new w();
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
(addEventListener("message", ({ data: t }) => {
|
|
1044
|
-
const { type: e, messageId: n, value: s, done: r } = t;
|
|
1045
|
-
try {
|
|
1046
|
-
if ((e == "start" && tt(t), e == Re)) {
|
|
1047
|
-
const a = Y.get(n);
|
|
1048
|
-
(Y.delete(n), a({ value: new w(s), done: r }));
|
|
1049
|
-
}
|
|
1050
|
-
if (e == "ack") {
|
|
1051
|
-
const a = Z.get(n);
|
|
1052
|
-
(Z.delete(n), a());
|
|
1053
|
-
}
|
|
1054
|
-
e == He && $.abort();
|
|
1055
|
-
} catch (a) {
|
|
1056
|
-
Ke(a);
|
|
1057
|
-
}
|
|
1058
|
-
}),
|
|
1059
|
-
(self.initCodec = () => {
|
|
1060
|
-
const { Deflate: t, Inflate: e } = ((n, s = {}, r) => ({
|
|
1061
|
-
Deflate: Te(n.Deflate, s.deflate, r),
|
|
1062
|
-
Inflate: Te(n.Inflate, s.inflate, r),
|
|
1063
|
-
}))(
|
|
1064
|
-
pako,
|
|
1065
|
-
{ deflate: { raw: !0 }, inflate: { raw: !0 } },
|
|
1066
|
-
(n, s) => (n.onData = s),
|
|
1067
|
-
);
|
|
1068
|
-
((self.Deflate = t), (self.Inflate = e));
|
|
1069
|
-
}));
|
|
1070
|
-
})();
|