@luma.gl/engine 10.0.0-alpha.9 → 10.0.0-beta.1
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/LICENSE +4 -4
- package/THIRD-PARTY-NOTICES.md +185 -0
- package/dist/animation/node-animation-binding.cjs +10 -0
- package/dist/animation/node-animation-binding.d.ts +1 -1
- package/dist/animation/node-animation-binding.d.ts.map +1 -1
- package/dist/animation/node-animation-binding.js +10 -0
- package/dist/animation/node-animation-binding.js.map +1 -1
- package/dist/arrow/index.cjs.map +2 -2
- package/dist/arrow/renderers/splats/conversion/make-gpu-splat-data-from-gltf.cjs +12 -13
- package/dist/arrow/renderers/splats/conversion/make-gpu-splat-data-from-gltf.d.ts.map +1 -1
- package/dist/arrow/renderers/splats/conversion/make-gpu-splat-data-from-gltf.js +22 -17
- package/dist/arrow/renderers/splats/conversion/make-gpu-splat-data-from-gltf.js.map +1 -1
- package/dist/arrow/renderers/text/renderers/arrow-text-shaders.cjs +1 -1
- package/dist/arrow/renderers/text/renderers/arrow-text-shaders.js +1 -1
- package/dist/arrow/renderers/text/renderers/arrow-text-shaders.js.map +1 -1
- package/dist/compute/computation.cjs +1 -1
- package/dist/compute/computation.js +1 -1
- package/dist/compute/computation.js.map +1 -1
- package/dist/compute/swap.d.ts +2 -2
- package/dist/compute/swap.d.ts.map +1 -1
- package/dist/compute/swap.js.map +1 -1
- package/dist/dist.dev.js +887 -381
- package/dist/dist.min.js +74 -67
- package/dist/dynamic-texture/video-texture.cjs +1 -1
- package/dist/dynamic-texture/video-texture.d.ts +3 -3
- package/dist/dynamic-texture/video-texture.d.ts.map +1 -1
- package/dist/dynamic-texture/video-texture.js +1 -1
- package/dist/dynamic-texture/video-texture.js.map +1 -1
- package/dist/effects/index.cjs.map +1 -1
- package/dist/effects/passes/postprocessing/fxaa/fxaa.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/fxaa/fxaa.js +2 -1
- package/dist/effects/passes/postprocessing/fxaa/fxaa.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/brightnesscontrast.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/brightnesscontrast.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/brightnesscontrast.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/denoise.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/denoise.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/denoise.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/huesaturation.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/huesaturation.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/huesaturation.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/noise.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/noise.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/noise.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/sepia.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/sepia.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/sepia.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/vibrance.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/vibrance.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/vibrance.js.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/vignette.d.ts.map +1 -1
- package/dist/effects/passes/postprocessing/image-adjust-filters/vignette.js +2 -0
- package/dist/effects/passes/postprocessing/image-adjust-filters/vignette.js.map +1 -1
- package/dist/gltf/gltf/animations/animations.d.ts +1 -1
- package/dist/gltf/gltf/animations/animations.d.ts.map +1 -1
- package/dist/gltf/gltf/create-gltf-model.cjs +3 -0
- package/dist/gltf/gltf/create-gltf-model.d.ts.map +1 -1
- package/dist/gltf/gltf/create-gltf-model.js +4 -0
- package/dist/gltf/gltf/create-gltf-model.js.map +1 -1
- package/dist/gltf/gltf/create-scenegraph-from-gltf.cjs +80 -12
- package/dist/gltf/gltf/create-scenegraph-from-gltf.d.ts +8 -1
- package/dist/gltf/gltf/create-scenegraph-from-gltf.d.ts.map +1 -1
- package/dist/gltf/gltf/create-scenegraph-from-gltf.js +82 -14
- package/dist/gltf/gltf/create-scenegraph-from-gltf.js.map +1 -1
- package/dist/gltf/gltf/gltf-billboard.cjs +6 -1
- package/dist/gltf/gltf/gltf-billboard.d.ts.map +1 -1
- package/dist/gltf/gltf/gltf-billboard.js +6 -1
- package/dist/gltf/gltf/gltf-billboard.js.map +1 -1
- package/dist/gltf/gltf/gltf-extension-support.cjs +2 -2
- package/dist/gltf/gltf/gltf-extension-support.js +2 -2
- package/dist/gltf/gltf/gltf-extension-support.js.map +1 -1
- package/dist/gltf/index.cjs +2 -0
- package/dist/gltf/index.cjs.map +3 -3
- package/dist/gltf/index.d.ts +1 -1
- package/dist/gltf/index.d.ts.map +1 -1
- package/dist/gltf/index.js +1 -1
- package/dist/gltf/index.js.map +1 -1
- package/dist/gltf/parsers/parse-gltf-animations.cjs +8 -5
- package/dist/gltf/parsers/parse-gltf-animations.js +20 -5
- package/dist/gltf/parsers/parse-gltf-animations.js.map +1 -1
- package/dist/gltf/parsers/parse-gltf-lights.cjs +36 -72
- package/dist/gltf/parsers/parse-gltf-lights.d.ts +6 -2
- package/dist/gltf/parsers/parse-gltf-lights.d.ts.map +1 -1
- package/dist/gltf/parsers/parse-gltf-lights.js +34 -91
- package/dist/gltf/parsers/parse-gltf-lights.js.map +1 -1
- package/dist/gltf/parsers/parse-gltf-metadata.cjs +60 -0
- package/dist/gltf/parsers/parse-gltf-metadata.d.ts +5 -0
- package/dist/gltf/parsers/parse-gltf-metadata.d.ts.map +1 -0
- package/dist/gltf/parsers/parse-gltf-metadata.js +39 -0
- package/dist/gltf/parsers/parse-gltf-metadata.js.map +1 -0
- package/dist/gltf/parsers/parse-gltf.cjs +4 -1
- package/dist/gltf/parsers/parse-gltf.d.ts +10 -2
- package/dist/gltf/parsers/parse-gltf.d.ts.map +1 -1
- package/dist/gltf/parsers/parse-gltf.js +3 -0
- package/dist/gltf/parsers/parse-gltf.js.map +1 -1
- package/dist/gltf/parsers/parse-pbr-material.cjs +13 -3
- package/dist/gltf/parsers/parse-pbr-material.d.ts +7 -2
- package/dist/gltf/parsers/parse-pbr-material.d.ts.map +1 -1
- package/dist/gltf/parsers/parse-pbr-material.js +17 -5
- package/dist/gltf/parsers/parse-pbr-material.js.map +1 -1
- package/dist/gltf/pbr/pbr-environment.cjs +21 -3
- package/dist/gltf/pbr/pbr-environment.d.ts +3 -0
- package/dist/gltf/pbr/pbr-environment.d.ts.map +1 -1
- package/dist/gltf/pbr/pbr-environment.js +19 -1
- package/dist/gltf/pbr/pbr-environment.js.map +1 -1
- package/dist/gltf/pbr/pbr-material.d.ts +3 -3
- package/dist/gltf/pbr/pbr-material.d.ts.map +1 -1
- package/dist/gltf/types/gltf-json-schema.d.ts.map +1 -1
- package/dist/gltf/types/gltf-json-schema.js +1 -0
- package/dist/gltf/types/gltf-json-schema.js.map +1 -1
- package/dist/gltf/types/gltf-postprocessed-schema.d.ts.map +1 -1
- package/dist/gltf/types/gltf-postprocessed-schema.js +1 -0
- package/dist/gltf/types/gltf-postprocessed-schema.js.map +1 -1
- package/dist/graph/models/index.cjs.map +1 -1
- package/dist/graph/models/path/path-attribute-model.cjs +4 -1
- package/dist/graph/models/path/path-attribute-model.d.ts +3 -1
- package/dist/graph/models/path/path-attribute-model.d.ts.map +1 -1
- package/dist/graph/models/path/path-attribute-model.js +6 -1
- package/dist/graph/models/path/path-attribute-model.js.map +1 -1
- package/dist/graph/models/path/path-storage-model.cjs +4 -1
- package/dist/graph/models/path/path-storage-model.d.ts +3 -1
- package/dist/graph/models/path/path-storage-model.d.ts.map +1 -1
- package/dist/graph/models/path/path-storage-model.js +6 -1
- package/dist/graph/models/path/path-storage-model.js.map +1 -1
- package/dist/graph/physics/index.cjs.map +2 -2
- package/dist/graph/physics/physics-controller.cjs +42 -0
- package/dist/graph/physics/physics-controller.d.ts +12 -1
- package/dist/graph/physics/physics-controller.d.ts.map +1 -1
- package/dist/graph/physics/physics-controller.js +41 -0
- package/dist/graph/physics/physics-controller.js.map +1 -1
- package/dist/graph/physics/scenegraph-instance.cjs +7 -0
- package/dist/graph/physics/scenegraph-instance.d.ts.map +1 -1
- package/dist/graph/physics/scenegraph-instance.js +8 -0
- package/dist/graph/physics/scenegraph-instance.js.map +1 -1
- package/dist/graph/tables/gpu-table-model.cjs +2 -2
- package/dist/graph/tables/gpu-table-model.d.ts +2 -1
- package/dist/graph/tables/gpu-table-model.d.ts.map +1 -1
- package/dist/graph/tables/gpu-table-model.js +2 -2
- package/dist/graph/tables/gpu-table-model.js.map +1 -1
- package/dist/graph/tables/index.cjs.map +1 -1
- package/dist/index.cjs +13 -0
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/lighting/ambient-occlusion-pass.cjs +126 -0
- package/dist/lighting/ambient-occlusion-pass.d.ts +31 -0
- package/dist/lighting/ambient-occlusion-pass.d.ts.map +1 -0
- package/dist/lighting/ambient-occlusion-pass.js +108 -0
- package/dist/lighting/ambient-occlusion-pass.js.map +1 -0
- package/dist/lighting/clustered-light-grid.cjs +378 -0
- package/dist/lighting/clustered-light-grid.d.ts +94 -0
- package/dist/lighting/clustered-light-grid.d.ts.map +1 -0
- package/dist/lighting/clustered-light-grid.js +370 -0
- package/dist/lighting/clustered-light-grid.js.map +1 -0
- package/dist/lighting/contact-shadow-composite.cjs +80 -0
- package/dist/lighting/contact-shadow-composite.d.ts +6 -0
- package/dist/lighting/contact-shadow-composite.d.ts.map +1 -0
- package/dist/lighting/contact-shadow-composite.js +59 -0
- package/dist/lighting/contact-shadow-composite.js.map +1 -0
- package/dist/lighting/contact-shadow-pass.cjs +102 -0
- package/dist/lighting/contact-shadow-pass.d.ts +23 -0
- package/dist/lighting/contact-shadow-pass.d.ts.map +1 -0
- package/dist/lighting/contact-shadow-pass.js +85 -0
- package/dist/lighting/contact-shadow-pass.js.map +1 -0
- package/dist/lighting/index.cjs +128 -0
- package/dist/lighting/index.cjs.map +6 -0
- package/dist/lighting/index.d.ts +35 -0
- package/dist/lighting/index.d.ts.map +1 -0
- package/dist/lighting/index.js +22 -0
- package/dist/lighting/index.js.map +1 -0
- package/dist/lighting/lightmap-atlas.cjs +246 -0
- package/dist/lighting/lightmap-atlas.d.ts +53 -0
- package/dist/lighting/lightmap-atlas.d.ts.map +1 -0
- package/dist/lighting/lightmap-atlas.js +279 -0
- package/dist/lighting/lightmap-atlas.js.map +1 -0
- package/dist/lighting/lightmap-baker.cjs +238 -0
- package/dist/lighting/lightmap-baker.d.ts +62 -0
- package/dist/lighting/lightmap-baker.d.ts.map +1 -0
- package/dist/lighting/lightmap-baker.js +236 -0
- package/dist/lighting/lightmap-baker.js.map +1 -0
- package/dist/lighting/lightmap-data.cjs +117 -0
- package/dist/lighting/lightmap-data.d.ts +20 -0
- package/dist/lighting/lightmap-data.d.ts.map +1 -0
- package/dist/lighting/lightmap-data.js +110 -0
- package/dist/lighting/lightmap-data.js.map +1 -0
- package/dist/lighting/lightmap-environment.cjs +61 -0
- package/dist/lighting/lightmap-environment.d.ts +18 -0
- package/dist/lighting/lightmap-environment.d.ts.map +1 -0
- package/dist/lighting/lightmap-environment.js +46 -0
- package/dist/lighting/lightmap-environment.js.map +1 -0
- package/dist/lighting/pbr-environment.cjs +45 -0
- package/dist/lighting/pbr-environment.d.ts +25 -0
- package/dist/lighting/pbr-environment.d.ts.map +1 -0
- package/dist/lighting/pbr-environment.js +30 -0
- package/dist/lighting/pbr-environment.js.map +1 -0
- package/dist/lighting/pbr-material.cjs +75 -0
- package/dist/lighting/pbr-material.d.ts +33 -0
- package/dist/lighting/pbr-material.d.ts.map +1 -0
- package/dist/lighting/pbr-material.js +52 -0
- package/dist/lighting/pbr-material.js.map +1 -0
- package/dist/lighting/pbr-model.cjs +579 -0
- package/dist/lighting/pbr-model.d.ts +45 -0
- package/dist/lighting/pbr-model.d.ts.map +1 -0
- package/dist/lighting/pbr-model.js +545 -0
- package/dist/lighting/pbr-model.js.map +1 -0
- package/dist/lighting/pbr-surface-pass.cjs +116 -0
- package/dist/lighting/pbr-surface-pass.d.ts +35 -0
- package/dist/lighting/pbr-surface-pass.d.ts.map +1 -0
- package/dist/lighting/pbr-surface-pass.js +98 -0
- package/dist/lighting/pbr-surface-pass.js.map +1 -0
- package/dist/lighting/prefiltered-environment.cjs +275 -0
- package/dist/lighting/prefiltered-environment.d.ts +56 -0
- package/dist/lighting/prefiltered-environment.d.ts.map +1 -0
- package/dist/lighting/prefiltered-environment.js +264 -0
- package/dist/lighting/prefiltered-environment.js.map +1 -0
- package/dist/lighting/reflection-probe.cjs +321 -0
- package/dist/lighting/reflection-probe.d.ts +77 -0
- package/dist/lighting/reflection-probe.d.ts.map +1 -0
- package/dist/lighting/reflection-probe.js +298 -0
- package/dist/lighting/reflection-probe.js.map +1 -0
- package/dist/lighting/shadow-map-renderer.cjs +631 -0
- package/dist/lighting/shadow-map-renderer.d.ts +92 -0
- package/dist/lighting/shadow-map-renderer.d.ts.map +1 -0
- package/dist/lighting/shadow-map-renderer.js +622 -0
- package/dist/lighting/shadow-map-renderer.js.map +1 -0
- package/dist/lighting/shadow-quality.cjs +58 -0
- package/dist/lighting/shadow-quality.d.ts +13 -0
- package/dist/lighting/shadow-quality.d.ts.map +1 -0
- package/dist/lighting/shadow-quality.js +37 -0
- package/dist/lighting/shadow-quality.js.map +1 -0
- package/dist/material/material.cjs +3 -0
- package/dist/material/material.d.ts +2 -0
- package/dist/material/material.d.ts.map +1 -1
- package/dist/material/material.js +3 -0
- package/dist/material/material.js.map +1 -1
- package/dist/model/gpu-vector-model.cjs +20 -3
- package/dist/model/gpu-vector-model.d.ts +20 -2
- package/dist/model/gpu-vector-model.d.ts.map +1 -1
- package/dist/model/gpu-vector-model.js +21 -3
- package/dist/model/gpu-vector-model.js.map +1 -1
- package/dist/models/light-model-utils.cjs +2 -2
- package/dist/models/light-model-utils.d.ts +2 -1
- package/dist/models/light-model-utils.d.ts.map +1 -1
- package/dist/models/light-model-utils.js +2 -2
- package/dist/models/light-model-utils.js.map +1 -1
- package/dist/scenegraph/controllers/punctual-light-controller.cjs +121 -0
- package/dist/scenegraph/controllers/punctual-light-controller.d.ts +31 -0
- package/dist/scenegraph/controllers/punctual-light-controller.d.ts.map +1 -0
- package/dist/scenegraph/controllers/punctual-light-controller.js +117 -0
- package/dist/scenegraph/controllers/punctual-light-controller.js.map +1 -0
- package/dist/scenegraph/scene-metadata.cjs +43 -0
- package/dist/scenegraph/scene-metadata.d.ts +9 -0
- package/dist/scenegraph/scene-metadata.d.ts.map +1 -0
- package/dist/scenegraph/scene-metadata.js +21 -0
- package/dist/scenegraph/scene-metadata.js.map +1 -0
- package/dist/scenegraph/scenegraph-interaction.cjs +99 -0
- package/dist/scenegraph/scenegraph-interaction.d.ts +47 -0
- package/dist/scenegraph/scenegraph-interaction.d.ts.map +1 -0
- package/dist/scenegraph/scenegraph-interaction.js +79 -0
- package/dist/scenegraph/scenegraph-interaction.js.map +1 -0
- package/dist/scenegraph/scenegraph-node.cjs +10 -0
- package/dist/scenegraph/scenegraph-node.d.ts +10 -0
- package/dist/scenegraph/scenegraph-node.d.ts.map +1 -1
- package/dist/scenegraph/scenegraph-node.js +10 -0
- package/dist/scenegraph/scenegraph-node.js.map +1 -1
- package/dist/text/experimental.cjs.map +1 -1
- package/dist/text/fonts/atlas/text-utils.cjs +1 -1
- package/dist/text/fonts/atlas/text-utils.js +1 -1
- package/dist/text/fonts/atlas/text-utils.js.map +1 -1
- package/dist/text/fonts/index.cjs.map +1 -1
- package/dist/text/index.cjs +2 -0
- package/dist/text/index.cjs.map +2 -2
- package/dist/text/index.d.ts +1 -1
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.js +1 -1
- package/dist/text/index.js.map +1 -1
- package/dist/text/text-2d/index.cjs +3 -0
- package/dist/text/text-2d/index.d.ts +1 -0
- package/dist/text/text-2d/index.d.ts.map +1 -1
- package/dist/text/text-2d/index.js +1 -0
- package/dist/text/text-2d/index.js.map +1 -1
- package/dist/text/text-2d/model-utils/text-code-point-source.cjs +41 -0
- package/dist/text/text-2d/model-utils/text-code-point-source.d.ts +8 -0
- package/dist/text/text-2d/model-utils/text-code-point-source.d.ts.map +1 -0
- package/dist/text/text-2d/model-utils/text-code-point-source.js +23 -0
- package/dist/text/text-2d/model-utils/text-code-point-source.js.map +1 -0
- package/dist/text/text-2d/models/text-attribute-model.cjs +4 -1
- package/dist/text/text-2d/models/text-attribute-model.d.ts +3 -1
- package/dist/text/text-2d/models/text-attribute-model.d.ts.map +1 -1
- package/dist/text/text-2d/models/text-attribute-model.js +6 -1
- package/dist/text/text-2d/models/text-attribute-model.js.map +1 -1
- package/dist/text/text-2d/models/text-dictionary-model.cjs +4 -1
- package/dist/text/text-2d/models/text-dictionary-model.d.ts +3 -1
- package/dist/text/text-2d/models/text-dictionary-model.d.ts.map +1 -1
- package/dist/text/text-2d/models/text-dictionary-model.js +6 -1
- package/dist/text/text-2d/models/text-dictionary-model.js.map +1 -1
- package/dist/text/text-2d/models/text-storage-model.cjs +4 -1
- package/dist/text/text-2d/models/text-storage-model.d.ts +3 -1
- package/dist/text/text-2d/models/text-storage-model.d.ts.map +1 -1
- package/dist/text/text-2d/models/text-storage-model.js +6 -1
- package/dist/text/text-2d/models/text-storage-model.js.map +1 -1
- package/licenses/cesium.txt +207 -0
- package/licenses/deck-community.txt +19 -0
- package/licenses/deck.txt +19 -0
- package/licenses/glfx.txt +19 -0
- package/licenses/gltf-loader-ts.txt +21 -0
- package/licenses/magenta-font.txt +13 -0
- package/licenses/nvidia-fxaa.txt +25 -0
- package/licenses/philogl.txt +19 -0
- package/licenses/spark.txt +21 -0
- package/licenses/three.txt +21 -0
- package/package.json +17 -9
- package/src/animation/node-animation-binding.ts +18 -1
- package/src/arrow/renderers/splats/conversion/make-gpu-splat-data-from-gltf.ts +23 -19
- package/src/arrow/renderers/text/renderers/arrow-text-shaders.ts +1 -1
- package/src/compute/computation.ts +1 -1
- package/src/compute/swap.ts +2 -2
- package/src/dynamic-texture/video-texture.ts +9 -3
- package/src/effects/passes/postprocessing/fxaa/fxaa.ts +2 -1
- package/src/effects/passes/postprocessing/image-adjust-filters/brightnesscontrast.ts +2 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/denoise.ts +2 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/huesaturation.ts +2 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/noise.ts +2 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/sepia.ts +2 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/vibrance.ts +2 -0
- package/src/effects/passes/postprocessing/image-adjust-filters/vignette.ts +2 -0
- package/src/gltf/gltf/animations/animations.ts +8 -1
- package/src/gltf/gltf/create-gltf-model.ts +4 -0
- package/src/gltf/gltf/create-scenegraph-from-gltf.ts +98 -17
- package/src/gltf/gltf/gltf-billboard.ts +6 -1
- package/src/gltf/gltf/gltf-extension-support.ts +2 -2
- package/src/gltf/index.ts +1 -0
- package/src/gltf/parsers/parse-gltf-animations.ts +22 -8
- package/src/gltf/parsers/parse-gltf-lights.ts +42 -130
- package/src/gltf/parsers/parse-gltf-metadata.ts +40 -0
- package/src/gltf/parsers/parse-gltf.ts +11 -2
- package/src/gltf/parsers/parse-pbr-material.ts +35 -7
- package/src/gltf/pbr/pbr-environment.ts +27 -1
- package/src/gltf/pbr/pbr-material.ts +8 -3
- package/src/gltf/types/gltf-json-schema.ts +1 -0
- package/src/gltf/types/gltf-postprocessed-schema.ts +1 -0
- package/src/graph/models/path/path-attribute-model.ts +10 -1
- package/src/graph/models/path/path-storage-model.ts +10 -1
- package/src/graph/physics/physics-controller.ts +55 -1
- package/src/graph/physics/scenegraph-instance.ts +10 -0
- package/src/graph/tables/gpu-table-model.ts +3 -2
- package/src/index.ts +17 -0
- package/src/lighting/ambient-occlusion-pass.ts +130 -0
- package/src/lighting/clustered-light-grid.ts +481 -0
- package/src/lighting/contact-shadow-composite.ts +67 -0
- package/src/lighting/contact-shadow-pass.ts +107 -0
- package/src/lighting/index.ts +125 -0
- package/src/lighting/lightmap-atlas.ts +348 -0
- package/src/lighting/lightmap-baker.ts +306 -0
- package/src/lighting/lightmap-data.ts +138 -0
- package/src/lighting/lightmap-environment.ts +70 -0
- package/src/lighting/pbr-environment.ts +55 -0
- package/src/lighting/pbr-material.ts +85 -0
- package/src/lighting/pbr-model.ts +608 -0
- package/src/lighting/pbr-surface-pass.ts +122 -0
- package/src/lighting/prefiltered-environment.ts +354 -0
- package/src/lighting/reflection-probe.ts +360 -0
- package/src/lighting/shadow-map-renderer.ts +918 -0
- package/src/lighting/shadow-quality.ts +50 -0
- package/src/material/material.ts +3 -0
- package/src/model/gpu-vector-model.ts +42 -4
- package/src/models/light-model-utils.ts +3 -2
- package/src/scenegraph/controllers/punctual-light-controller.ts +172 -0
- package/src/scenegraph/scene-metadata.ts +23 -0
- package/src/scenegraph/scenegraph-interaction.ts +131 -0
- package/src/scenegraph/scenegraph-node.ts +12 -0
- package/src/splats/README.md +1 -1
- package/src/text/fonts/atlas/text-utils.ts +1 -1
- package/src/text/index.ts +1 -0
- package/src/text/text-2d/index.ts +1 -0
- package/src/text/text-2d/model-utils/text-code-point-source.ts +34 -0
- package/src/text/text-2d/models/text-attribute-model.ts +10 -1
- package/src/text/text-2d/models/text-dictionary-model.ts +10 -1
- package/src/text/text-2d/models/text-storage-model.ts +10 -1
package/dist/dist.min.js
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
else if (typeof define === 'function' && define.amd) define([], factory);
|
|
5
5
|
else if (typeof exports === 'object') exports['luma'] = factory();
|
|
6
6
|
else root['luma'] = factory();})(globalThis, function () {
|
|
7
|
-
"use strict";var __exports__=(()=>{var o3=Object.create;var Jt=Object.defineProperty;var a3=Object.getOwnPropertyDescriptor;var c3=Object.getOwnPropertyNames;var u3=Object.getPrototypeOf,l3=Object.prototype.hasOwnProperty;var H1=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},d3=(r,e)=>{for(var t in e)Jt(r,t,{get:e[t],enumerable:!0})},Qt=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of c3(e))!l3.call(r,i)&&i!==t&&Jt(r,i,{get:()=>e[i],enumerable:!(n=a3(e,i))||n.enumerable});return r},er=(r,e,t)=>(Qt(r,e,"default"),t&&Qt(t,e,"default")),O=(r,e,t)=>(t=r!=null?o3(u3(r)):{},Qt(e||!r||!r.__esModule?Jt(t,"default",{value:r,enumerable:!0}):t,r)),f3=r=>Qt(Jt({},"__esModule",{value:!0}),r);var k=H1((k6,q1)=>{q1.exports=globalThis.luma});var S0=H1((xu,ho)=>{ho.exports=globalThis.luma});var Yt={};d3(Yt,{AnimationAction:()=>dt,AnimationClip:()=>ir,AnimationClipController:()=>ye,AnimationLoop:()=>Ee,AnimationLoopTemplate:()=>Sr,AnimationMixer:()=>ve,AnimationTrack:()=>nr,Animator:()=>xe,AreaLightController:()=>Un,AsyncTexture:()=>D6,AudioController:()=>Wn,AudioGraph:()=>ct,AudioReverbBus:()=>ut,BackgroundTextureModel:()=>Qe,BillboardController:()=>zn,BufferTransform:()=>dn,ClipSpace:()=>K0,Computation:()=>it,ConeGeometry:()=>Z0,CubeGeometry:()=>pn,CylinderGeometry:()=>gn,DirectionalLightModel:()=>Tn,DynamicBuffer:()=>z,DynamicTexture:()=>a0,GPUGeometry:()=>qe,GPUVectorGeometry:()=>h0,GPUVectorModel:()=>f0,Geometry:()=>G,GeometryNode:()=>Mn,GroupNode:()=>c0,IcoSphereGeometry:()=>mn,Interactivity:()=>Vn,JointController:()=>Xn,KeyFrames:()=>Tr,LegacyPickingManager:()=>Hn,Material:()=>Ke,MaterialFactory:()=>Xe,MaterialVariants:()=>Fn,MixerAnimationClip:()=>Zn,Model:()=>Y0,ModelNode:()=>tt,OrbitControls:()=>_r,PickingManager:()=>Dn,PlaneGeometry:()=>yn,PointLightModel:()=>bn,RingGeometry:()=>qn,ScenegraphAnimator:()=>Kn,ScenegraphNode:()=>y0,ShaderInputs:()=>J,ShaderPassRenderer:()=>Bn,SkinController:()=>Nn,SphereGeometry:()=>Je,SpotLightModel:()=>vn,Swap:()=>rt,SwapBuffers:()=>Rn,SwapFramebuffers:()=>nt,TextureTransform:()=>fn,Timeline:()=>vr,TorusGeometry:()=>hn,TruncatedConeGeometry:()=>et,VideoTexture:()=>En,_resolveLoadFileUrl:()=>Ln,applyMorphTargets:()=>xt,cancelAnimationFramePolyfill:()=>Ar,colorPicking:()=>Wt,createAreaLightLTCTextures:()=>s3,createParametricAudioResponse:()=>jn,createSkinJointPaletteResource:()=>N2,decodeMorphTargetAttribute:()=>xi,decomposePhysicsTransform:()=>Xt,deformPositions:()=>t3,evaluateAnimationSampler:()=>tr,getGPUVectorModelBatches:()=>$0,getIndexPickingModule:()=>k2,getPlatformInfo:()=>ce,getTextureTransformDeltaMatrix:()=>Jn,getTextureTransformMatrix:()=>Qn,indexColorPicking:()=>kn,indexPicking:()=>Ht,legacyColorPicking:()=>$2,loadImage:()=>x2,loadImageBitmap:()=>y2,makeAdapterAnimationBinding:()=>e3,makeAnimationLoop:()=>fo,makeEdgeGeometry:()=>E1,makeEdgeGeometryFromGeometries:()=>o2,makeGPUVectorGeometry:()=>W9,makeInterleavedGeometry:()=>Pe,makeMaterialAnimationBinding:()=>Z2,makeNodeAnimationBinding:()=>K2,makePropertyAnimationBinding:()=>J2,makeRandomGenerator:()=>h2,makeStrokeGeometry:()=>c2,makeTextureTransformAnimationBinding:()=>Q2,picking:()=>O2,publishedTransforms:()=>X2,readPhysicsRotation:()=>H2,readPhysicsVector:()=>W2,requestAnimationFramePolyfill:()=>wr,resolvePickingBackend:()=>D2,resolvePickingMode:()=>On,selectAudioEnvironmentZone:()=>qt,setMorphWeights:()=>Yn,setPathPrefix:()=>g2,simplifyMesh:()=>f2,supportsIndexPicking:()=>jt,transformPhysicsVector:()=>q2,updateMorphTargetBuffers:()=>xr,updateSkinJointMatrices:()=>br,validateGPUVectorBatchStructure:()=>C0});er(Yt,O(k(),1));var X1=O(k(),1),ye=class{name;playing=!0;speed=1;startTime=0;constructor(e={}){this.name=e.name||"unnamed",Object.assign(this,e)}setTime(e){if(!this.playing)return;let n=(e/1e3-this.startTime)*this.speed;this.applyTime(n)}},xe=class{clips;animations;constructor(e){this.clips=e,this.animations=e}animate(e){X1.log.warn(`${this.constructor.name}#animate is deprecated. Use ${this.constructor.name}#setTime instead`)(),this.setTime(e)}setTime(e){this.clips.forEach(t=>t.setTime(e))}getAnimations(){return this.clips}};function tr(r,e,t="vector"){let{input:n,output:i,interpolation:s="LINEAR"}=e;if(!n.length||!i.length||!Number.isFinite(r))return null;let o=n.length-1;if(r<=n[0]||o===0)return ei(i,s,0,t);if(r>=n[o])return ei(i,s,o,t);let a=0,c=o;for(;c-a>1;){let h=Math.floor((a+c)/2);n[h]<=r?a=h:c=h}let u=n[a],d=n[c]-u;if(d<=0||s==="STEP")return ei(i,s,a,t);let f=(r-u)/d;switch(s){case"LINEAR":{let h=i[a],p=i[c];return!h||!p?null:t==="quaternion"?rr(h,p,f):h3(h,p,f)}case"CUBICSPLINE":{let h=i[a*3+1],p=i[a*3+2],m=i[c*3],g=i[c*3+1];if(!h||!p||!m||!g)return null;let b=p3(h,p,m,g,d,f);return t==="quaternion"?be(b):b}default:return null}}function rr(r,e,t){let n=be(r),i=be(e),s=n.reduce((d,f,h)=>d+f*i[h],0),o=s<0?-1:1;if(s=Math.min(Math.abs(s),1),s>.9995)return be(n.map((d,f)=>d+t*(i[f]*o-d)));let a=Math.acos(s),c=Math.sin(a),u=Math.sin((1-t)*a)/c,l=Math.sin(t*a)/c*o;return be(n.map((d,f)=>d*u+i[f]*l))}function ei(r,e,t,n){let i=r[e==="CUBICSPLINE"?t*3+1:t];return i?n==="quaternion"?be(i):[...i]:null}function h3(r,e,t){return r.map((n,i)=>(1-t)*n+t*e[i])}function p3(r,e,t,n,i,s){let o=s*s,a=o*s;return r.map((c,u)=>(2*a-3*o+1)*c+(a-2*o+s)*e[u]*i+(-2*a+3*o)*n[u]+(a-o)*t[u]*i)}function be(r){let e=Math.hypot(...r);return e>0?r.map(t=>t/e):[0,0,0,1]}var nr=class{name;times;values;interpolation;valueType;binding;constructor(e){this.name=e.name||e.binding.id||"unnamed",this.times=e.times,this.values=e.values,this.interpolation=e.interpolation||"LINEAR",this.valueType=e.valueType||"vector",this.binding=e.binding}get duration(){return this.times[this.times.length-1]||0}get sampler(){return{input:this.times,output:this.values,interpolation:this.interpolation}}evaluate(e){return tr(e,this.sampler,this.valueType)}};var ir=class{name;tracks;duration;constructor(e){this.name=e.name||"unnamed",this.tracks=e.tracks,this.duration=e.duration??Math.max(0,...e.tracks.map(t=>t.duration))}};var dt=class{clip;mixer;time=0;timeScale;weight;loop;repetitions;paused=!1;playing=!1;elapsedTime=0;fade=null;constructor(e,t,n={}){this.mixer=e,this.clip=t,this.loop=n.loop||"repeat",this.repetitions=n.repetitions??Number.POSITIVE_INFINITY,this.timeScale=n.timeScale??1,this.weight=n.weight??1}play(){return this.playing=!0,this.paused=!1,this}pause(){return this.paused=!0,this}resume(){return this.playing=!0,this.paused=!1,this}stop(){return this.playing=!1,this.paused=!1,this.fade=null,this.reset()}reset(){return this.elapsedTime=0,this.time=0,this}setTime(e){return this.elapsedTime=e,this.time=this.resolveLocalTime(e),this}setLoop(e,t=Number.POSITIVE_INFINITY){return this.loop=e,this.repetitions=t,this.time=this.resolveLocalTime(this.elapsedTime),this}setEffectiveWeight(e){return this.weight=Math.max(0,e),this.fade=null,this}setEffectiveTimeScale(e){return this.timeScale=e,this}fadeIn(e){return this.scheduleFade(1,e)}fadeOut(e){return this.scheduleFade(0,e)}crossFadeTo(e,t){return e.weight=0,e.play().fadeIn(t),this.fadeOut(t)}crossFadeFrom(e,t){return e.crossFadeTo(this,t),this}advance(e){!this.playing||this.paused||(this.advanceFade(Math.abs(e)),this.elapsedTime+=e*this.timeScale,this.time=this.resolveLocalTime(this.elapsedTime),this.hasFinished()&&(this.playing=!1))}get shouldApply(){return(this.playing||this.hasFinished())&&this.weight>0}scheduleFade(e,t){return t<=0?(this.weight=e,this.fade=null,this):(this.fade={duration:t,elapsedTime:0,startWeight:this.weight,endWeight:e},this)}advanceFade(e){if(!this.fade)return;this.fade.elapsedTime+=e;let t=Math.min(this.fade.elapsedTime/this.fade.duration,1);this.weight=this.fade.startWeight+(this.fade.endWeight-this.fade.startWeight)*t,t===1&&(this.fade=null)}hasFinished(){let e=this.clip.duration;return e<=0?this.loop==="once":this.loop==="once"?this.elapsedTime>=e||this.elapsedTime<0:Number.isFinite(this.repetitions)&&Math.abs(this.elapsedTime)>=e*this.repetitions}resolveLocalTime(e){let t=this.clip.duration;if(t<=0)return 0;if(this.loop==="once")return Math.min(Math.max(e,0),t);if(Number.isFinite(this.repetitions)&&Math.abs(e)>=t*this.repetitions)return this.loop==="ping-pong"&&this.repetitions%2===0||e<0?0:t;let n=e>=0&&e<t?e:(e%t+t)%t;if(this.loop==="repeat")return n;let i=Math.floor(e/t);return Math.abs(i%2)===0?n:t-n}},ve=class{time=0;timeScale=1;clips=new Map;actions=new Map;initialValues=new Map;constructor(e=[]){e.forEach(t=>this.addClip(t))}addClip(e){return this.clips.set(e.name,e),this}clipAction(e,t){let n=typeof e=="string"?this.clips.get(e):e;if(!n)throw new Error(`Unknown animation clip: ${e}`);this.addClip(n);let i=this.actions.get(n);return i||(i=new dt(this,n,t),this.actions.set(n,i)),i}getAction(e){let t=this.clips.get(e);return t?this.actions.get(t):void 0}update(e){return this.advance(e),this.applyValues(),this}advance(e){let t=e*this.timeScale;return this.time+=t,this.actions.forEach(n=>n.advance(t)),this}setTime(e){return this.time=e,this.actions.forEach(t=>{t.paused||t.setTime(e*t.timeScale)}),this.applyValues(),this}stopAllAction(){return this.actions.forEach(e=>e.stop()),this}applyValues(){let e=new Map;this.actions.forEach(t=>{!t.shouldApply&&!(t.playing&&t.weight===0)||t.clip.tracks.forEach(n=>{let i=n.evaluate(t.time);if(!i)return;let s=n.binding.id||n.binding;if(!this.initialValues.has(s)){let u=n.binding.getValue?.();u&&this.initialValues.set(s,[...u])}if(t.weight===0&&!this.initialValues.has(s))return;let o=e.get(s);if(!o){e.set(s,{binding:n.binding,value:[...i],valueType:n.valueType,weight:t.weight});return}if(t.weight===0)return;let a=o.weight+t.weight,c=t.weight/a;o.value=n.valueType==="quaternion"?rr(o.value,i,c):o.value.map((u,l)=>u+(i[l]-u)*c),o.weight=a})}),e.forEach(({binding:t,value:n,valueType:i,weight:s},o)=>{let a=s<1?this.initialValues.get(o):void 0;a&&a.length===n.length&&(n=i==="quaternion"?rr(a,n,s):n.map((c,u)=>a[u]+(c-a[u])*s)),t.setValue(n)})}};var m3=0,W=class{constructor(e){this.userData={},this.id=e.id||`geometry-${++m3}`,this.topology=e.topology,this.attributes={};let t=e.indices?Y1(e.indices):void 0;for(let[n,i]of Object.entries(e.attributes||{})){let s=Y1(i);if((n==="POSITION"||n==="positions")&&(s.size||(s.size=3)),n==="indices"){if(t)throw new Error("Geometry has multiple index attributes");t=s}else this.attributes[n]=s}if(t){if(!(t.value instanceof Uint16Array||t.value instanceof Uint32Array))throw new Error("Geometry indices must be a Uint16Array or Uint32Array");t.size=1,this.indices=t,g3(t,this.attributes)}if(this.vertexCount=e.vertexCount??y3(this.attributes,this.indices),!Number.isInteger(this.vertexCount)||this.vertexCount<0)throw new Error("Geometry vertexCount must be a non-negative integer")}getVertexCount(){return this.vertexCount}getAttributes(){return this.indices?{indices:this.indices,...this.attributes}:this.attributes}};function Y1(r){let e=K1(r)?{value:r}:{...r};if(!K1(e.value))throw new Error("Geometry attributes must contain a typed-array value");if(e.size!==void 0&&(!Number.isInteger(e.size)||e.size<1))throw new Error("Geometry attribute size must be a positive integer");if(e.size&&e.value.length%e.size!==0)throw new Error("Geometry attribute length must be divisible by its size");return e}function K1(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function g3(r,e){let t=-1;for(let n of r.value)t=Math.max(t,Number(n));for(let[n,i]of Object.entries(e))if(!i.constant&&i.size){let s=i.value.length/i.size;if(t>=s)throw new Error(`Geometry index ${t} exceeds ${n} vertex count ${s}`)}}function y3(r,e){if(e)return e.value.length;let t=1/0;for(let n of Object.values(r))!n.constant&&n.size&&(t=Math.min(t,n.value.length/n.size));if(!Number.isFinite(t))throw new Error("Geometry has no countable attributes");return t}var W6=1/Math.PI*180,H6=1/180*Math.PI,x3={EPSILON:1e-12,debug:!1,precision:4,printTypes:!1,printDegrees:!1,printRowMajor:!0,_cartographicRadians:!1};globalThis.mathgl=globalThis.mathgl||{config:{...x3}};var Y=globalThis.mathgl.config;function Z1(r,{precision:e=Y.precision}={}){return r=b3(r),`${parseFloat(r.toPrecision(e))}`}function Te(r){return Array.isArray(r)||ArrayBuffer.isView(r)&&!(r instanceof DataView)}function ti(r,e,t){let n=Y.EPSILON;t&&(Y.EPSILON=t);try{if(r===e)return!0;if(Te(r)&&Te(e)){if(r.length!==e.length)return!1;for(let i=0;i<r.length;++i)if(!ti(r[i],e[i]))return!1;return!0}return r&&r.equals?r.equals(e):e&&e.equals?e.equals(r):typeof r=="number"&&typeof e=="number"?Math.abs(r-e)<=Y.EPSILON*Math.max(1,Math.abs(r),Math.abs(e)):!1}finally{Y.EPSILON=n}}function b3(r){return Math.round(r/Y.EPSILON)*Y.EPSILON}var z0=class extends Array{clone(){return new this.constructor().copy(this)}fromArray(e,t=0){for(let n=0;n<this.ELEMENTS;++n)this[n]=e[n+t];return this.check()}toArray(e=[],t=0){for(let n=0;n<this.ELEMENTS;++n)e[t+n]=this[n];return e}toObject(e){return e}from(e){return Array.isArray(e)?this.copy(e):this.fromObject(e)}to(e){return e===this?this:Te(e)?this.toArray(e):this.toObject(e)}toTarget(e){return e?this.to(e):this}toString(){return this.formatString(Y)}formatString(e){let t="";for(let n=0;n<this.ELEMENTS;++n)t+=(n>0?", ":"")+Z1(this[n],e);return`${e.printTypes?this.constructor.name:""}[${t}]`}equals(e){if(!e||this.length!==e.length)return!1;for(let t=0;t<this.ELEMENTS;++t)if(!ti(this[t],e[t]))return!1;return!0}exactEquals(e){if(!e||this.length!==e.length)return!1;for(let t=0;t<this.ELEMENTS;++t)if(this[t]!==e[t])return!1;return!0}negate(){for(let e=0;e<this.ELEMENTS;++e)this[e]=-this[e];return this.check()}lerp(e,t,n){if(n===void 0)return this.lerp(this,e,t);for(let i=0;i<this.ELEMENTS;++i){let s=e[i],o=typeof t=="number"?t:t[i];this[i]=s+n*(o-s)}return this.check()}min(e){for(let t=0;t<this.ELEMENTS;++t)this[t]=Math.min(e[t],this[t]);return this.check()}max(e){for(let t=0;t<this.ELEMENTS;++t)this[t]=Math.max(e[t],this[t]);return this.check()}clamp(e,t){for(let n=0;n<this.ELEMENTS;++n)this[n]=Math.min(Math.max(this[n],e[n]),t[n]);return this.check()}add(...e){for(let t of e)for(let n=0;n<this.ELEMENTS;++n)this[n]+=t[n];return this.check()}subtract(...e){for(let t of e)for(let n=0;n<this.ELEMENTS;++n)this[n]-=t[n];return this.check()}scale(e){if(typeof e=="number")for(let t=0;t<this.ELEMENTS;++t)this[t]*=e;else for(let t=0;t<this.ELEMENTS&&t<e.length;++t)this[t]*=e[t];return this.check()}multiplyByScalar(e){for(let t=0;t<this.ELEMENTS;++t)this[t]*=e;return this.check()}check(){if(Y.debug&&!this.validate())throw new Error(`math.gl: ${this.constructor.name} some fields set to invalid numbers'`);return this}validate(){let e=this.length===this.ELEMENTS;for(let t=0;t<this.ELEMENTS;++t)e=e&&Number.isFinite(this[t]);return e}};function v3(r,e){if(r.length!==e)return!1;for(let t=0;t<r.length;++t)if(!Number.isFinite(r[t]))return!1;return!0}function V(r){if(!Number.isFinite(r))throw new Error(`Invalid number ${JSON.stringify(r)}`);return r}function Se(r,e,t=""){if(Y.debug&&!v3(r,e))throw new Error(`math.gl: ${t} some fields set to invalid numbers'`);return r}var we=class extends z0{toString(){let e="[";if(Y.printRowMajor){e+="row-major:";for(let t=0;t<this.RANK;++t)for(let n=0;n<this.RANK;++n)e+=` ${this[n*this.RANK+t]}`}else{e+="column-major:";for(let t=0;t<this.ELEMENTS;++t)e+=` ${this[t]}`}return e+="]",e}getElementIndex(e,t){return t*this.RANK+e}getElement(e,t){return this[t*this.RANK+e]}setElement(e,t,n){return this[t*this.RANK+e]=V(n),this}getColumn(e,t=new Array(this.RANK).fill(-0)){let n=e*this.RANK;for(let i=0;i<this.RANK;++i)t[i]=this[n+i];return t}setColumn(e,t){let n=e*this.RANK;for(let i=0;i<this.RANK;++i)this[n+i]=t[i];return this}};function ri(r,e){if(!r)throw new Error(`math.gl assertion ${e}`)}var sr=class extends z0{get x(){return this[0]}set x(e){this[0]=V(e)}get y(){return this[1]}set y(e){this[1]=V(e)}len(){return Math.sqrt(this.lengthSquared())}magnitude(){return this.len()}lengthSquared(){let e=0;for(let t=0;t<this.ELEMENTS;++t)e+=this[t]*this[t];return e}magnitudeSquared(){return this.lengthSquared()}distance(e){return Math.sqrt(this.distanceSquared(e))}distanceSquared(e){let t=0;for(let n=0;n<this.ELEMENTS;++n){let i=this[n]-e[n];t+=i*i}return V(t)}dot(e){let t=0;for(let n=0;n<this.ELEMENTS;++n)t+=this[n]*e[n];return V(t)}normalize(){let e=this.magnitude();if(e!==0)for(let t=0;t<this.ELEMENTS;++t)this[t]/=e;return this.check()}multiply(...e){for(let t of e)for(let n=0;n<this.ELEMENTS;++n)this[n]*=t[n];return this.check()}divide(...e){for(let t of e)for(let n=0;n<this.ELEMENTS;++n)this[n]/=t[n];return this.check()}lengthSq(){return this.lengthSquared()}distanceTo(e){return this.distance(e)}distanceToSquared(e){return this.distanceSquared(e)}getComponent(e){return ri(e>=0&&e<this.ELEMENTS,"index is out of range"),V(this[e])}setComponent(e,t){return ri(e>=0&&e<this.ELEMENTS,"index is out of range"),this[e]=t,this.check()}addVectors(e,t){return this.copy(e).add(t)}subVectors(e,t){return this.copy(e).subtract(t)}multiplyVectors(e,t){return this.copy(e).multiply(t)}addScaledVector(e,t){for(let n=0;n<this.ELEMENTS;++n)this[n]+=e[n]*t;return this.check()}};var or=typeof Float32Array<"u"?Float32Array:Array;var a7=Math.PI/180;function Q1(r,e,t){let n=e[0],i=e[1];return r[0]=t[0]*n+t[3]*i+t[6],r[1]=t[1]*n+t[4]*i+t[7],r}function J1(r,e,t){let n=e[0],i=e[1];return r[0]=t[0]*n+t[4]*i+t[12],r[1]=t[1]*n+t[5]*i+t[13],r}function es(r,e,t){let n=e[0],i=e[1],s=t[3]*n+t[7]*i||1;return r[0]=(t[0]*n+t[4]*i)/s,r[1]=(t[1]*n+t[5]*i)/s,r}function ar(r,e,t){let n=e[0],i=e[1],s=e[2],o=t[3]*n+t[7]*i+t[11]*s||1;return r[0]=(t[0]*n+t[4]*i+t[8]*s)/o,r[1]=(t[1]*n+t[5]*i+t[9]*s)/o,r[2]=(t[2]*n+t[6]*i+t[10]*s)/o,r}function ts(r,e,t){let n=e[0],i=e[1];return r[0]=t[0]*n+t[2]*i,r[1]=t[1]*n+t[3]*i,r[2]=e[2],r}function rs(r,e,t){let n=e[0],i=e[1],s=e[2];return r[0]=t[0]*n+t[3]*i+t[6]*s,r[1]=t[1]*n+t[4]*i+t[7]*s,r[2]=t[2]*n+t[5]*i+t[8]*s,r[3]=e[3],r}function ns(){let r=new or(3);return or!==Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function S3(r){let e=r[0],t=r[1],n=r[2];return Math.sqrt(e*e+t*t+n*n)}function ni(r,e,t){let n=new or(3);return n[0]=r,n[1]=e,n[2]=t,n}function is(r,e){let t=e[0],n=e[1],i=e[2],s=t*t+n*n+i*i;return s>0&&(s=1/Math.sqrt(s)),r[0]=e[0]*s,r[1]=e[1]*s,r[2]=e[2]*s,r}function ii(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]}function Ae(r,e,t){let n=e[0],i=e[1],s=e[2],o=t[0],a=t[1],c=t[2];return r[0]=i*c-s*a,r[1]=s*o-n*c,r[2]=n*a-i*o,r}function cr(r,e,t){let n=e[0],i=e[1],s=e[2],o=t[3]*n+t[7]*i+t[11]*s+t[15];return o=o||1,r[0]=(t[0]*n+t[4]*i+t[8]*s+t[12])/o,r[1]=(t[1]*n+t[5]*i+t[9]*s+t[13])/o,r[2]=(t[2]*n+t[6]*i+t[10]*s+t[14])/o,r}function ur(r,e,t){let n=e[0],i=e[1],s=e[2];return r[0]=n*t[0]+i*t[3]+s*t[6],r[1]=n*t[1]+i*t[4]+s*t[7],r[2]=n*t[2]+i*t[5]+s*t[8],r}function ss(r,e,t){let n=t[0],i=t[1],s=t[2],o=t[3],a=e[0],c=e[1],u=e[2],l=i*u-s*c,d=s*a-n*u,f=n*c-i*a,h=i*f-s*d,p=s*l-n*f,m=n*d-i*l,g=o*2;return l*=g,d*=g,f*=g,h*=2,p*=2,m*=2,r[0]=a+l+h,r[1]=c+d+p,r[2]=u+f+m,r}function os(r,e,t,n){let i=[],s=[];return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),r[0]=s[0]+t[0],r[1]=s[1]+t[1],r[2]=s[2]+t[2],r}function as(r,e,t,n){let i=[],s=[];return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),r[0]=s[0]+t[0],r[1]=s[1]+t[1],r[2]=s[2]+t[2],r}function cs(r,e,t,n){let i=[],s=[];return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],r[0]=s[0]+t[0],r[1]=s[1]+t[1],r[2]=s[2]+t[2],r}function us(r,e){let t=r[0],n=r[1],i=r[2],s=e[0],o=e[1],a=e[2],c=Math.sqrt((t*t+n*n+i*i)*(s*s+o*o+a*a)),u=c&&ii(r,e)/c;return Math.acos(Math.min(Math.max(u,-1),1))}var ls=S3;var si=[0,0,0],lr,D=class r extends sr{static get ZERO(){return lr||(lr=new r(0,0,0),Object.freeze(lr)),lr}constructor(e=0,t=0,n=0){super(-0,-0,-0),arguments.length===1&&Te(e)?this.copy(e):(Y.debug&&(V(e),V(t),V(n)),this[0]=e,this[1]=t,this[2]=n)}set(e,t,n){return this[0]=e,this[1]=t,this[2]=n,this.check()}copy(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this.check()}fromObject(e){return Y.debug&&(V(e.x),V(e.y),V(e.z)),this[0]=e.x,this[1]=e.y,this[2]=e.z,this.check()}toObject(e){return e.x=this[0],e.y=this[1],e.z=this[2],e}get ELEMENTS(){return 3}get z(){return this[2]}set z(e){this[2]=V(e)}angle(e){return us(this,e)}cross(e){return Ae(this,this,e),this.check()}rotateX({radians:e,origin:t=si}){return os(this,this,t,e),this.check()}rotateY({radians:e,origin:t=si}){return as(this,this,t,e),this.check()}rotateZ({radians:e,origin:t=si}){return cs(this,this,t,e),this.check()}transform(e){return this.transformAsPoint(e)}transformAsPoint(e){return cr(this,this,e),this.check()}transformAsVector(e){return ar(this,this,e),this.check()}transformByMatrix3(e){return ur(this,this,e),this.check()}transformByMatrix2(e){return ts(this,this,e),this.check()}transformByQuaternion(e){return ss(this,this,e),this.check()}};function ds(r,e){if(r===e){let t=e[1],n=e[2],i=e[5];r[1]=e[3],r[2]=e[6],r[3]=t,r[5]=e[7],r[6]=n,r[7]=i}else r[0]=e[0],r[1]=e[3],r[2]=e[6],r[3]=e[1],r[4]=e[4],r[5]=e[7],r[6]=e[2],r[7]=e[5],r[8]=e[8];return r}function fs(r,e){let t=e[0],n=e[1],i=e[2],s=e[3],o=e[4],a=e[5],c=e[6],u=e[7],l=e[8],d=l*o-a*u,f=-l*s+a*c,h=u*s-o*c,p=t*d+n*f+i*h;return p?(p=1/p,r[0]=d*p,r[1]=(-l*n+i*u)*p,r[2]=(a*n-i*o)*p,r[3]=f*p,r[4]=(l*t-i*c)*p,r[5]=(-a*t+i*s)*p,r[6]=h*p,r[7]=(-u*t+n*c)*p,r[8]=(o*t-n*s)*p,r):null}function hs(r){let e=r[0],t=r[1],n=r[2],i=r[3],s=r[4],o=r[5],a=r[6],c=r[7],u=r[8];return e*(u*s-o*c)+t*(-u*i+o*a)+n*(c*i-s*a)}function oi(r,e,t){let n=e[0],i=e[1],s=e[2],o=e[3],a=e[4],c=e[5],u=e[6],l=e[7],d=e[8],f=t[0],h=t[1],p=t[2],m=t[3],g=t[4],b=t[5],v=t[6],T=t[7],S=t[8];return r[0]=f*n+h*o+p*u,r[1]=f*i+h*a+p*l,r[2]=f*s+h*c+p*d,r[3]=m*n+g*o+b*u,r[4]=m*i+g*a+b*l,r[5]=m*s+g*c+b*d,r[6]=v*n+T*o+S*u,r[7]=v*i+T*a+S*l,r[8]=v*s+T*c+S*d,r}function ps(r,e,t){let n=e[0],i=e[1],s=e[2],o=e[3],a=e[4],c=e[5],u=e[6],l=e[7],d=e[8],f=t[0],h=t[1];return r[0]=n,r[1]=i,r[2]=s,r[3]=o,r[4]=a,r[5]=c,r[6]=f*n+h*o+u,r[7]=f*i+h*a+l,r[8]=f*s+h*c+d,r}function ms(r,e,t){let n=e[0],i=e[1],s=e[2],o=e[3],a=e[4],c=e[5],u=e[6],l=e[7],d=e[8],f=Math.sin(t),h=Math.cos(t);return r[0]=h*n+f*o,r[1]=h*i+f*a,r[2]=h*s+f*c,r[3]=h*o-f*n,r[4]=h*a-f*i,r[5]=h*c-f*s,r[6]=u,r[7]=l,r[8]=d,r}function ai(r,e,t){let n=t[0],i=t[1];return r[0]=n*e[0],r[1]=n*e[1],r[2]=n*e[2],r[3]=i*e[3],r[4]=i*e[4],r[5]=i*e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r}function gs(r,e){let t=e[0],n=e[1],i=e[2],s=e[3],o=t+t,a=n+n,c=i+i,u=t*o,l=n*o,d=n*a,f=i*o,h=i*a,p=i*c,m=s*o,g=s*a,b=s*c;return r[0]=1-d-p,r[3]=l-b,r[6]=f+g,r[1]=l+b,r[4]=1-u-p,r[7]=h-m,r[2]=f-g,r[5]=h+m,r[8]=1-u-d,r}var ci;(function(r){r[r.COL0ROW0=0]="COL0ROW0",r[r.COL0ROW1=1]="COL0ROW1",r[r.COL0ROW2=2]="COL0ROW2",r[r.COL1ROW0=3]="COL1ROW0",r[r.COL1ROW1=4]="COL1ROW1",r[r.COL1ROW2=5]="COL1ROW2",r[r.COL2ROW0=6]="COL2ROW0",r[r.COL2ROW1=7]="COL2ROW1",r[r.COL2ROW2=8]="COL2ROW2"})(ci||(ci={}));var A3=Object.freeze([1,0,0,0,1,0,0,0,1]),u0=class extends we{static get IDENTITY(){return M3()}static get ZERO(){return _3()}get ELEMENTS(){return 9}get RANK(){return 3}get INDICES(){return ci}constructor(e){super(-0,-0,-0,-0,-0,-0,-0,-0,-0),arguments.length===1&&Array.isArray(e)?this.copy(e):this.identity()}copy(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3],this[4]=e[4],this[5]=e[5],this[6]=e[6],this[7]=e[7],this[8]=e[8],this.check()}identity(){return this.copy(A3)}fromObject(e){return this.check()}fromQuaternion(e){return gs(this,e),this.check()}fromMatrix4(e){return this.set(e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10])}set(e,t,n,i,s,o,a,c,u){return this[0]=e,this[1]=t,this[2]=n,this[3]=i,this[4]=s,this[5]=o,this[6]=a,this[7]=c,this[8]=u,this.check()}setRowMajor(e,t,n,i,s,o,a,c,u){return this[0]=e,this[1]=i,this[2]=a,this[3]=t,this[4]=s,this[5]=c,this[6]=n,this[7]=o,this[8]=u,this.check()}determinant(){return hs(this)}transpose(){return ds(this,this),this.check()}invert(){return fs(this,this),this.check()}multiplyLeft(e){return oi(this,e,this),this.check()}multiplyRight(e){return oi(this,this,e),this.check()}rotate(e){return ms(this,this,e),this.check()}scale(e){return Array.isArray(e)?ai(this,this,e):ai(this,this,[e,e]),this.check()}translate(e){return ps(this,this,e),this.check()}transform(e,t){let n;switch(e.length){case 2:n=Q1(t||[-0,-0],e,this);break;case 3:n=ur(t||[-0,-0,-0],e,this);break;case 4:n=rs(t||[-0,-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return Se(n,e.length),n}},dr,fr=null;function _3(){return dr||(dr=new u0([0,0,0,0,0,0,0,0,0]),Object.freeze(dr)),dr}function M3(){return fr||(fr=new u0,Object.freeze(fr)),fr}function I3(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function ys(r,e){if(r===e){let t=e[1],n=e[2],i=e[3],s=e[6],o=e[7],a=e[11];r[1]=e[4],r[2]=e[8],r[3]=e[12],r[4]=t,r[6]=e[9],r[7]=e[13],r[8]=n,r[9]=s,r[11]=e[14],r[12]=i,r[13]=o,r[14]=a}else r[0]=e[0],r[1]=e[4],r[2]=e[8],r[3]=e[12],r[4]=e[1],r[5]=e[5],r[6]=e[9],r[7]=e[13],r[8]=e[2],r[9]=e[6],r[10]=e[10],r[11]=e[14],r[12]=e[3],r[13]=e[7],r[14]=e[11],r[15]=e[15];return r}function xs(r,e){let t=e[0],n=e[1],i=e[2],s=e[3],o=e[4],a=e[5],c=e[6],u=e[7],l=e[8],d=e[9],f=e[10],h=e[11],p=e[12],m=e[13],g=e[14],b=e[15],v=t*a-n*o,T=t*c-i*o,S=t*u-s*o,y=n*c-i*a,x=n*u-s*a,w=i*u-s*c,A=l*m-d*p,_=l*g-f*p,I=l*b-h*p,C=d*g-f*m,M=d*b-h*m,B=f*b-h*g,L=v*B-T*M+S*C+y*I-x*_+w*A;return L?(L=1/L,r[0]=(a*B-c*M+u*C)*L,r[1]=(i*M-n*B-s*C)*L,r[2]=(m*w-g*x+b*y)*L,r[3]=(f*x-d*w-h*y)*L,r[4]=(c*I-o*B-u*_)*L,r[5]=(t*B-i*I+s*_)*L,r[6]=(g*S-p*w-b*T)*L,r[7]=(l*w-f*S+h*T)*L,r[8]=(o*M-a*I+u*A)*L,r[9]=(n*I-t*M-s*A)*L,r[10]=(p*x-m*S+b*v)*L,r[11]=(d*S-l*x-h*v)*L,r[12]=(a*_-o*C-c*A)*L,r[13]=(t*C-n*_+i*A)*L,r[14]=(m*T-p*y-g*v)*L,r[15]=(l*y-d*T+f*v)*L,r):null}function bs(r){let e=r[0],t=r[1],n=r[2],i=r[3],s=r[4],o=r[5],a=r[6],c=r[7],u=r[8],l=r[9],d=r[10],f=r[11],h=r[12],p=r[13],m=r[14],g=r[15],b=e*o-t*s,v=e*a-n*s,T=t*a-n*o,S=u*p-l*h,y=u*m-d*h,x=l*m-d*p,w=e*x-t*y+n*S,A=s*x-o*y+a*S,_=u*T-l*v+d*b,I=h*T-p*v+m*b;return c*w-i*A+g*_-f*I}function ui(r,e,t){let n=e[0],i=e[1],s=e[2],o=e[3],a=e[4],c=e[5],u=e[6],l=e[7],d=e[8],f=e[9],h=e[10],p=e[11],m=e[12],g=e[13],b=e[14],v=e[15],T=t[0],S=t[1],y=t[2],x=t[3];return r[0]=T*n+S*a+y*d+x*m,r[1]=T*i+S*c+y*f+x*g,r[2]=T*s+S*u+y*h+x*b,r[3]=T*o+S*l+y*p+x*v,T=t[4],S=t[5],y=t[6],x=t[7],r[4]=T*n+S*a+y*d+x*m,r[5]=T*i+S*c+y*f+x*g,r[6]=T*s+S*u+y*h+x*b,r[7]=T*o+S*l+y*p+x*v,T=t[8],S=t[9],y=t[10],x=t[11],r[8]=T*n+S*a+y*d+x*m,r[9]=T*i+S*c+y*f+x*g,r[10]=T*s+S*u+y*h+x*b,r[11]=T*o+S*l+y*p+x*v,T=t[12],S=t[13],y=t[14],x=t[15],r[12]=T*n+S*a+y*d+x*m,r[13]=T*i+S*c+y*f+x*g,r[14]=T*s+S*u+y*h+x*b,r[15]=T*o+S*l+y*p+x*v,r}function vs(r,e,t){let n=t[0],i=t[1],s=t[2],o,a,c,u,l,d,f,h,p,m,g,b;return e===r?(r[12]=e[0]*n+e[4]*i+e[8]*s+e[12],r[13]=e[1]*n+e[5]*i+e[9]*s+e[13],r[14]=e[2]*n+e[6]*i+e[10]*s+e[14],r[15]=e[3]*n+e[7]*i+e[11]*s+e[15]):(o=e[0],a=e[1],c=e[2],u=e[3],l=e[4],d=e[5],f=e[6],h=e[7],p=e[8],m=e[9],g=e[10],b=e[11],r[0]=o,r[1]=a,r[2]=c,r[3]=u,r[4]=l,r[5]=d,r[6]=f,r[7]=h,r[8]=p,r[9]=m,r[10]=g,r[11]=b,r[12]=o*n+l*i+p*s+e[12],r[13]=a*n+d*i+m*s+e[13],r[14]=c*n+f*i+g*s+e[14],r[15]=u*n+h*i+b*s+e[15]),r}function Ts(r,e,t){let n=t[0],i=t[1],s=t[2];return r[0]=e[0]*n,r[1]=e[1]*n,r[2]=e[2]*n,r[3]=e[3]*n,r[4]=e[4]*i,r[5]=e[5]*i,r[6]=e[6]*i,r[7]=e[7]*i,r[8]=e[8]*s,r[9]=e[9]*s,r[10]=e[10]*s,r[11]=e[11]*s,r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}function Ss(r,e,t,n){let i=n[0],s=n[1],o=n[2],a=Math.sqrt(i*i+s*s+o*o),c,u,l,d,f,h,p,m,g,b,v,T,S,y,x,w,A,_,I,C,M,B,L,E;return a<1e-6?null:(a=1/a,i*=a,s*=a,o*=a,u=Math.sin(t),c=Math.cos(t),l=1-c,d=e[0],f=e[1],h=e[2],p=e[3],m=e[4],g=e[5],b=e[6],v=e[7],T=e[8],S=e[9],y=e[10],x=e[11],w=i*i*l+c,A=s*i*l+o*u,_=o*i*l-s*u,I=i*s*l-o*u,C=s*s*l+c,M=o*s*l+i*u,B=i*o*l+s*u,L=s*o*l-i*u,E=o*o*l+c,r[0]=d*w+m*A+T*_,r[1]=f*w+g*A+S*_,r[2]=h*w+b*A+y*_,r[3]=p*w+v*A+x*_,r[4]=d*I+m*C+T*M,r[5]=f*I+g*C+S*M,r[6]=h*I+b*C+y*M,r[7]=p*I+v*C+x*M,r[8]=d*B+m*L+T*E,r[9]=f*B+g*L+S*E,r[10]=h*B+b*L+y*E,r[11]=p*B+v*L+x*E,e!==r&&(r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r)}function ws(r,e,t){let n=Math.sin(t),i=Math.cos(t),s=e[4],o=e[5],a=e[6],c=e[7],u=e[8],l=e[9],d=e[10],f=e[11];return e!==r&&(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[4]=s*i+u*n,r[5]=o*i+l*n,r[6]=a*i+d*n,r[7]=c*i+f*n,r[8]=u*i-s*n,r[9]=l*i-o*n,r[10]=d*i-a*n,r[11]=f*i-c*n,r}function As(r,e,t){let n=Math.sin(t),i=Math.cos(t),s=e[0],o=e[1],a=e[2],c=e[3],u=e[8],l=e[9],d=e[10],f=e[11];return e!==r&&(r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=s*i-u*n,r[1]=o*i-l*n,r[2]=a*i-d*n,r[3]=c*i-f*n,r[8]=s*n+u*i,r[9]=o*n+l*i,r[10]=a*n+d*i,r[11]=c*n+f*i,r}function _s(r,e,t){let n=Math.sin(t),i=Math.cos(t),s=e[0],o=e[1],a=e[2],c=e[3],u=e[4],l=e[5],d=e[6],f=e[7];return e!==r&&(r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=s*i+u*n,r[1]=o*i+l*n,r[2]=a*i+d*n,r[3]=c*i+f*n,r[4]=u*i-s*n,r[5]=l*i-o*n,r[6]=d*i-a*n,r[7]=f*i-c*n,r}function Ms(r,e){let t=e[0],n=e[1],i=e[2],s=e[3],o=t+t,a=n+n,c=i+i,u=t*o,l=n*o,d=n*a,f=i*o,h=i*a,p=i*c,m=s*o,g=s*a,b=s*c;return r[0]=1-d-p,r[1]=l+b,r[2]=f-g,r[3]=0,r[4]=l-b,r[5]=1-u-p,r[6]=h+m,r[7]=0,r[8]=f+g,r[9]=h-m,r[10]=1-u-d,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Is(r,e,t,n,i,s,o){let a=1/(t-e),c=1/(i-n),u=1/(s-o);return r[0]=s*2*a,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=s*2*c,r[6]=0,r[7]=0,r[8]=(t+e)*a,r[9]=(i+n)*c,r[10]=(o+s)*u,r[11]=-1,r[12]=0,r[13]=0,r[14]=o*s*2*u,r[15]=0,r}function P3(r,e,t,n,i){let s=1/Math.tan(e/2);if(r[0]=s/t,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=s,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,i!=null&&i!==1/0){let o=1/(n-i);r[10]=(i+n)*o,r[14]=2*i*n*o}else r[10]=-1,r[14]=-2*n;return r}var Ps=P3;function L3(r,e,t,n,i,s,o){let a=1/(e-t),c=1/(n-i),u=1/(s-o);return r[0]=-2*a,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*c,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*u,r[11]=0,r[12]=(e+t)*a,r[13]=(i+n)*c,r[14]=(o+s)*u,r[15]=1,r}var Ls=L3;function Es(r,e,t,n){let i,s,o,a,c,u,l,d,f,h,p=e[0],m=e[1],g=e[2],b=n[0],v=n[1],T=n[2],S=t[0],y=t[1],x=t[2];return Math.abs(p-S)<1e-6&&Math.abs(m-y)<1e-6&&Math.abs(g-x)<1e-6?I3(r):(d=p-S,f=m-y,h=g-x,i=1/Math.sqrt(d*d+f*f+h*h),d*=i,f*=i,h*=i,s=v*h-T*f,o=T*d-b*h,a=b*f-v*d,i=Math.sqrt(s*s+o*o+a*a),i?(i=1/i,s*=i,o*=i,a*=i):(s=0,o=0,a=0),c=f*a-h*o,u=h*s-d*a,l=d*o-f*s,i=Math.sqrt(c*c+u*u+l*l),i?(i=1/i,c*=i,u*=i,l*=i):(c=0,u=0,l=0),r[0]=s,r[1]=c,r[2]=d,r[3]=0,r[4]=o,r[5]=u,r[6]=f,r[7]=0,r[8]=a,r[9]=l,r[10]=h,r[11]=0,r[12]=-(s*p+o*m+a*g),r[13]=-(c*p+u*m+l*g),r[14]=-(d*p+f*m+h*g),r[15]=1,r)}function Rs(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r[2]=e[2]+t[2],r[3]=e[3]+t[3],r}function Cs(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r[3]=e[3]*t,r}function Bs(r){let e=r[0],t=r[1],n=r[2],i=r[3];return Math.sqrt(e*e+t*t+n*n+i*i)}function Ds(r){let e=r[0],t=r[1],n=r[2],i=r[3];return e*e+t*t+n*n+i*i}function Os(r,e){let t=e[0],n=e[1],i=e[2],s=e[3],o=t*t+n*n+i*i+s*s;return o>0&&(o=1/Math.sqrt(o)),r[0]=t*o,r[1]=n*o,r[2]=i*o,r[3]=s*o,r}function ks(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]+r[3]*e[3]}function Ns(r,e,t,n){let i=e[0],s=e[1],o=e[2],a=e[3];return r[0]=i+n*(t[0]-i),r[1]=s+n*(t[1]-s),r[2]=o+n*(t[2]-o),r[3]=a+n*(t[3]-a),r}function Fs(r,e,t){let n=e[0],i=e[1],s=e[2],o=e[3];return r[0]=t[0]*n+t[4]*i+t[8]*s+t[12]*o,r[1]=t[1]*n+t[5]*i+t[9]*s+t[13]*o,r[2]=t[2]*n+t[6]*i+t[10]*s+t[14]*o,r[3]=t[3]*n+t[7]*i+t[11]*s+t[15]*o,r}var fi;(function(r){r[r.COL0ROW0=0]="COL0ROW0",r[r.COL0ROW1=1]="COL0ROW1",r[r.COL0ROW2=2]="COL0ROW2",r[r.COL0ROW3=3]="COL0ROW3",r[r.COL1ROW0=4]="COL1ROW0",r[r.COL1ROW1=5]="COL1ROW1",r[r.COL1ROW2=6]="COL1ROW2",r[r.COL1ROW3=7]="COL1ROW3",r[r.COL2ROW0=8]="COL2ROW0",r[r.COL2ROW1=9]="COL2ROW1",r[r.COL2ROW2=10]="COL2ROW2",r[r.COL2ROW3=11]="COL2ROW3",r[r.COL3ROW0=12]="COL3ROW0",r[r.COL3ROW1=13]="COL3ROW1",r[r.COL3ROW2=14]="COL3ROW2",r[r.COL3ROW3=15]="COL3ROW3"})(fi||(fi={}));var R3=45*Math.PI/180,C3=1,li=.1,di=500,B3=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),R=class extends we{static get IDENTITY(){return O3()}static get ZERO(){return D3()}get ELEMENTS(){return 16}get RANK(){return 4}get INDICES(){return fi}constructor(e){super(-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0),arguments.length===1&&Array.isArray(e)?this.copy(e):this.identity()}copy(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3],this[4]=e[4],this[5]=e[5],this[6]=e[6],this[7]=e[7],this[8]=e[8],this[9]=e[9],this[10]=e[10],this[11]=e[11],this[12]=e[12],this[13]=e[13],this[14]=e[14],this[15]=e[15],this.check()}set(e,t,n,i,s,o,a,c,u,l,d,f,h,p,m,g){return this[0]=e,this[1]=t,this[2]=n,this[3]=i,this[4]=s,this[5]=o,this[6]=a,this[7]=c,this[8]=u,this[9]=l,this[10]=d,this[11]=f,this[12]=h,this[13]=p,this[14]=m,this[15]=g,this.check()}setRowMajor(e,t,n,i,s,o,a,c,u,l,d,f,h,p,m,g){return this[0]=e,this[1]=s,this[2]=u,this[3]=h,this[4]=t,this[5]=o,this[6]=l,this[7]=p,this[8]=n,this[9]=a,this[10]=d,this[11]=m,this[12]=i,this[13]=c,this[14]=f,this[15]=g,this.check()}toRowMajor(e){return e[0]=this[0],e[1]=this[4],e[2]=this[8],e[3]=this[12],e[4]=this[1],e[5]=this[5],e[6]=this[9],e[7]=this[13],e[8]=this[2],e[9]=this[6],e[10]=this[10],e[11]=this[14],e[12]=this[3],e[13]=this[7],e[14]=this[11],e[15]=this[15],e}identity(){return this.copy(B3)}fromObject(e){return this.check()}fromQuaternion(e){return Ms(this,e),this.check()}fromMatrix3(e){return this.set(e[0],e[1],e[2],0,e[3],e[4],e[5],0,e[6],e[7],e[8],0,0,0,0,1)}frustum(e){let{left:t,right:n,bottom:i,top:s,near:o=li,far:a=di}=e;return a===1/0?k3(this,t,n,i,s,o):Is(this,t,n,i,s,o,a),this.check()}lookAt(e){let{eye:t,center:n=[0,0,0],up:i=[0,1,0]}=e;return Es(this,t,n,i),this.check()}ortho(e){let{left:t,right:n,bottom:i,top:s,near:o=li,far:a=di}=e;return Ls(this,t,n,i,s,o,a),this.check()}orthographic(e){let{fovy:t=R3,aspect:n=C3,focalDistance:i=1,near:s=li,far:o=di}=e;Gs(t);let a=t/2,c=i*Math.tan(a),u=c*n;return this.ortho({left:-u,right:u,bottom:-c,top:c,near:s,far:o})}perspective(e){let{fovy:t=45*Math.PI/180,aspect:n=1,near:i=.1,far:s=500}=e;return Gs(t),Ps(this,t,n,i,s),this.check()}determinant(){return bs(this)}getScale(e=[-0,-0,-0]){return e[0]=Math.sqrt(this[0]*this[0]+this[1]*this[1]+this[2]*this[2]),e[1]=Math.sqrt(this[4]*this[4]+this[5]*this[5]+this[6]*this[6]),e[2]=Math.sqrt(this[8]*this[8]+this[9]*this[9]+this[10]*this[10]),e}getTranslation(e=[-0,-0,-0]){return e[0]=this[12],e[1]=this[13],e[2]=this[14],e}getRotation(e,t){e=e||[-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0],t=t||[-0,-0,-0];let n=this.getScale(t),i=1/n[0],s=1/n[1],o=1/n[2];return e[0]=this[0]*i,e[1]=this[1]*s,e[2]=this[2]*o,e[3]=0,e[4]=this[4]*i,e[5]=this[5]*s,e[6]=this[6]*o,e[7]=0,e[8]=this[8]*i,e[9]=this[9]*s,e[10]=this[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}getRotationMatrix3(e,t){e=e||[-0,-0,-0,-0,-0,-0,-0,-0,-0],t=t||[-0,-0,-0];let n=this.getScale(t),i=1/n[0],s=1/n[1],o=1/n[2];return e[0]=this[0]*i,e[1]=this[1]*s,e[2]=this[2]*o,e[3]=this[4]*i,e[4]=this[5]*s,e[5]=this[6]*o,e[6]=this[8]*i,e[7]=this[9]*s,e[8]=this[10]*o,e}transpose(){return ys(this,this),this.check()}invert(){return xs(this,this),this.check()}multiplyLeft(e){return ui(this,e,this),this.check()}multiplyRight(e){return ui(this,this,e),this.check()}rotateX(e){return ws(this,this,e),this.check()}rotateY(e){return As(this,this,e),this.check()}rotateZ(e){return _s(this,this,e),this.check()}rotateXYZ(e){return this.rotateX(e[0]).rotateY(e[1]).rotateZ(e[2])}rotateAxis(e,t){return Ss(this,this,e,t),this.check()}scale(e){return Ts(this,this,Array.isArray(e)?e:[e,e,e]),this.check()}translate(e){return vs(this,this,e),this.check()}transform(e,t){return e.length===4?(t=Fs(t||[-0,-0,-0,-0],e,this),Se(t,4),t):this.transformAsPoint(e,t)}transformAsPoint(e,t){let{length:n}=e,i;switch(n){case 2:i=J1(t||[-0,-0],e,this);break;case 3:i=cr(t||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return Se(i,e.length),i}transformAsVector(e,t){let n;switch(e.length){case 2:n=es(t||[-0,-0],e,this);break;case 3:n=ar(t||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return Se(n,e.length),n}makeRotationX(e){return this.identity().rotateX(e)}makeTranslation(e,t,n){return this.identity().translate([e,t,n])}},hr,pr;function D3(){return hr||(hr=new R([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Object.freeze(hr)),hr}function O3(){return pr||(pr=new R,Object.freeze(pr)),pr}function Gs(r){if(r>Math.PI*2)throw Error("expected radians")}function k3(r,e,t,n,i,s){let o=2*s/(t-e),a=2*s/(i-n),c=(t+e)/(t-e),u=(i+n)/(i-n),l=-1,d=-1,f=-2*s;return r[0]=o,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=a,r[6]=0,r[7]=0,r[8]=c,r[9]=u,r[10]=l,r[11]=d,r[12]=0,r[13]=0,r[14]=f,r[15]=0,r}function zs(r){return r[0]=0,r[1]=0,r[2]=0,r[3]=1,r}function hi(r,e,t){t=t*.5;let n=Math.sin(t);return r[0]=n*e[0],r[1]=n*e[1],r[2]=n*e[2],r[3]=Math.cos(t),r}function pi(r,e,t){let n=e[0],i=e[1],s=e[2],o=e[3],a=t[0],c=t[1],u=t[2],l=t[3];return r[0]=n*l+o*a+i*u-s*c,r[1]=i*l+o*c+s*a-n*u,r[2]=s*l+o*u+n*c-i*a,r[3]=o*l-n*a-i*c-s*u,r}function Us(r,e,t){t*=.5;let n=e[0],i=e[1],s=e[2],o=e[3],a=Math.sin(t),c=Math.cos(t);return r[0]=n*c+o*a,r[1]=i*c+s*a,r[2]=s*c-i*a,r[3]=o*c-n*a,r}function Vs(r,e,t){t*=.5;let n=e[0],i=e[1],s=e[2],o=e[3],a=Math.sin(t),c=Math.cos(t);return r[0]=n*c-s*a,r[1]=i*c+o*a,r[2]=s*c+n*a,r[3]=o*c-i*a,r}function $s(r,e,t){t*=.5;let n=e[0],i=e[1],s=e[2],o=e[3],a=Math.sin(t),c=Math.cos(t);return r[0]=n*c+i*a,r[1]=i*c-n*a,r[2]=s*c+o*a,r[3]=o*c-s*a,r}function js(r,e){let t=e[0],n=e[1],i=e[2];return r[0]=t,r[1]=n,r[2]=i,r[3]=Math.sqrt(Math.abs(1-t*t-n*n-i*i)),r}function Ws(r,e,t,n){let i=e[0],s=e[1],o=e[2],a=e[3],c=t[0],u=t[1],l=t[2],d=t[3],f,h,p,m,g;return f=i*c+s*u+o*l+a*d,f<0&&(f=-f,c=-c,u=-u,l=-l,d=-d),1-f>1e-6?(h=Math.acos(f),g=Math.sin(h),p=Math.sin((1-n)*h)/g,m=Math.sin(n*h)/g):(p=1-n,m=n),r[0]=p*i+m*c,r[1]=p*s+m*u,r[2]=p*o+m*l,r[3]=p*a+m*d,r}function Hs(r,e){let t=e[0],n=e[1],i=e[2],s=e[3],o=t*t+n*n+i*i+s*s,a=o?1/o:0;return r[0]=-t*a,r[1]=-n*a,r[2]=-i*a,r[3]=s*a,r}function qs(r,e){return r[0]=-e[0],r[1]=-e[1],r[2]=-e[2],r[3]=e[3],r}function Xs(r,e){let t=e[0]+e[4]+e[8],n;if(t>0)n=Math.sqrt(t+1),r[3]=.5*n,n=.5/n,r[0]=(e[5]-e[7])*n,r[1]=(e[6]-e[2])*n,r[2]=(e[1]-e[3])*n;else{let i=0;e[4]>e[0]&&(i=1),e[8]>e[i*3+i]&&(i=2);let s=(i+1)%3,o=(i+2)%3;n=Math.sqrt(e[i*3+i]-e[s*3+s]-e[o*3+o]+1),r[i]=.5*n,n=.5/n,r[3]=(e[s*3+o]-e[o*3+s])*n,r[s]=(e[s*3+i]+e[i*3+s])*n,r[o]=(e[o*3+i]+e[i*3+o])*n}return r}var Ys=Rs;var Ks=Cs,Zs=ks,Qs=Ns,Js=Bs;var eo=Ds;var N3=Os;var to=(function(){let r=ns(),e=ni(1,0,0),t=ni(0,1,0);return function(n,i,s){let o=ii(i,s);return o<-.999999?(Ae(r,e,i),ls(r)<1e-6&&Ae(r,t,i),is(r,r),hi(n,r,Math.PI),n):o>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(Ae(r,i,s),n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=1+o,N3(n,n))}})();var ht=class extends z0{constructor(e=0,t=0,n=0,i=1){super(-0,-0,-0,-0),Array.isArray(e)&&arguments.length===1?this.copy(e):this.set(e,t,n,i)}copy(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3],this.check()}set(e,t,n,i){return this[0]=e,this[1]=t,this[2]=n,this[3]=i,this.check()}fromObject(e){return this[0]=e.x,this[1]=e.y,this[2]=e.z,this[3]=e.w,this.check()}fromMatrix3(e){return Xs(this,e),this.check()}fromEuler(e){switch(this.identity(),e.order){case"xyz":return this.rotateX(e.x).rotateY(e.y).rotateZ(e.z);case"yxz":return this.rotateY(e.y).rotateX(e.x).rotateZ(e.z);case"zxy":return this.rotateZ(e.z).rotateX(e.x).rotateY(e.y);case"zyx":return this.rotateZ(e.z).rotateY(e.y).rotateX(e.x);case"yzx":return this.rotateY(e.y).rotateZ(e.z).rotateX(e.x);case"xzy":return this.rotateX(e.x).rotateZ(e.z).rotateY(e.y);default:throw new Error("Unknown Euler angle order")}}fromAxisRotation(e,t){return hi(this,e,t),this.check()}identity(){return zs(this),this.check()}setAxisAngle(e,t){return this.fromAxisRotation(e,t)}get ELEMENTS(){return 4}get x(){return this[0]}set x(e){this[0]=V(e)}get y(){return this[1]}set y(e){this[1]=V(e)}get z(){return this[2]}set z(e){this[2]=V(e)}get w(){return this[3]}set w(e){this[3]=V(e)}len(){return Js(this)}lengthSquared(){return eo(this)}dot(e){return Zs(this,e)}rotationTo(e,t){return to(this,e,t),this.check()}add(e){return Ys(this,this,e),this.check()}calculateW(){return js(this,this),this.check()}conjugate(){return qs(this,this),this.check()}invert(){return Hs(this,this),this.check()}lerp(e,t,n){return n===void 0?this.lerp(this,e,t):(Qs(this,e,t,n),this.check())}multiplyRight(e){return pi(this,this,e),this.check()}multiplyLeft(e){return pi(this,e,this),this.check()}normalize(){let e=this.len(),t=e>0?1/e:0;return this[0]=this[0]*t,this[1]=this[1]*t,this[2]=this[2]*t,this[3]=this[3]*t,e===0&&(this[3]=1),this.check()}rotateX(e){return Us(this,this,e),this.check()}rotateY(e){return Vs(this,this,e),this.check()}rotateZ(e){return $s(this,this,e),this.check()}scale(e){return Ks(this,this,e),this.check()}slerp(e,t,n){let i,s,o;return arguments.length===2?(i=this,s=e,o=t):(i=e,s=t,o=n),Ws(this,i,s,o),this.check()}lengthSq(){return this.lengthSquared()}setFromAxisAngle(e,t){return this.setAxisAngle(e,t)}premultiply(e){return this.multiplyLeft(e)}multiply(e){return this.multiplyRight(e)}};function mr(r){if(!r.indices)return r;let e=r.indices.value,t={};for(let[n,i]of Object.entries(r.attributes)){if(!i)continue;if(i.constant||!i.size){t[n]=i;continue}let s=i.value.constructor,o=new s(e.length*i.size);for(let a=0;a<e.length;a++)for(let c=0;c<i.size;c++)o[a*i.size+c]=i.value[Number(e[a])*i.size+c];t[n]={...i,value:o}}return{attributes:t}}function Z(r,e){if(!Number.isFinite(r)||r<=0)throw new Error(`${e} must be greater than zero`)}function mi(r,e){if(!Number.isFinite(r)||r<0)throw new Error(`${e} must be non-negative`)}function K(r,e,t=1){if(!Number.isInteger(r)||r<t)throw new Error(`${e} must be an integer >= ${t}`)}function v0(r,e){return r>65535?new Uint32Array(e):new Uint16Array(e)}var gr=class extends W{constructor(e={}){let t=e.size||[1,1,1];Z(t[0],"size[0]"),Z(t[1],"size[1]"),Z(t[2],"size[2]");let n=[t[0]/2,t[1]/2,t[2]/2],i=[],s=[],o=[],a=[],c=[{n:[1,0,0],u:[0,0,-1],v:[0,1,0],h1:n[2],h2:n[1]},{n:[-1,0,0],u:[0,0,1],v:[0,1,0],h1:n[2],h2:n[1]},{n:[0,1,0],u:[1,0,0],v:[0,0,-1],h1:n[0],h2:n[2]},{n:[0,-1,0],u:[1,0,0],v:[0,0,1],h1:n[0],h2:n[2]},{n:[0,0,1],u:[1,0,0],v:[0,1,0],h1:n[0],h2:n[1]},{n:[0,0,-1],u:[-1,0,0],v:[0,1,0],h1:n[0],h2:n[1]}];for(let u of c){let l=i.length/3;for(let[d,f,h,p]of[[-1,-1,0,0],[1,-1,1,0],[1,1,1,1],[-1,1,0,1]])i.push(u.n[0]*n[0]+u.u[0]*u.h1*d+u.v[0]*u.h2*f,u.n[1]*n[1]+u.u[1]*u.h1*d+u.v[1]*u.h2*f,u.n[2]*n[2]+u.u[2]*u.h1*d+u.v[2]*u.h2*f),s.push(...u.n),o.push(h,p);a.push(l,l+1,l+2,l,l+2,l+3)}super({id:e.id,topology:"triangle-list",indices:v0(24,a),attributes:{POSITION:{size:3,value:new Float32Array(i)},NORMAL:{size:3,value:new Float32Array(s)},TEXCOORD_0:{size:2,value:new Float32Array(o)},...e.attributes}})}},pt=class extends gr{constructor(e={}){let t=e.size??1;super({...e,size:[t,t,t]})}};function ro(r,e){let t=[],n=[],i=[],s=[],o=e+1;for(let a=0;a<r.length;a++){let c=r[a];for(let u=0;u<=e;u++){let l=u/e,d=l*Math.PI*2,f=Math.sin(d),h=Math.cos(d);t.push(f*c.radius,c.y,h*c.radius),n.push(f*c.normalRadius,c.normalY,h*c.normalRadius),i.push(l,a/(r.length-1))}}for(let a=0;a<r.length-1;a++)for(let c=0;c<e;c++){let u=a*o+c,l=u+1,d=u+o,f=d+1;s.push(u,l,f,u,f,d)}return{positions:t,normals:n,texCoords:i,indices:s,indexArray:v0(t.length/3,s)}}var mt=class extends W{constructor(e={}){let{topRadius:t=0,bottomRadius:n=0,topCap:i=!1,bottomCap:s=!1,height:o=1,nradial:a=10,nvertical:c=1,verticalAxis:u="y"}=e;if(mi(t,"topRadius"),mi(n,"bottomRadius"),t===0&&n===0)throw new Error("At least one radius must be greater than zero");Z(o,"height"),K(a,"nradial",3),K(c,"nvertical");let l=[],d=[],f=[],h=[],p=a+1,m=(n-t)/o,g=1/Math.hypot(1,m),b=(y,x,w,A,_)=>{let I=l.length/3/p;for(let C=0;C<=a;C++){let M=C/a,B=M*Math.PI*2,L=Math.sin(B),E=Math.cos(B),U=no([L*y,x,E*y],u),j=no([L*w,A,E*w],u);l.push(...U),d.push(...j),f.push(M,_)}return I},v=(y,x)=>{for(let w=0;w<a;w++){let A=y*p+w,_=A+1,I=x*p+w,C=I+1;h.push(A,_,C,A,C,I)}},T;if(s){let y=b(0,-o/2,0,-1,0),x=b(n,-o/2,0,-1,1);v(y,x),T=b(n,-o/2,g,m*g,0)}for(let y=0;y<=c;y++){let x=y/c,w=n+(t-n)*x,A=b(w,(x-.5)*o,g,m*g,x);T!==void 0&&!(s&&y===0)&&v(T,A),T=A}if(i&&T!==void 0){let y=b(t,o/2,0,1,1),x=b(0,o/2,0,1,0);v(y,x)}let S=l.length/3;super({id:e.id,topology:"triangle-list",indices:v0(S,h),attributes:{POSITION:{size:3,value:new Float32Array(l)},NORMAL:{size:3,value:new Float32Array(d)},TEXCOORD_0:{size:2,value:new Float32Array(f)},...e.attributes}})}};function no(r,e){switch(e){case"x":return[r[1],r[2],r[0]];case"z":return[r[2],r[0],r[1]];default:return[r[0],r[1],r[2]]}}var ee=class extends W{constructor(e){let{sizeX:t,sizeZ:n,nx:i=1,nz:s=1}=e;Z(t,"sizeX"),Z(n,"sizeZ"),K(i,"nx"),K(s,"nz");let o=[],a=[],c=[],u=[];for(let f=0;f<=s;f++){let h=f/s;for(let p=0;p<=i;p++){let m=p/i;o.push((m-.5)*t,0,(.5-h)*n),a.push(0,1,0),c.push(m,h)}}let l=i+1;for(let f=0;f<s;f++)for(let h=0;h<i;h++){let p=f*l+h,m=p+1,g=p+l,b=g+1;u.push(p,m,b,p,b,g)}let d=o.length/3;super({id:e.id,topology:"triangle-list",indices:v0(d,u),attributes:{POSITION:{size:3,value:new Float32Array(o)},NORMAL:{size:3,value:new Float32Array(a)},TEXCOORD_0:{size:2,value:new Float32Array(c)},...e.attributes}})}};var gt=class extends W{constructor(e={}){let{radius:t=.5,nlat:n=10,nlong:i=10}=e;Z(t,"radius"),K(n,"nlat",2),K(i,"nlong",3);let s=[];for(let a=0;a<=n;a++){let c=-Math.PI/2+a/n*Math.PI,u=Math.cos(c),l=Math.sin(c);s.push({radius:t*u,y:t*l,normalRadius:u,normalY:l})}let o=ro(s,i);super({id:e.id,topology:"triangle-list",indices:o.indexArray,attributes:{POSITION:{size:3,value:new Float32Array(o.positions)},NORMAL:{size:3,value:new Float32Array(o.normals)},TEXCOORD_0:{size:2,value:new Float32Array(o.texCoords)},...e.attributes}})}};var yt=class extends W{constructor(e={}){let{radius:t=.5,iterations:n=0}=e;if(Z(t,"radius"),K(n,"iterations",0),n>8)throw new Error("iterations must be <= 8");let i=(1+Math.sqrt(5))/2,s=[[-1,i,0],[1,i,0],[-1,-i,0],[1,-i,0],[0,-1,i],[0,1,i],[0,-1,-i],[0,1,-i],[i,0,-1],[i,0,1],[-i,0,-1],[-i,0,1]].map(yr),o=[[0,11,5],[0,5,1],[0,1,7],[0,7,10],[0,10,11],[1,5,9],[5,11,4],[11,10,2],[10,7,6],[7,1,8],[3,9,4],[3,4,2],[3,2,6],[3,6,8],[3,8,9],[4,9,5],[2,4,11],[6,2,10],[8,6,7],[9,8,1]].map(l=>l.map(d=>s[d]));for(let l=0;l<n;l++){let d=[];for(let[f,h,p]of o){let m=yr([f[0]+h[0],f[1]+h[1],f[2]+h[2]]),g=yr([h[0]+p[0],h[1]+p[1],h[2]+p[2]]),b=yr([p[0]+f[0],p[1]+f[1],p[2]+f[2]]);d.push([f,m,b],[h,g,m],[p,b,g],[m,g,b])}o=d}let a=[],c=[],u=[];for(let l of o)for(let d of l)a.push(d[0]*t,d[1]*t,d[2]*t),c.push(...d),u.push(.5+Math.atan2(d[0],d[2])/(2*Math.PI),.5-Math.asin(d[1])/Math.PI);super({id:e.id,topology:"triangle-list",attributes:{POSITION:{size:3,value:new Float32Array(a)},NORMAL:{size:3,value:new Float32Array(c)},TEXCOORD_0:{size:2,value:new Float32Array(u)},...e.attributes}})}};function yr(r){let e=Math.hypot(...r);return r.map(t=>t/e)}var te=class extends W{constructor(e){let{sample:t,normal:n,uSegments:i=32,vSegments:s=32,periodicU:o=!1,periodicV:a=!1}=e;K(i,"uSegments"),K(s,"vSegments");let c=(i+1)*(s+1),u=i*s*6;if(!Number.isSafeInteger(u)||u>4294967295)throw new RangeError("Surface exceeds 32-bit index-buffer length");if(!Number.isSafeInteger(c)||c>4294967295)throw new RangeError("Surface exceeds 32-bit indexing");let l=new Float32Array(c*3),d=new Float32Array(c*3),f=new Float32Array(c*2),h=(S,y)=>y?(S%1+1)%1:Math.max(0,Math.min(1,S)),p=(S,y)=>io(t(h(S,o),h(y,a))),m=1e-5,g=0;for(let S=0;S<=s;S++)for(let y=0;y<=i;y++,g++){let x=y/i,w=S/s,A=h(x,o),_=h(w,a);l.set(p(A,_),g*3);let I;if(n)I=io(n(A,_));else{let C=p(A-m,_),M=p(A+m,_),B=p(A,_-m),L=p(A,_+m),E=_e(M.map((j,b0)=>j-C[b0])),U=_e(L.map((j,b0)=>j-B[b0]));I=[E[1]*U[2]-E[2]*U[1],E[2]*U[0]-E[0]*U[2],E[0]*U[1]-E[1]*U[0]]}d.set(_e(I),g*3),f.set([x,w],g*2)}for(let S of l)if(!Number.isFinite(S))throw new RangeError("Positions must be representable as Float32");let b=c>65535?new Uint32Array(u):new Uint16Array(u),v=i+1,T=0;for(let S=0;S<s;S++)for(let y=0;y<i;y++){let x=S*v+y,w=x+1,A=x+v,_=A+1;b[T++]=x,b[T++]=w,b[T++]=_,b[T++]=x,b[T++]=_,b[T++]=A}super({id:e.id,topology:"triangle-list",indices:b,attributes:{POSITION:{size:3,value:l},NORMAL:{size:3,value:d},TEXCOORD_0:{size:2,value:f},...e.attributes}})}};function io(r){if(!r||r.length!==3||!Array.from(r).every(Number.isFinite))throw new RangeError("Surface samples and normals must be finite triples");return Array.from(r)}function _e(r){let e=Math.max(...r.map(Math.abs));if(!e)return[0,0,0];let t=r.map(i=>i/e),n=Math.hypot(...t);return t.map(i=>i===0?0:i/n)}var Me=class extends te{constructor(e={}){let{majorRadius:t=1,minorRadius:n=.3,majorSegments:i=48,minorSegments:s=24,arc:o=Math.PI*2,startAngle:a=0,cap:c=!1}=e;if(Z(t,"majorRadius"),Z(n,"minorRadius"),n>=t)throw new RangeError("Ring torus requires minorRadius < majorRadius");if(!Number.isFinite(o)||o<=0||o>Math.PI*2)throw new RangeError("arc must be in (0, 2\u03C0]");if(K(i,"majorSegments",3),K(s,"minorSegments",3),!Number.isFinite(a))throw new RangeError("startAngle must be finite");let u=c&&o<Math.PI*2;if(super({...e,attributes:u?void 0:e.attributes,uSegments:i,vSegments:s,periodicU:o===Math.PI*2,periodicV:!0,sample:(l,d)=>{let f=a+l*o,h=d*Math.PI*2,p=t+n*Math.cos(h);return[p*Math.cos(f),n*Math.sin(h),-p*Math.sin(f)]},normal:(l,d)=>[Math.cos(d*Math.PI*2)*Math.cos(a+l*o),Math.sin(d*Math.PI*2),-Math.cos(d*Math.PI*2)*Math.sin(a+l*o)]}),u){let l=this.attributes.POSITION.value,d=Array.from(l),f=Array.from(this.attributes.NORMAL.value),h=Array.from(this.attributes.TEXCOORD_0.value),p=Array.from(this.indices.value);for(let[g,b]of[[a,-1],[a+o,1]]){let v=[-Math.sin(g)*b,0,-Math.cos(g)*b],T=d.length/3;d.push(t*Math.cos(g),0,-t*Math.sin(g)),f.push(...v),h.push(.5,.5);for(let S=0;S<=s;S++){let y=S%s*Math.PI*2/s,x=(S*(i+1)+(b<0?0:i))*3;if(d.push(...l.slice(x,x+3)),f.push(...v),h.push((Math.cos(y)+1)/2,(Math.sin(y)+1)/2),S<s){let w=T+S+1,A=w+1;p.push(T,...b>0?[A,w]:[w,A])}}}let m=new W({id:this.id,topology:this.topology,indices:v0(d.length/3,p),attributes:{POSITION:{size:3,value:new Float32Array(d)},NORMAL:{size:3,value:new Float32Array(f)},TEXCOORD_0:{size:2,value:new Float32Array(h)},...e.attributes}});Object.assign(this,{attributes:m.attributes,indices:m.indices,vertexCount:m.vertexCount})}}};var Ie=class extends te{constructor(e){let{points:t,segments:n=48,phiStart:i=0,phiLength:s=Math.PI*2}=e;if(!t||t.length<2||t.some(l=>l.length!==2||!l.every(Number.isFinite)||l[0]<0))throw new RangeError("Lathe needs at least two finite [nonnegative radius, height] points");if(!Number.isFinite(i)||!Number.isFinite(s)||s<=0||s>Math.PI*2)throw new RangeError("Invalid lathe angular sweep");if(n<3)throw new RangeError("Lathe requires at least three angular segments");let o=t.map(l=>[...l]),a=o.slice(1).map((l,d)=>{let f=l[0]-o[d][0],h=l[1]-o[d][1];if(f===0&&h===0)throw new RangeError("Consecutive profile points must differ");return _e([h,-f,0])}),c=o.map((l,d)=>{let f=a[Math.max(0,d-1)],h=a[Math.min(d,a.length-1)];return _e(f.map((p,m)=>p+h[m]))}),u=l=>{let d=l*(o.length-1),f=Math.min(o.length-2,Math.floor(d));return{i:f,t:d-f}};super({...e,uSegments:n,vSegments:o.length-1,periodicU:s===Math.PI*2,sample:(l,d)=>{let{i:f,t:h}=u(d),p=o[f][0]*(1-h)+o[f+1][0]*h,m=o[f][1]*(1-h)+o[f+1][1]*h,g=i+l*s;return[p*Math.cos(g),m,-p*Math.sin(g)]},normal:(l,d)=>{let{i:f,t:h}=u(d),p=c[f].map((g,b)=>g*(1-h)+c[f+1][b]*h),m=i+l*s;return[p[0]*Math.cos(m),p[1],-p[0]*Math.sin(m)]}})}};var so=O(k(),1),G=class extends W{bufferLayout;constructor(e){let t={},n=new Map;for(let[o,a]of Object.entries(e.attributes)){let c=re(o),u=n.get(c);u&&delete t[u],n.set(c,o),t[o]=a}let i=e.indices,s=i instanceof Uint8Array?new Uint16Array(i):i&&!ArrayBuffer.isView(i)&&i.value instanceof Uint8Array?{...i,value:new Uint16Array(i.value)}:i;super({...e,attributes:t,indices:s});for(let[o,a]of Object.entries(t))!ArrayBuffer.isView(a)&&Object.isExtensible(a)&&o!=="indices"&&(Object.assign(a,this.attributes[o]),this.attributes[o]=a);this.bufferLayout=e.bufferLayout||gi(this.attributes)}};function re(r){switch(r){case"POSITION":return"positions";case"NORMAL":return"normals";case"TEXCOORD_0":return"texCoords";case"TEXCOORD_1":return"texCoords1";case"COLOR_0":return"colors";default:return r}}function gi(r){let e=[];for(let[t,n]of Object.entries(r)){if(!n)continue;let{value:i,size:s,normalized:o}=n;if(s===void 0)throw new Error(`Attribute ${t} is missing a size`);e.push({name:re(t),format:so.vertexFormatDecoder.getVertexFormatFromAttribute(i,s,o)})}return e}var yi=O(k(),1);function Pe(r,e={}){let t=e.bufferName||"geometry";if(F3(r,t))return r;let n=e.minAttributeAlignment||4,i=G3(r,e.attributes),s=[],o=0,a=1/0;for(let[l,d]of i){if(!d)continue;if(d.constant)throw new Error(`Attribute ${l} is constant`);let{value:f,size:h,normalized:p}=d;if(!ArrayBuffer.isView(f))throw new Error(`Attribute ${l} is missing typed array data`);if(h===void 0)throw new Error(`Attribute ${l} is missing a size`);let m=yi.vertexFormatDecoder.getVertexFormatFromAttribute(f,h,p),g=yi.vertexFormatDecoder.getVertexFormatInfo(m);o=oo(o,n),s.push({sourceName:l,attributeName:re(l),value:f,size:h,format:m,byteOffset:o,byteLength:g.byteLength}),o+=g.byteLength;let b=f.length/h;if(!Number.isInteger(b))throw new Error(`Attribute ${l} length is not divisible by size`);a=Math.min(a,b)}if(s.length===0||!Number.isFinite(a))throw new Error(`Geometry ${r.id} has no interleavable attributes`);let c=oo(o,n),u=new ArrayBuffer(a*c);for(let l of s)z3(u,a,c,l);return new G({id:r.id,topology:r.topology||"triangle-list",vertexCount:r.vertexCount,indices:r.indices,attributes:{[t]:{value:new Uint8Array(u),size:c,byteStride:c}},bufferLayout:[{name:t,stepMode:"vertex",byteStride:c,attributes:s.map(l=>({attribute:l.attributeName,format:l.format,byteOffset:l.byteOffset}))}]})}function F3(r,e){if(r.bufferLayout?.length!==1)return!1;let t=r.bufferLayout[0];return t.name===e&&!!t.attributes?.length&&!!r.attributes[e]}function G3(r,e){let t=new Map,n=e||Object.keys(r.attributes);for(let i of n){let s=r.attributes[i];s&&t.set(re(i),[i,s])}return Array.from(t.values())}function z3(r,e,t,n){let i=n.value.constructor,s=i.BYTES_PER_ELEMENT;if(n.byteOffset%s!==0||t%s!==0)throw new Error(`Attribute ${n.sourceName} is not aligned to its component type`);let o=new i(r),a=n.value,c=n.byteOffset/s,u=t/s;for(let l=0;l<e;l++){let d=l*n.size,f=l*u+c;for(let h=0;h<n.size;h++)o[f+h]=a[d+h]}}function oo(r,e){return Math.ceil(r/e)*e}function xi(r){let e=r.value;if(e instanceof Float32Array)return e;let t=new Float32Array(e.length),n=ao(e),i=e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array;for(let s=0;s<e.length;s++){let o=Number(e[s]);t[s]=r.normalized&&n?i?Math.max(o/n,-1):o/n:o}return t}function xt(r,e,t){let n={};for(let i of["POSITION","NORMAL","TANGENT"]){let s=r[i];if(!s)continue;let o=new Float32Array(s),a=i==="TANGENT"?4:3,c=Math.floor(s.length/a);for(let u=0;u<Math.min(e.length,t.length);u++){let l=t[u],d=e[u][i];if(!l||!d)continue;let f=i==="TANGENT"&&d.length===c*4?4:3;for(let h=0;h<c;h++){let p=h*a,m=h*f;for(let g=0;g<3;g++)o[p+g]+=(d[m+g]||0)*l}}i!=="POSITION"&&V3(o,a),n[i]=o}return n}function xr(r,e,t,n){let i={};for(let d of["POSITION","NORMAL","TANGENT"]){let f=e.attributes[d];f&&(i[d]=xi(f))}let s=xt(i,t,n),o={};for(let[d,f]of Object.entries(e.attributes))f&&(o[d]=f);for(let d of["POSITION","NORMAL","TANGENT"]){let f=s[d],h=o[d];f&&h&&(o[d]={...h,value:U3(h,f)})}let a=new G({id:e.id,topology:e.topology||"triangle-list",vertexCount:e.vertexCount,indices:e.indices,attributes:o,bufferLayout:e.bufferLayout}),u=Pe(a).attributes.geometry?.value,l=r._gpuGeometry?.attributes.geometry||r.bufferAttributes.geometry;if(u&&l){l.write(u);return}for(let d of["POSITION","NORMAL","TANGENT"]){let f=s[d];if(f){let h=d==="POSITION"?"positions":d==="NORMAL"?"normals":"TANGENT";r.bufferAttributes[h]?.write(f)}}}function U3(r,e){if(r.value instanceof Float32Array)return e;let t=r.value.slice(),n=ao(t),i=t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array;for(let s=0;s<e.length;s++){let o=e[s];t[s]=r.normalized&&n?Math.round(Math.max(i?-1:0,Math.min(1,o))*n):o}return t}function ao(r){return r instanceof Int8Array?127:r instanceof Uint8Array||r instanceof Uint8ClampedArray?255:r instanceof Int16Array?32767:r instanceof Uint16Array?65535:r instanceof Int32Array?2147483647:r instanceof Uint32Array?4294967295:0}function V3(r,e){for(let t=0;t<r.length;t+=e){let n=Math.hypot(r[t],r[t+1],r[t+2]);n>0&&(r[t]/=n,r[t+1]/=n,r[t+2]/=n)}}function br(r){let{joints:e,meshNode:t,worldMatrices:n,inverseBindMatrices:i,target:s}=r,o=e.length,a=s&&s.length===o*16?s:new Float32Array(o*16),c=t?n.get(t)||t.matrix:void 0,u=c?new R(c).invert():null;for(let l=0;l<o;l++){let d=e[l],f=n.get(d)||d.matrix,h=u?new R(u).multiplyRight(f):new R(f),p=l*16;if(i&&i.length>=p+16){let m=new R;for(let g=0;g<16;g++)m[g]=i[p+g];h.multiplyRight(m)}a.set(h,p)}return a}var $3=1,j3=1,vr=class{time=0;channels=new Map;animations=new Map;playing=!1;lastEngineTime=-1;constructor(){}addChannel(e){let{delay:t=0,duration:n=Number.POSITIVE_INFINITY,rate:i=1,repeat:s=1}=e,o=$3++,a={time:0,delay:t,duration:n,rate:i,repeat:s};return this._setChannelTime(a,this.time),this.channels.set(o,a),o}removeChannel(e){this.channels.delete(e);for(let[t,n]of this.animations)n.channel===e&&this.detachAnimation(t)}isFinished(e){let t=this.channels.get(e);return t===void 0?!1:this.time>=t.delay+t.duration*t.repeat}getTime(e){if(e===void 0)return this.time;let t=this.channels.get(e);return t===void 0?-1:t.time}setTime(e){this.time=Math.max(0,e);let t=this.channels.values();for(let i of t)this._setChannelTime(i,this.time);let n=this.animations.values();for(let i of n){let{animation:s,channel:o}=i;s.setTime(this.getTime(o))}}play(){this.playing=!0}pause(){this.playing=!1,this.lastEngineTime=-1}reset(){this.setTime(0)}attachAnimation(e,t){let n=j3++;return this.animations.set(n,{animation:e,channel:t}),e.setTime(this.getTime(t)),n}detachAnimation(e){this.animations.delete(e)}update(e){this.playing&&(this.lastEngineTime===-1&&(this.lastEngineTime=e),this.setTime(this.time+(e-this.lastEngineTime)),this.lastEngineTime=e)}_setChannelTime(e,t){let n=t-e.delay,i=e.duration*e.repeat;n>=i?e.time=e.duration*e.rate:(e.time=Math.max(0,n)%e.duration,e.time*=e.rate)}};var Tr=class{startIndex=-1;endIndex=-1;factor=0;times=[];values=[];_lastTime=-1;constructor(e){this.setKeyFrames(e),this.setTime(0)}setKeyFrames(e){let t=e.length;this.times.length=t,this.values.length=t;for(let n=0;n<t;++n)this.times[n]=e[n][0],this.values[n]=e[n][1];this._calculateKeys(this._lastTime)}setTime(e){e=Math.max(0,e),e!==this._lastTime&&(this._calculateKeys(e),this._lastTime=e)}getStartTime(){return this.times[this.startIndex]}getEndTime(){return this.times[this.endIndex]}getStartData(){return this.values[this.startIndex]}getEndData(){return this.values[this.endIndex]}_calculateKeys(e){let t=0,n=this.times.length;for(t=0;t<n-2&&!(this.times[t+1]>e);++t);this.startIndex=t,this.endIndex=t+1;let i=this.times[this.startIndex],s=this.times[this.endIndex];this.factor=Math.min(Math.max(0,(e-i)/(s-i)),1)}};var Sr=class{constructor(e){}async onInitialize(e){return null}};var uo=O(k(),1);function wr(r){let e=typeof window<"u"?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:null;return e?e.call(window,r):setTimeout(()=>r(typeof performance<"u"?performance.now():Date.now()),1e3/60)}function Ar(r){let e=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame:null;if(e){e.call(window,r);return}clearTimeout(r)}function bt(){let r;if(typeof window<"u"&&window.performance)r=window.performance.now();else if(typeof process<"u"&&process.hrtime){let e=process.hrtime();r=e[0]*1e3+e[1]/1e6}else r=Date.now();return r}var ne=class{constructor(e,t){this.sampleSize=1,this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this.name=e,this.type=t,this.reset()}reset(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}setSampleSize(e){return this.sampleSize=e,this}incrementCount(){return this.addCount(1),this}decrementCount(){return this.subtractCount(1),this}addCount(e){return this._count+=e,this._samples++,this._checkSampling(),this}subtractCount(e){return this._count-=e,this._samples++,this._checkSampling(),this}addTime(e){return this._time+=e,this.lastTiming=e,this._samples++,this._checkSampling(),this}timeStart(){return this._startTime=bt(),this._timerPending=!0,this}timeEnd(){return this._timerPending?(this.addTime(bt()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}getSampleAverageCount(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}getSampleAverageTime(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}getSampleHz(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}getAverageCount(){return this.samples>0?this.count/this.samples:0}getAverageTime(){return this.samples>0?this.time/this.samples:0}getHz(){return this.time>0?this.samples/(this.time/1e3):0}_checkSampling(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}};var Le=class{constructor(e){this.stats={},this.id=e.id,this.stats={},this._initializeStats(e.stats),Object.seal(this)}get(e,t="count"){return this._getOrCreate({name:e,type:t})}get size(){return Object.keys(this.stats).length}reset(){for(let e of Object.values(this.stats))e.reset();return this}forEach(e){for(let t of Object.values(this.stats))e(t)}getTable(){let e={};return this.forEach(t=>{e[t.name]={time:t.time||0,count:t.count||0,average:t.getAverageTime()||0,hz:t.getHz()||0}}),e}_initializeStats(e=[]){e.forEach(t=>this._getOrCreate(t))}_getOrCreate(e){let{name:t,type:n}=e,i=this.stats[t];return i||(e instanceof ne?i=e:i=new ne(t,n),this.stats[t]=i),i}};var W3=0,H3="Animation Loop",co={requestAnimationFrame:r=>wr(r),cancelAnimationFrame:r=>Ar(r)},Ee=class r{static defaultAnimationLoopProps={device:null,mobileQuality:void 0,onAddHTML:()=>"",onInitialize:async()=>null,onRender:()=>{},onFinalize:()=>{},onError:e=>{console.error(e)},stats:void 0,autoResizeViewport:!1,animationFrameProvider:co};device=null;canvas=null;props;animationProps=null;timeline=null;stats;sharedStats;cpuTime;gpuTime;frameRate;display;_needsRedraw="initialized";_initialized=!1;_running=!1;_animationFrameId=null;_nextFramePromise=null;_resolveNextFrame=null;_cpuStartTime=0;_error=null;_lastFrameTime=0;constructor(e){if(this.props={...r.defaultAnimationLoopProps,...e},e=this.props,!e.device)throw new Error("No device provided");this.stats=e.stats||new Le({id:`animation-loop-${W3++}`}),this.sharedStats=uo.luma.stats.get(H3),this.frameRate=this.stats.get("Frame Rate"),this.frameRate.setSampleSize(1),this.cpuTime=this.stats.get("CPU Time"),this.gpuTime=this.stats.get("GPU Time"),this.setProps({autoResizeViewport:e.autoResizeViewport,animationFrameProvider:e.animationFrameProvider}),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this._onMousemove=this._onMousemove.bind(this),this._onMouseleave=this._onMouseleave.bind(this)}destroy(){this.stop(),this._setDisplay(null),this._stopEventHandling(),this.device?._disableDebugGPUTime()}delete(){this.destroy()}reportError(e){this._error=e,this.props.onError(e),this.props.onError===r.defaultAnimationLoopProps.onError&&typeof window<"u"&&typeof ErrorEvent<"u"&&window.dispatchEvent(new ErrorEvent("error",{error:e,message:e.message}))}setNeedsRedraw(e){return this._needsRedraw=this._needsRedraw||e,this}needsRedraw(){let e=this._needsRedraw;return this._needsRedraw=!1,e}setProps(e){if("autoResizeViewport"in e&&(this.props.autoResizeViewport=e.autoResizeViewport||!1),"animationFrameProvider"in e){let t=e.animationFrameProvider||co;if(t!==this.props.animationFrameProvider){let n=this._animationFrameId!==null;n&&this._cancelAnimationFrame(),this.props.animationFrameProvider=t,n&&this._requestAnimationFrame()}}return this}async start(){if(this._running)return this;this._running=!0;try{let e;if(!this._initialized){if(this._initialized=!0,await this._initDevice(),this._initialize(),!this._running)return null;await this.props.onInitialize(this._getAnimationProps())}return this._running?(e!==!1&&(this._cancelAnimationFrame(),this._requestAnimationFrame()),this):null}catch(e){let t=e instanceof Error?e:new Error("Unknown error");throw this.props.onError(t),t}}stop(){if(this._running){let e=this.animationProps;this._cancelAnimationFrame(),this._nextFramePromise=null,this._resolveNextFrame=null,this._running=!1,this._lastFrameTime=0,e&&this.props.onFinalize(e)}return this}redraw(e,t=null){return this.device?.isLost||this._error?this:(this._beginFrameTimers(e),this._setupFrame(),this.animationProps&&(this.animationProps.animationFrame=t),this._updateAnimationProps(),this._renderFrame(this._getAnimationProps()),this._clearNeedsRedraw(),this._resolveNextFrame&&(this._resolveNextFrame(this),this._nextFramePromise=null,this._resolveNextFrame=null),this._endFrameTimers(),this)}attachTimeline(e){return this.timeline=e,this.timeline}detachTimeline(){this.timeline=null}waitForRender(){return this.setNeedsRedraw("waitForRender"),this._nextFramePromise||(this._nextFramePromise=new Promise(e=>{this._resolveNextFrame=e})),this._nextFramePromise}async toDataURL(){if(this.setNeedsRedraw("toDataURL"),await this.waitForRender(),this.canvas instanceof HTMLCanvasElement)return this.canvas.toDataURL();throw new Error("OffscreenCanvas")}_initialize(){this._startEventHandling(),this._initializeAnimationProps(),this._updateAnimationProps(),this._resizeViewport(),this.device?._enableDebugGPUTime()}_setDisplay(e){this.display&&(this.display.destroy(),this.display.animationLoop=null),e&&(e.animationLoop=this),this.display=e}_requestAnimationFrame(){this._running&&(this._animationFrameId=this.props.animationFrameProvider.requestAnimationFrame(this._animationFrame.bind(this)))}_cancelAnimationFrame(){this._animationFrameId!==null&&(this.props.animationFrameProvider.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null)}_animationFrame(e,t){if(this._running)try{this.redraw(e,t??null),this._requestAnimationFrame()}catch(n){let i=n instanceof Error?n:new Error(String(n));this.reportError(i),this.stop()}}_renderFrame(e){if(this.display){this.display._renderFrame(e);return}let t=this.props.onRender(this._getAnimationProps());this.device&&t!==!1&&this.device.submit()}_clearNeedsRedraw(){this._needsRedraw=!1}_setupFrame(){this._resizeViewport()}_initializeAnimationProps(){let e=this.device?.getDefaultCanvasContext();if(!this.device||!e)throw new Error("loop");let t=e?.canvas,n=e.props.useDevicePixels;this.animationProps={animationLoop:this,device:this.device,canvasContext:e,canvas:t,useDevicePixels:n,timeline:this.timeline,needsRedraw:!1,width:1,height:1,aspect:1,time:0,startTime:Date.now(),engineTime:0,tick:0,tock:0,animationFrame:null,_mousePosition:null,mobileQuality:this.props.mobileQuality}}_getAnimationProps(){if(!this.animationProps)throw new Error("animationProps");return this.animationProps}_updateAnimationProps(){if(!this.animationProps)return;let{width:e,height:t,aspect:n}=this._getSizeAndAspect();(e!==this.animationProps.width||t!==this.animationProps.height)&&this.setNeedsRedraw("drawing buffer resized"),n!==this.animationProps.aspect&&this.setNeedsRedraw("drawing buffer aspect changed"),this.animationProps.width=e,this.animationProps.height=t,this.animationProps.aspect=n,this.animationProps.needsRedraw=this._needsRedraw,this.animationProps.engineTime=Date.now()-this.animationProps.startTime,this.timeline&&this.timeline.update(this.animationProps.engineTime),this.animationProps.tick=Math.floor(this.animationProps.time/1e3*60),this.animationProps.tock++,this.animationProps.time=this.timeline?this.timeline.getTime():this.animationProps.engineTime}async _initDevice(){if(this.device=await this.props.device,!this.device)throw new Error("No device provided");this.canvas=this.device.getDefaultCanvasContext().canvas||null}_createInfoDiv(){if(this.canvas&&this.props.onAddHTML){let e=document.createElement("div");document.body.appendChild(e),e.style.position="relative";let t=document.createElement("div");t.style.position="absolute",t.style.left="10px",t.style.bottom="10px",t.style.width="300px",t.style.background="white",this.canvas instanceof HTMLCanvasElement&&e.appendChild(this.canvas),e.appendChild(t);let n=this.props.onAddHTML(t);n&&(t.innerHTML=n)}}_getSizeAndAspect(){if(!this.device)return{width:1,height:1,aspect:1};let[e,t]=this.device.getDefaultCanvasContext().getDrawingBufferSize(),n=e>0&&t>0?e/t:1;return{width:e,height:t,aspect:n}}_resizeViewport(){this.props.autoResizeViewport&&this.device.gl&&this.device.gl.viewport(0,0,this.device.gl.drawingBufferWidth,this.device.gl.drawingBufferHeight)}_beginFrameTimers(e){let t=e??(typeof performance<"u"?performance.now():Date.now());if(this._lastFrameTime){let n=t-this._lastFrameTime;n>0&&this.frameRate.addTime(n)}this._lastFrameTime=t,this.device?._isDebugGPUTimeEnabled()&&this._consumeEncodedGpuTime(),this.cpuTime.timeStart()}_endFrameTimers(){this.device?._isDebugGPUTimeEnabled()&&this._consumeEncodedGpuTime(),this.cpuTime.timeEnd(),this._updateSharedStats()}_consumeEncodedGpuTime(){if(!this.device)return;let e=this.device.commandEncoder._gpuTimeMs;e!==void 0&&(this.gpuTime.addTime(e),this.device.commandEncoder._gpuTimeMs=void 0)}_updateSharedStats(){if(this.stats!==this.sharedStats){for(let e of Object.keys(this.sharedStats.stats))this.stats.stats[e]||delete this.sharedStats.stats[e];this.stats.forEach(e=>{let t=this.sharedStats.get(e.name,e.type);t.sampleSize=e.sampleSize,t.time=e.time,t.count=e.count,t.samples=e.samples,t.lastTiming=e.lastTiming,t.lastSampleTime=e.lastSampleTime,t.lastSampleCount=e.lastSampleCount,t._count=e._count,t._time=e._time,t._samples=e._samples,t._startTime=e._startTime,t._timerPending=e._timerPending})}}_startEventHandling(){this.canvas&&(this.canvas.addEventListener("mousemove",this._onMousemove),this.canvas.addEventListener("mouseleave",this._onMouseleave))}_stopEventHandling(){this.canvas?.removeEventListener("mousemove",this._onMousemove),this.canvas?.removeEventListener("mouseleave",this._onMouseleave)}_onMousemove(e){e instanceof MouseEvent&&(this._getAnimationProps()._mousePosition=[e.offsetX,e.offsetY])}_onMouseleave(e){this._getAnimationProps()._mousePosition=null}};var lo=O(k(),1);function fo(r,e){let t=null,n=e?.device||lo.luma.createDevice({id:"animation-loop",adapters:e?.adapters,createCanvasContext:!0}),i=new Ee({...e,device:n,async onInitialize(o){X3(o.animationLoop.device);try{return t=new r(o),await t?.onInitialize(o)}catch(a){console.error(a),t=null;let c=a instanceof Error?a:new Error(String(a));return q3(o.animationLoop.device,c),o.animationLoop.reportError(c),o.animationLoop.stop(),null}},onRender(o){let a=t?.onRender(o),c=e?.onAfterRender?.(o,t);return e?.onAfterRender?a!==!1||c!==!1:a},onFinalize(o){try{t?.onFinalize(o)}finally{t=null}}}),s=i;return s.getAnimationLoopTemplate=()=>t,i.getInfo=()=>this.AnimationLoopTemplateCtor.info,s}function q3(r,e){if(!r)return;let t=r.getDefaultCanvasContext().canvas;if(t instanceof HTMLCanvasElement){t.style.overflow="visible";let n=document.getElementById("animation-loop-error");n?.remove(),n=document.createElement("h1"),n.id="animation-loop-error",n.innerHTML=e.message,n.style.position="absolute",n.style.top="10px",n.style.left="10px",n.style.color="black",n.style.backgroundColor="red",t.parentElement?.appendChild(n)}}function X3(r){if(!r)return;let e=document.getElementById("animation-loop-error");e&&e.remove()}var Y3={target:[0,0,0],distance:10,yaw:0,pitch:.25,roll:0,minDistance:1,maxDistance:100,minPitch:-Math.PI/2+.01,maxPitch:Math.PI/2-.01,rotateSpeed:.006,zoomSpeed:.001,enabled:!0,enableRotate:!1,enableZoom:!0,enablePan:!1,panModifier:"shift",panSpeed:.0018,autoRotate:!1,autoRotateSpeed:.1},_r=class{canvas;props;yaw;pitch;roll;distance;dragging=!1;activePointers=new Map;lastPointer=[0,0];previousPinchDistance=null;previousPinchAngle=null;previousTimeMilliseconds=null;previousCursor;previousTouchAction;constructor(e,t={}){this.canvas=e,this.props={...Y3,...t},this.props.target=[...this.props.target],this.yaw=this.props.yaw,this.pitch=T0(this.props.pitch,this.props.minPitch,this.props.maxPitch),this.roll=this.props.roll,this.distance=T0(this.props.distance,this.props.minDistance,this.props.maxDistance),this.previousCursor=e.style.cursor,this.previousTouchAction=e.style.touchAction,e.style.cursor="grab",e.style.touchAction="none",e.addEventListener("pointerdown",this.handlePointerDown),e.addEventListener("pointermove",this.handlePointerMove),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("pointercancel",this.handlePointerUp),e.addEventListener("wheel",this.handleWheel,{passive:!1})}update(e){if(this.previousTimeMilliseconds!==null&&this.props.enabled&&this.props.autoRotate&&!this.dragging){let t=Math.min(Math.max(e-this.previousTimeMilliseconds,0)/1e3,.1);this.yaw+=this.props.autoRotateSpeed*t}this.previousTimeMilliseconds=e}getEyePosition(){let e=this.distance*Math.cos(this.pitch);return[this.props.target[0]+e*Math.sin(this.yaw),this.props.target[1]+this.distance*Math.sin(this.pitch),this.props.target[2]+e*Math.cos(this.yaw)]}getUpDirection(){return this.getCameraFrame().up}getCameraFrame(){let e=Math.sin(this.yaw),t=Math.cos(this.yaw),n=Math.sin(this.pitch),i=Math.cos(this.pitch),s=Math.sin(this.roll),o=Math.cos(this.roll),a=[t,0,-e],c=[-n*e,i,-n*t];return{right:[a[0]*o-c[0]*s,a[1]*o-c[1]*s,a[2]*o-c[2]*s],up:[c[0]*o+a[0]*s,c[1]*o+a[1]*s,c[2]*o+a[2]*s]}}setAutoRotate(e){this.props.autoRotate=e}setProps(e){Object.assign(this.props,e),e.enabled===!1&&this.dragging&&this.endPointerInteraction(),e.target&&(this.props.target=[...e.target]),e.yaw!==void 0&&(this.yaw=e.yaw),(e.pitch!==void 0||e.minPitch!==void 0||e.maxPitch!==void 0)&&(this.pitch=T0(e.pitch??this.pitch,this.props.minPitch,this.props.maxPitch)),e.roll!==void 0&&(this.roll=e.roll),(e.distance!==void 0||e.minDistance!==void 0||e.maxDistance!==void 0)&&(this.distance=T0(e.distance??this.distance,this.props.minDistance,this.props.maxDistance))}reset(){this.yaw=this.props.yaw,this.pitch=T0(this.props.pitch,this.props.minPitch,this.props.maxPitch),this.roll=this.props.roll,this.distance=T0(this.props.distance,this.props.minDistance,this.props.maxDistance)}destroy(){this.canvas.removeEventListener("pointerdown",this.handlePointerDown),this.canvas.removeEventListener("pointermove",this.handlePointerMove),this.canvas.removeEventListener("pointerup",this.handlePointerUp),this.canvas.removeEventListener("pointercancel",this.handlePointerUp),this.canvas.removeEventListener("wheel",this.handleWheel),this.endPointerInteraction(),this.canvas.style.cursor=this.previousCursor,this.canvas.style.touchAction=this.previousTouchAction}handlePointerDown=e=>{if(!(!this.props.enabled||e.button!==0||this.activePointers.has(e.pointerId)||this.activePointers.size>=2||this.activePointers.size>0&&e.pointerType!=="touch")){if(this.activePointers.size===0&&this.props.onInteractionStart?.(),this.dragging=!0,this.activePointers.set(e.pointerId,[e.clientX,e.clientY]),this.activePointers.size===1)this.lastPointer=[e.clientX,e.clientY];else{let{center:t,distance:n,angle:i}=this.getMultiPointerState();this.lastPointer=t,this.previousPinchDistance=n,this.previousPinchAngle=n>0?i:null}this.canvas.setPointerCapture(e.pointerId),this.canvas.style.cursor="grabbing"}};handlePointerMove=e=>{if(!this.props.enabled||!this.dragging||!this.activePointers.has(e.pointerId))return;if(this.activePointers.set(e.pointerId,[e.clientX,e.clientY]),this.activePointers.size>1){let{center:i,distance:s,angle:o}=this.getMultiPointerState();this.props.enablePan&&this.panTarget(i[0]-this.lastPointer[0],i[1]-this.lastPointer[1]),this.props.enableZoom&&this.previousPinchDistance&&s>0&&(this.distance=T0(this.distance*this.previousPinchDistance/s,this.props.minDistance,this.props.maxDistance)),this.props.enableRotate&&this.previousPinchAngle!==null&&s>0&&(this.roll+=K3(o-this.previousPinchAngle)),this.lastPointer=i,this.previousPinchDistance=s,this.previousPinchAngle=s>0?o:null;return}let t=e.clientX-this.lastPointer[0],n=e.clientY-this.lastPointer[1];this.lastPointer=[e.clientX,e.clientY],this.props.enablePan&&e[`${this.props.panModifier}Key`]?this.panTarget(t,n):(this.yaw-=t*this.props.rotateSpeed,this.pitch=T0(this.pitch-n*(this.props.pitchSpeed??this.props.rotateSpeed),this.props.minPitch,this.props.maxPitch))};handlePointerUp=e=>{if(!this.activePointers.has(e.pointerId))return;this.canvas.hasPointerCapture(e.pointerId)&&this.canvas.releasePointerCapture(e.pointerId),this.activePointers.delete(e.pointerId),this.previousPinchDistance=null,this.previousPinchAngle=null;let t=this.activePointers.entries().next().value;if(t){this.lastPointer=t[1];return}this.endPointerInteraction()};endPointerInteraction(){this.dragging=!1;for(let e of this.activePointers.keys())this.canvas.hasPointerCapture(e)&&this.canvas.releasePointerCapture(e);this.activePointers.clear(),this.previousPinchDistance=null,this.previousPinchAngle=null,this.canvas.style.cursor="grab"}getMultiPointerState(){let[e,t]=this.activePointers.values(),n=t[0]-e[0],i=t[1]-e[1];return{center:[(e[0]+t[0])/2,(e[1]+t[1])/2],distance:Math.hypot(n,i),angle:Math.atan2(i,n)}}panTarget(e,t){let n=this.distance*this.props.panSpeed,{right:i,up:s}=this.getCameraFrame();this.props.target=[this.props.target[0]+(-i[0]*e+s[0]*t)*n,this.props.target[1]+(-i[1]*e+s[1]*t)*n,this.props.target[2]+(-i[2]*e+s[2]*t)*n]}handleWheel=e=>{if(!this.props.enabled||!this.props.enableZoom)return;e.preventDefault(),this.props.onInteractionStart?.();let t=T0(e.deltaY,-240,240);this.distance=T0(this.distance*Math.exp(t*this.props.zoomSpeed),this.props.minDistance,this.props.maxDistance)}};function T0(r,e,t){return Math.min(Math.max(r,e),t)}function K3(r){return Math.atan2(Math.sin(r),Math.cos(r))}var P=O(k(),1),un=O(S0(),1);function r0(r,e){if(!r){let t=new Error(e||"shaders: assertion failed.");throw Error.captureStackTrace?.(t,r0),t}}var bi={number:{type:"number",validate(r,e){return Number.isFinite(r)&&typeof e=="object"&&(e.max===void 0||r<=e.max)&&(e.min===void 0||r>=e.min)}},array:{type:"array",validate(r,e){return Array.isArray(r)||ArrayBuffer.isView(r)}}};function mo(r){let e={};for(let[t,n]of Object.entries(r))e[t]=Z3(n);return e}function Z3(r){let e=po(r);if(e!=="object")return{value:r,...bi[e],type:e};if(typeof r=="object")return r?r.type!==void 0?{...r,...bi[r.type],type:r.type}:r.value===void 0?{type:"object",value:r}:(e=po(r.value),{...r,...bi[e],type:e}):{type:"object",value:null};throw new Error("props")}function po(r){return Array.isArray(r)||ArrayBuffer.isView(r)?"array":typeof r}function vt(r){r.map(e=>Q3(e))}function Q3(r){if(r.instance)return;vt(r.dependencies||[]);let{propTypes:e={},deprecations:t=[]}=r,n={parsedDeprecations:J3(t),normalizedInjections:{vertex:{},fragment:{}}};e&&(n.propValidators=mo(e)),r.instance=n;let i={};e&&(i=Object.entries(e).reduce((s,[o,a])=>{let c=a?.value;return c&&(s[o]=c),s},{})),r.defaultUniforms={...r.defaultUniforms,...i}}function Mr(r,e,t){r.deprecations?.forEach(n=>{n.regex?.test(e)&&(n.deprecated?t.deprecated(n.old,n.new)():t.removed(n.old,n.new)())})}function J3(r){return r.forEach(e=>{e.type==="function"?e.regex=new RegExp(`\\b${e.old}\\(`):e.regex=new RegExp(`${e.type} ${e.old};`)}),r}function ie(r){let e=new Set,t=new Set,n=[],i=new Map;function s(c){let u=i.get(c.name);if(u&&u!==c)throw new Error(`Shader module name collision: Multiple different module objects share the name "${c.name}". Each module object must have a unique name.`);i.set(c.name,c)}function o(c,u){if(t.has(c)){let d=[...u,c.name].join(" -> ");throw new Error(`Shader module dependency cycle detected: ${d}`)}if(e.has(c))return;s(c),t.add(c);let l=[...u,c.name];if(c.dependencies)for(let d of c.dependencies)o(d,l);t.delete(c),e.add(c),n.push(c)}for(let c of r)o(c,[]);let a=new Set;for(let c of n)c.implements!==void 0&&(r0(!a.has(c.implements)),a.add(c.implements));return vt(n),n}var Re=class{_shaderTranspilers=new Map;_hookFunctions=[];_defaultModules=[];addShaderTranspiler(e){this._shaderTranspilers.set(e.sourceLanguage,e)}removeShaderTranspiler(e){this._shaderTranspilers.delete(e)}_transpileShader(e,t,n,i){let s=e.sourceLanguage||this.shaderLanguage;if(s===this.shaderLanguage)return r0(!ie(t).some(f=>f.sourceLanguage&&f.sourceLanguage!==this.shaderLanguage)),{code:n||"",modules:t};let o=this._shaderTranspilers.get(s);r0(o);let a=ie(t);r0(!a.some(f=>f.sourceLanguage&&f.sourceLanguage!==s&&f.sourceLanguage!==this.shaderLanguage));let c=a.filter(f=>f.sourceLanguage===s).map(f=>f.source||"").join(`
|
|
7
|
+
"use strict";var __exports__=(()=>{var _a=Object.create;var Jt=Object.defineProperty;var Ma=Object.getOwnPropertyDescriptor;var Ea=Object.getOwnPropertyNames;var Pa=Object.getPrototypeOf,La=Object.prototype.hasOwnProperty;var rs=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},Ra=(r,e)=>{for(var t in e)Jt(r,t,{get:e[t],enumerable:!0})},Qt=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ea(e))!La.call(r,i)&&i!==t&&Jt(r,i,{get:()=>e[i],enumerable:!(n=Ma(e,i))||n.enumerable});return r},er=(r,e,t)=>(Qt(r,e,"default"),t&&Qt(t,e,"default")),D=(r,e,t)=>(t=r!=null?_a(Pa(r)):{},Qt(e||!r||!r.__esModule?Jt(t,"default",{value:r,enumerable:!0}):t,r)),Ca=r=>Qt(Jt({},"__esModule",{value:!0}),r);var k=rs((u7,ns)=>{ns.exports=globalThis.luma});var b0=rs((Hu,wo)=>{wo.exports=globalThis.luma});var Yt={};Ra(Yt,{AnimationAction:()=>ft,AnimationClip:()=>ir,AnimationClipController:()=>ge,AnimationLoop:()=>Pe,AnimationLoopTemplate:()=>Sr,AnimationMixer:()=>be,AnimationTrack:()=>nr,Animator:()=>ye,AreaLightController:()=>Kn,AsyncTexture:()=>a7,AudioController:()=>ei,AudioGraph:()=>ut,AudioReverbBus:()=>lt,BackgroundTextureModel:()=>Je,BillboardController:()=>Xn,BufferTransform:()=>gn,ClipSpace:()=>K0,Computation:()=>st,ConeGeometry:()=>Z0,CubeGeometry:()=>bn,CylinderGeometry:()=>Tn,DirectionalLightModel:()=>_n,DynamicBuffer:()=>$,DynamicTexture:()=>c0,GPUGeometry:()=>Xe,GPUVectorGeometry:()=>m0,GPUVectorModel:()=>p0,Geometry:()=>z,GeometryNode:()=>Dn,GroupNode:()=>u0,IcoSphereGeometry:()=>vn,Interactivity:()=>Zn,JointController:()=>ni,KeyFrames:()=>Tr,LegacyPickingManager:()=>ti,Material:()=>Ze,MaterialFactory:()=>Ye,MaterialVariants:()=>qn,MixerAnimationClip:()=>oi,Model:()=>Y0,ModelNode:()=>rt,OrbitControls:()=>Ar,PickingManager:()=>Vn,PlaneGeometry:()=>Sn,PointLightModel:()=>In,PunctualLightController:()=>Yn,RingGeometry:()=>ri,SceneMetadata:()=>Pn,ScenegraphAnimator:()=>si,ScenegraphInteractionManager:()=>En,ScenegraphNode:()=>T0,ShaderInputs:()=>e0,ShaderPassRenderer:()=>$n,SkinController:()=>Wn,SphereGeometry:()=>et,SpotLightModel:()=>An,Swap:()=>nt,SwapBuffers:()=>Gn,SwapFramebuffers:()=>it,TextureTransform:()=>yn,Timeline:()=>vr,TorusGeometry:()=>xn,TruncatedConeGeometry:()=>tt,VideoTexture:()=>Fn,_resolveLoadFileUrl:()=>kn,applyMorphTargets:()=>bt,cancelAnimationFramePolyfill:()=>Ir,colorPicking:()=>Wt,createAreaLightLTCTextures:()=>Aa,createParametricAudioResponse:()=>Jn,createSkinJointPaletteResource:()=>ea,decodeMorphTargetAttribute:()=>Mi,decomposePhysicsTransform:()=>Xt,deformPositions:()=>Ta,evaluateAnimationSampler:()=>tr,getFirstScenegraphInteractionHit:()=>Mn,getGPUVectorModelBatches:()=>U0,getIndexPickingModule:()=>J2,getPlatformInfo:()=>ce,getTextureTransformDeltaMatrix:()=>ci,getTextureTransformMatrix:()=>ai,indexColorPicking:()=>jn,indexPicking:()=>qt,isScenegraphInteractionEnabled:()=>G1,legacyColorPicking:()=>ua,loadImage:()=>O2,loadImageBitmap:()=>D2,makeAdapterAnimationBinding:()=>va,makeAnimationLoop:()=>So,makeEdgeGeometry:()=>z1,makeEdgeGeometryFromGeometries:()=>w2,makeGPUVectorGeometry:()=>c2,makeInterleavedGeometry:()=>Me,makeMaterialAnimationBinding:()=>ya,makeNodeAnimationBinding:()=>ga,makePropertyAnimationBinding:()=>ba,makeRandomGenerator:()=>L2,makeStrokeGeometry:()=>A2,makeTextureTransformAnimationBinding:()=>xa,picking:()=>Q2,publishedTransforms:()=>pa,readPhysicsRotation:()=>fa,readPhysicsVector:()=>da,requestAnimationFramePolyfill:()=>wr,resolvePickingBackend:()=>Z2,resolvePickingMode:()=>Un,selectAudioEnvironmentZone:()=>Ht,setMorphWeights:()=>ii,setPathPrefix:()=>B2,simplifyMesh:()=>P2,supportsIndexPicking:()=>jt,transformPhysicsVector:()=>ha,updateMorphTargetBuffers:()=>xr,updateSkinJointMatrices:()=>br,validateGPUVectorBatchStructure:()=>C0});er(Yt,D(k(),1));var is=D(k(),1),ge=class{name;playing=!0;speed=1;startTime=0;constructor(e={}){this.name=e.name||"unnamed",Object.assign(this,e)}setTime(e){if(!this.playing)return;let n=(e/1e3-this.startTime)*this.speed;this.applyTime(n)}},ye=class{clips;animations;constructor(e){this.clips=e,this.animations=e}animate(e){is.log.warn(`${this.constructor.name}#animate is deprecated. Use ${this.constructor.name}#setTime instead`)(),this.setTime(e)}setTime(e){this.clips.forEach(t=>t.setTime(e))}getAnimations(){return this.clips}};function tr(r,e,t="vector"){let{input:n,output:i,interpolation:s="LINEAR"}=e;if(!n.length||!i.length||!Number.isFinite(r))return null;let o=n.length-1;if(r<=n[0]||o===0)return ui(i,s,0,t);if(r>=n[o])return ui(i,s,o,t);let a=0,c=o;for(;c-a>1;){let h=Math.floor((a+c)/2);n[h]<=r?a=h:c=h}let u=n[a],d=n[c]-u;if(d<=0||s==="STEP")return ui(i,s,a,t);let f=(r-u)/d;switch(s){case"LINEAR":{let h=i[a],p=i[c];return!h||!p?null:t==="quaternion"?rr(h,p,f):Ba(h,p,f)}case"CUBICSPLINE":{let h=i[a*3+1],p=i[a*3+2],m=i[c*3],g=i[c*3+1];if(!h||!p||!m||!g)return null;let b=Da(h,p,m,g,d,f);return t==="quaternion"?xe(b):b}default:return null}}function rr(r,e,t){let n=xe(r),i=xe(e),s=n.reduce((d,f,h)=>d+f*i[h],0),o=s<0?-1:1;if(s=Math.min(Math.abs(s),1),s>.9995)return xe(n.map((d,f)=>d+t*(i[f]*o-d)));let a=Math.acos(s),c=Math.sin(a),u=Math.sin((1-t)*a)/c,l=Math.sin(t*a)/c*o;return xe(n.map((d,f)=>d*u+i[f]*l))}function ui(r,e,t,n){let i=r[e==="CUBICSPLINE"?t*3+1:t];return i?n==="quaternion"?xe(i):[...i]:null}function Ba(r,e,t){return r.map((n,i)=>(1-t)*n+t*e[i])}function Da(r,e,t,n,i,s){let o=s*s,a=o*s;return r.map((c,u)=>(2*a-3*o+1)*c+(a-2*o+s)*e[u]*i+(-2*a+3*o)*n[u]+(a-o)*t[u]*i)}function xe(r){let e=Math.hypot(...r);return e>0?r.map(t=>t/e):[0,0,0,1]}var nr=class{name;times;values;interpolation;valueType;binding;constructor(e){this.name=e.name||e.binding.id||"unnamed",this.times=e.times,this.values=e.values,this.interpolation=e.interpolation||"LINEAR",this.valueType=e.valueType||"vector",this.binding=e.binding}get duration(){return this.times[this.times.length-1]||0}get sampler(){return{input:this.times,output:this.values,interpolation:this.interpolation}}evaluate(e){return tr(e,this.sampler,this.valueType)}};var ir=class{name;tracks;duration;constructor(e){this.name=e.name||"unnamed",this.tracks=e.tracks,this.duration=e.duration??Math.max(0,...e.tracks.map(t=>t.duration))}};var ft=class{clip;mixer;time=0;timeScale;weight;loop;repetitions;paused=!1;playing=!1;elapsedTime=0;fade=null;constructor(e,t,n={}){this.mixer=e,this.clip=t,this.loop=n.loop||"repeat",this.repetitions=n.repetitions??Number.POSITIVE_INFINITY,this.timeScale=n.timeScale??1,this.weight=n.weight??1}play(){return this.playing=!0,this.paused=!1,this}pause(){return this.paused=!0,this}resume(){return this.playing=!0,this.paused=!1,this}stop(){return this.playing=!1,this.paused=!1,this.fade=null,this.reset()}reset(){return this.elapsedTime=0,this.time=0,this}setTime(e){return this.elapsedTime=e,this.time=this.resolveLocalTime(e),this}setLoop(e,t=Number.POSITIVE_INFINITY){return this.loop=e,this.repetitions=t,this.time=this.resolveLocalTime(this.elapsedTime),this}setEffectiveWeight(e){return this.weight=Math.max(0,e),this.fade=null,this}setEffectiveTimeScale(e){return this.timeScale=e,this}fadeIn(e){return this.scheduleFade(1,e)}fadeOut(e){return this.scheduleFade(0,e)}crossFadeTo(e,t){return e.weight=0,e.play().fadeIn(t),this.fadeOut(t)}crossFadeFrom(e,t){return e.crossFadeTo(this,t),this}advance(e){!this.playing||this.paused||(this.advanceFade(Math.abs(e)),this.elapsedTime+=e*this.timeScale,this.time=this.resolveLocalTime(this.elapsedTime),this.hasFinished()&&(this.playing=!1))}get shouldApply(){return(this.playing||this.hasFinished())&&this.weight>0}scheduleFade(e,t){return t<=0?(this.weight=e,this.fade=null,this):(this.fade={duration:t,elapsedTime:0,startWeight:this.weight,endWeight:e},this)}advanceFade(e){if(!this.fade)return;this.fade.elapsedTime+=e;let t=Math.min(this.fade.elapsedTime/this.fade.duration,1);this.weight=this.fade.startWeight+(this.fade.endWeight-this.fade.startWeight)*t,t===1&&(this.fade=null)}hasFinished(){let e=this.clip.duration;return e<=0?this.loop==="once":this.loop==="once"?this.elapsedTime>=e||this.elapsedTime<0:Number.isFinite(this.repetitions)&&Math.abs(this.elapsedTime)>=e*this.repetitions}resolveLocalTime(e){let t=this.clip.duration;if(t<=0)return 0;if(this.loop==="once")return Math.min(Math.max(e,0),t);if(Number.isFinite(this.repetitions)&&Math.abs(e)>=t*this.repetitions)return this.loop==="ping-pong"&&this.repetitions%2===0||e<0?0:t;let n=e>=0&&e<t?e:(e%t+t)%t;if(this.loop==="repeat")return n;let i=Math.floor(e/t);return Math.abs(i%2)===0?n:t-n}},be=class{time=0;timeScale=1;clips=new Map;actions=new Map;initialValues=new Map;constructor(e=[]){e.forEach(t=>this.addClip(t))}addClip(e){return this.clips.set(e.name,e),this}clipAction(e,t){let n=typeof e=="string"?this.clips.get(e):e;if(!n)throw new Error(`Unknown animation clip: ${e}`);this.addClip(n);let i=this.actions.get(n);return i||(i=new ft(this,n,t),this.actions.set(n,i)),i}getAction(e){let t=this.clips.get(e);return t?this.actions.get(t):void 0}update(e){return this.advance(e),this.applyValues(),this}advance(e){let t=e*this.timeScale;return this.time+=t,this.actions.forEach(n=>n.advance(t)),this}setTime(e){return this.time=e,this.actions.forEach(t=>{t.paused||t.setTime(e*t.timeScale)}),this.applyValues(),this}stopAllAction(){return this.actions.forEach(e=>e.stop()),this}applyValues(){let e=new Map;this.actions.forEach(t=>{!t.shouldApply&&!(t.playing&&t.weight===0)||t.clip.tracks.forEach(n=>{let i=n.evaluate(t.time);if(!i)return;let s=n.binding.id||n.binding;if(!this.initialValues.has(s)){let u=n.binding.getValue?.();u&&this.initialValues.set(s,[...u])}if(t.weight===0&&!this.initialValues.has(s))return;let o=e.get(s);if(!o){e.set(s,{binding:n.binding,value:[...i],valueType:n.valueType,weight:t.weight});return}if(t.weight===0)return;let a=o.weight+t.weight,c=t.weight/a;o.value=n.valueType==="quaternion"?rr(o.value,i,c):o.value.map((u,l)=>u+(i[l]-u)*c),o.weight=a})}),e.forEach(({binding:t,value:n,valueType:i,weight:s},o)=>{let a=s<1?this.initialValues.get(o):void 0;a&&a.length===n.length&&(n=i==="quaternion"?rr(a,n,s):n.map((c,u)=>a[u]+(c-a[u])*s)),t.setValue(n)})}};var Oa=0,W=class{constructor(e){this.userData={},this.id=e.id||`geometry-${++Oa}`,this.topology=e.topology,this.attributes={};let t=e.indices?ss(e.indices):void 0;for(let[n,i]of Object.entries(e.attributes||{})){let s=ss(i);if((n==="POSITION"||n==="positions")&&(s.size||(s.size=3)),n==="indices"){if(t)throw new Error("Geometry has multiple index attributes");t=s}else this.attributes[n]=s}if(t){if(!(t.value instanceof Uint16Array||t.value instanceof Uint32Array))throw new Error("Geometry indices must be a Uint16Array or Uint32Array");t.size=1,this.indices=t,Na(t,this.attributes)}if(this.vertexCount=e.vertexCount??ka(this.attributes,this.indices),!Number.isInteger(this.vertexCount)||this.vertexCount<0)throw new Error("Geometry vertexCount must be a non-negative integer")}getVertexCount(){return this.vertexCount}getAttributes(){return this.indices?{indices:this.indices,...this.attributes}:this.attributes}};function ss(r){let e=os(r)?{value:r}:{...r};if(!os(e.value))throw new Error("Geometry attributes must contain a typed-array value");if(e.size!==void 0&&(!Number.isInteger(e.size)||e.size<1))throw new Error("Geometry attribute size must be a positive integer");if(e.size&&e.value.length%e.size!==0)throw new Error("Geometry attribute length must be divisible by its size");return e}function os(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function Na(r,e){let t=-1;for(let n of r.value)t=Math.max(t,Number(n));for(let[n,i]of Object.entries(e))if(!i.constant&&i.size){let s=i.value.length/i.size;if(t>=s)throw new Error(`Geometry index ${t} exceeds ${n} vertex count ${s}`)}}function ka(r,e){if(e)return e.value.length;let t=1/0;for(let n of Object.values(r))!n.constant&&n.size&&(t=Math.min(t,n.value.length/n.size));if(!Number.isFinite(t))throw new Error("Geometry has no countable attributes");return t}var x7=1/Math.PI*180,b7=1/180*Math.PI,Fa={EPSILON:1e-12,debug:!1,precision:4,printTypes:!1,printDegrees:!1,printRowMajor:!0,_cartographicRadians:!1};globalThis.mathgl=globalThis.mathgl||{config:{...Fa}};var Y=globalThis.mathgl.config;function as(r,{precision:e=Y.precision}={}){return r=Ga(r),`${parseFloat(r.toPrecision(e))}`}function ve(r){return Array.isArray(r)||ArrayBuffer.isView(r)&&!(r instanceof DataView)}function li(r,e,t){let n=Y.EPSILON;t&&(Y.EPSILON=t);try{if(r===e)return!0;if(ve(r)&&ve(e)){if(r.length!==e.length)return!1;for(let i=0;i<r.length;++i)if(!li(r[i],e[i]))return!1;return!0}return r&&r.equals?r.equals(e):e&&e.equals?e.equals(r):typeof r=="number"&&typeof e=="number"?Math.abs(r-e)<=Y.EPSILON*Math.max(1,Math.abs(r),Math.abs(e)):!1}finally{Y.EPSILON=n}}function Ga(r){return Math.round(r/Y.EPSILON)*Y.EPSILON}var z0=class extends Array{clone(){return new this.constructor().copy(this)}fromArray(e,t=0){for(let n=0;n<this.ELEMENTS;++n)this[n]=e[n+t];return this.check()}toArray(e=[],t=0){for(let n=0;n<this.ELEMENTS;++n)e[t+n]=this[n];return e}toObject(e){return e}from(e){return Array.isArray(e)?this.copy(e):this.fromObject(e)}to(e){return e===this?this:ve(e)?this.toArray(e):this.toObject(e)}toTarget(e){return e?this.to(e):this}toString(){return this.formatString(Y)}formatString(e){let t="";for(let n=0;n<this.ELEMENTS;++n)t+=(n>0?", ":"")+as(this[n],e);return`${e.printTypes?this.constructor.name:""}[${t}]`}equals(e){if(!e||this.length!==e.length)return!1;for(let t=0;t<this.ELEMENTS;++t)if(!li(this[t],e[t]))return!1;return!0}exactEquals(e){if(!e||this.length!==e.length)return!1;for(let t=0;t<this.ELEMENTS;++t)if(this[t]!==e[t])return!1;return!0}negate(){for(let e=0;e<this.ELEMENTS;++e)this[e]=-this[e];return this.check()}lerp(e,t,n){if(n===void 0)return this.lerp(this,e,t);for(let i=0;i<this.ELEMENTS;++i){let s=e[i],o=typeof t=="number"?t:t[i];this[i]=s+n*(o-s)}return this.check()}min(e){for(let t=0;t<this.ELEMENTS;++t)this[t]=Math.min(e[t],this[t]);return this.check()}max(e){for(let t=0;t<this.ELEMENTS;++t)this[t]=Math.max(e[t],this[t]);return this.check()}clamp(e,t){for(let n=0;n<this.ELEMENTS;++n)this[n]=Math.min(Math.max(this[n],e[n]),t[n]);return this.check()}add(...e){for(let t of e)for(let n=0;n<this.ELEMENTS;++n)this[n]+=t[n];return this.check()}subtract(...e){for(let t of e)for(let n=0;n<this.ELEMENTS;++n)this[n]-=t[n];return this.check()}scale(e){if(typeof e=="number")for(let t=0;t<this.ELEMENTS;++t)this[t]*=e;else for(let t=0;t<this.ELEMENTS&&t<e.length;++t)this[t]*=e[t];return this.check()}multiplyByScalar(e){for(let t=0;t<this.ELEMENTS;++t)this[t]*=e;return this.check()}check(){if(Y.debug&&!this.validate())throw new Error(`math.gl: ${this.constructor.name} some fields set to invalid numbers'`);return this}validate(){let e=this.length===this.ELEMENTS;for(let t=0;t<this.ELEMENTS;++t)e=e&&Number.isFinite(this[t]);return e}};function za(r,e){if(r.length!==e)return!1;for(let t=0;t<r.length;++t)if(!Number.isFinite(r[t]))return!1;return!0}function U(r){if(!Number.isFinite(r))throw new Error(`Invalid number ${JSON.stringify(r)}`);return r}function Te(r,e,t=""){if(Y.debug&&!za(r,e))throw new Error(`math.gl: ${t} some fields set to invalid numbers'`);return r}var Se=class extends z0{toString(){let e="[";if(Y.printRowMajor){e+="row-major:";for(let t=0;t<this.RANK;++t)for(let n=0;n<this.RANK;++n)e+=` ${this[n*this.RANK+t]}`}else{e+="column-major:";for(let t=0;t<this.ELEMENTS;++t)e+=` ${this[t]}`}return e+="]",e}getElementIndex(e,t){return t*this.RANK+e}getElement(e,t){return this[t*this.RANK+e]}setElement(e,t,n){return this[t*this.RANK+e]=U(n),this}getColumn(e,t=new Array(this.RANK).fill(-0)){let n=e*this.RANK;for(let i=0;i<this.RANK;++i)t[i]=this[n+i];return t}setColumn(e,t){let n=e*this.RANK;for(let i=0;i<this.RANK;++i)this[n+i]=t[i];return this}};function di(r,e){if(!r)throw new Error(`math.gl assertion ${e}`)}var sr=class extends z0{get x(){return this[0]}set x(e){this[0]=U(e)}get y(){return this[1]}set y(e){this[1]=U(e)}len(){return Math.sqrt(this.lengthSquared())}magnitude(){return this.len()}lengthSquared(){let e=0;for(let t=0;t<this.ELEMENTS;++t)e+=this[t]*this[t];return e}magnitudeSquared(){return this.lengthSquared()}distance(e){return Math.sqrt(this.distanceSquared(e))}distanceSquared(e){let t=0;for(let n=0;n<this.ELEMENTS;++n){let i=this[n]-e[n];t+=i*i}return U(t)}dot(e){let t=0;for(let n=0;n<this.ELEMENTS;++n)t+=this[n]*e[n];return U(t)}normalize(){let e=this.magnitude();if(e!==0)for(let t=0;t<this.ELEMENTS;++t)this[t]/=e;return this.check()}multiply(...e){for(let t of e)for(let n=0;n<this.ELEMENTS;++n)this[n]*=t[n];return this.check()}divide(...e){for(let t of e)for(let n=0;n<this.ELEMENTS;++n)this[n]/=t[n];return this.check()}lengthSq(){return this.lengthSquared()}distanceTo(e){return this.distance(e)}distanceToSquared(e){return this.distanceSquared(e)}getComponent(e){return di(e>=0&&e<this.ELEMENTS,"index is out of range"),U(this[e])}setComponent(e,t){return di(e>=0&&e<this.ELEMENTS,"index is out of range"),this[e]=t,this.check()}addVectors(e,t){return this.copy(e).add(t)}subVectors(e,t){return this.copy(e).subtract(t)}multiplyVectors(e,t){return this.copy(e).multiply(t)}addScaledVector(e,t){for(let n=0;n<this.ELEMENTS;++n)this[n]+=e[n]*t;return this.check()}};var or=typeof Float32Array<"u"?Float32Array:Array;var D7=Math.PI/180;function cs(r,e,t){let n=e[0],i=e[1];return r[0]=t[0]*n+t[3]*i+t[6],r[1]=t[1]*n+t[4]*i+t[7],r}function us(r,e,t){let n=e[0],i=e[1];return r[0]=t[0]*n+t[4]*i+t[12],r[1]=t[1]*n+t[5]*i+t[13],r}function ls(r,e,t){let n=e[0],i=e[1],s=t[3]*n+t[7]*i||1;return r[0]=(t[0]*n+t[4]*i)/s,r[1]=(t[1]*n+t[5]*i)/s,r}function ar(r,e,t){let n=e[0],i=e[1],s=e[2],o=t[3]*n+t[7]*i+t[11]*s||1;return r[0]=(t[0]*n+t[4]*i+t[8]*s)/o,r[1]=(t[1]*n+t[5]*i+t[9]*s)/o,r[2]=(t[2]*n+t[6]*i+t[10]*s)/o,r}function ds(r,e,t){let n=e[0],i=e[1];return r[0]=t[0]*n+t[2]*i,r[1]=t[1]*n+t[3]*i,r[2]=e[2],r}function fs(r,e,t){let n=e[0],i=e[1],s=e[2];return r[0]=t[0]*n+t[3]*i+t[6]*s,r[1]=t[1]*n+t[4]*i+t[7]*s,r[2]=t[2]*n+t[5]*i+t[8]*s,r[3]=e[3],r}function hs(){let r=new or(3);return or!==Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function Va(r){let e=r[0],t=r[1],n=r[2];return Math.sqrt(e*e+t*t+n*n)}function fi(r,e,t){let n=new or(3);return n[0]=r,n[1]=e,n[2]=t,n}function ps(r,e){let t=e[0],n=e[1],i=e[2],s=t*t+n*n+i*i;return s>0&&(s=1/Math.sqrt(s)),r[0]=e[0]*s,r[1]=e[1]*s,r[2]=e[2]*s,r}function hi(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]}function we(r,e,t){let n=e[0],i=e[1],s=e[2],o=t[0],a=t[1],c=t[2];return r[0]=i*c-s*a,r[1]=s*o-n*c,r[2]=n*a-i*o,r}function cr(r,e,t){let n=e[0],i=e[1],s=e[2],o=t[3]*n+t[7]*i+t[11]*s+t[15];return o=o||1,r[0]=(t[0]*n+t[4]*i+t[8]*s+t[12])/o,r[1]=(t[1]*n+t[5]*i+t[9]*s+t[13])/o,r[2]=(t[2]*n+t[6]*i+t[10]*s+t[14])/o,r}function ur(r,e,t){let n=e[0],i=e[1],s=e[2];return r[0]=n*t[0]+i*t[3]+s*t[6],r[1]=n*t[1]+i*t[4]+s*t[7],r[2]=n*t[2]+i*t[5]+s*t[8],r}function ms(r,e,t){let n=t[0],i=t[1],s=t[2],o=t[3],a=e[0],c=e[1],u=e[2],l=i*u-s*c,d=s*a-n*u,f=n*c-i*a,h=i*f-s*d,p=s*l-n*f,m=n*d-i*l,g=o*2;return l*=g,d*=g,f*=g,h*=2,p*=2,m*=2,r[0]=a+l+h,r[1]=c+d+p,r[2]=u+f+m,r}function gs(r,e,t,n){let i=[],s=[];return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),r[0]=s[0]+t[0],r[1]=s[1]+t[1],r[2]=s[2]+t[2],r}function ys(r,e,t,n){let i=[],s=[];return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),r[0]=s[0]+t[0],r[1]=s[1]+t[1],r[2]=s[2]+t[2],r}function xs(r,e,t,n){let i=[],s=[];return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],r[0]=s[0]+t[0],r[1]=s[1]+t[1],r[2]=s[2]+t[2],r}function bs(r,e){let t=r[0],n=r[1],i=r[2],s=e[0],o=e[1],a=e[2],c=Math.sqrt((t*t+n*n+i*i)*(s*s+o*o+a*a)),u=c&&hi(r,e)/c;return Math.acos(Math.min(Math.max(u,-1),1))}var vs=Va;var pi=[0,0,0],lr,B=class r extends sr{static get ZERO(){return lr||(lr=new r(0,0,0),Object.freeze(lr)),lr}constructor(e=0,t=0,n=0){super(-0,-0,-0),arguments.length===1&&ve(e)?this.copy(e):(Y.debug&&(U(e),U(t),U(n)),this[0]=e,this[1]=t,this[2]=n)}set(e,t,n){return this[0]=e,this[1]=t,this[2]=n,this.check()}copy(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this.check()}fromObject(e){return Y.debug&&(U(e.x),U(e.y),U(e.z)),this[0]=e.x,this[1]=e.y,this[2]=e.z,this.check()}toObject(e){return e.x=this[0],e.y=this[1],e.z=this[2],e}get ELEMENTS(){return 3}get z(){return this[2]}set z(e){this[2]=U(e)}angle(e){return bs(this,e)}cross(e){return we(this,this,e),this.check()}rotateX({radians:e,origin:t=pi}){return gs(this,this,t,e),this.check()}rotateY({radians:e,origin:t=pi}){return ys(this,this,t,e),this.check()}rotateZ({radians:e,origin:t=pi}){return xs(this,this,t,e),this.check()}transform(e){return this.transformAsPoint(e)}transformAsPoint(e){return cr(this,this,e),this.check()}transformAsVector(e){return ar(this,this,e),this.check()}transformByMatrix3(e){return ur(this,this,e),this.check()}transformByMatrix2(e){return ds(this,this,e),this.check()}transformByQuaternion(e){return ms(this,this,e),this.check()}};function Ts(r,e){if(r===e){let t=e[1],n=e[2],i=e[5];r[1]=e[3],r[2]=e[6],r[3]=t,r[5]=e[7],r[6]=n,r[7]=i}else r[0]=e[0],r[1]=e[3],r[2]=e[6],r[3]=e[1],r[4]=e[4],r[5]=e[7],r[6]=e[2],r[7]=e[5],r[8]=e[8];return r}function Ss(r,e){let t=e[0],n=e[1],i=e[2],s=e[3],o=e[4],a=e[5],c=e[6],u=e[7],l=e[8],d=l*o-a*u,f=-l*s+a*c,h=u*s-o*c,p=t*d+n*f+i*h;return p?(p=1/p,r[0]=d*p,r[1]=(-l*n+i*u)*p,r[2]=(a*n-i*o)*p,r[3]=f*p,r[4]=(l*t-i*c)*p,r[5]=(-a*t+i*s)*p,r[6]=h*p,r[7]=(-u*t+n*c)*p,r[8]=(o*t-n*s)*p,r):null}function ws(r){let e=r[0],t=r[1],n=r[2],i=r[3],s=r[4],o=r[5],a=r[6],c=r[7],u=r[8];return e*(u*s-o*c)+t*(-u*i+o*a)+n*(c*i-s*a)}function mi(r,e,t){let n=e[0],i=e[1],s=e[2],o=e[3],a=e[4],c=e[5],u=e[6],l=e[7],d=e[8],f=t[0],h=t[1],p=t[2],m=t[3],g=t[4],b=t[5],v=t[6],T=t[7],S=t[8];return r[0]=f*n+h*o+p*u,r[1]=f*i+h*a+p*l,r[2]=f*s+h*c+p*d,r[3]=m*n+g*o+b*u,r[4]=m*i+g*a+b*l,r[5]=m*s+g*c+b*d,r[6]=v*n+T*o+S*u,r[7]=v*i+T*a+S*l,r[8]=v*s+T*c+S*d,r}function Is(r,e,t){let n=e[0],i=e[1],s=e[2],o=e[3],a=e[4],c=e[5],u=e[6],l=e[7],d=e[8],f=t[0],h=t[1];return r[0]=n,r[1]=i,r[2]=s,r[3]=o,r[4]=a,r[5]=c,r[6]=f*n+h*o+u,r[7]=f*i+h*a+l,r[8]=f*s+h*c+d,r}function As(r,e,t){let n=e[0],i=e[1],s=e[2],o=e[3],a=e[4],c=e[5],u=e[6],l=e[7],d=e[8],f=Math.sin(t),h=Math.cos(t);return r[0]=h*n+f*o,r[1]=h*i+f*a,r[2]=h*s+f*c,r[3]=h*o-f*n,r[4]=h*a-f*i,r[5]=h*c-f*s,r[6]=u,r[7]=l,r[8]=d,r}function gi(r,e,t){let n=t[0],i=t[1];return r[0]=n*e[0],r[1]=n*e[1],r[2]=n*e[2],r[3]=i*e[3],r[4]=i*e[4],r[5]=i*e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r}function _s(r,e){let t=e[0],n=e[1],i=e[2],s=e[3],o=t+t,a=n+n,c=i+i,u=t*o,l=n*o,d=n*a,f=i*o,h=i*a,p=i*c,m=s*o,g=s*a,b=s*c;return r[0]=1-d-p,r[3]=l-b,r[6]=f+g,r[1]=l+b,r[4]=1-u-p,r[7]=h-m,r[2]=f-g,r[5]=h+m,r[8]=1-u-d,r}var ja=Object.freeze([1,0,0,0,1,0,0,0,1]),l0=class extends Se{static get IDENTITY(){return qa()}static get ZERO(){return Wa()}get ELEMENTS(){return 9}get RANK(){return 3}constructor(e){super(-0,-0,-0,-0,-0,-0,-0,-0,-0),arguments.length===1&&Array.isArray(e)?this.copy(e):this.identity()}copy(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3],this[4]=e[4],this[5]=e[5],this[6]=e[6],this[7]=e[7],this[8]=e[8],this.check()}identity(){return this.copy(ja)}fromObject(e){return this.check()}fromQuaternion(e){return _s(this,e),this.check()}fromMatrix4(e){return this.set(e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10])}set(e,t,n,i,s,o,a,c,u){return this[0]=e,this[1]=t,this[2]=n,this[3]=i,this[4]=s,this[5]=o,this[6]=a,this[7]=c,this[8]=u,this.check()}setRowMajor(e,t,n,i,s,o,a,c,u){return this[0]=e,this[1]=i,this[2]=a,this[3]=t,this[4]=s,this[5]=c,this[6]=n,this[7]=o,this[8]=u,this.check()}determinant(){return ws(this)}transpose(){return Ts(this,this),this.check()}invert(){return Ss(this,this),this.check()}multiplyLeft(e){return mi(this,e,this),this.check()}multiplyRight(e){return mi(this,this,e),this.check()}rotate(e){return As(this,this,e),this.check()}scale(e){return Array.isArray(e)?gi(this,this,e):gi(this,this,[e,e]),this.check()}translate(e){return Is(this,this,e),this.check()}transform(e,t){let n;switch(e.length){case 2:n=cs(t||[-0,-0],e,this);break;case 3:n=ur(t||[-0,-0,-0],e,this);break;case 4:n=fs(t||[-0,-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return Te(n,e.length),n}},dr,fr=null;function Wa(){return dr||(dr=new l0([0,0,0,0,0,0,0,0,0]),Object.freeze(dr)),dr}function qa(){return fr||(fr=new l0,Object.freeze(fr)),fr}function Ha(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Ms(r,e){if(r===e){let t=e[1],n=e[2],i=e[3],s=e[6],o=e[7],a=e[11];r[1]=e[4],r[2]=e[8],r[3]=e[12],r[4]=t,r[6]=e[9],r[7]=e[13],r[8]=n,r[9]=s,r[11]=e[14],r[12]=i,r[13]=o,r[14]=a}else r[0]=e[0],r[1]=e[4],r[2]=e[8],r[3]=e[12],r[4]=e[1],r[5]=e[5],r[6]=e[9],r[7]=e[13],r[8]=e[2],r[9]=e[6],r[10]=e[10],r[11]=e[14],r[12]=e[3],r[13]=e[7],r[14]=e[11],r[15]=e[15];return r}function Es(r,e){let t=e[0],n=e[1],i=e[2],s=e[3],o=e[4],a=e[5],c=e[6],u=e[7],l=e[8],d=e[9],f=e[10],h=e[11],p=e[12],m=e[13],g=e[14],b=e[15],v=t*a-n*o,T=t*c-i*o,S=t*u-s*o,y=n*c-i*a,x=n*u-s*a,w=i*u-s*c,I=l*m-d*p,A=l*g-f*p,M=l*b-h*p,R=d*g-f*m,_=d*b-h*m,C=f*b-h*g,P=v*C-T*_+S*R+y*M-x*A+w*I;return P?(P=1/P,r[0]=(a*C-c*_+u*R)*P,r[1]=(i*_-n*C-s*R)*P,r[2]=(m*w-g*x+b*y)*P,r[3]=(f*x-d*w-h*y)*P,r[4]=(c*M-o*C-u*A)*P,r[5]=(t*C-i*M+s*A)*P,r[6]=(g*S-p*w-b*T)*P,r[7]=(l*w-f*S+h*T)*P,r[8]=(o*_-a*M+u*I)*P,r[9]=(n*M-t*_-s*I)*P,r[10]=(p*x-m*S+b*v)*P,r[11]=(d*S-l*x-h*v)*P,r[12]=(a*A-o*R-c*I)*P,r[13]=(t*R-n*A+i*I)*P,r[14]=(m*T-p*y-g*v)*P,r[15]=(l*y-d*T+f*v)*P,r):null}function Ps(r){let e=r[0],t=r[1],n=r[2],i=r[3],s=r[4],o=r[5],a=r[6],c=r[7],u=r[8],l=r[9],d=r[10],f=r[11],h=r[12],p=r[13],m=r[14],g=r[15],b=e*o-t*s,v=e*a-n*s,T=t*a-n*o,S=u*p-l*h,y=u*m-d*h,x=l*m-d*p,w=e*x-t*y+n*S,I=s*x-o*y+a*S,A=u*T-l*v+d*b,M=h*T-p*v+m*b;return c*w-i*I+g*A-f*M}function yi(r,e,t){let n=e[0],i=e[1],s=e[2],o=e[3],a=e[4],c=e[5],u=e[6],l=e[7],d=e[8],f=e[9],h=e[10],p=e[11],m=e[12],g=e[13],b=e[14],v=e[15],T=t[0],S=t[1],y=t[2],x=t[3];return r[0]=T*n+S*a+y*d+x*m,r[1]=T*i+S*c+y*f+x*g,r[2]=T*s+S*u+y*h+x*b,r[3]=T*o+S*l+y*p+x*v,T=t[4],S=t[5],y=t[6],x=t[7],r[4]=T*n+S*a+y*d+x*m,r[5]=T*i+S*c+y*f+x*g,r[6]=T*s+S*u+y*h+x*b,r[7]=T*o+S*l+y*p+x*v,T=t[8],S=t[9],y=t[10],x=t[11],r[8]=T*n+S*a+y*d+x*m,r[9]=T*i+S*c+y*f+x*g,r[10]=T*s+S*u+y*h+x*b,r[11]=T*o+S*l+y*p+x*v,T=t[12],S=t[13],y=t[14],x=t[15],r[12]=T*n+S*a+y*d+x*m,r[13]=T*i+S*c+y*f+x*g,r[14]=T*s+S*u+y*h+x*b,r[15]=T*o+S*l+y*p+x*v,r}function Ls(r,e,t){let n=t[0],i=t[1],s=t[2],o,a,c,u,l,d,f,h,p,m,g,b;return e===r?(r[12]=e[0]*n+e[4]*i+e[8]*s+e[12],r[13]=e[1]*n+e[5]*i+e[9]*s+e[13],r[14]=e[2]*n+e[6]*i+e[10]*s+e[14],r[15]=e[3]*n+e[7]*i+e[11]*s+e[15]):(o=e[0],a=e[1],c=e[2],u=e[3],l=e[4],d=e[5],f=e[6],h=e[7],p=e[8],m=e[9],g=e[10],b=e[11],r[0]=o,r[1]=a,r[2]=c,r[3]=u,r[4]=l,r[5]=d,r[6]=f,r[7]=h,r[8]=p,r[9]=m,r[10]=g,r[11]=b,r[12]=o*n+l*i+p*s+e[12],r[13]=a*n+d*i+m*s+e[13],r[14]=c*n+f*i+g*s+e[14],r[15]=u*n+h*i+b*s+e[15]),r}function Rs(r,e,t){let n=t[0],i=t[1],s=t[2];return r[0]=e[0]*n,r[1]=e[1]*n,r[2]=e[2]*n,r[3]=e[3]*n,r[4]=e[4]*i,r[5]=e[5]*i,r[6]=e[6]*i,r[7]=e[7]*i,r[8]=e[8]*s,r[9]=e[9]*s,r[10]=e[10]*s,r[11]=e[11]*s,r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}function Cs(r,e,t,n){let i=n[0],s=n[1],o=n[2],a=Math.sqrt(i*i+s*s+o*o),c,u,l,d,f,h,p,m,g,b,v,T,S,y,x,w,I,A,M,R,_,C,P,O;return a<1e-6?null:(a=1/a,i*=a,s*=a,o*=a,u=Math.sin(t),c=Math.cos(t),l=1-c,d=e[0],f=e[1],h=e[2],p=e[3],m=e[4],g=e[5],b=e[6],v=e[7],T=e[8],S=e[9],y=e[10],x=e[11],w=i*i*l+c,I=s*i*l+o*u,A=o*i*l-s*u,M=i*s*l-o*u,R=s*s*l+c,_=o*s*l+i*u,C=i*o*l+s*u,P=s*o*l-i*u,O=o*o*l+c,r[0]=d*w+m*I+T*A,r[1]=f*w+g*I+S*A,r[2]=h*w+b*I+y*A,r[3]=p*w+v*I+x*A,r[4]=d*M+m*R+T*_,r[5]=f*M+g*R+S*_,r[6]=h*M+b*R+y*_,r[7]=p*M+v*R+x*_,r[8]=d*C+m*P+T*O,r[9]=f*C+g*P+S*O,r[10]=h*C+b*P+y*O,r[11]=p*C+v*P+x*O,e!==r&&(r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r)}function Bs(r,e,t){let n=Math.sin(t),i=Math.cos(t),s=e[4],o=e[5],a=e[6],c=e[7],u=e[8],l=e[9],d=e[10],f=e[11];return e!==r&&(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[4]=s*i+u*n,r[5]=o*i+l*n,r[6]=a*i+d*n,r[7]=c*i+f*n,r[8]=u*i-s*n,r[9]=l*i-o*n,r[10]=d*i-a*n,r[11]=f*i-c*n,r}function Ds(r,e,t){let n=Math.sin(t),i=Math.cos(t),s=e[0],o=e[1],a=e[2],c=e[3],u=e[8],l=e[9],d=e[10],f=e[11];return e!==r&&(r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=s*i-u*n,r[1]=o*i-l*n,r[2]=a*i-d*n,r[3]=c*i-f*n,r[8]=s*n+u*i,r[9]=o*n+l*i,r[10]=a*n+d*i,r[11]=c*n+f*i,r}function Os(r,e,t){let n=Math.sin(t),i=Math.cos(t),s=e[0],o=e[1],a=e[2],c=e[3],u=e[4],l=e[5],d=e[6],f=e[7];return e!==r&&(r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=s*i+u*n,r[1]=o*i+l*n,r[2]=a*i+d*n,r[3]=c*i+f*n,r[4]=u*i-s*n,r[5]=l*i-o*n,r[6]=d*i-a*n,r[7]=f*i-c*n,r}function Ns(r,e){let t=e[0],n=e[1],i=e[2],s=e[3],o=t+t,a=n+n,c=i+i,u=t*o,l=n*o,d=n*a,f=i*o,h=i*a,p=i*c,m=s*o,g=s*a,b=s*c;return r[0]=1-d-p,r[1]=l+b,r[2]=f-g,r[3]=0,r[4]=l-b,r[5]=1-u-p,r[6]=h+m,r[7]=0,r[8]=f+g,r[9]=h-m,r[10]=1-u-d,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function ks(r,e,t,n,i,s,o){let a=1/(t-e),c=1/(i-n),u=1/(s-o);return r[0]=s*2*a,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=s*2*c,r[6]=0,r[7]=0,r[8]=(t+e)*a,r[9]=(i+n)*c,r[10]=(o+s)*u,r[11]=-1,r[12]=0,r[13]=0,r[14]=o*s*2*u,r[15]=0,r}function Xa(r,e,t,n,i){let s=1/Math.tan(e/2);if(r[0]=s/t,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=s,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,i!=null&&i!==1/0){let o=1/(n-i);r[10]=(i+n)*o,r[14]=2*i*n*o}else r[10]=-1,r[14]=-2*n;return r}var Fs=Xa;function Ya(r,e,t,n,i,s,o){let a=1/(e-t),c=1/(n-i),u=1/(s-o);return r[0]=-2*a,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*c,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*u,r[11]=0,r[12]=(e+t)*a,r[13]=(i+n)*c,r[14]=(o+s)*u,r[15]=1,r}var Gs=Ya;function zs(r,e,t,n){let i,s,o,a,c,u,l,d,f,h,p=e[0],m=e[1],g=e[2],b=n[0],v=n[1],T=n[2],S=t[0],y=t[1],x=t[2];return Math.abs(p-S)<1e-6&&Math.abs(m-y)<1e-6&&Math.abs(g-x)<1e-6?Ha(r):(d=p-S,f=m-y,h=g-x,i=1/Math.sqrt(d*d+f*f+h*h),d*=i,f*=i,h*=i,s=v*h-T*f,o=T*d-b*h,a=b*f-v*d,i=Math.sqrt(s*s+o*o+a*a),i?(i=1/i,s*=i,o*=i,a*=i):(s=0,o=0,a=0),c=f*a-h*o,u=h*s-d*a,l=d*o-f*s,i=Math.sqrt(c*c+u*u+l*l),i?(i=1/i,c*=i,u*=i,l*=i):(c=0,u=0,l=0),r[0]=s,r[1]=c,r[2]=d,r[3]=0,r[4]=o,r[5]=u,r[6]=f,r[7]=0,r[8]=a,r[9]=l,r[10]=h,r[11]=0,r[12]=-(s*p+o*m+a*g),r[13]=-(c*p+u*m+l*g),r[14]=-(d*p+f*m+h*g),r[15]=1,r)}function xi(r){if(r.length!==16||Array.from(r).some(i=>!Number.isFinite(i))||r[3]!==0||r[7]!==0||r[11]!==0||r[15]!==1)throw new RangeError("Expected a finite affine matrix");let e=[Math.hypot(r[0],r[1],r[2]),Math.hypot(r[4],r[5],r[6]),Math.hypot(r[8],r[9],r[10])];if(e.some(i=>i===0||!Number.isFinite(i)))throw new RangeError("Singular transform");let t=Array.from({length:9},(i,s)=>r[Math.floor(s/3)*4+s%3]/e[Math.floor(s/3)]);for(let[i,s]of[[0,3],[0,6],[3,6]])if(Math.abs(t[i]*t[s]+t[i+1]*t[s+1]+t[i+2]*t[s+2])>1e-7)throw new RangeError("Sheared transforms do not have a TRS decomposition");if(t[0]*(t[4]*t[8]-t[5]*t[7])-t[3]*(t[1]*t[8]-t[2]*t[7])+t[6]*(t[1]*t[5]-t[2]*t[4])<0){e[0]=-e[0];for(let i=0;i<3;i++)t[i]=-t[i]}return{rotation:t,scale:e,translation:[r[12],r[13],r[14]]}}function $s(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r[2]=e[2]+t[2],r[3]=e[3]+t[3],r}function Vs(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r[3]=e[3]*t,r}function Us(r){let e=r[0],t=r[1],n=r[2],i=r[3];return Math.sqrt(e*e+t*t+n*n+i*i)}function js(r){let e=r[0],t=r[1],n=r[2],i=r[3];return e*e+t*t+n*n+i*i}function Ws(r,e){let t=e[0],n=e[1],i=e[2],s=e[3],o=t*t+n*n+i*i+s*s;return o>0&&(o=1/Math.sqrt(o)),r[0]=t*o,r[1]=n*o,r[2]=i*o,r[3]=s*o,r}function qs(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]+r[3]*e[3]}function Hs(r,e,t,n){let i=e[0],s=e[1],o=e[2],a=e[3];return r[0]=i+n*(t[0]-i),r[1]=s+n*(t[1]-s),r[2]=o+n*(t[2]-o),r[3]=a+n*(t[3]-a),r}function Xs(r,e,t){let n=e[0],i=e[1],s=e[2],o=e[3];return r[0]=t[0]*n+t[4]*i+t[8]*s+t[12]*o,r[1]=t[1]*n+t[5]*i+t[9]*s+t[13]*o,r[2]=t[2]*n+t[6]*i+t[10]*s+t[14]*o,r[3]=t[3]*n+t[7]*i+t[11]*s+t[15]*o,r}var Za=45*Math.PI/180,Qa=1,bi=.1,vi=500,Ja=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),L=class extends Se{static get IDENTITY(){return t3()}static get ZERO(){return e3()}get ELEMENTS(){return 16}get RANK(){return 4}constructor(e){super(-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0),arguments.length===1&&Array.isArray(e)?this.copy(e):this.identity()}copy(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3],this[4]=e[4],this[5]=e[5],this[6]=e[6],this[7]=e[7],this[8]=e[8],this[9]=e[9],this[10]=e[10],this[11]=e[11],this[12]=e[12],this[13]=e[13],this[14]=e[14],this[15]=e[15],this.check()}set(e,t,n,i,s,o,a,c,u,l,d,f,h,p,m,g){return this[0]=e,this[1]=t,this[2]=n,this[3]=i,this[4]=s,this[5]=o,this[6]=a,this[7]=c,this[8]=u,this[9]=l,this[10]=d,this[11]=f,this[12]=h,this[13]=p,this[14]=m,this[15]=g,this.check()}setRowMajor(e,t,n,i,s,o,a,c,u,l,d,f,h,p,m,g){return this[0]=e,this[1]=s,this[2]=u,this[3]=h,this[4]=t,this[5]=o,this[6]=l,this[7]=p,this[8]=n,this[9]=a,this[10]=d,this[11]=m,this[12]=i,this[13]=c,this[14]=f,this[15]=g,this.check()}toRowMajor(e){return e[0]=this[0],e[1]=this[4],e[2]=this[8],e[3]=this[12],e[4]=this[1],e[5]=this[5],e[6]=this[9],e[7]=this[13],e[8]=this[2],e[9]=this[6],e[10]=this[10],e[11]=this[14],e[12]=this[3],e[13]=this[7],e[14]=this[11],e[15]=this[15],e}identity(){return this.copy(Ja)}fromObject(e){return this.check()}fromQuaternion(e){return Ns(this,e),this.check()}fromMatrix3(e){return this.set(e[0],e[1],e[2],0,e[3],e[4],e[5],0,e[6],e[7],e[8],0,0,0,0,1)}frustum(e){let{left:t,right:n,bottom:i,top:s,near:o=bi,far:a=vi}=e;return a===1/0?r3(this,t,n,i,s,o):ks(this,t,n,i,s,o,a),this.check()}lookAt(e){let{eye:t,center:n=[0,0,0],up:i=[0,1,0]}=e;return zs(this,t,n,i),this.check()}ortho(e){let{left:t,right:n,bottom:i,top:s,near:o=bi,far:a=vi}=e;return Gs(this,t,n,i,s,o,a),this.check()}orthographic(e){let{fovy:t=Za,aspect:n=Qa,focalDistance:i=1,near:s=bi,far:o=vi}=e;Ys(t);let a=t/2,c=i*Math.tan(a),u=c*n;return this.ortho({left:-u,right:u,bottom:-c,top:c,near:s,far:o})}perspective(e){let{fovy:t=45*Math.PI/180,aspect:n=1,near:i=.1,far:s=500}=e;return Ys(t),Fs(this,t,n,i,s),this.check()}determinant(){return Ps(this)}getScale(e=[-0,-0,-0]){return e[0]=Math.sqrt(this[0]*this[0]+this[1]*this[1]+this[2]*this[2]),e[1]=Math.sqrt(this[4]*this[4]+this[5]*this[5]+this[6]*this[6]),e[2]=Math.sqrt(this[8]*this[8]+this[9]*this[9]+this[10]*this[10]),e}getTranslation(e=[-0,-0,-0]){return e[0]=this[12],e[1]=this[13],e[2]=this[14],e}getRotation(e,t){let{rotation:n,scale:i}=xi(this);if(e=e||new Array(16),t)for(let s=0;s<3;s++)t[s]=i[s];for(let s=0;s<16;s++)e[s]=0;for(let s=0;s<9;s++)e[Math.floor(s/3)*4+s%3]=n[s];return e[15]=1,e}getRotationMatrix3(e,t){let{rotation:n,scale:i}=xi(this);if(e=e||new Array(9),t)for(let s=0;s<3;s++)t[s]=i[s];for(let s=0;s<9;s++)e[s]=n[s];return e}transpose(){return Ms(this,this),this.check()}invert(){return Es(this,this),this.check()}multiplyLeft(e){return yi(this,e,this),this.check()}multiplyRight(e){return yi(this,this,e),this.check()}rotateX(e){return Bs(this,this,e),this.check()}rotateY(e){return Ds(this,this,e),this.check()}rotateZ(e){return Os(this,this,e),this.check()}rotateXYZ(e){return this.rotateX(e[0]).rotateY(e[1]).rotateZ(e[2])}rotateAxis(e,t){return Cs(this,this,e,t),this.check()}scale(e){return Rs(this,this,Array.isArray(e)?e:[e,e,e]),this.check()}translate(e){return Ls(this,this,e),this.check()}transform(e,t){return e.length===4?(t=Xs(t||[-0,-0,-0,-0],e,this),Te(t,4),t):this.transformAsPoint(e,t)}transformAsPoint(e,t){let{length:n}=e,i;switch(n){case 2:i=us(t||[-0,-0],e,this);break;case 3:i=cr(t||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return Te(i,e.length),i}transformAsVector(e,t){let n;switch(e.length){case 2:n=ls(t||[-0,-0],e,this);break;case 3:n=ar(t||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return Te(n,e.length),n}makeRotationX(e){return this.identity().rotateX(e)}makeTranslation(e,t,n){return this.identity().translate([e,t,n])}},hr,pr;function e3(){return hr||(hr=new L([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Object.freeze(hr)),hr}function t3(){return pr||(pr=new L,Object.freeze(pr)),pr}function Ys(r){if(r>Math.PI*2)throw Error("expected radians")}function r3(r,e,t,n,i,s){let o=2*s/(t-e),a=2*s/(i-n),c=(t+e)/(t-e),u=(i+n)/(i-n),l=-1,d=-1,f=-2*s;return r[0]=o,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=a,r[6]=0,r[7]=0,r[8]=c,r[9]=u,r[10]=l,r[11]=d,r[12]=0,r[13]=0,r[14]=f,r[15]=0,r}function Ks(r){return r[0]=0,r[1]=0,r[2]=0,r[3]=1,r}function Ti(r,e,t){t=t*.5;let n=Math.sin(t);return r[0]=n*e[0],r[1]=n*e[1],r[2]=n*e[2],r[3]=Math.cos(t),r}function Si(r,e,t){let n=e[0],i=e[1],s=e[2],o=e[3],a=t[0],c=t[1],u=t[2],l=t[3];return r[0]=n*l+o*a+i*u-s*c,r[1]=i*l+o*c+s*a-n*u,r[2]=s*l+o*u+n*c-i*a,r[3]=o*l-n*a-i*c-s*u,r}function Zs(r,e,t){t*=.5;let n=e[0],i=e[1],s=e[2],o=e[3],a=Math.sin(t),c=Math.cos(t);return r[0]=n*c+o*a,r[1]=i*c+s*a,r[2]=s*c-i*a,r[3]=o*c-n*a,r}function Qs(r,e,t){t*=.5;let n=e[0],i=e[1],s=e[2],o=e[3],a=Math.sin(t),c=Math.cos(t);return r[0]=n*c-s*a,r[1]=i*c+o*a,r[2]=s*c+n*a,r[3]=o*c-i*a,r}function Js(r,e,t){t*=.5;let n=e[0],i=e[1],s=e[2],o=e[3],a=Math.sin(t),c=Math.cos(t);return r[0]=n*c+i*a,r[1]=i*c-n*a,r[2]=s*c+o*a,r[3]=o*c-s*a,r}function eo(r,e){let t=e[0],n=e[1],i=e[2];return r[0]=t,r[1]=n,r[2]=i,r[3]=Math.sqrt(Math.abs(1-t*t-n*n-i*i)),r}function wi(r,e,t,n){let i=e[0],s=e[1],o=e[2],a=e[3],c=t[0],u=t[1],l=t[2],d=t[3],f,h,p,m,g;return f=i*c+s*u+o*l+a*d,f<0&&(f=-f,c=-c,u=-u,l=-l,d=-d),1-f>1e-6?(h=Math.acos(f),g=Math.sin(h),p=Math.sin((1-n)*h)/g,m=Math.sin(n*h)/g):(p=1-n,m=n),r[0]=p*i+m*c,r[1]=p*s+m*u,r[2]=p*o+m*l,r[3]=p*a+m*d,r}function to(r,e){let t=e[0],n=e[1],i=e[2],s=e[3],o=t*t+n*n+i*i+s*s,a=o?1/o:0;return r[0]=-t*a,r[1]=-n*a,r[2]=-i*a,r[3]=s*a,r}function ro(r,e){return r[0]=-e[0],r[1]=-e[1],r[2]=-e[2],r[3]=e[3],r}function no(r,e){let t=e[0]+e[4]+e[8],n;if(t>0)n=Math.sqrt(t+1),r[3]=.5*n,n=.5/n,r[0]=(e[5]-e[7])*n,r[1]=(e[6]-e[2])*n,r[2]=(e[1]-e[3])*n;else{let i=0;e[4]>e[0]&&(i=1),e[8]>e[i*3+i]&&(i=2);let s=(i+1)%3,o=(i+2)%3;n=Math.sqrt(e[i*3+i]-e[s*3+s]-e[o*3+o]+1),r[i]=.5*n,n=.5/n,r[3]=(e[s*3+o]-e[o*3+s])*n,r[s]=(e[s*3+i]+e[i*3+s])*n,r[o]=(e[o*3+i]+e[i*3+o])*n}return r}var io=$s;var so=Vs,oo=qs,ao=Hs,co=Us;var uo=js;var n3=Ws;var lo=(function(){let r=hs(),e=fi(1,0,0),t=fi(0,1,0);return function(n,i,s){let o=hi(i,s);return o<-.999999?(we(r,e,i),vs(r)<1e-6&&we(r,t,i),ps(r,r),Ti(n,r,Math.PI),n):o>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(we(r,i,s),n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=1+o,n3(n,n))}})();function fo(r,e,t,n){if(e.length!==4||t.length!==4||[...Array.from(e),...Array.from(t),n].some(f=>!Number.isFinite(f)))throw new RangeError("Expected finite quaternions and step");if(e.length!==4||n<0)throw new RangeError("Expected quaternions and a nonnegative step");let i=Math.max(...Array.from(e,Math.abs)),s=Math.max(...Array.from(t,Math.abs));if(!i||!s)throw new RangeError("Zero quaternion");let o=Array.from(e,f=>f/i),a=Array.from(t,f=>f/s),c=Math.hypot(...o),u=Math.hypot(...a);for(let f=0;f<4;f++)o[f]/=c,a[f]/=u;let l=o.reduce((f,h,p)=>f+h*a[p],0),d=2*Math.acos(Math.min(1,Math.abs(l)));if(r.length<4)throw new RangeError("Result buffer is too short");return wi(r,o,a,d===0?0:Math.min(1,n/d)),r}var pt=class extends z0{constructor(e=0,t=0,n=0,i=1){super(-0,-0,-0,-0),Array.isArray(e)&&arguments.length===1?this.copy(e):this.set(e,t,n,i)}copy(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3],this.check()}set(e,t,n,i){return this[0]=e,this[1]=t,this[2]=n,this[3]=i,this.check()}fromObject(e){return this[0]=e.x,this[1]=e.y,this[2]=e.z,this[3]=e.w,this.check()}fromMatrix3(e){return no(this,e),this.check()}fromEuler(e){switch(this.identity(),e.order){case"xyz":return this.rotateX(e.x).rotateY(e.y).rotateZ(e.z);case"yxz":return this.rotateY(e.y).rotateX(e.x).rotateZ(e.z);case"zxy":return this.rotateZ(e.z).rotateX(e.x).rotateY(e.y);case"zyx":return this.rotateZ(e.z).rotateY(e.y).rotateX(e.x);case"yzx":return this.rotateY(e.y).rotateZ(e.z).rotateX(e.x);case"xzy":return this.rotateX(e.x).rotateZ(e.z).rotateY(e.y);default:throw new Error("Unknown Euler angle order")}}fromAxisRotation(e,t){return Ti(this,e,t),this.check()}rotateTowards(e,t){return fo(this,this,e,t)}identity(){return Ks(this),this.check()}setAxisAngle(e,t){return this.fromAxisRotation(e,t)}get ELEMENTS(){return 4}get x(){return this[0]}set x(e){this[0]=U(e)}get y(){return this[1]}set y(e){this[1]=U(e)}get z(){return this[2]}set z(e){this[2]=U(e)}get w(){return this[3]}set w(e){this[3]=U(e)}len(){return co(this)}lengthSquared(){return uo(this)}dot(e){return oo(this,e)}rotationTo(e,t){return lo(this,e,t),this.check()}add(e){return io(this,this,e),this.check()}calculateW(){return eo(this,this),this.check()}conjugate(){return ro(this,this),this.check()}invert(){return to(this,this),this.check()}lerp(e,t,n){return n===void 0?this.lerp(this,e,t):(ao(this,e,t,n),this.check())}multiplyRight(e){return Si(this,this,e),this.check()}multiplyLeft(e){return Si(this,e,this),this.check()}normalize(){let e=this.len(),t=e>0?1/e:0;return this[0]=this[0]*t,this[1]=this[1]*t,this[2]=this[2]*t,this[3]=this[3]*t,e===0&&(this[3]=1),this.check()}rotateX(e){return Zs(this,this,e),this.check()}rotateY(e){return Qs(this,this,e),this.check()}rotateZ(e){return Js(this,this,e),this.check()}scale(e){return so(this,this,e),this.check()}slerp(e,t,n){let i,s,o;return arguments.length===2?(i=this,s=e,o=t):(i=e,s=t,o=n),wi(this,i,s,o),this.check()}lengthSq(){return this.lengthSquared()}setFromAxisAngle(e,t){return this.setAxisAngle(e,t)}premultiply(e){return this.multiplyLeft(e)}multiply(e){return this.multiplyRight(e)}};function mr(r){if(!r.indices)return r;let e=r.indices.value,t={};for(let[n,i]of Object.entries(r.attributes)){if(!i)continue;if(i.constant||!i.size){t[n]=i;continue}let s=i.value.constructor,o=new s(e.length*i.size);for(let a=0;a<e.length;a++)for(let c=0;c<i.size;c++)o[a*i.size+c]=i.value[Number(e[a])*i.size+c];t[n]={...i,value:o}}return{attributes:t}}function Q(r,e){if(!Number.isFinite(r)||r<=0)throw new Error(`${e} must be greater than zero`)}function Ii(r,e){if(!Number.isFinite(r)||r<0)throw new Error(`${e} must be non-negative`)}function K(r,e,t=1){if(!Number.isInteger(r)||r<t)throw new Error(`${e} must be an integer >= ${t}`)}function w0(r,e){return r>65535?new Uint32Array(e):new Uint16Array(e)}var gr=class extends W{constructor(e={}){let t=e.size||[1,1,1];Q(t[0],"size[0]"),Q(t[1],"size[1]"),Q(t[2],"size[2]");let n=[t[0]/2,t[1]/2,t[2]/2],i=[],s=[],o=[],a=[],c=[{n:[1,0,0],u:[0,0,-1],v:[0,1,0],h1:n[2],h2:n[1]},{n:[-1,0,0],u:[0,0,1],v:[0,1,0],h1:n[2],h2:n[1]},{n:[0,1,0],u:[1,0,0],v:[0,0,-1],h1:n[0],h2:n[2]},{n:[0,-1,0],u:[1,0,0],v:[0,0,1],h1:n[0],h2:n[2]},{n:[0,0,1],u:[1,0,0],v:[0,1,0],h1:n[0],h2:n[1]},{n:[0,0,-1],u:[-1,0,0],v:[0,1,0],h1:n[0],h2:n[1]}];for(let u of c){let l=i.length/3;for(let[d,f,h,p]of[[-1,-1,0,0],[1,-1,1,0],[1,1,1,1],[-1,1,0,1]])i.push(u.n[0]*n[0]+u.u[0]*u.h1*d+u.v[0]*u.h2*f,u.n[1]*n[1]+u.u[1]*u.h1*d+u.v[1]*u.h2*f,u.n[2]*n[2]+u.u[2]*u.h1*d+u.v[2]*u.h2*f),s.push(...u.n),o.push(h,p);a.push(l,l+1,l+2,l,l+2,l+3)}super({id:e.id,topology:"triangle-list",indices:w0(24,a),attributes:{POSITION:{size:3,value:new Float32Array(i)},NORMAL:{size:3,value:new Float32Array(s)},TEXCOORD_0:{size:2,value:new Float32Array(o)},...e.attributes}})}},mt=class extends gr{constructor(e={}){let t=e.size??1;super({...e,size:[t,t,t]})}};function ho(r,e){let t=[],n=[],i=[],s=[],o=e+1;for(let a=0;a<r.length;a++){let c=r[a];for(let u=0;u<=e;u++){let l=u/e,d=l*Math.PI*2,f=Math.sin(d),h=Math.cos(d);t.push(f*c.radius,c.y,h*c.radius),n.push(f*c.normalRadius,c.normalY,h*c.normalRadius),i.push(l,a/(r.length-1))}}for(let a=0;a<r.length-1;a++)for(let c=0;c<e;c++){let u=a*o+c,l=u+1,d=u+o,f=d+1;s.push(u,l,f,u,f,d)}return{positions:t,normals:n,texCoords:i,indices:s,indexArray:w0(t.length/3,s)}}var gt=class extends W{constructor(e={}){let{topRadius:t=0,bottomRadius:n=0,topCap:i=!1,bottomCap:s=!1,height:o=1,nradial:a=10,nvertical:c=1,verticalAxis:u="y"}=e;if(Ii(t,"topRadius"),Ii(n,"bottomRadius"),t===0&&n===0)throw new Error("At least one radius must be greater than zero");Q(o,"height"),K(a,"nradial",3),K(c,"nvertical");let l=[],d=[],f=[],h=[],p=a+1,m=(n-t)/o,g=1/Math.hypot(1,m),b=(y,x,w,I,A)=>{let M=l.length/3/p;for(let R=0;R<=a;R++){let _=R/a,C=_*Math.PI*2,P=Math.sin(C),O=Math.cos(C),N=po([P*y,x,O*y],u),V=po([P*w,I,O*w],u);l.push(...N),d.push(...V),f.push(_,A)}return M},v=(y,x)=>{for(let w=0;w<a;w++){let I=y*p+w,A=I+1,M=x*p+w,R=M+1;h.push(I,A,R,I,R,M)}},T;if(s){let y=b(0,-o/2,0,-1,0),x=b(n,-o/2,0,-1,1);v(y,x),T=b(n,-o/2,g,m*g,0)}for(let y=0;y<=c;y++){let x=y/c,w=n+(t-n)*x,I=b(w,(x-.5)*o,g,m*g,x);T!==void 0&&!(s&&y===0)&&v(T,I),T=I}if(i&&T!==void 0){let y=b(t,o/2,0,1,1),x=b(0,o/2,0,1,0);v(y,x)}let S=l.length/3;super({id:e.id,topology:"triangle-list",indices:w0(S,h),attributes:{POSITION:{size:3,value:new Float32Array(l)},NORMAL:{size:3,value:new Float32Array(d)},TEXCOORD_0:{size:2,value:new Float32Array(f)},...e.attributes}})}};function po(r,e){switch(e){case"x":return[r[1],r[2],r[0]];case"z":return[r[2],r[0],r[1]];default:return[r[0],r[1],r[2]]}}var ee=class extends W{constructor(e){let{sizeX:t,sizeZ:n,nx:i=1,nz:s=1}=e;Q(t,"sizeX"),Q(n,"sizeZ"),K(i,"nx"),K(s,"nz");let o=[],a=[],c=[],u=[];for(let f=0;f<=s;f++){let h=f/s;for(let p=0;p<=i;p++){let m=p/i;o.push((m-.5)*t,0,(.5-h)*n),a.push(0,1,0),c.push(m,h)}}let l=i+1;for(let f=0;f<s;f++)for(let h=0;h<i;h++){let p=f*l+h,m=p+1,g=p+l,b=g+1;u.push(p,m,b,p,b,g)}let d=o.length/3;super({id:e.id,topology:"triangle-list",indices:w0(d,u),attributes:{POSITION:{size:3,value:new Float32Array(o)},NORMAL:{size:3,value:new Float32Array(a)},TEXCOORD_0:{size:2,value:new Float32Array(c)},...e.attributes}})}};var yt=class extends W{constructor(e={}){let{radius:t=.5,nlat:n=10,nlong:i=10}=e;Q(t,"radius"),K(n,"nlat",2),K(i,"nlong",3);let s=[];for(let a=0;a<=n;a++){let c=-Math.PI/2+a/n*Math.PI,u=Math.cos(c),l=Math.sin(c);s.push({radius:t*u,y:t*l,normalRadius:u,normalY:l})}let o=ho(s,i);super({id:e.id,topology:"triangle-list",indices:o.indexArray,attributes:{POSITION:{size:3,value:new Float32Array(o.positions)},NORMAL:{size:3,value:new Float32Array(o.normals)},TEXCOORD_0:{size:2,value:new Float32Array(o.texCoords)},...e.attributes}})}};var xt=class extends W{constructor(e={}){let{radius:t=.5,iterations:n=0}=e;if(Q(t,"radius"),K(n,"iterations",0),n>8)throw new Error("iterations must be <= 8");let i=(1+Math.sqrt(5))/2,s=[[-1,i,0],[1,i,0],[-1,-i,0],[1,-i,0],[0,-1,i],[0,1,i],[0,-1,-i],[0,1,-i],[i,0,-1],[i,0,1],[-i,0,-1],[-i,0,1]].map(yr),o=[[0,11,5],[0,5,1],[0,1,7],[0,7,10],[0,10,11],[1,5,9],[5,11,4],[11,10,2],[10,7,6],[7,1,8],[3,9,4],[3,4,2],[3,2,6],[3,6,8],[3,8,9],[4,9,5],[2,4,11],[6,2,10],[8,6,7],[9,8,1]].map(l=>l.map(d=>s[d]));for(let l=0;l<n;l++){let d=[];for(let[f,h,p]of o){let m=yr([f[0]+h[0],f[1]+h[1],f[2]+h[2]]),g=yr([h[0]+p[0],h[1]+p[1],h[2]+p[2]]),b=yr([p[0]+f[0],p[1]+f[1],p[2]+f[2]]);d.push([f,m,b],[h,g,m],[p,b,g],[m,g,b])}o=d}let a=[],c=[],u=[];for(let l of o)for(let d of l)a.push(d[0]*t,d[1]*t,d[2]*t),c.push(...d),u.push(.5+Math.atan2(d[0],d[2])/(2*Math.PI),.5-Math.asin(d[1])/Math.PI);super({id:e.id,topology:"triangle-list",attributes:{POSITION:{size:3,value:new Float32Array(a)},NORMAL:{size:3,value:new Float32Array(c)},TEXCOORD_0:{size:2,value:new Float32Array(u)},...e.attributes}})}};function yr(r){let e=Math.hypot(...r);return r.map(t=>t/e)}var te=class extends W{constructor(e){let{sample:t,normal:n,uSegments:i=32,vSegments:s=32,periodicU:o=!1,periodicV:a=!1}=e;K(i,"uSegments"),K(s,"vSegments");let c=(i+1)*(s+1),u=i*s*6;if(!Number.isSafeInteger(u)||u>4294967295)throw new RangeError("Surface exceeds 32-bit index-buffer length");if(!Number.isSafeInteger(c)||c>4294967295)throw new RangeError("Surface exceeds 32-bit indexing");let l=new Float32Array(c*3),d=new Float32Array(c*3),f=new Float32Array(c*2),h=(S,y)=>y?(S%1+1)%1:Math.max(0,Math.min(1,S)),p=(S,y)=>mo(t(h(S,o),h(y,a))),m=1e-5,g=0;for(let S=0;S<=s;S++)for(let y=0;y<=i;y++,g++){let x=y/i,w=S/s,I=h(x,o),A=h(w,a);l.set(p(I,A),g*3);let M;if(n)M=mo(n(I,A));else{let R=p(I-m,A),_=p(I+m,A),C=p(I,A-m),P=p(I,A+m),O=Ie(_.map((V,n0)=>V-R[n0])),N=Ie(P.map((V,n0)=>V-C[n0]));M=[O[1]*N[2]-O[2]*N[1],O[2]*N[0]-O[0]*N[2],O[0]*N[1]-O[1]*N[0]]}d.set(Ie(M),g*3),f.set([x,w],g*2)}for(let S of l)if(!Number.isFinite(S))throw new RangeError("Positions must be representable as Float32");let b=c>65535?new Uint32Array(u):new Uint16Array(u),v=i+1,T=0;for(let S=0;S<s;S++)for(let y=0;y<i;y++){let x=S*v+y,w=x+1,I=x+v,A=I+1;b[T++]=x,b[T++]=w,b[T++]=A,b[T++]=x,b[T++]=A,b[T++]=I}super({id:e.id,topology:"triangle-list",indices:b,attributes:{POSITION:{size:3,value:l},NORMAL:{size:3,value:d},TEXCOORD_0:{size:2,value:f},...e.attributes}})}};function mo(r){if(!r||r.length!==3||!Array.from(r).every(Number.isFinite))throw new RangeError("Surface samples and normals must be finite triples");return Array.from(r)}function Ie(r){let e=Math.max(...r.map(Math.abs));if(!e)return[0,0,0];let t=r.map(i=>i/e),n=Math.hypot(...t);return t.map(i=>i===0?0:i/n)}var Ae=class extends te{constructor(e={}){let{majorRadius:t=1,minorRadius:n=.3,majorSegments:i=48,minorSegments:s=24,arc:o=Math.PI*2,startAngle:a=0,cap:c=!1}=e;if(Q(t,"majorRadius"),Q(n,"minorRadius"),n>=t)throw new RangeError("Ring torus requires minorRadius < majorRadius");if(!Number.isFinite(o)||o<=0||o>Math.PI*2)throw new RangeError("arc must be in (0, 2\u03C0]");if(K(i,"majorSegments",3),K(s,"minorSegments",3),!Number.isFinite(a))throw new RangeError("startAngle must be finite");let u=c&&o<Math.PI*2;if(super({...e,attributes:u?void 0:e.attributes,uSegments:i,vSegments:s,periodicU:o===Math.PI*2,periodicV:!0,sample:(l,d)=>{let f=a+l*o,h=d*Math.PI*2,p=t+n*Math.cos(h);return[p*Math.cos(f),n*Math.sin(h),-p*Math.sin(f)]},normal:(l,d)=>[Math.cos(d*Math.PI*2)*Math.cos(a+l*o),Math.sin(d*Math.PI*2),-Math.cos(d*Math.PI*2)*Math.sin(a+l*o)]}),u){let l=this.attributes.POSITION.value,d=Array.from(l),f=Array.from(this.attributes.NORMAL.value),h=Array.from(this.attributes.TEXCOORD_0.value),p=Array.from(this.indices.value);for(let[g,b]of[[a,-1],[a+o,1]]){let v=[-Math.sin(g)*b,0,-Math.cos(g)*b],T=d.length/3;d.push(t*Math.cos(g),0,-t*Math.sin(g)),f.push(...v),h.push(.5,.5);for(let S=0;S<=s;S++){let y=S%s*Math.PI*2/s,x=(S*(i+1)+(b<0?0:i))*3;if(d.push(...l.slice(x,x+3)),f.push(...v),h.push((Math.cos(y)+1)/2,(Math.sin(y)+1)/2),S<s){let w=T+S+1,I=w+1;p.push(T,...b>0?[I,w]:[w,I])}}}let m=new W({id:this.id,topology:this.topology,indices:w0(d.length/3,p),attributes:{POSITION:{size:3,value:new Float32Array(d)},NORMAL:{size:3,value:new Float32Array(f)},TEXCOORD_0:{size:2,value:new Float32Array(h)},...e.attributes}});Object.assign(this,{attributes:m.attributes,indices:m.indices,vertexCount:m.vertexCount})}}};var _e=class extends te{constructor(e){let{points:t,segments:n=48,phiStart:i=0,phiLength:s=Math.PI*2}=e;if(!t||t.length<2||t.some(l=>l.length!==2||!l.every(Number.isFinite)||l[0]<0))throw new RangeError("Lathe needs at least two finite [nonnegative radius, height] points");if(!Number.isFinite(i)||!Number.isFinite(s)||s<=0||s>Math.PI*2)throw new RangeError("Invalid lathe angular sweep");if(n<3)throw new RangeError("Lathe requires at least three angular segments");let o=t.map(l=>[...l]),a=o.slice(1).map((l,d)=>{let f=l[0]-o[d][0],h=l[1]-o[d][1];if(f===0&&h===0)throw new RangeError("Consecutive profile points must differ");return Ie([h,-f,0])}),c=o.map((l,d)=>{let f=a[Math.max(0,d-1)],h=a[Math.min(d,a.length-1)];return Ie(f.map((p,m)=>p+h[m]))}),u=l=>{let d=l*(o.length-1),f=Math.min(o.length-2,Math.floor(d));return{i:f,t:d-f}};super({...e,uSegments:n,vSegments:o.length-1,periodicU:s===Math.PI*2,sample:(l,d)=>{let{i:f,t:h}=u(d),p=o[f][0]*(1-h)+o[f+1][0]*h,m=o[f][1]*(1-h)+o[f+1][1]*h,g=i+l*s;return[p*Math.cos(g),m,-p*Math.sin(g)]},normal:(l,d)=>{let{i:f,t:h}=u(d),p=c[f].map((g,b)=>g*(1-h)+c[f+1][b]*h),m=i+l*s;return[p[0]*Math.cos(m),p[1],-p[0]*Math.sin(m)]}})}};var go=D(k(),1),z=class extends W{bufferLayout;constructor(e){let t={},n=new Map;for(let[o,a]of Object.entries(e.attributes)){let c=re(o),u=n.get(c);u&&delete t[u],n.set(c,o),t[o]=a}let i=e.indices,s=i instanceof Uint8Array?new Uint16Array(i):i&&!ArrayBuffer.isView(i)&&i.value instanceof Uint8Array?{...i,value:new Uint16Array(i.value)}:i;super({...e,attributes:t,indices:s});for(let[o,a]of Object.entries(t))!ArrayBuffer.isView(a)&&Object.isExtensible(a)&&o!=="indices"&&(Object.assign(a,this.attributes[o]),this.attributes[o]=a);this.bufferLayout=e.bufferLayout||Ai(this.attributes)}};function re(r){switch(r){case"POSITION":return"positions";case"NORMAL":return"normals";case"TEXCOORD_0":return"texCoords";case"TEXCOORD_1":return"texCoords1";case"COLOR_0":return"colors";default:return r}}function Ai(r){let e=[];for(let[t,n]of Object.entries(r)){if(!n)continue;let{value:i,size:s,normalized:o}=n;if(s===void 0)throw new Error(`Attribute ${t} is missing a size`);e.push({name:re(t),format:go.vertexFormatDecoder.getVertexFormatFromAttribute(i,s,o)})}return e}var _i=D(k(),1);function Me(r,e={}){let t=e.bufferName||"geometry";if(i3(r,t))return r;let n=e.minAttributeAlignment||4,i=s3(r,e.attributes),s=[],o=0,a=1/0;for(let[l,d]of i){if(!d)continue;if(d.constant)throw new Error(`Attribute ${l} is constant`);let{value:f,size:h,normalized:p}=d;if(!ArrayBuffer.isView(f))throw new Error(`Attribute ${l} is missing typed array data`);if(h===void 0)throw new Error(`Attribute ${l} is missing a size`);let m=_i.vertexFormatDecoder.getVertexFormatFromAttribute(f,h,p),g=_i.vertexFormatDecoder.getVertexFormatInfo(m);o=yo(o,n),s.push({sourceName:l,attributeName:re(l),value:f,size:h,format:m,byteOffset:o,byteLength:g.byteLength}),o+=g.byteLength;let b=f.length/h;if(!Number.isInteger(b))throw new Error(`Attribute ${l} length is not divisible by size`);a=Math.min(a,b)}if(s.length===0||!Number.isFinite(a))throw new Error(`Geometry ${r.id} has no interleavable attributes`);let c=yo(o,n),u=new ArrayBuffer(a*c);for(let l of s)o3(u,a,c,l);return new z({id:r.id,topology:r.topology||"triangle-list",vertexCount:r.vertexCount,indices:r.indices,attributes:{[t]:{value:new Uint8Array(u),size:c,byteStride:c}},bufferLayout:[{name:t,stepMode:"vertex",byteStride:c,attributes:s.map(l=>({attribute:l.attributeName,format:l.format,byteOffset:l.byteOffset}))}]})}function i3(r,e){if(r.bufferLayout?.length!==1)return!1;let t=r.bufferLayout[0];return t.name===e&&!!t.attributes?.length&&!!r.attributes[e]}function s3(r,e){let t=new Map,n=e||Object.keys(r.attributes);for(let i of n){let s=r.attributes[i];s&&t.set(re(i),[i,s])}return Array.from(t.values())}function o3(r,e,t,n){let i=n.value.constructor,s=i.BYTES_PER_ELEMENT;if(n.byteOffset%s!==0||t%s!==0)throw new Error(`Attribute ${n.sourceName} is not aligned to its component type`);let o=new i(r),a=n.value,c=n.byteOffset/s,u=t/s;for(let l=0;l<e;l++){let d=l*n.size,f=l*u+c;for(let h=0;h<n.size;h++)o[f+h]=a[d+h]}}function yo(r,e){return Math.ceil(r/e)*e}function Mi(r){let e=r.value;if(e instanceof Float32Array)return e;let t=new Float32Array(e.length),n=xo(e),i=e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array;for(let s=0;s<e.length;s++){let o=Number(e[s]);t[s]=r.normalized&&n?i?Math.max(o/n,-1):o/n:o}return t}function bt(r,e,t){let n={};for(let i of["POSITION","NORMAL","TANGENT"]){let s=r[i];if(!s)continue;let o=new Float32Array(s),a=i==="TANGENT"?4:3,c=Math.floor(s.length/a);for(let u=0;u<Math.min(e.length,t.length);u++){let l=t[u],d=e[u][i];if(!l||!d)continue;let f=i==="TANGENT"&&d.length===c*4?4:3;for(let h=0;h<c;h++){let p=h*a,m=h*f;for(let g=0;g<3;g++)o[p+g]+=(d[m+g]||0)*l}}i!=="POSITION"&&c3(o,a),n[i]=o}return n}function xr(r,e,t,n){let i={};for(let d of["POSITION","NORMAL","TANGENT"]){let f=e.attributes[d];f&&(i[d]=Mi(f))}let s=bt(i,t,n),o={};for(let[d,f]of Object.entries(e.attributes))f&&(o[d]=f);for(let d of["POSITION","NORMAL","TANGENT"]){let f=s[d],h=o[d];f&&h&&(o[d]={...h,value:a3(h,f)})}let a=new z({id:e.id,topology:e.topology||"triangle-list",vertexCount:e.vertexCount,indices:e.indices,attributes:o,bufferLayout:e.bufferLayout}),u=Me(a).attributes.geometry?.value,l=r._gpuGeometry?.attributes.geometry||r.bufferAttributes.geometry;if(u&&l){l.write(u);return}for(let d of["POSITION","NORMAL","TANGENT"]){let f=s[d];if(f){let h=d==="POSITION"?"positions":d==="NORMAL"?"normals":"TANGENT";r.bufferAttributes[h]?.write(f)}}}function a3(r,e){if(r.value instanceof Float32Array)return e;let t=r.value.slice(),n=xo(t),i=t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array;for(let s=0;s<e.length;s++){let o=e[s];t[s]=r.normalized&&n?Math.round(Math.max(i?-1:0,Math.min(1,o))*n):o}return t}function xo(r){return r instanceof Int8Array?127:r instanceof Uint8Array||r instanceof Uint8ClampedArray?255:r instanceof Int16Array?32767:r instanceof Uint16Array?65535:r instanceof Int32Array?2147483647:r instanceof Uint32Array?4294967295:0}function c3(r,e){for(let t=0;t<r.length;t+=e){let n=Math.hypot(r[t],r[t+1],r[t+2]);n>0&&(r[t]/=n,r[t+1]/=n,r[t+2]/=n)}}function br(r){let{joints:e,meshNode:t,worldMatrices:n,inverseBindMatrices:i,target:s}=r,o=e.length,a=s&&s.length===o*16?s:new Float32Array(o*16),c=t?n.get(t)||t.matrix:void 0,u=c?new L(c).invert():null;for(let l=0;l<o;l++){let d=e[l],f=n.get(d)||d.matrix,h=u?new L(u).multiplyRight(f):new L(f),p=l*16;if(i&&i.length>=p+16){let m=new L;for(let g=0;g<16;g++)m[g]=i[p+g];h.multiplyRight(m)}a.set(h,p)}return a}var u3=1,l3=1,vr=class{time=0;channels=new Map;animations=new Map;playing=!1;lastEngineTime=-1;constructor(){}addChannel(e){let{delay:t=0,duration:n=Number.POSITIVE_INFINITY,rate:i=1,repeat:s=1}=e,o=u3++,a={time:0,delay:t,duration:n,rate:i,repeat:s};return this._setChannelTime(a,this.time),this.channels.set(o,a),o}removeChannel(e){this.channels.delete(e);for(let[t,n]of this.animations)n.channel===e&&this.detachAnimation(t)}isFinished(e){let t=this.channels.get(e);return t===void 0?!1:this.time>=t.delay+t.duration*t.repeat}getTime(e){if(e===void 0)return this.time;let t=this.channels.get(e);return t===void 0?-1:t.time}setTime(e){this.time=Math.max(0,e);let t=this.channels.values();for(let i of t)this._setChannelTime(i,this.time);let n=this.animations.values();for(let i of n){let{animation:s,channel:o}=i;s.setTime(this.getTime(o))}}play(){this.playing=!0}pause(){this.playing=!1,this.lastEngineTime=-1}reset(){this.setTime(0)}attachAnimation(e,t){let n=l3++;return this.animations.set(n,{animation:e,channel:t}),e.setTime(this.getTime(t)),n}detachAnimation(e){this.animations.delete(e)}update(e){this.playing&&(this.lastEngineTime===-1&&(this.lastEngineTime=e),this.setTime(this.time+(e-this.lastEngineTime)),this.lastEngineTime=e)}_setChannelTime(e,t){let n=t-e.delay,i=e.duration*e.repeat;n>=i?e.time=e.duration*e.rate:(e.time=Math.max(0,n)%e.duration,e.time*=e.rate)}};var Tr=class{startIndex=-1;endIndex=-1;factor=0;times=[];values=[];_lastTime=-1;constructor(e){this.setKeyFrames(e),this.setTime(0)}setKeyFrames(e){let t=e.length;this.times.length=t,this.values.length=t;for(let n=0;n<t;++n)this.times[n]=e[n][0],this.values[n]=e[n][1];this._calculateKeys(this._lastTime)}setTime(e){e=Math.max(0,e),e!==this._lastTime&&(this._calculateKeys(e),this._lastTime=e)}getStartTime(){return this.times[this.startIndex]}getEndTime(){return this.times[this.endIndex]}getStartData(){return this.values[this.startIndex]}getEndData(){return this.values[this.endIndex]}_calculateKeys(e){let t=0,n=this.times.length;for(t=0;t<n-2&&!(this.times[t+1]>e);++t);this.startIndex=t,this.endIndex=t+1;let i=this.times[this.startIndex],s=this.times[this.endIndex];this.factor=Math.min(Math.max(0,(e-i)/(s-i)),1)}};var Sr=class{constructor(e){}async onInitialize(e){return null}};var vo=D(k(),1);function wr(r){let e=typeof window<"u"?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:null;return e?e.call(window,r):setTimeout(()=>r(typeof performance<"u"?performance.now():Date.now()),1e3/60)}function Ir(r){let e=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame:null;if(e){e.call(window,r);return}clearTimeout(r)}function vt(){let r;if(typeof window<"u"&&window.performance)r=window.performance.now();else if(typeof process<"u"&&process.hrtime){let e=process.hrtime();r=e[0]*1e3+e[1]/1e6}else r=Date.now();return r}var ne=class{constructor(e,t){this.sampleSize=1,this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this.name=e,this.type=t,this.reset()}reset(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}setSampleSize(e){return this.sampleSize=e,this}incrementCount(){return this.addCount(1),this}decrementCount(){return this.subtractCount(1),this}addCount(e){return this._count+=e,this._samples++,this._checkSampling(),this}subtractCount(e){return this._count-=e,this._samples++,this._checkSampling(),this}addTime(e){return this._time+=e,this.lastTiming=e,this._samples++,this._checkSampling(),this}timeStart(){return this._startTime=vt(),this._timerPending=!0,this}timeEnd(){return this._timerPending?(this.addTime(vt()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}getSampleAverageCount(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}getSampleAverageTime(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}getSampleHz(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}getAverageCount(){return this.samples>0?this.count/this.samples:0}getAverageTime(){return this.samples>0?this.time/this.samples:0}getHz(){return this.time>0?this.samples/(this.time/1e3):0}_checkSampling(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}};var Ee=class{constructor(e){this.stats={},this.id=e.id,this.stats={},this._initializeStats(e.stats),Object.seal(this)}get(e,t="count"){return this._getOrCreate({name:e,type:t})}get size(){return Object.keys(this.stats).length}reset(){for(let e of Object.values(this.stats))e.reset();return this}forEach(e){for(let t of Object.values(this.stats))e(t)}getTable(){let e={};return this.forEach(t=>{e[t.name]={time:t.time||0,count:t.count||0,average:t.getAverageTime()||0,hz:t.getHz()||0}}),e}_initializeStats(e=[]){e.forEach(t=>this._getOrCreate(t))}_getOrCreate(e){let{name:t,type:n}=e,i=this.stats[t];return i||(e instanceof ne?i=e:i=new ne(t,n),this.stats[t]=i),i}};var d3=0,f3="Animation Loop",bo={requestAnimationFrame:r=>wr(r),cancelAnimationFrame:r=>Ir(r)},Pe=class r{static defaultAnimationLoopProps={device:null,mobileQuality:void 0,onAddHTML:()=>"",onInitialize:async()=>null,onRender:()=>{},onFinalize:()=>{},onError:e=>{console.error(e)},stats:void 0,autoResizeViewport:!1,animationFrameProvider:bo};device=null;canvas=null;props;animationProps=null;timeline=null;stats;sharedStats;cpuTime;gpuTime;frameRate;display;_needsRedraw="initialized";_initialized=!1;_running=!1;_animationFrameId=null;_nextFramePromise=null;_resolveNextFrame=null;_cpuStartTime=0;_error=null;_lastFrameTime=0;constructor(e){if(this.props={...r.defaultAnimationLoopProps,...e},e=this.props,!e.device)throw new Error("No device provided");this.stats=e.stats||new Ee({id:`animation-loop-${d3++}`}),this.sharedStats=vo.luma.stats.get(f3),this.frameRate=this.stats.get("Frame Rate"),this.frameRate.setSampleSize(1),this.cpuTime=this.stats.get("CPU Time"),this.gpuTime=this.stats.get("GPU Time"),this.setProps({autoResizeViewport:e.autoResizeViewport,animationFrameProvider:e.animationFrameProvider}),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this._onMousemove=this._onMousemove.bind(this),this._onMouseleave=this._onMouseleave.bind(this)}destroy(){this.stop(),this._setDisplay(null),this._stopEventHandling(),this.device?._disableDebugGPUTime()}delete(){this.destroy()}reportError(e){this._error=e,this.props.onError(e),this.props.onError===r.defaultAnimationLoopProps.onError&&typeof window<"u"&&typeof ErrorEvent<"u"&&window.dispatchEvent(new ErrorEvent("error",{error:e,message:e.message}))}setNeedsRedraw(e){return this._needsRedraw=this._needsRedraw||e,this}needsRedraw(){let e=this._needsRedraw;return this._needsRedraw=!1,e}setProps(e){if("autoResizeViewport"in e&&(this.props.autoResizeViewport=e.autoResizeViewport||!1),"animationFrameProvider"in e){let t=e.animationFrameProvider||bo;if(t!==this.props.animationFrameProvider){let n=this._animationFrameId!==null;n&&this._cancelAnimationFrame(),this.props.animationFrameProvider=t,n&&this._requestAnimationFrame()}}return this}async start(){if(this._running)return this;this._running=!0;try{let e;if(!this._initialized){if(this._initialized=!0,await this._initDevice(),this._initialize(),!this._running)return null;await this.props.onInitialize(this._getAnimationProps())}return this._running?(e!==!1&&(this._cancelAnimationFrame(),this._requestAnimationFrame()),this):null}catch(e){let t=e instanceof Error?e:new Error("Unknown error");throw this.props.onError(t),t}}stop(){if(this._running){let e=this.animationProps;this._cancelAnimationFrame(),this._nextFramePromise=null,this._resolveNextFrame=null,this._running=!1,this._lastFrameTime=0,e&&this.props.onFinalize(e)}return this}redraw(e,t=null){return this.device?.isLost||this._error?this:(this._beginFrameTimers(e),this._setupFrame(),this.animationProps&&(this.animationProps.animationFrame=t),this._updateAnimationProps(),this._renderFrame(this._getAnimationProps()),this._clearNeedsRedraw(),this._resolveNextFrame&&(this._resolveNextFrame(this),this._nextFramePromise=null,this._resolveNextFrame=null),this._endFrameTimers(),this)}attachTimeline(e){return this.timeline=e,this.timeline}detachTimeline(){this.timeline=null}waitForRender(){return this.setNeedsRedraw("waitForRender"),this._nextFramePromise||(this._nextFramePromise=new Promise(e=>{this._resolveNextFrame=e})),this._nextFramePromise}async toDataURL(){if(this.setNeedsRedraw("toDataURL"),await this.waitForRender(),this.canvas instanceof HTMLCanvasElement)return this.canvas.toDataURL();throw new Error("OffscreenCanvas")}_initialize(){this._startEventHandling(),this._initializeAnimationProps(),this._updateAnimationProps(),this._resizeViewport(),this.device?._enableDebugGPUTime()}_setDisplay(e){this.display&&(this.display.destroy(),this.display.animationLoop=null),e&&(e.animationLoop=this),this.display=e}_requestAnimationFrame(){this._running&&(this._animationFrameId=this.props.animationFrameProvider.requestAnimationFrame(this._animationFrame.bind(this)))}_cancelAnimationFrame(){this._animationFrameId!==null&&(this.props.animationFrameProvider.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null)}_animationFrame(e,t){if(this._running)try{this.redraw(e,t??null),this._requestAnimationFrame()}catch(n){let i=n instanceof Error?n:new Error(String(n));this.reportError(i),this.stop()}}_renderFrame(e){if(this.display){this.display._renderFrame(e);return}let t=this.props.onRender(this._getAnimationProps());this.device&&t!==!1&&this.device.submit()}_clearNeedsRedraw(){this._needsRedraw=!1}_setupFrame(){this._resizeViewport()}_initializeAnimationProps(){let e=this.device?.getDefaultCanvasContext();if(!this.device||!e)throw new Error("loop");let t=e?.canvas,n=e.props.useDevicePixels;this.animationProps={animationLoop:this,device:this.device,canvasContext:e,canvas:t,useDevicePixels:n,timeline:this.timeline,needsRedraw:!1,width:1,height:1,aspect:1,time:0,startTime:Date.now(),engineTime:0,tick:0,tock:0,animationFrame:null,_mousePosition:null,mobileQuality:this.props.mobileQuality}}_getAnimationProps(){if(!this.animationProps)throw new Error("animationProps");return this.animationProps}_updateAnimationProps(){if(!this.animationProps)return;let{width:e,height:t,aspect:n}=this._getSizeAndAspect();(e!==this.animationProps.width||t!==this.animationProps.height)&&this.setNeedsRedraw("drawing buffer resized"),n!==this.animationProps.aspect&&this.setNeedsRedraw("drawing buffer aspect changed"),this.animationProps.width=e,this.animationProps.height=t,this.animationProps.aspect=n,this.animationProps.needsRedraw=this._needsRedraw,this.animationProps.engineTime=Date.now()-this.animationProps.startTime,this.timeline&&this.timeline.update(this.animationProps.engineTime),this.animationProps.tick=Math.floor(this.animationProps.time/1e3*60),this.animationProps.tock++,this.animationProps.time=this.timeline?this.timeline.getTime():this.animationProps.engineTime}async _initDevice(){if(this.device=await this.props.device,!this.device)throw new Error("No device provided");this.canvas=this.device.getDefaultCanvasContext().canvas||null}_createInfoDiv(){if(this.canvas&&this.props.onAddHTML){let e=document.createElement("div");document.body.appendChild(e),e.style.position="relative";let t=document.createElement("div");t.style.position="absolute",t.style.left="10px",t.style.bottom="10px",t.style.width="300px",t.style.background="white",this.canvas instanceof HTMLCanvasElement&&e.appendChild(this.canvas),e.appendChild(t);let n=this.props.onAddHTML(t);n&&(t.innerHTML=n)}}_getSizeAndAspect(){if(!this.device)return{width:1,height:1,aspect:1};let[e,t]=this.device.getDefaultCanvasContext().getDrawingBufferSize(),n=e>0&&t>0?e/t:1;return{width:e,height:t,aspect:n}}_resizeViewport(){this.props.autoResizeViewport&&this.device.gl&&this.device.gl.viewport(0,0,this.device.gl.drawingBufferWidth,this.device.gl.drawingBufferHeight)}_beginFrameTimers(e){let t=e??(typeof performance<"u"?performance.now():Date.now());if(this._lastFrameTime){let n=t-this._lastFrameTime;n>0&&this.frameRate.addTime(n)}this._lastFrameTime=t,this.device?._isDebugGPUTimeEnabled()&&this._consumeEncodedGpuTime(),this.cpuTime.timeStart()}_endFrameTimers(){this.device?._isDebugGPUTimeEnabled()&&this._consumeEncodedGpuTime(),this.cpuTime.timeEnd(),this._updateSharedStats()}_consumeEncodedGpuTime(){if(!this.device)return;let e=this.device.commandEncoder._gpuTimeMs;e!==void 0&&(this.gpuTime.addTime(e),this.device.commandEncoder._gpuTimeMs=void 0)}_updateSharedStats(){if(this.stats!==this.sharedStats){for(let e of Object.keys(this.sharedStats.stats))this.stats.stats[e]||delete this.sharedStats.stats[e];this.stats.forEach(e=>{let t=this.sharedStats.get(e.name,e.type);t.sampleSize=e.sampleSize,t.time=e.time,t.count=e.count,t.samples=e.samples,t.lastTiming=e.lastTiming,t.lastSampleTime=e.lastSampleTime,t.lastSampleCount=e.lastSampleCount,t._count=e._count,t._time=e._time,t._samples=e._samples,t._startTime=e._startTime,t._timerPending=e._timerPending})}}_startEventHandling(){this.canvas&&(this.canvas.addEventListener("mousemove",this._onMousemove),this.canvas.addEventListener("mouseleave",this._onMouseleave))}_stopEventHandling(){this.canvas?.removeEventListener("mousemove",this._onMousemove),this.canvas?.removeEventListener("mouseleave",this._onMouseleave)}_onMousemove(e){e instanceof MouseEvent&&(this._getAnimationProps()._mousePosition=[e.offsetX,e.offsetY])}_onMouseleave(e){this._getAnimationProps()._mousePosition=null}};var To=D(k(),1);function So(r,e){let t=null,n=e?.device||To.luma.createDevice({id:"animation-loop",adapters:e?.adapters,createCanvasContext:!0}),i=new Pe({...e,device:n,async onInitialize(o){p3(o.animationLoop.device);try{return t=new r(o),await t?.onInitialize(o)}catch(a){console.error(a),t=null;let c=a instanceof Error?a:new Error(String(a));return h3(o.animationLoop.device,c),o.animationLoop.reportError(c),o.animationLoop.stop(),null}},onRender(o){let a=t?.onRender(o),c=e?.onAfterRender?.(o,t);return e?.onAfterRender?a!==!1||c!==!1:a},onFinalize(o){try{t?.onFinalize(o)}finally{t=null}}}),s=i;return s.getAnimationLoopTemplate=()=>t,i.getInfo=()=>this.AnimationLoopTemplateCtor.info,s}function h3(r,e){if(!r)return;let t=r.getDefaultCanvasContext().canvas;if(t instanceof HTMLCanvasElement){t.style.overflow="visible";let n=document.getElementById("animation-loop-error");n?.remove(),n=document.createElement("h1"),n.id="animation-loop-error",n.innerHTML=e.message,n.style.position="absolute",n.style.top="10px",n.style.left="10px",n.style.color="black",n.style.backgroundColor="red",t.parentElement?.appendChild(n)}}function p3(r){if(!r)return;let e=document.getElementById("animation-loop-error");e&&e.remove()}var m3={target:[0,0,0],distance:10,yaw:0,pitch:.25,roll:0,minDistance:1,maxDistance:100,minPitch:-Math.PI/2+.01,maxPitch:Math.PI/2-.01,rotateSpeed:.006,zoomSpeed:.001,enabled:!0,enableRotate:!1,enableZoom:!0,enablePan:!1,panModifier:"shift",panSpeed:.0018,autoRotate:!1,autoRotateSpeed:.1},Ar=class{canvas;props;yaw;pitch;roll;distance;dragging=!1;activePointers=new Map;lastPointer=[0,0];previousPinchDistance=null;previousPinchAngle=null;previousTimeMilliseconds=null;previousCursor;previousTouchAction;constructor(e,t={}){this.canvas=e,this.props={...m3,...t},this.props.target=[...this.props.target],this.yaw=this.props.yaw,this.pitch=I0(this.props.pitch,this.props.minPitch,this.props.maxPitch),this.roll=this.props.roll,this.distance=I0(this.props.distance,this.props.minDistance,this.props.maxDistance),this.previousCursor=e.style.cursor,this.previousTouchAction=e.style.touchAction,e.style.cursor="grab",e.style.touchAction="none",e.addEventListener("pointerdown",this.handlePointerDown),e.addEventListener("pointermove",this.handlePointerMove),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("pointercancel",this.handlePointerUp),e.addEventListener("wheel",this.handleWheel,{passive:!1})}update(e){if(this.previousTimeMilliseconds!==null&&this.props.enabled&&this.props.autoRotate&&!this.dragging){let t=Math.min(Math.max(e-this.previousTimeMilliseconds,0)/1e3,.1);this.yaw+=this.props.autoRotateSpeed*t}this.previousTimeMilliseconds=e}getEyePosition(){let e=this.distance*Math.cos(this.pitch);return[this.props.target[0]+e*Math.sin(this.yaw),this.props.target[1]+this.distance*Math.sin(this.pitch),this.props.target[2]+e*Math.cos(this.yaw)]}getUpDirection(){return this.getCameraFrame().up}getCameraFrame(){let e=Math.sin(this.yaw),t=Math.cos(this.yaw),n=Math.sin(this.pitch),i=Math.cos(this.pitch),s=Math.sin(this.roll),o=Math.cos(this.roll),a=[t,0,-e],c=[-n*e,i,-n*t];return{right:[a[0]*o-c[0]*s,a[1]*o-c[1]*s,a[2]*o-c[2]*s],up:[c[0]*o+a[0]*s,c[1]*o+a[1]*s,c[2]*o+a[2]*s]}}setAutoRotate(e){this.props.autoRotate=e}setProps(e){Object.assign(this.props,e),e.enabled===!1&&this.dragging&&this.endPointerInteraction(),e.target&&(this.props.target=[...e.target]),e.yaw!==void 0&&(this.yaw=e.yaw),(e.pitch!==void 0||e.minPitch!==void 0||e.maxPitch!==void 0)&&(this.pitch=I0(e.pitch??this.pitch,this.props.minPitch,this.props.maxPitch)),e.roll!==void 0&&(this.roll=e.roll),(e.distance!==void 0||e.minDistance!==void 0||e.maxDistance!==void 0)&&(this.distance=I0(e.distance??this.distance,this.props.minDistance,this.props.maxDistance))}reset(){this.yaw=this.props.yaw,this.pitch=I0(this.props.pitch,this.props.minPitch,this.props.maxPitch),this.roll=this.props.roll,this.distance=I0(this.props.distance,this.props.minDistance,this.props.maxDistance)}destroy(){this.canvas.removeEventListener("pointerdown",this.handlePointerDown),this.canvas.removeEventListener("pointermove",this.handlePointerMove),this.canvas.removeEventListener("pointerup",this.handlePointerUp),this.canvas.removeEventListener("pointercancel",this.handlePointerUp),this.canvas.removeEventListener("wheel",this.handleWheel),this.endPointerInteraction(),this.canvas.style.cursor=this.previousCursor,this.canvas.style.touchAction=this.previousTouchAction}handlePointerDown=e=>{if(!(!this.props.enabled||e.button!==0||this.activePointers.has(e.pointerId)||this.activePointers.size>=2||this.activePointers.size>0&&e.pointerType!=="touch")){if(this.activePointers.size===0&&this.props.onInteractionStart?.(),this.dragging=!0,this.activePointers.set(e.pointerId,[e.clientX,e.clientY]),this.activePointers.size===1)this.lastPointer=[e.clientX,e.clientY];else{let{center:t,distance:n,angle:i}=this.getMultiPointerState();this.lastPointer=t,this.previousPinchDistance=n,this.previousPinchAngle=n>0?i:null}this.canvas.setPointerCapture(e.pointerId),this.canvas.style.cursor="grabbing"}};handlePointerMove=e=>{if(!this.props.enabled||!this.dragging||!this.activePointers.has(e.pointerId))return;if(this.activePointers.set(e.pointerId,[e.clientX,e.clientY]),this.activePointers.size>1){let{center:i,distance:s,angle:o}=this.getMultiPointerState();this.props.enablePan&&this.panTarget(i[0]-this.lastPointer[0],i[1]-this.lastPointer[1]),this.props.enableZoom&&this.previousPinchDistance&&s>0&&(this.distance=I0(this.distance*this.previousPinchDistance/s,this.props.minDistance,this.props.maxDistance)),this.props.enableRotate&&this.previousPinchAngle!==null&&s>0&&(this.roll+=g3(o-this.previousPinchAngle)),this.lastPointer=i,this.previousPinchDistance=s,this.previousPinchAngle=s>0?o:null;return}let t=e.clientX-this.lastPointer[0],n=e.clientY-this.lastPointer[1];this.lastPointer=[e.clientX,e.clientY],this.props.enablePan&&e[`${this.props.panModifier}Key`]?this.panTarget(t,n):(this.yaw-=t*this.props.rotateSpeed,this.pitch=I0(this.pitch-n*(this.props.pitchSpeed??this.props.rotateSpeed),this.props.minPitch,this.props.maxPitch))};handlePointerUp=e=>{if(!this.activePointers.has(e.pointerId))return;this.canvas.hasPointerCapture(e.pointerId)&&this.canvas.releasePointerCapture(e.pointerId),this.activePointers.delete(e.pointerId),this.previousPinchDistance=null,this.previousPinchAngle=null;let t=this.activePointers.entries().next().value;if(t){this.lastPointer=t[1];return}this.endPointerInteraction()};endPointerInteraction(){this.dragging=!1;for(let e of this.activePointers.keys())this.canvas.hasPointerCapture(e)&&this.canvas.releasePointerCapture(e);this.activePointers.clear(),this.previousPinchDistance=null,this.previousPinchAngle=null,this.canvas.style.cursor="grab"}getMultiPointerState(){let[e,t]=this.activePointers.values(),n=t[0]-e[0],i=t[1]-e[1];return{center:[(e[0]+t[0])/2,(e[1]+t[1])/2],distance:Math.hypot(n,i),angle:Math.atan2(i,n)}}panTarget(e,t){let n=this.distance*this.props.panSpeed,{right:i,up:s}=this.getCameraFrame();this.props.target=[this.props.target[0]+(-i[0]*e+s[0]*t)*n,this.props.target[1]+(-i[1]*e+s[1]*t)*n,this.props.target[2]+(-i[2]*e+s[2]*t)*n]}handleWheel=e=>{if(!this.props.enabled||!this.props.enableZoom)return;e.preventDefault(),this.props.onInteractionStart?.();let t=I0(e.deltaY,-240,240);this.distance=I0(this.distance*Math.exp(t*this.props.zoomSpeed),this.props.minDistance,this.props.maxDistance)}};function I0(r,e,t){return Math.min(Math.max(r,e),t)}function g3(r){return Math.atan2(Math.sin(r),Math.cos(r))}var E=D(k(),1),pn=D(b0(),1);function Z(r,e){if(!r){let t=new Error(e||"shaders: assertion failed.");throw Error.captureStackTrace?.(t,Z),t}}var Ei={number:{type:"number",validate(r,e){return Number.isFinite(r)&&typeof e=="object"&&(e.max===void 0||r<=e.max)&&(e.min===void 0||r>=e.min)}},array:{type:"array",validate(r,e){return Array.isArray(r)||ArrayBuffer.isView(r)}}};function Ao(r){let e={};for(let[t,n]of Object.entries(r))e[t]=y3(n);return e}function y3(r){let e=Io(r);if(e!=="object")return{value:r,...Ei[e],type:e};if(typeof r=="object")return r?r.type!==void 0?{...r,...Ei[r.type],type:r.type}:r.value===void 0?{type:"object",value:r}:(e=Io(r.value),{...r,...Ei[e],type:e}):{type:"object",value:null};throw new Error("props")}function Io(r){return Array.isArray(r)||ArrayBuffer.isView(r)?"array":typeof r}function Tt(r){r.map(e=>x3(e))}function x3(r){if(r.instance)return;Tt(r.dependencies||[]);let{propTypes:e={},deprecations:t=[]}=r,n={parsedDeprecations:b3(t),normalizedInjections:{vertex:{},fragment:{}}};e&&(n.propValidators=Ao(e)),r.instance=n;let i={};e&&(i=Object.entries(e).reduce((s,[o,a])=>{let c=a?.value;return c&&(s[o]=c),s},{})),r.defaultUniforms={...r.defaultUniforms,...i}}function _r(r,e,t){r.deprecations?.forEach(n=>{n.regex?.test(e)&&(n.deprecated?t.deprecated(n.old,n.new)():t.removed(n.old,n.new)())})}function b3(r){return r.forEach(e=>{e.type==="function"?e.regex=new RegExp(`\\b${e.old}\\(`):e.regex=new RegExp(`${e.type} ${e.old};`)}),r}function ie(r){let e=new Set,t=new Set,n=[],i=new Map;function s(c){let u=i.get(c.name);if(u&&u!==c)throw new Error(`Shader module name collision: Multiple different module objects share the name "${c.name}". Each module object must have a unique name.`);i.set(c.name,c)}function o(c,u){if(t.has(c)){let d=[...u,c.name].join(" -> ");throw new Error(`Shader module dependency cycle detected: ${d}`)}if(e.has(c))return;s(c),t.add(c);let l=[...u,c.name];if(c.dependencies)for(let d of c.dependencies)o(d,l);t.delete(c),e.add(c),n.push(c)}for(let c of r)o(c,[]);let a=new Set;for(let c of n)c.implements!==void 0&&(Z(!a.has(c.implements)),a.add(c.implements));return Tt(n),n}var Le=class{_shaderTranspilers=new Map;_injectionTargets=[];_defaultModules=[];addShaderTranspiler(e){this._shaderTranspilers.set(e.sourceLanguage,e)}removeShaderTranspiler(e){this._shaderTranspilers.delete(e)}_transpileShader(e,t,n,i){let s=e.sourceLanguage||this.shaderLanguage;if(s===this.shaderLanguage)return Z(!ie(t).some(f=>f.sourceLanguage&&f.sourceLanguage!==this.shaderLanguage)),{code:n||"",modules:t};let o=this._shaderTranspilers.get(s);Z(o);let a=ie(t);Z(!a.some(f=>f.sourceLanguage&&f.sourceLanguage!==s&&f.sourceLanguage!==this.shaderLanguage));let c=a.filter(f=>f.sourceLanguage===s).map(f=>f.source||"").join(`
|
|
8
8
|
`),u={vertex:e.vertexEntryPoint,fragment:e.fragmentEntryPoint,compute:e.computeEntryPoint},l=n==null?{code:""}:o.transpile({source:[c,n].filter(Boolean).join(`
|
|
9
|
-
`),target:this.shaderLanguage,stage:i,entryPoints:u,platformInfo:e.platformInfo}),d=a.map(f=>({...f,dependencies:void 0,...f.sourceLanguage===s?{source:void 0,vs:void 0,fs:void 0}:{}}));return{...l,modules:d}}addDefaultModule(e){this._defaultModules.find(t=>t.name===(typeof e=="string"?e:e.name))||this._defaultModules.push(e)}removeDefaultModule(e){let t=typeof e=="string"?e:e.name;this._defaultModules=this._defaultModules.filter(n=>n.name!==t)}
|
|
9
|
+
`),target:this.shaderLanguage,stage:i,entryPoints:u,platformInfo:e.platformInfo}),d=a.map(f=>({...f,dependencies:void 0,...f.sourceLanguage===s?{source:void 0,vs:void 0,fs:void 0}:{}}));return{...l,modules:d}}addDefaultModule(e){this._defaultModules.find(t=>t.name===(typeof e=="string"?e:e.name))||this._defaultModules.push(e)}removeDefaultModule(e){let t=typeof e=="string"?e:e.name;this._defaultModules=this._defaultModules.filter(n=>n.name!==t)}addShaderInjectionTarget(e){this._injectionTargets.push(e)}resetShaderInjectionTargets(){this._injectionTargets.length=0}_getModuleList(e=[]){let t=new Array(this._defaultModules.length+e.length),n={},i=0;for(let s=0,o=this._defaultModules.length;s<o;++s){let a=this._defaultModules[s],c=a.name;t[i++]=a,n[c]=!0}for(let s=0,o=e.length;s<o;++s){let a=e[s],c=a.name;n[c]||(t[i++]=a,n[c]=!0)}return t.length=i,Tt(t),t}};var _o=`#ifdef MODULE_LOGDEPTH
|
|
10
10
|
logdepth_adjustPosition(gl_Position);
|
|
11
11
|
#endif
|
|
12
|
-
`,
|
|
12
|
+
`,Mo=`#ifdef MODULE_MATERIAL
|
|
13
13
|
fragColor = material_filterColor(fragColor);
|
|
14
14
|
#endif
|
|
15
15
|
|
|
@@ -29,21 +29,21 @@
|
|
|
29
29
|
#ifdef MODULE_LOGDEPTH
|
|
30
30
|
logdepth_setFragDepth();
|
|
31
31
|
#endif
|
|
32
|
-
`;var
|
|
32
|
+
`;var v3={vertex:_o,fragment:Mo},Eo=/void\s+main\s*\([^)]*\)\s*\{\n?/,Po=/}\n?[^{}]*$/,Pi=[],St="__LUMA_INJECT_DECLARATIONS__";function Er(r,e,t){let n={};for(let i of r){let s=i[e];if(s===void 0)continue;if(i.stage!=="vertex"&&i.stage!=="fragment"||i.target.includes(":"))throw new Error("Shader injection targets require an explicit stage and unqualified target");let o=`${i.stage==="vertex"?"vs":"fs"}:${i.target}`;if(!/^(vs|fs):(?:#(?:decl|main-start|main-end)|[A-Za-z_][A-Za-z0-9_]*)$/.test(o))throw new Error(`Shader injection target "${o}" must be a named shader injection target`);n[o]||=[],n[o].push({injection:s,order:i.order??0,...t?{pluginName:t}:{}})}return n}function Re(r,e,t,n=!1,i="glsl",s={}){let o=e==="vertex";for(let a in t){let c=t[a];c.sort((l,d)=>l.order-d.order),Pi.length=c.length;for(let l=0,d=c.length;l<d;++l)Pi[l]=c[l].injection;let u=`${Pi.join(`
|
|
33
33
|
`)}
|
|
34
|
-
`;switch(a){case"vs:#decl":(i==="wgsl"||o)&&(r=r.replace(
|
|
35
|
-
${t}${r.slice(o)}`}return`${r.slice(0,s.closeBraceIndex)}${t}${r.slice(s.closeBraceIndex)}`}function
|
|
36
|
-
`)){let o=s.replace(/\/\/.*$/,"").trim();if(!o||o.startsWith("#"))continue;let a=e==="wgsl"?o.match(/^([A-Za-z0-9_]+)\s*:/):o.match(
|
|
34
|
+
`;switch(a){case"vs:#decl":(i==="wgsl"||o)&&(r=r.replace(St,u));break;case"vs:#main-start":(i==="wgsl"||o)&&(r=i==="wgsl"?Mr(r,"vertex",u,"start",s.vertex):r.replace(Eo,l=>l+u));break;case"vs:#main-end":(i==="wgsl"||o)&&(r=i==="wgsl"?Mr(r,"vertex",u,"end",s.vertex):r.replace(Po,l=>u+l));break;case"fs:#decl":(i==="wgsl"||!o)&&(r=r.replace(St,u));break;case"fs:#main-start":(i==="wgsl"||!o)&&(r=i==="wgsl"?Mr(r,"fragment",u,"start",s.fragment):r.replace(Eo,l=>l+u));break;case"fs:#main-end":(i==="wgsl"||!o)&&(r=i==="wgsl"?Mr(r,"fragment",u,"end",s.fragment):r.replace(Po,l=>u+l));break;default:r=r.replace(a,l=>l+u)}}return r=r.replace(St,""),n&&(r=r.replace(/\}\s*$/,a=>a+v3[e])),r}function Mr(r,e,t,n,i){let s=T3(r,e,i);if(!s)return r;if(n==="start"){let o=s.openBraceIndex+1;return`${r.slice(0,o)}
|
|
35
|
+
${t}${r.slice(o)}`}return`${r.slice(0,s.closeBraceIndex)}${t}${r.slice(s.closeBraceIndex)}`}function T3(r,e,t){let n=e==="vertex"?"@vertex":"@fragment",i=r.indexOf(n);if(i<0)return null;let s=t?r.search(new RegExp(`\\bfn\\s+${S3(t)}\\s*\\(`)):r.indexOf("fn",i);if(s<0)return null;let o=r.indexOf("{",s);if(o<0)return null;let a=0;for(let c=o;c<r.length;c++){let u=r[c];if(u==="{")a++;else if(u==="}"&&(a--,a===0))return{openBraceIndex:o,closeBraceIndex:c}}return null}function S3(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var w3=/^(?:uniform\s+)?(?:(?:lowp|mediump|highp)\s+)?[A-Za-z0-9_]+(?:<[^>]+>)?\s+([A-Za-z0-9_]+)(?:\s*\[[^\]]+\])?\s*;/,I3=/((?:layout\s*\([^)]*\)\s*)*)uniform\s+([A-Za-z_][A-Za-z0-9_]*)\s*\{([\s\S]*?)\}\s*([A-Za-z_][A-Za-z0-9_]*)?\s*;/g;function Ro(r){return`${r.name}Uniforms`}function A3(r,e){let t=e==="wgsl"?r.source:e==="vertex"?r.vs:r.fs;if(!t)return null;let n=Ro(r);return M3(t,e==="wgsl"?"wgsl":"glsl",n)}function _3(r,e){let t=Object.keys(r.uniformTypes||{});if(!t.length)return null;let n=A3(r,e);return n?{moduleName:r.name,uniformBlockName:Ro(r),stage:e,expectedUniformNames:t,actualUniformNames:n,matches:L3(t,n)}:null}function Co(r,e,t={}){let n=_3(r,e);if(!n||n.matches)return n;let i=R3(n);return t.log?.error?.(i,n)(),t.throwOnError!==!1&&Z(!1,i),n}function Bo(r){let e=[],t=C3(r);for(let n of t.matchAll(I3)){let i=n[1]?.trim()||null;e.push({blockName:n[2],body:n[3],instanceName:n[4]||null,layoutQualifier:i,hasLayoutQualifier:!!i,isStd140:!!(i&&/\blayout\s*\([^)]*\bstd140\b[^)]*\)/.exec(i))})}return e}function Do(r,e,t,n){let i=Bo(r).filter(o=>!o.isStd140),s=new Set;for(let o of i){if(s.has(o.blockName))continue;s.add(o.blockName);let a=n?.label?`${n.label} `:"",c=o.hasLayoutQualifier?`declares ${B3(o.layoutQualifier)} instead of layout(std140)`:"does not declare layout(std140)",u=`${a}${e} shader uniform block ${o.blockName} ${c}. luma.gl host-side shader block packing assumes explicit layout(std140) for GLSL uniform blocks. Add \`layout(std140)\` to the block declaration.`;t?.warn?.(u,o)()}return i}function M3(r,e,t){let n=e==="wgsl"?E3(r,t):P3(r,t);if(!n)return null;let i=[];for(let s of n.split(`
|
|
36
|
+
`)){let o=s.replace(/\/\/.*$/,"").trim();if(!o||o.startsWith("#"))continue;let a=e==="wgsl"?o.match(/^([A-Za-z0-9_]+)\s*:/):o.match(w3);a&&i.push(a[1])}return i}function E3(r,e){let t=new RegExp(`\\bstruct\\s+${e}\\b`,"m").exec(r);if(!t)return null;let n=r.indexOf("{",t.index);if(n<0)return null;let i=0;for(let s=n;s<r.length;s++){let o=r[s];if(o==="{"){i++;continue}if(o==="}"&&(i--,i===0))return r.slice(n+1,s)}return null}function P3(r,e){return Bo(r).find(n=>n.blockName===e)?.body||null}function L3(r,e){if(r.length!==e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!==e[t])return!1;return!0}function R3(r){let{expectedUniformNames:e,actualUniformNames:t}=r,n=e.filter(a=>!t.includes(a)),i=t.filter(a=>!e.includes(a)),s=[`Expected ${e.length} fields, found ${t.length}.`],o=D3(e,t);return o&&s.push(o),n.length&&s.push(`Missing from shader block (${n.length}): ${Lo(n)}.`),i.length&&s.push(`Unexpected in shader block (${i.length}): ${Lo(i)}.`),e.length<=12&&t.length<=12&&(n.length||i.length)&&(s.push(`Expected: ${e.join(", ")}.`),s.push(`Actual: ${t.join(", ")}.`)),`${r.moduleName}: ${r.stage} shader uniform block ${r.uniformBlockName} does not match module.uniformTypes. ${s.join(" ")}`}function C3(r){return r.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/.*$/gm,"")}function B3(r){return r.replace(/\s+/g," ").trim()}function D3(r,e){let t=Math.min(r.length,e.length);for(let n=0;n<t;n++)if(r[n]!==e[n])return`First mismatch at field ${n+1}: expected ${r[n]}, found ${e[n]}.`;return r.length>e.length?`Shader block ends after field ${e.length}; expected next field ${r[e.length]}.`:e.length>r.length?`Shader block has extra field ${e.length}: ${e[r.length]}.`:null}function Lo(r,e=8){if(r.length<=e)return r.join(", ");let t=r.length-e;return`${r.slice(0,e).join(", ")}, ... (${t} more)`}var wt=`
|
|
37
37
|
|
|
38
|
-
${
|
|
39
|
-
`;function
|
|
38
|
+
${St}
|
|
39
|
+
`;function Pr(r){return function(t){let n={};for(let i of r){let s=i.getUniforms?.(t,n);Object.assign(n,s)}return n}}function Ce(r,e,t,n){for(let i in r){let s=/^(v|f)s:(#)?([\w-]+)$/.exec(i);if(s){let o=s[2],a=s[3],c=o?a==="decl"?t:n:e;c[i]=c[i]||[],c[i].push(...r[i])}else n[i]=n[i]||[],n[i].push(...r[i])}}function Lr(r,e,t){let n;switch(e){case"vertex":n=r.vs||"";break;case"fragment":n=r.fs||"";break;case"wgsl":n=r.source||"";break;default:Z(!1)}if(!r.name)throw new Error("Shader module must have a name");Co(r,e,{log:t});let i=r.name.toUpperCase().replace(/[^0-9a-z]/gi,"_"),s=`// ----- MODULE ${r.name} ---------------
|
|
40
40
|
|
|
41
41
|
`;return e!=="wgsl"&&(s+=`#define MODULE_${i}
|
|
42
42
|
`),s+=`${n}
|
|
43
|
-
`,s}function
|
|
43
|
+
`,s}function Rr(r,e,t="glsl"){let n="";for(let i in r){let s=r[i],o=s.returnType||"void",a=t==="wgsl"?"fn":o,c=t==="wgsl"&&o!=="void"?` -> ${o}`:"";if(n+=`${a} ${s.signature}${c} {
|
|
44
44
|
`,s.header&&(n+=` ${s.header}`),e[i]){let u=e[i];u.sort((l,d)=>l.order-d.order);for(let l of u)n+=` ${l.injection}
|
|
45
45
|
`}s.footer&&(n+=` ${s.footer}`),n+=`}
|
|
46
|
-
`}return n}function
|
|
46
|
+
`}return n}function It(r,e=[],t="glsl"){let n={vertex:{},fragment:{}};for(let i of r){let s=i[t];if(s){let o=i.stage==="vertex"?"vs":"fs";n[i.stage][`${o}:${i.name}`]={...s,signature:`${i.name}(${s.parameters})`}}}for(let i of e){let s=It([i],[],t);for(let o of["vertex","fragment"])for(let[a,c]of Object.entries(s[o])){let u=n[o][a];if(u&&(u.signature!==c.signature||(u.returnType||"void")!==(c.returnType||"void")))throw new Error(`Conflicting ShaderPlugin injection target ${a}`);n[o][a]=u||c}}return n}function O3(r,e){return!!(e.startsWith("vs:")?r.vertex:r.fragment)[e]}function Cr(r,e,t){let n=t==="vertex"?"vs:":t==="fragment"?"fs:":null;for(let i in e)if(!(n&&!i.startsWith(n))&&!O3(r,i)){let s=[...new Set(e[i].map(o=>o.pluginName).filter(Boolean))];throw new Error(`Unknown shader injection target ${i}${s.length?` (plugins: ${s.join(", ")})`:""}`)}}function Oo(r,e){return{name:N3(r,e),language:"glsl",version:k3(r)}}function N3(r,e="unnamed"){let n=/#define[^\S\r\n]*SHADER_NAME[^\S\r\n]*([A-Za-z0-9_-]+)\s*/.exec(r);return n?n[1]:e}function k3(r){let e=100,t=r.match(/[^\s]+/g);if(t&&t.length>=2&&t[0]==="#version"){let n=parseInt(t[1],10);Number.isFinite(n)&&(e=n)}if(e!==100&&e!==300)throw new Error(`Invalid GLSL version ${e}`);return e}function No(r){switch(r?.gpu.toLowerCase()){case"apple":return`#define APPLE_GPU
|
|
47
47
|
// Apple optimizes away the calculation necessary for emulated fp64
|
|
48
48
|
#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1
|
|
49
49
|
#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1
|
|
@@ -67,60 +67,67 @@ ${Tt}
|
|
|
67
67
|
#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1
|
|
68
68
|
// If the GPU doesn't have full 32 bits precision, will causes overflow
|
|
69
69
|
#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1
|
|
70
|
-
`}}function
|
|
71
|
-
`)}function
|
|
70
|
+
`}}function Fo(r){let e=Ri(r),t=$o[e];if(!t)throw new Error(`Unsupported variable shader type: ${r}`);return t}var ko=new Map;function Go(r){let e=Li(r),t=ko.get(e);if(t)return t;let n=G3[e];if(!n)throw new Error(`Unsupported attribute shader type: ${r}`);let[i,s]=n,o=i==="i32"||i==="u32",a=i!=="u32",c=F3[i]*s,u=Object.freeze({primitiveType:i,components:s,byteLength:c,integer:o,signed:a});return ko.set(e,u),u}var Br=class{getVariableShaderTypeInfo(e){return Fo(e)}getAttributeShaderTypeInfo(e){return Go(e)}makeShaderAttributeType(e,t){return zo(e,t)}resolveAttributeShaderTypeAlias(e){return Li(e)}resolveVariableShaderTypeAlias(e){return Ri(e)}};function zo(r,e){return e===1?r:`vec${e}<${r}>`}function Li(r){return Vo[r]||r}function Ri(r){return Uo[r]||r}var Be=new Br,F3={f32:4,f16:2,i32:4,u32:4},G3={f32:["f32",1],"vec2<f32>":["f32",2],"vec3<f32>":["f32",3],"vec4<f32>":["f32",4],f16:["f16",1],"vec2<f16>":["f16",2],"vec3<f16>":["f16",3],"vec4<f16>":["f16",4],i32:["i32",1],"vec2<i32>":["i32",2],"vec3<i32>":["i32",3],"vec4<i32>":["i32",4],u32:["u32",1],"vec2<u32>":["u32",2],"vec3<u32>":["u32",3],"vec4<u32>":["u32",4]},$o={f32:{type:"f32",components:1},f16:{type:"f16",components:1},i32:{type:"i32",components:1},u32:{type:"u32",components:1},"vec2<f32>":{type:"f32",components:2},"vec3<f32>":{type:"f32",components:3},"vec4<f32>":{type:"f32",components:4},"vec2<f16>":{type:"f16",components:2},"vec3<f16>":{type:"f16",components:3},"vec4<f16>":{type:"f16",components:4},"vec2<i32>":{type:"i32",components:2},"vec3<i32>":{type:"i32",components:3},"vec4<i32>":{type:"i32",components:4},"vec2<u32>":{type:"u32",components:2},"vec3<u32>":{type:"u32",components:3},"vec4<u32>":{type:"u32",components:4},"mat2x2<f32>":{type:"f32",components:4},"mat2x3<f32>":{type:"f32",components:6},"mat2x4<f32>":{type:"f32",components:8},"mat3x2<f32>":{type:"f32",components:6},"mat3x3<f32>":{type:"f32",components:9},"mat3x4<f32>":{type:"f32",components:12},"mat4x2<f32>":{type:"f32",components:8},"mat4x3<f32>":{type:"f32",components:12},"mat4x4<f32>":{type:"f32",components:16},"mat2x2<f16>":{type:"f16",components:4},"mat2x3<f16>":{type:"f16",components:6},"mat2x4<f16>":{type:"f16",components:8},"mat3x2<f16>":{type:"f16",components:6},"mat3x3<f16>":{type:"f16",components:9},"mat3x4<f16>":{type:"f16",components:12},"mat4x2<f16>":{type:"f16",components:8},"mat4x3<f16>":{type:"f16",components:12},"mat4x4<f16>":{type:"f16",components:16},"mat2x2<i32>":{type:"i32",components:4},"mat2x3<i32>":{type:"i32",components:6},"mat2x4<i32>":{type:"i32",components:8},"mat3x2<i32>":{type:"i32",components:6},"mat3x3<i32>":{type:"i32",components:9},"mat3x4<i32>":{type:"i32",components:12},"mat4x2<i32>":{type:"i32",components:8},"mat4x3<i32>":{type:"i32",components:12},"mat4x4<i32>":{type:"i32",components:16},"mat2x2<u32>":{type:"u32",components:4},"mat2x3<u32>":{type:"u32",components:6},"mat2x4<u32>":{type:"u32",components:8},"mat3x2<u32>":{type:"u32",components:6},"mat3x3<u32>":{type:"u32",components:9},"mat3x4<u32>":{type:"u32",components:12},"mat4x2<u32>":{type:"u32",components:8},"mat4x3<u32>":{type:"u32",components:12},"mat4x4<u32>":{type:"u32",components:16}};for(let r of Object.values($o))Object.freeze(r);var Vo={vec2i:"vec2<i32>",vec3i:"vec3<i32>",vec4i:"vec4<i32>",vec2u:"vec2<u32>",vec3u:"vec3<u32>",vec4u:"vec4<u32>",vec2f:"vec2<f32>",vec3f:"vec3<f32>",vec4f:"vec4<f32>",vec2h:"vec2<f16>",vec3h:"vec3<f16>",vec4h:"vec4<f16>"},Uo={vec2i:"vec2<i32>",vec3i:"vec3<i32>",vec4i:"vec4<i32>",vec2u:"vec2<u32>",vec3u:"vec3<u32>",vec4u:"vec4<u32>",vec2f:"vec2<f32>",vec3f:"vec3<f32>",vec4f:"vec4<f32>",vec2h:"vec2<f16>",vec3h:"vec3<f16>",vec4h:"vec4<f16>",mat2x2f:"mat2x2<f32>",mat2x3f:"mat2x3<f32>",mat2x4f:"mat2x4<f32>",mat3x2f:"mat3x2<f32>",mat3x3f:"mat3x3<f32>",mat3x4f:"mat3x4<f32>",mat4x2f:"mat4x2<f32>",mat4x3f:"mat4x3<f32>",mat4x4f:"mat4x4<f32>",mat2x2i:"mat2x2<i32>",mat2x3i:"mat2x3<i32>",mat2x4i:"mat2x4<i32>",mat3x2i:"mat3x2<i32>",mat3x3i:"mat3x3<i32>",mat3x4i:"mat3x4<i32>",mat4x2i:"mat4x2<i32>",mat4x3i:"mat4x3<i32>",mat4x4i:"mat4x4<i32>",mat2x2u:"mat2x2<u32>",mat2x3u:"mat2x3<u32>",mat2x4u:"mat2x4<u32>",mat3x2u:"mat3x2<u32>",mat3x3u:"mat3x3<u32>",mat3x4u:"mat3x4<u32>",mat4x2u:"mat4x2<u32>",mat4x3u:"mat4x3<u32>",mat4x4u:"mat4x4<u32>",mat2x2h:"mat2x2<f16>",mat2x3h:"mat2x3<f16>",mat2x4h:"mat2x4<f16>",mat3x2h:"mat3x2<f16>",mat3x3h:"mat3x3<f16>",mat3x4h:"mat3x4<f16>",mat4x2h:"mat4x2<f16>",mat4x3h:"mat4x3<f16>",mat4x4h:"mat4x4<f16>"};function Dr(r,e){switch(e){case 1:return r;case 2:return r+r%2;default:return r+(4-r%4)%4}}function qo(r,e){let t=[];for(let[n,i]of Object.entries(e))z3(r,n),t.push(`in ${Or(i)} ${n};`);return t.join(`
|
|
71
|
+
`)}function Ho(r,e,t){let n=Object.entries(t);if(n.length===0)return{source:r,declarations:"",initialization:""};let i=$3(r,e),s=r.slice(i.openParenthesis+1,i.closeParenthesis),o=V3(r,s),a=new Set(o.locations),c=[],u=[],l=[];for(let[m,g]of n){if(o.names.has(m)||W3(r,m))throw new Error(`ShaderPlugin vertex input "${m}" conflicts with an existing WGSL shader input or variable`);let b=q3(a);a.add(b);let v=`_luma_${m}`;c.push(`@location(${b}) ${v}: ${g}`),u.push(`var<private> ${m}: ${g};`),l.push(`${m} = ${v};`)}let d=s.trim()?`,
|
|
72
72
|
`:`
|
|
73
73
|
`,f=s.trim()?"":`
|
|
74
74
|
`,h=`${s}${d}${c.join(`,
|
|
75
75
|
`)}${f}`;return{source:r.slice(0,i.openParenthesis+1)+h+r.slice(i.closeParenthesis),declarations:u.join(`
|
|
76
76
|
`),initialization:l.join(`
|
|
77
|
-
`)}}function
|
|
78
|
-
`&&(o=!1);continue}if(s>0){c==="/"&&u==="*"?(s++,a++):c==="*"&&u==="/"&&(s--,a++);continue}if(c==="/"&&u==="/"){o=!0,a++;continue}if(c==="/"&&u==="*"){s=1,a++;continue}if(c===t&&i++,c===n&&--i===0)return a}return-1}function
|
|
79
|
-
`&&(i=!1);continue}if(n>0){o==="/"&&a==="*"?(n++,s++):o==="*"&&a==="/"&&(n--,s++);continue}o==="/"&&a==="/"?(i=!0,s++):o==="/"&&a==="*"?(n=1,s++):o==="{"?t++:o==="}"&&t--}return t}function
|
|
77
|
+
`)}}function Or(r){let{primitiveType:e,components:t}=Be.getAttributeShaderTypeInfo(r),n=e==="i32"?"int":e==="u32"?"uint":"float";return t===1?n:`${n==="int"?"i":n==="uint"?"u":""}vec${t}`}function z3(r,e){let t=Nr(e);if(new RegExp(`\\b(?:in|attribute)\\s+(?:(?:lowp|mediump|highp)\\s+)?[A-Za-z_][A-Za-z0-9_]*\\s+${t}\\s*(?:\\[|;)`).test(r))throw new Error(`ShaderPlugin vertex input "${e}" conflicts with an existing GLSL input`)}function $3(r,e){let n=new RegExp(`\\bfn\\s+${Nr(e)}\\s*\\(`,"g").exec(r);if(!n)throw new Error(`ShaderPlugin vertex inputs require WGSL vertex entry point "${e}"`);let i=r.indexOf("(",n.index),s=Xo(r,i,"(",")");if(s<0)throw new Error(`Unable to parse WGSL vertex entry point "${e}" parameters`);return{openParenthesis:i,closeParenthesis:s}}function V3(r,e){let t=jo(e),n=new Set(Wo(e)),i=U3(e);for(let s of i){let o=j3(r,s);if(o!==null){t.push(...jo(o));for(let a of Wo(o))n.add(a)}}return{locations:t,names:n}}function jo(r){let e=[],t=/@location\s*\(\s*(\d+)\s*\)/g,n=t.exec(r);for(;n;)e.push(Number(n[1])),n=t.exec(r);return e}function Wo(r){let e=[],t=/(?:^|,)\s*(?:@[A-Za-z_][\w]*(?:\([^)]*\))?\s*)*([A-Za-z_][\w]*)\s*:/gm,n=t.exec(r);for(;n;)e.push(n[1]),n=t.exec(r);return e}function U3(r){let e=[],t=/:\s*([A-Za-z_][\w]*)\b/g,n=t.exec(r);for(;n;)e.push(n[1]),n=t.exec(r);return e}function j3(r,e){let n=new RegExp(`\\bstruct\\s+${Nr(e)}\\s*\\{`,"g").exec(r);if(!n)return null;let i=r.indexOf("{",n.index),s=Xo(r,i,"{","}");return s<0?null:r.slice(i+1,s)}function W3(r,e){let t=Nr(e),n=new RegExp(`\\b(?:var(?:<[^>]+>)?|let|const)\\s+${t}\\b`,"g"),i=n.exec(r);for(;i;){if(H3(r,i.index)===0)return!0;i=n.exec(r)}return!1}function q3(r){let e=0;for(;r.has(e);)e++;return e}function Xo(r,e,t,n){let i=0,s=0,o=!1;for(let a=e;a<r.length;a++){let c=r[a],u=r[a+1];if(o){c===`
|
|
78
|
+
`&&(o=!1);continue}if(s>0){c==="/"&&u==="*"?(s++,a++):c==="*"&&u==="/"&&(s--,a++);continue}if(c==="/"&&u==="/"){o=!0,a++;continue}if(c==="/"&&u==="*"){s=1,a++;continue}if(c===t&&i++,c===n&&--i===0)return a}return-1}function H3(r,e){let t=0,n=0,i=!1;for(let s=0;s<e;s++){let o=r[s],a=r[s+1];if(i){o===`
|
|
79
|
+
`&&(i=!1);continue}if(n>0){o==="/"&&a==="*"?(n++,s++):o==="*"&&a==="/"&&(n--,s++);continue}o==="/"&&a==="/"?(i=!0,s++):o==="/"&&a==="*"?(n=1,s++):o==="{"?t++:o==="}"&&t--}return t}function Nr(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var s0="(?:var<\\s*(uniform|storage(?:\\s*,\\s*[A-Za-z_][A-Za-z0-9_]*)?)\\s*>|var)\\s+([A-Za-z_][A-Za-z0-9_]*)";var De=[new RegExp(`@binding\\(\\s*(auto|\\d+)\\s*\\)\\s*@group\\(\\s*(\\d+)\\s*\\)\\s*${s0}`,"g"),new RegExp(`@group\\(\\s*(\\d+)\\s*\\)\\s*@binding\\(\\s*(auto|\\d+)\\s*\\)\\s*${s0}`,"g")],kr=[new RegExp(`@binding\\(\\s*(auto|\\d+)\\s*\\)\\s*@group\\(\\s*(\\d+)\\s*\\)\\s*${s0}`,"g"),new RegExp(`@group\\(\\s*(\\d+)\\s*\\)\\s*@binding\\(\\s*(auto|\\d+)\\s*\\)\\s*${s0}`,"g")],Yo=[new RegExp(`@binding\\(\\s*(\\d+)\\s*\\)\\s*@group\\(\\s*(\\d+)\\s*\\)\\s*${s0}`,"g"),new RegExp(`@group\\(\\s*(\\d+)\\s*\\)\\s*@binding\\(\\s*(\\d+)\\s*\\)\\s*${s0}`,"g")],X3=[new RegExp(`@binding\\(\\s*(auto)\\s*\\)\\s*@group\\(\\s*(\\d+)\\s*\\)\\s*${s0}`,"g"),new RegExp(`@group\\(\\s*(\\d+)\\s*\\)\\s*@binding\\(\\s*(auto)\\s*\\)\\s*${s0}`,"g"),new RegExp(`@binding\\(\\s*(auto)\\s*\\)\\s*@group\\(\\s*(\\d+)\\s*\\)(?:[\\s\\n\\r]*@[A-Za-z_][^\\n\\r]*)*[\\s\\n\\r]*${s0}`,"g"),new RegExp(`@group\\(\\s*(\\d+)\\s*\\)\\s*@binding\\(\\s*(auto)\\s*\\)(?:[\\s\\n\\r]*@[A-Za-z_][^\\n\\r]*)*[\\s\\n\\r]*${s0}`,"g")];function d0(r){let e=r.split(""),t=0,n=0,i=!1,s=!1,o=!1;for(;t<r.length;){let a=r[t],c=r[t+1];if(s){o?o=!1:a==="\\"?o=!0:a==='"'&&(s=!1),t++;continue}if(i){a===`
|
|
80
80
|
`||a==="\r"?i=!1:e[t]=" ",t++;continue}if(n>0){if(a==="/"&&c==="*"){e[t]=" ",e[t+1]=" ",n++,t+=2;continue}if(a==="*"&&c==="/"){e[t]=" ",e[t+1]=" ",n--,t+=2;continue}a!==`
|
|
81
|
-
`&&a!=="\r"&&(e[t]=" "),t++;continue}if(a==='"'){s=!0,t++;continue}if(a==="/"&&c==="/"){e[t]=" ",e[t+1]=" ",i=!0,t+=2;continue}if(a==="/"&&c==="*"){e[t]=" ",e[t+1]=" ",n=1,t+=2;continue}t++}return e.join("")}function se(r,e){let t=
|
|
81
|
+
`&&a!=="\r"&&(e[t]=" "),t++;continue}if(a==='"'){s=!0,t++;continue}if(a==="/"&&c==="/"){e[t]=" ",e[t+1]=" ",i=!0,t+=2;continue}if(a==="/"&&c==="*"){e[t]=" ",e[t+1]=" ",n=1,t+=2;continue}t++}return e.join("")}function se(r,e){let t=d0(r),n=[];for(let i of e){i.lastIndex=0;let s;for(s=i.exec(t);s;){let o=i===e[0],a=s.index,c=s[0].length;n.push({match:r.slice(a,a+c),index:a,length:c,bindingToken:s[o?1:2],groupToken:s[o?2:1],accessDeclaration:s[3]?.trim(),name:s[4]}),s=i.exec(t)}}return n.sort((i,s)=>i.index-s.index)}function Ci(r,e,t){let n=se(r,e);if(!n.length)return r;let i="",s=0;for(let o of n)i+=r.slice(s,o.index),i+=t(o),s=o.index+o.length;return i+=r.slice(s),i}function Bi(r){return/@binding\(\s*auto\s*\)/.test(d0(r))}function Ko(r,e){return se(r,e===De||e===kr?X3:e).find(n=>n.bindingToken==="auto")}function Zo(r,e,t){let n=[],i=[];for(let[s,o]of Object.entries(t)){a4(r,s);let a=o.interpolation==="flat"?"flat ":"",c=e==="vertex"?"out":"in";n.push(`${a}${c} ${Or(o.type)} ${s};`),e==="vertex"&&i.push(`${s} = ${s4(o.type)};`)}return{declarations:n.join(`
|
|
82
82
|
`),initialization:i.join(`
|
|
83
|
-
`)}}function
|
|
83
|
+
`)}}function Qo(r,e,t,n){let i=Object.entries(n);if(i.length===0)return{source:r,declarations:"",vertexInitialization:"",fragmentInitialization:""};let s=r,o=Fr(s,e,"vertex"),a=Y3(s,o),c=Fr(s,t,"fragment"),u=K3(s,c),l=Di(s,a),d=u?Di(s,u.type):null,f=new Set([...Gr(o.parameters),...Gr(l.body),...Gr(c.parameters),...Gr(d?.body||"")]),h=new Set([...Oi(l.body),...Oi(d?.body||""),...Oi(c.parameters)]),p=[],m=[],g=[],b=[],v=[];for(let[y,x]of i){if(f.has(y)||n4(s,y))throw new Error(`ShaderPlugin varying "${y}" conflicts with existing WGSL stage I/O or a module variable`);let w=i4(h);h.add(w);let I=x.interpolation==="flat"?" @interpolate(flat)":"";if(p.push(` @location(${w})${I} ${y}: ${x.type},`),g.push(`var<private> ${y}: ${x.type};`),b.push(`${y} = ${o4(x.type)};`),u)v.push(`${y} = ${u.name}.${y};`);else{let A=`_luma_${y}`;if(f.has(A))throw new Error(`ShaderPlugin varying "${y}" conflicts with a generated fragment parameter`);m.push(`@location(${w})${I} ${A}: ${x.type}`),v.push(`${y} = ${A};`)}}Z3(s,a,o.openBrace,o.closeBrace),s=Q3(s,a,o,i.map(([y])=>y)),o=Fr(s,e,"vertex"),s=J3(s,o,i.map(([y])=>y));let S=(!u||a===u.type?[a]:[a,u.type]).map(y=>Di(s,y).closeBrace).sort((y,x)=>x-y);for(let y of S)s=s.slice(0,y)+`${p.join(`
|
|
84
84
|
`)}
|
|
85
|
-
`+s.slice(y);if(c=
|
|
85
|
+
`+s.slice(y);if(c=Fr(s,t,"fragment"),m.length){let y=c.parameters,x=d0(y).trimEnd();if(x.trim()&&!x.endsWith(",")){let w=x.length;y=`${y.slice(0,w)},${y.slice(w)}`}s=s.slice(0,c.openParenthesis+1)+y+`
|
|
86
86
|
`+m.join(`,
|
|
87
87
|
`)+`
|
|
88
88
|
`+s.slice(c.closeParenthesis)}return{source:s,declarations:g.join(`
|
|
89
89
|
`),vertexInitialization:b.join(`
|
|
90
90
|
`),fragmentInitialization:v.join(`
|
|
91
|
-
`)}}function
|
|
91
|
+
`)}}function Fr(r,e,t){let i=new RegExp(`\\bfn\\s+${Oe(e)}\\s*\\(`,"g").exec(r);if(!i)throw new Error(`ShaderPlugin interStageVariables require WGSL ${t} entry point "${e}"`);let s=r.indexOf("(",i.index),o=zr(r,s,"(",")"),a=r.indexOf("{",o),c=zr(r,a,"{","}");if(o<0||a<0||c<0)throw new Error(`Unable to parse WGSL ${t} entry point "${e}"`);return{openParenthesis:s,closeParenthesis:o,openBrace:a,closeBrace:c,parameters:r.slice(s+1,o)}}function Y3(r,e){let t=r.slice(e.closeParenthesis+1,e.openBrace),n=/->\s*([A-Za-z_][\w]*)\s*$/.exec(t.trim());if(!n||Ni(r,n[1])===null)throw new Error("ShaderPlugin interStageVariables require the WGSL vertex entry point to return a named struct");return n[1]}function K3(r,e){let t=[];for(let n of r4(d0(e.parameters),",")){let i=/(?:@[A-Za-z_][\w]*(?:\([^)]*\))?\s*)*([A-Za-z_][\w]*)\s*:\s*([A-Za-z_][\w]*)\s*$/.exec(n.trim());i&&Ni(r,i[2])&&t.push({name:i[1],type:i[2]})}if(t.length>1)throw new Error(`ShaderPlugin interStageVariables require exactly one named WGSL fragment input struct; found ${t.length}`);return t[0]||null}function Di(r,e){let t=Ni(r,e);if(!t)throw new Error(`Unable to find WGSL stage I/O struct "${e}"`);return t}function Ni(r,e){let n=new RegExp(`\\bstruct\\s+${Oe(e)}\\s*\\{`,"g").exec(r);if(!n)return null;let i=r.indexOf("{",n.index),s=zr(r,i,"{","}");return s<0?null:{openBrace:i,closeBrace:s,body:r.slice(i+1,s)}}function Z3(r,e,t,n){let i=new RegExp(`\\b${Oe(e)}\\s*\\(`,"g"),s=i.exec(r);for(;s;){if(s.index<t||s.index>n)throw new Error(`ShaderPlugin varying output struct "${e}" is constructed outside the selected vertex entry point`);s=i.exec(r)}}function Q3(r,e,t,n){let i=new RegExp(`\\b${Oe(e)}\\s*\\(`,"g"),s=[],o=i.exec(r);for(;o;){if(o.index>t.openBrace&&o.index<t.closeBrace){let a=r.indexOf("(",o.index),c=zr(r,a,"(",")");if(c<0||c>t.closeBrace)throw new Error(`Unable to parse WGSL output constructor "${e}"`);s.push({openParenthesis:a,closeParenthesis:c})}o=i.exec(r)}for(let a of s.sort((c,u)=>u.closeParenthesis-c.closeParenthesis)){let u=r.slice(a.openParenthesis+1,a.closeParenthesis).trim()?", ":"";r=r.slice(0,a.closeParenthesis)+u+n.join(", ")+r.slice(a.closeParenthesis)}return r}function J3(r,e,t){let n=e4(r,e.openBrace+1,e.closeBrace);for(let i=n.length-1;i>=0;i--){let s=n[i],o=r.slice(s.expressionStart,s.semicolon).trim();if(!o)throw new Error("ShaderPlugin varying vertex entry point cannot use an empty return");let a=`_luma_vertexOutput${i}`,c=t.map(l=>`${a}.${l} = ${l};`).join(`
|
|
92
92
|
`),u=`{
|
|
93
93
|
var ${a} = ${o};
|
|
94
94
|
${c}
|
|
95
95
|
return ${a};
|
|
96
|
-
}`;r=r.slice(0,s.start)+u+r.slice(s.semicolon+1)}return r}function
|
|
97
|
-
`,n+2);return i<0||i>t?t:i+1}if(r[n]==="/"&&r[n+1]==="*"){let i=1;for(n+=2;n<t&&i>0;)r[n]==="/"&&r[n+1]==="*"?(i++,n+=2):r[n]==="*"&&r[n+1]==="/"?(i--,n+=2):n++}return n}function
|
|
98
|
-
`&&(o=!1);continue}if(s>0){c==="/"&&u==="*"?(s++,a++):c==="*"&&u==="/"&&(s--,a++);continue}if(c==="/"&&u==="/"){o=!0,a++;continue}if(c==="/"&&u==="*"){s=1,a++;continue}if(c===t&&i++,c===n&&--i===0)return a}return-1}function
|
|
99
|
-
`],[/\btexture(2D|2DProj|Cube)Lod(EXT)?\(/g,"textureLod("],[/\btexture(2D|2DProj|Cube)(EXT)?\(/g,"texture("]],
|
|
100
|
-
`;function
|
|
96
|
+
}`;r=r.slice(0,s.start)+u+r.slice(s.semicolon+1)}return r}function e4(r,e,t){let n=[],i=e;for(;i<t;)if(i=ki(r,i,t),r.slice(i,i+6)==="return"&&!/[A-Za-z0-9_]/.test(r[i+6]||"")){let s=i+6,o=t4(r,s,t);if(o<0)throw new Error("Unable to parse WGSL return statement in selected vertex entry point");n.push({start:i,expressionStart:s,semicolon:o}),i=o+1}else i++;return n}function t4(r,e,t){let n=0,i=0;for(let s=e;s<t;s++){let o=ki(r,s,t);if(o!==s){s=o-1;continue}let a=r[s];if(a==="("&&n++,a===")"&&n--,a==="["&&i++,a==="]"&&i--,a===";"&&n===0&&i===0)return s}return-1}function ki(r,e,t){let n=e;if(r[n]==="/"&&r[n+1]==="/"){let i=r.indexOf(`
|
|
97
|
+
`,n+2);return i<0||i>t?t:i+1}if(r[n]==="/"&&r[n+1]==="*"){let i=1;for(n+=2;n<t&&i>0;)r[n]==="/"&&r[n+1]==="*"?(i++,n+=2):r[n]==="*"&&r[n+1]==="/"?(i--,n+=2):n++}return n}function r4(r,e){let t=[],n=0,i=0,s=0;for(let o=0;o<r.length;o++){let a=r[o];a==="("&&i++,a===")"&&i--,a==="<"&&s++,a===">"&&s--,a===e&&i===0&&s===0&&(t.push(r.slice(n,o)),n=o+1)}return t.push(r.slice(n)),t}function Oi(r){let e=[],t=/@location\s*\(\s*(\d+)\s*\)/g,n=t.exec(r);for(;n;)e.push(Number(n[1])),n=t.exec(r);return e}function Gr(r){let e=[],t=/(?:^|,)\s*(?:@[A-Za-z_][\w]*(?:\([^)]*\))?\s*)*([A-Za-z_][\w]*)\s*:/gm,n=t.exec(r);for(;n;)e.push(n[1]),n=t.exec(r);return e}function n4(r,e){let t=new RegExp(`\\b(?:var(?:<[^>]+>)?|let|const)\\s+${Oe(e)}\\b`,"g"),n=t.exec(r);for(;n;){if(c4(r,n.index)===0)return!0;n=t.exec(r)}return!1}function i4(r){let e=0;for(;r.has(e);)e++;return e}function s4(r){let{primitiveType:e,components:t}=Be.getAttributeShaderTypeInfo(r),n=e==="u32"?"0u":e==="i32"?"0":"0.0";return t===1?n:`${Or(r)}(${n})`}function o4(r){let{primitiveType:e,components:t}=Be.getAttributeShaderTypeInfo(r),n=`${e}(0)`;return t===1?n:`${r}(${n})`}function a4(r,e){if(new RegExp(`\\b(?:flat\\s+|smooth\\s+)?(?:in|out|varying)\\s+(?:(?:lowp|mediump|highp)\\s+)?[A-Za-z_][A-Za-z0-9_]*\\s+${Oe(e)}\\s*(?:\\[|;)`).test(r))throw new Error(`ShaderPlugin varying "${e}" conflicts with existing GLSL stage I/O`)}function zr(r,e,t,n){let i=0,s=0,o=!1;for(let a=e;a<r.length;a++){let c=r[a],u=r[a+1];if(o){c===`
|
|
98
|
+
`&&(o=!1);continue}if(s>0){c==="/"&&u==="*"?(s++,a++):c==="*"&&u==="/"&&(s--,a++);continue}if(c==="/"&&u==="/"){o=!0,a++;continue}if(c==="/"&&u==="*"){s=1,a++;continue}if(c===t&&i++,c===n&&--i===0)return a}return-1}function c4(r,e){let t=0;for(let n=0;n<e;n++){let i=ki(r,n,e);if(i!==n){n=i-1;continue}r[n]==="{"&&t++,r[n]==="}"&&t--}return t}function Oe(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function e9(r,e){if(Number(r.match(/^#version[ \t]+(\d+)/m)?.[1]||100)!==300)throw new Error("luma.gl v9 only supports GLSL 3.00 shader sources");switch(e){case"vertex":return r=Jo(r,u4),r;case"fragment":return r=Jo(r,l4),r;default:throw new Error(e)}}var t9=[[/^(#version[ \t]+(100|300[ \t]+es))?[ \t]*\n/,`#version 300 es
|
|
99
|
+
`],[/\btexture(2D|2DProj|Cube)Lod(EXT)?\(/g,"textureLod("],[/\btexture(2D|2DProj|Cube)(EXT)?\(/g,"texture("]],u4=[...t9,[Fi("attribute"),"in $1"],[Fi("varying"),"out $1"]],l4=[...t9,[Fi("varying"),"in $1"]];function Jo(r,e){for(let[t,n]of e)r=r.replace(t,n);return r}function Fi(r){return new RegExp(`\\b${r}[ \\t]+(\\w+[ \\t]+\\w+(\\[\\w+\\])?;)`,"g")}var d4=`precision highp float;
|
|
100
|
+
`;function n9(r){let{vs:e,fs:t}=r,n=ie(r.modules||[]);return{vs:r9(r.platformInfo,{...r,source:e,stage:"vertex",modules:n}),fs:r9(r.platformInfo,{...r,source:t,stage:"fragment",modules:n}),getUniforms:Pr(n)}}function r9(r,e){let{source:t,stage:n,language:i="glsl",modules:s,defines:o={},injectionTargets:a=[],inject:c={},pluginInjections:u={},pluginVertexInputs:l={},pluginInterStageVariables:d={},prologue:f=!0,log:h}=e;Z(typeof t=="string","shader source must be a string");let p=i==="glsl"?Oo(t).version:-1,m=r.shaderLanguageVersion,g=p===100?"#version 100":"#version 300 es",v=t.split(`
|
|
101
101
|
`).slice(1).join(`
|
|
102
|
-
`),T={};s.forEach(
|
|
102
|
+
`),T={};s.forEach(_=>{Object.assign(T,_.defines)}),Object.assign(T,o);let S="";switch(i){case"wgsl":break;case"glsl":S=f?`${g}
|
|
103
103
|
|
|
104
104
|
// ----- PROLOGUE -------------------------
|
|
105
105
|
${`#define SHADER_TYPE_${n.toUpperCase()}`}
|
|
106
106
|
|
|
107
|
-
${
|
|
108
|
-
${n==="fragment"?
|
|
107
|
+
${No(r)}
|
|
108
|
+
${n==="fragment"?d4:""}
|
|
109
109
|
|
|
110
110
|
// ----- APPLICATION DEFINES -------------------------
|
|
111
111
|
|
|
112
|
-
${
|
|
112
|
+
${f4(T)}
|
|
113
113
|
|
|
114
114
|
`:`${g}
|
|
115
|
-
`;break}let y=
|
|
116
|
-
`)}let
|
|
117
|
-
`),
|
|
118
|
-
`)}return e}var
|
|
119
|
-
|
|
120
|
-
|
|
115
|
+
`;break}let y=It(a,e.pluginInjectionTargets,"glsl"),x={},w={},I={};Ce(u,x,w,I);let A=Array.isArray(c)?Er(c,"glsl"):{};Ce(A,x,w,I);let M=Array.isArray(c)?{}:c;for(let _ in M){let C=typeof M[_]=="string"?{injection:M[_],order:0}:M[_],P=/^(v|f)s:(#)?([\w-]+)$/.exec(_);if(P){let O=P[2],N=P[3];O?N==="decl"?w[_]=[...w[_]||[],C]:I[_]=[...I[_]||[],C]:x[_]=[...x[_]||[],C]}else I[_]=[...I[_]||[],C]}if(n==="vertex"){let _=qo(v,l);_&&(S+=`${_}
|
|
116
|
+
`)}let R=Zo(v,n,d);R.declarations&&(S+=`${R.declarations}
|
|
117
|
+
`),R.initialization&&(I["vs:#main-start"]=I["vs:#main-start"]||[],I["vs:#main-start"].push({injection:R.initialization,order:Number.MIN_SAFE_INTEGER}));for(let _ of s){h&&_r(_,v,h);let C=Lr(_,n,h);S+=C}return Cr(y,x,n),S+="// ----- MAIN SHADER SOURCE -------------------------",S+=wt,S=Re(S,n,w),S+=Rr(y[n],x),S+=v,S=Re(S,n,I),i==="glsl"&&p!==m&&(S=e9(S,n)),i==="glsl"&&Do(S,n,h),S.trim()}function f4(r={}){let e="";for(let t in r){let n=r[t];(n||Number.isFinite(n))&&(e+=`#define ${t.toUpperCase()} ${r[t]}
|
|
118
|
+
`)}return e}var At=class extends Le{shaderLanguage="glsl";assembleGLSLShaderPair(e){let t=this._getModuleList(e.modules),n=[...this._injectionTargets,...e.injectionTargets||[]],i=this._transpileShader(e,t,e.vs,"vertex"),s=this._transpileShader(e,t,e.fs,"fragment");return{...n9({...e,vs:i.code,fs:e.fs==null?void 0:s.code,modules:i.modules,injectionTargets:n}),modules:t}}};function i9(r,e={}){let t=s9(r),n=h4(t);if(!n)return null;let i=p4(t,n);if(!i)return null;let s=g4(t,n,i);if(!s)return null;if(e.scanVertexAttributes===!1)return{attributes:[],bindings:s};let o=m4(t,n);if(!o)return null;let a=T4(t,n,i,o,e.vertexEntryPoint);return a?{attributes:a,bindings:s}:null}function s9(r){let e=d0(r),t=/[A-Za-z_][A-Za-z0-9_]*|(?:0[xX][0-9A-Fa-f]+|\d+)|[@(){}<>\[\]:,;=]/g,n=[],i=t.exec(e);for(;i;)n.push({value:i[0],index:i.index}),i=t.exec(e);return n}function h4(r){let e=[],t=0;for(let n of r){if(n.value==="}"&&t===0)return null;e.push(t),n.value==="{"?t++:n.value==="}"&&t--}return t===0?e:null}function p4(r,e){let t=new Map;for(let n=0;n<r.length;n++){if(e[n]!==0||r[n].value!=="alias")continue;let i=r[n+1]?.value;if(!_t(i)||r[n+2]?.value!=="="||t.has(i))return null;let s=c9(r,e,n+3,";");if(s<0||s===n+3)return null;t.set(i,$r(r.slice(n+3,s))),n=s}return t}function m4(r,e){let t=new Map;for(let n=0;n<r.length;n++){if(e[n]!==0||r[n].value!=="struct")continue;let i=r[n+1]?.value,s=n+2;if(!_t(i)||t.has(i)||r[s]?.value!=="{")return null;let o=Vi(r,s,"{","}");if(o<0)return null;t.set(i,r.slice(s+1,o)),n=o}return t}function g4(r,e,t){let n=[],i=new Set,s=new Set;for(let o=0;o<r.length;o++){if(e[o]!==0||r[o].value!=="var")continue;let a=u9(r,e,o),c=r.slice(a,o),u=Gi(c,"group"),l=Gi(c,"binding");if(u===null||l===null||u===void 0!=(l===void 0))return null;if(u===void 0||l===void 0)continue;let d=o+1,f=[];if(r[d]?.value==="<"){let v=Vi(r,d,"<",">");if(v<0)return null;let T=Vr(r.slice(d+1,v),",");if(!T)return null;f=T.map($r),d=v+1}let h=r[d]?.value;if(!_t(h)||r[d+1]?.value!==":")return null;let p=c9(r,e,d+2,";");if(p<0||p===d+2)return null;let m=$i($r(r.slice(d+2,p)),t);if(!m)return null;let g=y4({name:h,group:u,location:l,addressSpace:f,resourceType:m}),b=`${u}:${l}`;if(!g||i.has(b)||s.has(h))return null;n.push(g),i.add(b),s.add(h),o=p}return v4(n),n.sort((o,a)=>o.group-a.group||o.location-a.location||o.name.localeCompare(a.name))}function y4(r){let{name:e,group:t,location:n,addressSpace:i,resourceType:s}=r,o={name:e,group:t,location:n};if(i[0]==="uniform"&&i.length===1)return{...o,type:"uniform"};if(i[0]==="storage"&&i.length<=2){let a=i[1]||"read";return a==="read"?{...o,type:"read-only-storage"}:a==="read_write"?{...o,type:"storage"}:null}return i.length>0?null:s==="sampler"||s==="sampler_comparison"?{...o,type:"sampler",...s==="sampler_comparison"?{samplerType:"comparison"}:{}}:s==="texture_external"?{...o,type:"external-texture"}:x4(o,s)||b4(o,s)}function x4(r,e){let t=/^texture_storage_(1d|2d|2d_array|3d)<([A-Za-z0-9_]+),(read|write|read_write)>$/.exec(e);if(!t)return null;let n={read:"read-only",write:"write-only",read_write:"read-write"}[t[3]];return{...r,type:"storage",format:t[2],access:n,viewDimension:zi(t[1])}}function b4(r,e){let t=/^texture_(multisampled_)?(1d|2d|2d_array|cube|cube_array|3d)<(f32|i32|u32)>$/.exec(e);if(t){if(t[1]&&t[2]!=="2d")return null;let i={f32:"float",i32:"sint",u32:"uint"}[t[3]];return{...r,type:"texture",viewDimension:zi(t[2]),sampleType:i,multisampled:!!t[1]}}let n=/^texture_depth_(multisampled_)?(2d|2d_array|cube|cube_array)$/.exec(e);return!n||n[1]&&n[2]!=="2d"?null:{...r,type:"texture",viewDimension:zi(n[2]),sampleType:"depth",multisampled:!!n[1]}}function v4(r){for(let e of r){if(e.type!=="sampler"||e.samplerType||!e.name.endsWith("Sampler"))continue;let t=e.name.slice(0,-7);r.find(i=>i.type==="texture"&&i.name===t&&i.group===e.group)?.sampleType==="depth"&&(e.samplerType="non-filtering")}}function T4(r,e,t,n,i){let s=S4(r,e);if(!s)return null;let o=s.filter(h=>h.vertex),a=i?o.find(h=>h.name===i):o.length===1?o[0]:void 0;if(!a)return o.length===0&&!i?[]:null;let c=Vr(a.parameters,",");if(!c)return null;let u=[],l=new Set,d=new Set,f=new Set;for(let h of c)if(h.length>0&&!o9({declaration:h,aliases:t,structures:n,attributes:u,attributeLocations:l,attributeNames:d,visitedStructures:f}))return null;return u.sort((h,p)=>h.location-p.location||h.name.localeCompare(p.name))}function S4(r,e){let t=[],n=new Set;for(let i=0;i<r.length;i++){if(e[i]!==0||r[i].value!=="fn")continue;let s=r[i+1]?.value,o=i+2;if(!_t(s)||n.has(s)||r[o]?.value!=="(")return null;let a=Vi(r,o,"(",")");if(a<0)return null;let c=u9(r,e,i);t.push({name:s,vertex:a9(r.slice(c,i),"vertex"),parameters:r.slice(o+1,a)}),n.add(s),i=a}return t}function o9(r){let{declaration:e,aliases:t,structures:n,attributes:i,attributeLocations:s,attributeNames:o,visitedStructures:a}=r,c=A4(e,":");if(c<1||c===e.length-1)return!1;let u=_4(e.slice(0,c)),l=Gi(e.slice(0,c),"location"),d=a9(e.slice(0,c),"builtin"),f=$i($r(e.slice(c+1)),t);if(!u||l===null||!f||l!==void 0&&d)return!1;if(l!==void 0){let m=I4(f);return!m||s.has(l)||o.has(u)?!1:(i.push({name:u,location:l,type:m}),s.add(l),o.add(u),!0)}if(d)return!0;let h=n.get(f);if(!h||a.has(f))return!1;let p=Vr(h,",");if(!p)return!1;a.add(f);for(let m of p)if(m.length>0&&!o9({...r,declaration:m}))return!1;return a.delete(f),!0}function $i(r,e,t=new Set){let n=s9(r),i="";for(let s of n){let o=e.get(s.value);if(!o){i+=w4(s.value);continue}if(t.has(s.value))return null;let a=new Set(t);a.add(s.value);let c=$i(o,e,a);if(!c)return null;i+=c}return i}function w4(r){let e=/^(vec[234]|mat[234]x[234])([fiuh])$/.exec(r);if(!e)return r;let t={f:"f32",i:"i32",u:"u32",h:"f16"}[e[2]];return`${e[1]}<${t}>`}function I4(r){return/^(?:i32|u32|f32|f16|vec[234]<(?:i32|u32|f32|f16)>)$/.test(r)?r:null}function Gi(r,e){let t;for(let n=0;n<r.length;n++)if(!(r[n].value!=="@"||r[n+1]?.value!==e)){if(t!==void 0||r[n+2]?.value!=="("||!/^\d+$/.test(r[n+3]?.value||"")||r[n+4]?.value!==")")return null;t=Number(r[n+3].value)}return t}function a9(r,e){return r.some((t,n)=>t.value==="@"&&r[n+1]?.value===e)}function zi(r){return r.replace("_","-")}function Vi(r,e,t,n){let i=0;for(let s=e;s<r.length;s++)if(r[s].value===t)i++;else if(r[s].value===n&&--i===0)return s;return-1}function Vr(r,e){let t=[],n=0,i={"(":0,"<":0,"[":0,"{":0},s=Object.keys(i),o={")":"(",">":"<","]":"[","}":"{"};for(let a=0;a<r.length;a++){let c=r[a].value;if(c===e&&s.every(u=>i[u]===0)){t.push(r.slice(n,a)),n=a+1;continue}if(c in i)i[c]++;else if(c in o){let u=o[c];if(i[u]--,i[u]<0)return null}}return s.every(a=>i[a]===0)?(t.push(r.slice(n)),t):null}function A4(r,e){let t=Vr(r,e);return t&&t.length===2?t[0].length:-1}function c9(r,e,t,n){for(let i=t;i<r.length;i++)if(e[i]===0&&r[i].value===n)return i;return-1}function u9(r,e,t){for(let n=t-1;n>=0;n--)if(r[n].value===";"&&e[n]===0||r[n].value==="}"&&e[n]===1)return n+1;return 0}function _4(r){for(let e=r.length-1;e>=0;e--)if(_t(r[e].value))return r[e].value;return null}function $r(r){return r.map(e=>e.value).join("")}function _t(r){return!!(r&&/^[A-Za-z_][A-Za-z0-9_]*$/.test(r))}var l9=[new RegExp(`@binding\\(\\s*(\\d+)\\s*\\)\\s*@group\\(\\s*(\\d+)\\s*\\)\\s*${s0}\\s*:\\s*([^;]+);`,"g"),new RegExp(`@group\\(\\s*(\\d+)\\s*\\)\\s*@binding\\(\\s*(\\d+)\\s*\\)\\s*${s0}\\s*:\\s*([^;]+);`,"g")];function h9(r,e=[]){let t=d0(r),n=new Map;for(let s of e)n.set(d9(s.name,s.group,s.location),s.moduleName);let i=[];for(let s of l9){s.lastIndex=0;let o;for(o=s.exec(t);o;){let a=s===l9[0],c=Number(o[a?1:2]),u=Number(o[a?2:1]),l=o[3]?.trim(),d=o[4],f=o[5].trim(),h=n.get(d9(d,u,c));i.push(M4({name:d,group:u,binding:c,owner:h?"module":"application",moduleName:h,accessDeclaration:l,resourceType:f})),o=s.exec(t)}}return i.sort((s,o)=>s.group!==o.group?s.group-o.group:s.binding!==o.binding?s.binding-o.binding:s.name.localeCompare(o.name))}function M4(r){let e={name:r.name,group:r.group,binding:r.binding,owner:r.owner,kind:"unknown",moduleName:r.moduleName,resourceType:r.resourceType};if(r.accessDeclaration){let t=r.accessDeclaration.split(",").map(n=>n.trim());if(t[0]==="uniform")return{...e,kind:"uniform",access:"uniform"};if(t[0]==="storage"){let n=t[1]||"read_write";return{...e,kind:n==="read"?"read-only-storage":"storage",access:n}}}return r.resourceType==="sampler"||r.resourceType==="sampler_comparison"?{...e,kind:"sampler",samplerKind:r.resourceType==="sampler_comparison"?"comparison":"filtering"}:r.resourceType.startsWith("texture_storage_")?{...e,kind:"storage-texture",access:P4(r.resourceType),viewDimension:f9(r.resourceType)}:r.resourceType.startsWith("texture_")?{...e,kind:"texture",viewDimension:f9(r.resourceType),sampleType:E4(r.resourceType),multisampled:r.resourceType.startsWith("texture_multisampled_")}:e}function d9(r,e,t){return`${e}:${t}:${r}`}function f9(r){if(r.includes("cube_array"))return"cube-array";if(r.includes("2d_array"))return"2d-array";if(r.includes("cube"))return"cube";if(r.includes("3d"))return"3d";if(r.includes("2d"))return"2d";if(r.includes("1d"))return"1d"}function E4(r){if(r.startsWith("texture_depth_"))return"depth";if(r.includes("<i32>"))return"sint";if(r.includes("<u32>"))return"uint";if(r.includes("<f32>"))return"float"}function P4(r){return/,\s*([A-Za-z_][A-Za-z0-9_]*)\s*>$/.exec(r)?.[1]}function jr(r,e=""){let t=new Map,n=Object.values(r).flatMap(s=>Object.entries(s).map(([o,a])=>`${o.slice(3)}
|
|
119
|
+
${a.signature}
|
|
120
|
+
${a.header||""}
|
|
121
|
+
${a.footer||""}`)),i=new Set(d0(`${e}
|
|
122
|
+
${n.join(`
|
|
123
|
+
`)}`).match(/[_\p{XID_Start}][\p{XID_Continue}]*/gu));for(let s of Object.keys(r.vertex)){let o=s.slice(3);r.fragment[`fs:${o}`]&&t.set(o,{vertex:Ur(`_luma_vertex_target_${o}`,i),fragment:Ur(`_luma_fragment_target_${o}`,i)})}return t}function p9(r,e,t=jr(e)){if(!t.size)return r;let n=d0(r),i=new Map,s=/((?:@\w+(?:\([^)]*\))?\s*)*)\bfn\s+([_\p{XID_Start}][\p{XID_Continue}]*)\s*\(/gu;for(let f=s.exec(n);f;f=s.exec(n)){let h=n.indexOf("{",s.lastIndex),p=h+1,m=1;for(;p<n.length&&m;p++)n[p]==="{"&&m++,n[p]==="}"&&m--;Z(h>=0&&m===0);let g=f[2],b=f.index+f[0].lastIndexOf(g),v=Array.from(n.slice(h+1,p-1).matchAll(/([_\p{XID_Start}][\p{XID_Continue}]*)\s*\(/gu),T=>T[1]);i.set(g,{name:g,start:f.index,end:p,nameStart:b,bodyStart:h,calls:v,stages:new Set,entryStage:/@vertex\b/.test(f[1])?"vertex":/@fragment\b/.test(f[1])?"fragment":void 0}),s.lastIndex=p}function o(f,h){let p=i.get(f);if(!(!p||p.stages.has(h))){p.stages.add(h);for(let m of p.calls)o(t.get(m)?.[h]||m,h)}}for(let f of i.values())f.entryStage&&o(f.name,f.entryStage);for(let f of["vertex","fragment"])for(let h of Object.keys(e[f])){let p=h.slice(3);o(t.get(p)?.[f]||p,f)}let a=new Set,c=!0;for(;c;){c=!1;for(let f of i.values())!a.has(f.name)&&f.calls.some(h=>t.has(h)||a.has(h))&&(a.add(f.name),c=!0)}let u=new Map,l=new Set(n.match(/[_\p{XID_Start}][\p{XID_Continue}]*/gu));for(let f of a)i.get(f)?.stages.size===2&&u.set(f,{vertex:Ur(`_luma_vertex_helper_${f}`,l),fragment:Ur(`_luma_fragment_helper_${f}`,l)});function d(f,h){let p=t.get(f)?.[h];return p||u.get(f)?.[h]||f}for(let f of[...i.values()].reverse()){if(!a.has(f.name))continue;if(!f.stages.size)throw new Error(`Cannot infer WGSL target stage in ${f.name}`);let h=[],p=f.start;for(let m of f.stages){let g=r.slice(p,f.end),v=[...n.slice(f.bodyStart+1,f.end-1).matchAll(/([_\p{XID_Start}][\p{XID_Continue}]*)\s*\(/gu)];for(let S of v.reverse()){let y=f.bodyStart+1+S.index-p,x=d(S[1],m);g=g.slice(0,y)+x+g.slice(y+S[1].length)}let T=f.nameStart-p;g=g.slice(0,T)+d(f.name,m)+g.slice(T+f.name.length),h.push(g)}r=r.slice(0,p)+h.join(`
|
|
124
|
+
`)+r.slice(f.end)}return r}function Ur(r,e){let t=r,n=0;for(;e.has(t);)t=`${r}_${++n}`;return e.add(t),t}var oe="([a-zA-Z_][a-zA-Z0-9_]*)",L4=/^\s*\#\s*if\s+(.+?)\s*(?:\/\/.*)?$/,R4=new RegExp(`^\\s*\\#\\s*ifdef\\s*${oe}\\s*$`),C4=new RegExp(`^\\s*\\#\\s*ifndef\\s*${oe}\\s*(?:\\/\\/.*)?$`),B4=/^\s*\#\s*else\s*(?:\/\/.*)?$/,D4=/^\s*\#\s*endif\s*$/,O4=new RegExp(`^\\s*\\#\\s*ifdef\\s*${oe}\\s*(?:\\/\\/.*)?$`),N4=/^\s*\#\s*endif\s*(?:\/\/.*)?$/;function Ne(r,e){let t=r.split(`
|
|
125
|
+
`),n=[],i=[],s=!0;for(let o of t){let a=o.match(L4),c=o.match(O4)||o.match(R4),u=o.match(C4),l=o.match(B4),d=o.match(N4)||o.match(D4);if(a){let f=k4(a[1],e?.defines||{}),h=s&&f;i.push({parentActive:s,branchTaken:f,active:h}),s=h}else if(c||u){let f=(c||u)?.[1],h=!!e?.defines?.[f],p=c?h:!h,m=s&&p;i.push({parentActive:s,branchTaken:p,active:m}),s=m}else if(l){let f=i[i.length-1];if(!f)throw new Error("Encountered #else without matching #if, #ifdef or #ifndef");f.active=f.parentActive&&!f.branchTaken,f.branchTaken=!0,s=f.active}else d?(i.pop(),s=i.length?i[i.length-1].active:!0):s&&n.push(o)}if(i.length>0)throw new Error("Unterminated conditional block in shader source");return n.join(`
|
|
126
|
+
`)}function k4(r,e){let t=r.trim();if(/^[+-]?\d+(?:\.\d+)?$/.test(t))return Number(t)!==0;if(t==="true")return!0;if(t==="false")return!1;let n="(?:[A-Za-z_][A-Za-z0-9_]*|[+-]?\\d+(?:\\.\\d+)?)",i=t.match(new RegExp(`^(${n})\\s*(==|!=|<=|>=|<|>)\\s*(${n})$`));if(i){let u=f=>/^[A-Za-z_]/.test(f)?Number(e[f]??0):Number(f),l=u(i[1]),d=u(i[3]);switch(i[2]){case"==":return l===d;case"!=":return l!==d;case"<=":return l<=d;case">=":return l>=d;case"<":return l<d;case">":return l>d}}let s=t.match(new RegExp(`^!\\s*${oe}$`));if(s)return!e[s[1]];let o=t.match(new RegExp(`^${oe}$`));if(o)return!!e[o[1]];let a=t.match(new RegExp(`^defined\\s*\\(\\s*${oe}\\s*\\)$`));if(a)return e[a[1]]!==void 0;let c=t.match(new RegExp(`^!\\s*defined\\s*\\(\\s*${oe}\\s*\\)$`));if(c)return e[c[1]]===void 0;throw new Error(`Unsupported #if expression "${r}"`)}var Mt=100;function g9(r){let e=ie(r.modules||[]),{source:t,bindingAssignments:n}=F4(r.platformInfo,{...r,source:r.source,stage:"vertex",modules:e});return{source:t,getUniforms:Pr(e),bindingAssignments:n}}function F4(r,e){let{source:t,stage:n,modules:i,defines:s={},injectionTargets:o=[],inject:a={},pluginInjections:c={},pluginVertexInputs:u={},pluginInterStageVariables:l={},vertexEntryPoint:d="vertexMain",fragmentEntryPoint:f="fragmentMain",log:h}=e;Z(typeof t=="string","shader source must be a string");let p=Ne(t,{defines:s}),m=Ho(p,d,u),g=Qo(m.source,d,f,l),b=g.source,v="",T=It(o,e.pluginInjectionTargets,"wgsl"),S={},y={},x={};Ce(c,S,y,x);let w=Array.isArray(a)?Er(a,"wgsl"):{};Ce(w,S,y,x);let I=Array.isArray(a)?{}:a;for(let N in I){let V=typeof I[N]=="string"?{injection:I[N],order:0}:I[N],n0=/^(v|f)s:(#)?([\w-]+)$/.exec(N);if(n0){let Kt=n0[2],x0=n0[3];Kt?x0==="decl"?y[N]=[...y[N]||[],V]:x[N]=[...x[N]||[],V]:S[N]=[...S[N]||[],V]}else x[N]=[...x[N]||[],V]}G4(m.declarations,m.initialization,y,x),z4(g,y,x),Cr(T,S);let A=i.map(N=>({module:N,source:Ne(Lr(N,"wgsl",h),{defines:s})})),M=j4(b),R=U4(M.source),_=X4(A,e._bindingRegistry,R),C=[],P=A.map(({module:N,source:V})=>{let n0=W4(V,N,{usedBindingsByGroup:R,bindingRegistry:e._bindingRegistry,reservedBindingKeysByGroup:_});return C.push(...n0.bindingAssignments),{module:N,source:n0.source}});for(let{module:N,source:V}of P)h&&_r(N,b,h),v+=V;v+=wt,v=Re(v,n,$4(y),!1,"wgsl",{vertex:d,fragment:f});let O=jr(T,[v,M.source,...Object.values(S).flat().map(N=>N.injection),...Object.values(x).flat().map(N=>N.injection)].join(`
|
|
127
|
+
`));return v+=V4(T,S,O),v+=Q4(C),v+=M.source,v=Re(v,n,x,!1,"wgsl",{vertex:d,fragment:f}),v=p9(v,T,O),Z4(v),{source:v,bindingAssignments:C}}function G4(r,e,t,n){r&&(t["vs:#decl"]=t["vs:#decl"]||[],t["vs:#decl"].push({injection:r,order:Number.MIN_SAFE_INTEGER})),e&&(n["vs:#main-start"]=n["vs:#main-start"]||[],n["vs:#main-start"].push({injection:e,order:Number.MIN_SAFE_INTEGER}))}function z4(r,e,t){r.declarations&&(e["vs:#decl"]=e["vs:#decl"]||[],e["vs:#decl"].push({injection:r.declarations,order:Number.MIN_SAFE_INTEGER})),r.vertexInitialization&&(t["vs:#main-start"]=t["vs:#main-start"]||[],t["vs:#main-start"].push({injection:r.vertexInitialization,order:Number.MIN_SAFE_INTEGER})),r.fragmentInitialization&&(t["fs:#main-start"]=t["fs:#main-start"]||[],t["fs:#main-start"].push({injection:r.fragmentInitialization,order:Number.MIN_SAFE_INTEGER}))}function $4(r){let e=[...r["vs:#decl"]||[],...r["fs:#decl"]||[]];return e.length?{"vs:#decl":e}:{}}function V4(r,e,t=jr(r)){return["vertex","fragment"].map(n=>{let i=Object.fromEntries(Object.entries(r[n]).map(([s,o])=>{let a=s.slice(3),c=t.get(a)?.[n]||a;return[s,{...o,signature:c+o.signature.slice(a.length)}]}));return Rr(i,e,"wgsl")}).join("")}function U4(r){let e=new Map;for(let t of se(r,Yo)){let n=Number(t.bindingToken),i=Number(t.groupToken);ji(i,n,t.name),ke(e,i,n,`application binding "${t.name}"`)}return e}function j4(r){let e=se(r,kr),t=new Map;for(let s of e){if(s.bindingToken==="auto")continue;let o=Number(s.bindingToken),a=Number(s.groupToken);ji(a,o,s.name),ke(t,a,o,`application binding "${s.name}"`)}let n={sawSupportedBindingDeclaration:e.length>0},i=Ci(r,kr,s=>H4(s,t,n));if(Bi(r)&&!n.sawSupportedBindingDeclaration)throw new Error('Unsupported @binding(auto) declaration form in application WGSL. Use adjacent "@group(N)" and "@binding(auto)" decorators followed by a bindable "var" declaration.');return{source:i}}function W4(r,e,t){let n=[],s={sawSupportedBindingDeclaration:se(r,De).length>0,nextHintedBindingLocation:typeof e.firstBindingSlot=="number"?e.firstBindingSlot:null},o=Ci(r,De,a=>q4(a,{module:e,context:t,bindingAssignments:n,relocationState:s}));if(Bi(r)&&!s.sawSupportedBindingDeclaration)throw new Error(`Unsupported @binding(auto) declaration form in module "${e.name}". Use adjacent "@group(N)" and "@binding(auto)" decorators followed by a bindable "var" declaration.`);return{source:o,bindingAssignments:n}}function q4(r,e){let{module:t,context:n,bindingAssignments:i,relocationState:s}=e,{match:o,bindingToken:a,groupToken:c,name:u}=r,l=Number(c);if(a==="auto"){let h=Wr(l,t.name,u),p=n.bindingRegistry?.get(h),m=p!==void 0?p:Y4(l,n.usedBindingsByGroup,t.name,s.nextHintedBindingLocation??void 0,n.bindingRegistry);return Ui(t.name,l,m,u),p!==void 0&&m9(n.reservedBindingKeysByGroup,l,m,h)?(i.push({moduleName:t.name,name:u,group:l,location:m}),o.replace(/@binding\(\s*auto\s*\)/,`@binding(${m})`)):(ke(n.usedBindingsByGroup,l,m,`module "${t.name}" binding "${u}"`),n.bindingRegistry?.set(h,m),i.push({moduleName:t.name,name:u,group:l,location:m}),s.nextHintedBindingLocation!==null&&p===void 0&&(s.nextHintedBindingLocation=m+1),o.replace(/@binding\(\s*auto\s*\)/,`@binding(${m})`))}let d=Number(a);Ui(t.name,l,d,u);let f=Wr(l,t.name,u);return m9(n.reservedBindingKeysByGroup,l,d,f)||ke(n.usedBindingsByGroup,l,d,`module "${t.name}" binding "${u}"`),i.push({moduleName:t.name,name:u,group:l,location:d}),o}function H4(r,e,t){let{match:n,bindingToken:i,groupToken:s,name:o}=r,a=Number(s);if(i==="auto"){let c=K4(a,e);return ji(a,c,o),ke(e,a,c,`application binding "${o}"`),n.replace(/@binding\(\s*auto\s*\)/,`@binding(${c})`)}return t.sawSupportedBindingDeclaration=!0,n}function X4(r,e,t){let n=new Map,i=[];function s(o,a,c,u){ke(t,o,a,u);let l=n.get(o)||new Map;l.set(a,c),n.set(o,l)}for(let{module:o,source:a}of r)for(let c of se(a,De)){let u=Number(c.groupToken);if(c.bindingToken==="auto"){i.push({module:o,name:c.name,group:u});continue}let l=Number(c.bindingToken);Ui(o.name,u,l,c.name),s(u,l,Wr(u,o.name,c.name),`module "${o.name}" binding "${c.name}"`)}for(let{module:o,name:a,group:c}of i){let u=Wr(c,o.name,a),l=e?.get(u);l!==void 0&&s(c,l,u,`registered module binding "${u}"`)}return n}function m9(r,e,t,n){let i=r.get(e);if(!i)return!1;let s=i.get(t);if(!s)return!1;if(s!==n)throw new Error(`Registered module binding "${n}" collided with "${s}": group ${e}, binding ${t}.`);return i.delete(t),!0}function ji(r,e,t){if(r===0&&e>=Mt)throw new Error(`Application binding "${t}" in group 0 uses reserved binding ${e}. Application-owned explicit group-0 bindings must stay below ${Mt}.`)}function Ui(r,e,t,n){if(e===0&&t<Mt)throw new Error(`Module "${r}" binding "${n}" in group 0 uses reserved application binding ${t}. Module-owned explicit group-0 bindings must be ${Mt} or higher.`)}function ke(r,e,t,n){let i=r.get(e)||new Set;if(i.has(t))throw new Error(`Duplicate WGSL binding assignment for ${n}: group ${e}, binding ${t}.`);i.add(t),r.set(e,i)}function Y4(r,e,t,n,i){let s=e.get(r)||new Set,o=new Set,a=`${r}:`,c=`${a}${t}:`;for(let[l,d]of i||[])l.startsWith(c)&&o.add(d);let u=n??(r===0?Mt:s.size>0?Math.max(...s)+1:0);for(;s.has(u)||o.has(u);)u++;for(let[l,d]of i||[])d===u&&l.startsWith(a)&&i?.delete(l);return u}function K4(r,e){let t=e.get(r)||new Set,n=0;for(;t.has(n);)n++;return n}function Z4(r){let e=Ko(r,De);if(!e)return;let t=J4(r,e.index);throw t?new Error(`Unresolved @binding(auto) for module "${t}" binding "${e.name}" remained in assembled WGSL source.`):e5(r,e.index)?new Error(`Unresolved @binding(auto) for application binding "${e.name}" remained in assembled WGSL source.`):new Error(`Unresolved @binding(auto) remained in assembled WGSL source near "${t5(e.match)}".`)}function Q4(r){if(r.length===0)return"";let e=`// ----- MODULE WGSL BINDING ASSIGNMENTS ---------------
|
|
121
128
|
`;for(let t of r)e+=`// ${t.moduleName}.${t.name} -> @group(${t.group}) @binding(${t.location})
|
|
122
129
|
`;return e+=`
|
|
123
|
-
`,e}function Vr(r,e,t){return`${r}:${e}:${t}`}function D4(r,e){let t=/^\/\/ ----- MODULE ([^\n]+) ---------------$/gm,n,i;for(i=t.exec(r);i&&i.index<=e;)n=i[1],i=t.exec(r);return n}function O4(r,e){let t=r.indexOf(St);return t>=0?e>t:!0}function k4(r){return r.replace(/\s+/g," ").trim()}var U0=class r extends Re{shaderLanguage="wgsl";_wgslBindingRegistry=new Map;assembleWGSLShader(e){let t=this._getModuleList(e.modules),n=[...this._hookFunctions,...e.hookFunctions||[]],i=this._transpileShader(e,t,e.source,e.shaderStage??(e.computeEntryPoint?"compute":void 0)),s={vertex:i.entryPoints?.vertex??e.vertexEntryPoint,fragment:i.entryPoints?.fragment??e.fragmentEntryPoint,compute:i.entryPoints?.compute??e.computeEntryPoint},o=r.getShaderPreprocessorDefines(e,t),a=e.platformInfo.shaderLanguage==="wgsl"&&i.code?Ne(i.code,{defines:o}):i.code,{source:c,getUniforms:u,bindingAssignments:l}=n9({...e,source:a,vertexEntryPoint:s.vertex,fragmentEntryPoint:s.fragment,defines:o,_bindingRegistry:this._wgslBindingRegistry,modules:i.modules,hookFunctions:n}),d=e.platformInfo.shaderLanguage==="wgsl"?Ne(c,{defines:o}):c;return{source:d,entryPoints:s,getUniforms:u,modules:t,bindingAssignments:l,bindingTable:t9(d,l),shaderLayout:Ho(d,{vertexEntryPoint:s.vertex,scanVertexAttributes:e.scanVertexAttributes})}}static getShaderPreprocessorDefines(e,t){return{...r.getPlatformPreprocessorDefines(e.platformInfo),...t.reduce((n,i)=>(Object.assign(n,i.defines),n),{}),...e.defines}}static getPlatformPreprocessorDefines(e){let t=e.limits||{};return{LUMA_SUPPORTS_VERTEX_STORAGE_BUFFERS:e.type==="webgpu"&&(t.maxStorageBuffersInVertexStage||0)>0,LUMA_FP32_TAN_PRECISION_WORKAROUND:e.type==="webgpu"&&e.gpu.toLowerCase()!=="nvidia"&&e.gpu.toLowerCase()!=="amd",LUMA_FP64_INTEGER_ARITHMETIC:e.type==="webgpu"&&e.gpu.toLowerCase()==="apple"}}};var Pt=O(k(),1),$r=class{device;buffer;byteOffset=0;constructor(e){this.device=e}prepare(e){if(!this.buffer||this.buffer.byteLength<e){let t=Math.max(1024,(this.buffer?.byteLength??0)*2,e),n=this.device.createBuffer({id:"batch-uniforms",byteLength:t,usage:Pt.Buffer.UNIFORM|Pt.Buffer.COPY_DST});this.buffer?.destroy(),this.buffer=n}this.byteOffset=0}getAlignedByteLength(e){let t=this.device.limits.minUniformBufferOffsetAlignment||1;return Math.ceil(e/t)*t}write(e){(0,Pt.assert)(this.buffer&&this.byteOffset+e.byteLength<=this.buffer.byteLength);let t={buffer:this.buffer,offset:this.byteOffset,size:e.byteLength};return this.buffer.write(e,t.offset),this.byteOffset+=this.getAlignedByteLength(e.byteLength),t}destroy(){this.buffer?.destroy(),this.buffer=void 0,this.byteOffset=0}};function i9(r,e){let t={},n="Values";if(r.attributes.length===0&&!r.varyings?.length)return{"No attributes or varyings":{[n]:"N/A"}};for(let i of r.attributes)if(i){let s=`${i.location} ${i.name}: ${i.type}`;t[`in ${s}`]={[n]:i.stepMode||"vertex"}}for(let i of r.varyings||[]){let s=`${i.location} ${i.name}`;t[`out ${s}`]={[n]:JSON.stringify(i)}}return t}var s9="__debugFramebufferState";function a9(r,e,t){if(r.device.type!=="webgl")return;let n=G4(r.device);if(!n.flushing){if(U4(r)){N4(r,t,n);return}e&&z4(e)&&e.handle!==null&&(n.queuedFramebuffers.includes(e)||n.queuedFramebuffers.push(e))}}function N4(r,e,t){if(t.queuedFramebuffers.length===0)return;let n=r.device,{gl:i}=n,s=i.getParameter(36010),o=i.getParameter(36006),[a,c]=r.device.getDefaultCanvasContext().getDrawingBufferSize(),u=o9(e.top,8),l=o9(e.left,8);t.flushing=!0;try{for(let d of t.queuedFramebuffers){let[f,h,p,m,g]=F4({framebuffer:d,targetWidth:a,targetHeight:c,topPx:u,leftPx:l,minimap:e.minimap});i.bindFramebuffer(36008,d.handle),i.bindFramebuffer(36009,null),i.blitFramebuffer(0,0,d.width,d.height,f,h,p,m,16384,9728),u+=g+8}}finally{i.bindFramebuffer(36008,s),i.bindFramebuffer(36009,o),t.flushing=!1}}function F4(r){let{framebuffer:e,targetWidth:t,targetHeight:n,topPx:i,leftPx:s,minimap:o}=r,a=o?Math.max(Math.floor(t/4),1):t,c=o?Math.max(Math.floor(n/4),1):n,u=Math.min(a/e.width,c/e.height),l=Math.max(Math.floor(e.width*u),1),d=Math.max(Math.floor(e.height*u),1),f=s,h=Math.max(n-i-d,0),p=f+l,m=h+d;return[f,h,p,m,d]}function G4(r){return r.userData[s9]||={flushing:!1,queuedFramebuffers:[]},r.userData[s9]}function z4(r){return"colorAttachments"in r}function U4(r){let e=r.props.framebuffer;return!e||e.handle===null}function o9(r,e){if(!r)return e;let t=Number.parseInt(r,10);return Number.isFinite(t)?t:e}function Ge(r,e,t){if(r===e)return!0;if(!t||!r||!e)return!1;if(Array.isArray(r)){if(!Array.isArray(e)||r.length!==e.length)return!1;for(let n=0;n<r.length;n++)if(!Ge(r[n],e[n],t-1))return!1;return!0}if(Array.isArray(e))return!1;if(typeof r=="object"&&typeof e=="object"){let n=r,i=e,s=Object.keys(r),o=Object.keys(e);if(s.length!==o.length)return!1;for(let a of s)if(!e.hasOwnProperty(a)||!Ge(n[a],i[a],t-1))return!1;return!0}return!1}var c9=O(k(),1),jr=class{bufferLayouts;constructor(e){this.bufferLayouts=e}getBufferLayout(e){return this.bufferLayouts.find(t=>t.name===e)||null}getAttributeNamesForBuffer(e){return(0,c9.getBufferLayoutAttributeNames)(e)}mergeBufferLayouts(e,t){let n=[...e];for(let i of t){let s=n.findIndex(o=>o.name===i.name);s<0?n.push(i):n[s]=i}return n}};var V0=O(k(),1);function ki(r,e){let t=(0,V0.getShaderAttributeLocationMap)(r),n=e.slice();return n.sort((i,s)=>{let o=(0,V0.getMinimumAttributeLocation)((0,V0.getBufferLayoutAttributeNames)(i).map(c=>t[c])),a=(0,V0.getMinimumAttributeLocation)((0,V0.getBufferLayoutAttributeNames)(s).map(c=>t[c]));return o-a}),n}var Wr=O(S0(),1);function ze(r,e){if(!r||!e.some(n=>n.bindingLayout?.length))return r;let t={...r,bindings:r.bindings.map(n=>({...n}))};"attributes"in(r||{})&&(t.attributes=r?.attributes||[]);for(let n of e)for(let i of n.bindingLayout||[])for(let s of V4(i.name)){let o=t.bindings.find(a=>a.name===s);o?.group===0&&(o.group=i.group),o&&i.visibility!==void 0&&(o.visibility=i.visibility)}return t}function u9(r,e,t=[]){return r?e?{...r,attributes:r.attributes.length?W4(r.attributes,e.attributes.filter(n=>t.includes(n.name))):e.attributes,bindings:j4(r.bindings,e.bindings)}:r:e}function ae(r){return!!(r.uniformTypes&&!$4(r.uniformTypes))}function l9(r){let e=[];for(let t of r){let n=(0,Wr.getShaderModuleUniformBlockName)(t),i=new Set([t.vs,t.fs].flatMap(o=>o?(0,Wr.getGLSLUniformBlocks)(o).filter(a=>a.isStd140).map(a=>a.blockName):[])),s=i.has(n)?n:i.size===1?i.values().next().value:void 0;ae(t)&&s&&e.push({name:s,uniformTypes:t.uniformTypes})}return e}function Hr(r,e){let t=[],n=new Set;for(let i of[...r||[],...e||[]])n.has(i.name)||(n.add(i.name),t.push(i));return t}function V4(r){let e=new Set([r,`${r}Uniforms`]);return r.endsWith("Uniforms")||e.add(`${r}Sampler`),[...e]}function $4(r){for(let e in r)return!1;return!0}function j4(r,e){let t=r.map(s=>({...s})),n=new Set(r.map(s=>s.name)),i=new Set(r.map(s=>`${s.group}:${s.location}`));for(let s of e){let o=`${s.group}:${s.location}`;!n.has(s.name)&&!i.has(o)&&t.push({...s})}return t}function W4(r,e){let t=r.map(s=>({...s})),n=new Map(r.map(s=>[s.name,s])),i=new Map(r.map(s=>[s.location,s]));for(let s of e){let o=n.get(s.name);if(o){if(o.type!==s.type||o.location!==s.location)throw new Error(`Shader attribute "${s.name}" conflicts with its inferred type or location`);continue}let a=i.get(s.location);if(a)throw new Error(`Shader attributes "${a.name}" and "${s.name}" both use location ${s.location}`);t.push({...s})}return t}function ce(r){return{type:r.type,shaderLanguage:r.info.shadingLanguage,shaderLanguageVersion:r.info.shadingLanguageVersion,gpu:r.info.gpu,limits:r.limits,features:r.features}}var Ni={};function Q(r="id"){Ni[r]=Ni[r]||1;let e=Ni[r]++;return`${r}-${e}`}var d9=O(k(),1);function Fi(r,e,t){for(let[n,i]of Object.entries(e)){if(!i)continue;if(!i.format)throw new Error(`${r} GPUVector "${n}" requires a format`);let s=t.find(d=>d.name===n);if(!s)throw new Error(`${r} GPUVector "${n}" requires a Model buffer layout`);let o=s.attributes??[];if(o.length>1)throw new Error(`${r} GPUVector "${n}" does not support interleaved layouts`);let a=o[0],c=s.format??a?.format,u=f9(r,n,i.format),l=s.byteStride??u.byteLength;if(c!==i.format||l!==i.byteStride||i.rowByteLength!==u.byteLength)throw new Error(`${r} GPUVector "${n}" must match its Model buffer layout`)}}function $0(r,e){let t=Object.entries(e).filter(o=>o[1]!==void 0);if(t.length===0)return[];let[n,i]=t[0];for(let[o,a]of t){if(!a.format)throw new Error(`${r} GPUVector "${o}" requires a format`);if(f9(r,o,a.format),a.length!==i.length)throw new Error(`${r} GPUVector "${o}" rows must match "${n}" rows`);if(a.data.length!==i.data.length)throw new Error(`${r} GPUVector chunk counts must align`)}let s=0;return i.data.map((o,a)=>{let c={};for(let[l,d]of t){let f=d.data[a];if(!f||f.length!==o.length)throw new Error(`${r} GPUVector chunk ${a} row counts must align`);if(f.format!==d.format||f.byteStride!==d.byteStride||f.rowByteLength!==d.rowByteLength)throw new Error(`${r} GPUVector "${l}" chunk layout must be stable`);c[l]=f}let u={batchIndex:a,rowIndexOffset:s,rowCount:o.length,data:c};return s+=o.length,u})}function f9(r,e,t){if(t.includes("<"))throw new Error(`${r} GPUVector "${e}" requires a fixed-width scalar format`);return d9.vertexFormatDecoder.getVertexFormatInfo(t)}var qr=O(k(),1);function C0(r){let e;for(let t of Object.values(r)){if(!t||"isConstant"in t)continue;let n=0;for(let i of t.data)n+=i.length;if((0,qr.assert)(n===t.length),e){(0,qr.assert)(t.length===e.length&&t.data.length===e.data.length);for(let i=0;i<t.data.length;i++)(0,qr.assert)(t.data[i].length===e.data[i].length)}else e=t}}function p9(r,e,t,n,i,s){let o=e.inputs,a=t.inputs,c=e.sourceLayouts,u=t.sourceLayouts,l=e.layouts,d=t.layouts,f=t.stepMode,h=e.batchCount,p=t.batchCount,m=Array.from({length:h},(x,w)=>e.getBatch(w)),g=Array.from({length:p},(x,w)=>t.getBatch(w)),b=h9(m),v=h9(g),T=r.vertexCount,S=r.instanceCount,y=!0;try{let x=r.isInstanced&&t.vertexCount===void 0,w=x?h*p:Math.max(h,p);if(h===0||p===0)return!0;for(let A=0;A<w;A++){let _=x?Math.floor(A/p):Math.min(A,h-1),I=x?A%p:Math.min(A,p-1);e.setInputs(m[_],l,"vertex"),t.setInputs(g[I],d,f),n();let C=e.rowCount!==void 0?b[_]:t.vertexCount!==void 0?v[I]:0;s==="vertex"&&r.setVertexCount(Math.max(0,Math.min(e.rowCount??t.vertexCount??T,T-C))),s==="instance"&&t.instanceCount!==void 0&&r.setInstanceCount(Math.max(0,Math.min(t.instanceCount,S-v[I]))),!(!r.indexBuffer&&r.vertexCount===0||r.isInstanced&&r.instanceCount===0)&&(y=i()&&y)}}finally{e.setInputs(o,c,"vertex"),t.setInputs(a,u,f),n(),r.setVertexCount(T),r.setInstanceCount(S)}return y}function h9(r){let e=0;return r.map(t=>{let n=e;for(let i of Object.values(t))if(i&&"data"in i){e+=i.length;break}return n})}var s0=O(k(),1);var Lt=class{device;id;inputs={};sourceLayouts;stepMode="vertex";claimedNames=new Set;layouts=[];buffers={};byteOffsets={};constants={};rowCount;vertexCount;instanceCount;constantBuffers={};constructor(e,t){this.device=e,this.id=t}setInputs(e,t,n,i=!0){if(i)C0(e);else for(let u of Object.values(e))u&&!H(u)&&(0,s0.assert)(u.data.length===1);this.claimedNames.clear(),this.inputs=e,this.sourceLayouts=t,this.stepMode=n,this.rowCount=void 0,this.vertexCount=void 0,this.instanceCount=void 0;let s=t??Object.entries(e).flatMap(([u,l])=>l&&!H(l)&&l.bufferLayout?[{...l.bufferLayout,name:u}]:[]),o=Object.entries(e).flatMap(([u,l])=>{if(!l||s.some(h=>h.name===u||h.attributes?.some(p=>p.attribute===u)))return[];(0,s0.assert)(l.format);let d=l.format,f=H(l)?0:l.byteStride;return[{name:u,stepMode:n,byteStride:f,attributes:[{attribute:u,format:d,byteOffset:0}]}]}),a=[...s,...q4(e,o)];for(let[u,l]of Object.entries(e))if(l){if(!H(l)&&!Array.isArray(l.data))throw new TypeError(`Expected a GPU vector or constant for ${u}`);!H(l)&&i&&((a.find(h=>h.name===u||h.attributes?.some(p=>p.attribute===u))?.stepMode??n)==="instance"?((0,s0.assert)(this.instanceCount===void 0||this.instanceCount===l.length),this.instanceCount=l.length):((0,s0.assert)(this.vertexCount===void 0||this.vertexCount===l.length),this.vertexCount=l.length),this.rowCount=n==="instance"?this.instanceCount:this.vertexCount),this.claimedNames.add(u)}this.layouts=a.flatMap(u=>{let l=e[u.name],d=u.attributes??(u.format?[{attribute:u.name,format:u.format,byteOffset:0}]:[]),f=d.filter(p=>H(e[p.attribute])),h={...u,stepMode:u.stepMode??n};return this.device.type!=="webgpu"||l&&!H(l)&&l.bufferLayout||!f.length||f.length===d.length?[{...h,byteStride:f.length===d.length&&f.length?0:h.byteStride}]:[{...h,attributes:d.filter(p=>!H(e[p.attribute]))},{...h,name:`${u.name}-constants`,byteStride:0,attributes:f}]}),this.buffers={},this.byteOffsets={},this.constants={};let c=new Set;for(let u of this.layouts){this.claimedNames.add(u.name);let l=u.attributes??(u.format?[{attribute:u.name,format:u.format,byteOffset:0}]:[]);for(let h of l)this.claimedNames.add(h.attribute);let d=e[u.name];if(d&&!H(d)){let h=d.bufferLayout||!d.format?0:(l.find(p=>p.attribute===u.name)??l[0])?.byteOffset??0;this.bindVector(u.name,d,h)}let f=0;for(let h of l){let p=e[h.attribute]??(h.attribute===u.name?e[u.name]:void 0);p&&((0,s0.assert)(p.format===void 0||p.format===h.format),H(p)?(this.constants[h.attribute]=H4(p),f=Math.max(f,(h.byteOffset??0)+p.byteLength)):this.buffers[u.name]||this.bindVector(u.name,p,h.byteOffset??0))}if(this.device.type==="webgpu"&&f&&!this.buffers[u.name]){let h=new Uint8Array(Math.ceil(f/4)*4);for(let m of l){let g=e[m.attribute];H(g)&&h.set(new Uint8Array(g.value.buffer,g.value.byteOffset,g.byteLength),m.byteOffset??0)}let p=this.constantBuffers[u.name];(!p||p.byteLength<h.byteLength)&&(p?.destroy(),p=this.device.createBuffer({id:`${this.id}-${u.name}-constant`,byteLength:h.byteLength,usage:s0.Buffer.VERTEX|s0.Buffer.COPY_DST|s0.Buffer.COPY_SRC}),this.constantBuffers[u.name]=p),p.write(h),this.buffers[u.name]=p,c.add(u.name)}}for(let[u,l]of Object.entries(this.constantBuffers))c.has(u)||(l.destroy(),delete this.constantBuffers[u])}get batchCount(){let e=Object.values(this.inputs).find(t=>t&&!H(t));return e&&!H(e)?e.data.length:1}getBatch(e){return Object.fromEntries(Object.entries(this.inputs).map(([t,n])=>{if(!n||H(n))return[t,n];let i=n.data[e];return[t,{...n,length:i?.length??0,data:i?[i]:[]}]}))}destroy(){for(let e of Object.values(this.constantBuffers))e.destroy();this.constantBuffers={}}bindVector(e,t,n){let i=t.data[0];if(!i)return;let s=i.byteOffset-n;(0,s0.assert)(s>=0),this.buffers[e]=i.buffer,this.byteOffsets[e]=s}};function H(r){return!!(r&&"isConstant"in r&&r.isConstant)}function H4(r){let e=s0.vertexFormatDecoder.getVertexFormatInfo(r.format);if(r.format==="unorm10-10-10-2"){let n=r.value[0];return new Float32Array([(n&1023)/1023,(n>>>10&1023)/1023,(n>>>20&1023)/1023,(n>>>30)/3])}let t=Array.from(r.value);if(r.format==="unorm8x4-bgra"&&([t[0],t[2]]=[t[2],t[0]]),e.normalized){let n=r.value.BYTES_PER_ELEMENT*8,i=2**n-1;return new Float32Array(t.map(s=>e.signed?(s+2**(n-1))/i*2-1:s/i))}return e.integer?e.signed?new Int32Array(t):new Uint32Array(t):new Float32Array(t)}function q4(r,e){let t=[],n,i=0,s=[...e].sort((o,a)=>{let c=r[o.name],u=r[a.name];return(c&&!H(c)?c.data[0]?.byteOffset??0:0)-(u&&!H(u)?u.data[0]?.byteOffset??0:0)});for(let o of s){let a=r[o.name],c=o.attributes[0];if(H(a)){n||(n={...o,attributes:[]},t.push(n));let l=Math.min(4,a.byteLength);i=Math.ceil(i/l)*l,n.attributes.push({...c,byteOffset:i}),i+=a.byteLength;continue}let u=t.find(l=>{let d=r[l.name];if(!d||H(d)||!d.data.length||!a.data.length)return!1;let f=a.data[0].byteOffset-d.data[0].byteOffset;return l.stepMode===o.stepMode&&l.byteStride===o.byteStride&&f>=0&&f+a.rowByteLength<=a.byteStride&&a.data.every((h,p)=>{let m=d.data[p];return h.buffer===m.buffer&&h.byteStride===m.byteStride&&h.byteOffset-m.byteOffset===f})});if(u){let l=r[u.name];u.attributes.push({...c,byteOffset:a.data[0].byteOffset-l.data[0].byteOffset})}else t.push({...o,attributes:[...o.attributes]})}return t}var Xr=O(k(),1),zi=O(S0(),1);function Gi(r){return(Array.isArray(r)?r.length===0||typeof r[0]=="number":ArrayBuffer.isView(r)&&!(r instanceof DataView))||typeof r=="number"||typeof r=="boolean"}function m9(r,e={}){let t={bindings:{},uniforms:{}};return Object.keys(r).forEach(n=>{let i=r[n];Object.prototype.hasOwnProperty.call(e,n)||Gi(i)?t.uniforms[n]=i:t.bindings[n]=i}),t}var J=class{options={disableWarnings:!1};modules;moduleUniforms;moduleBindings;directBindings={};constructor(e,t){Object.assign(this.options,t);let n=(0,zi.getShaderModuleDependencies)(Object.values(e).filter(X4));for(let i of n)e[i.name]=i;Xr.log.log(1,"Creating ShaderInputs with modules",Object.keys(e))(),this.modules=e,this.moduleUniforms={},this.moduleBindings={};for(let[i,s]of Object.entries(e))s&&(this._addModule(s),s.name&&i!==s.name&&!this.options.disableWarnings&&Xr.log.warn(`Module name: ${i} vs ${s.name}`)())}destroy(){}setProps(e){e.bindings&&Object.assign(this.directBindings,e.bindings);for(let t of Object.keys(e)){if(t==="bindings")continue;let n=t,i=e[n]||{},s=this.modules[n];if(!s)this.options.disableWarnings||Xr.log.warn(`Module ${t} not found`)();else{let o=this.moduleUniforms[n],a=this.moduleBindings[n],c=s.getUniforms?.(i,o)||i,{uniforms:u,bindings:l}=m9(c,s.uniformTypes);this.moduleUniforms[n]=g9(o,u,s.uniformTypes),this.moduleBindings[n]={...a,...l}}}}getModules(){return Object.values(this.modules)}addModules(e){let t=(0,zi.getShaderModuleDependencies)(e);for(let n of t){let i=n.name;this.modules[i]||(this.modules[i]=n,this._addModule(n))}}getUniformValues(){return this.moduleUniforms}getBindingValues(){let e={};for(let t of Object.values(this.moduleBindings))Object.assign(e,t);return Object.assign(e,this.directBindings),e}getModuleBindingValues(e){let t=this.moduleBindings[e];return t?{...t}:{}}getDebugTable(){let e={};for(let[t,n]of Object.entries(this.moduleUniforms))for(let[i,s]of Object.entries(n))e[`${t}.${i}`]={type:this.modules[t].uniformTypes?.[i],value:String(s)};return e}_addModule(e){let t=e.name;this.moduleUniforms[t]=g9({},e.defaultUniforms||{},e.uniformTypes),this.moduleBindings[t]={}}};function g9(r={},e={},t={}){let n={...r};for(let[i,s]of Object.entries(e))s!==void 0&&(n[i]=Ui(r[i],s,t[i]));return n}function Ui(r,e,t){if(!t||typeof t=="string")return Et(e);if(Array.isArray(t)){if(Vi(e)||!Array.isArray(e))return Et(e);let o=Array.isArray(r)&&!Vi(r)?[...r]:[],a=o.slice();for(let c=0;c<e.length;c++){let u=e[c];u!==void 0&&(a[c]=Ui(o[c],u,t[0]))}return a}if(!$i(e))return Et(e);let n=t,i=$i(r)?r:{},s={...i};for(let[o,a]of Object.entries(e))a!==void 0&&(s[o]=Ui(i[o],a,n[o]));return s}function Et(r){return ArrayBuffer.isView(r)?Array.prototype.slice.call(r):Array.isArray(r)?Vi(r)?r.slice():r.map(t=>t===void 0?void 0:Et(t)):$i(r)?Object.fromEntries(Object.entries(r).map(([e,t])=>[e,t===void 0?void 0:Et(t)])):r}function Vi(r){return ArrayBuffer.isView(r)||Array.isArray(r)&&(r.length===0||typeof r[0]=="number")}function $i(r){return!!r&&typeof r=="object"&&!Array.isArray(r)&&!ArrayBuffer.isView(r)}function X4(r){return!!r?.dependencies}var Rt=globalThis,Y4=globalThis.document||{},Yr=globalThis.process||{},K4=globalThis.console,Z4=globalThis.navigator||{};function Kr(r){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&process.versions?.electron)return!0;let e=typeof navigator<"u"&&navigator.userAgent,t=r||e;return!!(t&&t.indexOf("Electron")>=0)}function j0(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||Kr()}var ji="5.0.0";function Ue(r,e){if(!r)throw new Error(e||"Assertion failed")}function Zr(r){if(!r)return 0;let e;switch(typeof r){case"number":e=r;break;case"object":e=r.logLevel||r.priority||0;break;default:return 0}return Ue(Number.isFinite(e)&&e>=0),e}function Wi(r){let{logLevel:e,message:t}=r;r.logLevel=Zr(e);let n=r.args?Array.from(r.args):[];for(;n.length&&n.shift()!==t;);switch(typeof e){case"string":case"function":t!==void 0&&n.unshift(t),r.message=e;break;case"object":Object.assign(r,e);break;default:}typeof r.message=="function"&&(r.message=r.message());let i=typeof r.message;return Ue(i==="string"||i==="object"),Object.assign(r,{args:n},r.opts)}var W0=()=>{},ue=class{constructor({level:e=0}={}){this.userData={},this._onceCache=new Set,this._level=e}set level(e){this.setLevel(e)}get level(){return this.getLevel()}setLevel(e){return this._level=e,this}getLevel(){return this._level}warn(e,...t){return this._log("warn",0,e,t,{once:!0})}error(e,...t){return this._log("error",0,e,t)}log(e,t,...n){return this._log("log",e,t,n)}info(e,t,...n){return this._log("info",e,t,n)}once(e,t,...n){return this._log("once",e,t,n,{once:!0})}_log(e,t,n,i,s={}){let o=Wi({logLevel:t,message:n,args:this._buildArgs(t,n,i),opts:s});return this._createLogFunction(e,o,s)}_buildArgs(e,t,n){return[e,t,...n]}_createLogFunction(e,t,n){if(!this._shouldLog(t.logLevel))return W0;let i=this._getOnceTag(n.tag??t.tag??t.message);if((n.once||t.once)&&i!==void 0){if(this._onceCache.has(i))return W0;this._onceCache.add(i)}return this._emit(e,t)}_shouldLog(e){return this.getLevel()>=Zr(e)}_getOnceTag(e){if(e!==void 0)try{return typeof e=="string"?e:String(e)}catch{return}}};function J4(r){try{let e=window[r],t="__storage_test__";return e.setItem(t,t),e.removeItem(t),e}catch{return null}}var Ct=class{constructor(e,t,n="sessionStorage"){this.storage=J4(n),this.id=e,this.config=t,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){let t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}}_loadConfiguration(){let e={};if(this.storage){let t=this.storage.getItem(this.id);e=t?JSON.parse(t):{}}return Object.assign(this.config,e),this}};function y9(r){let e;return r<10?e=`${r.toFixed(2)}ms`:r<100?e=`${r.toFixed(1)}ms`:r<1e3?e=`${r.toFixed(0)}ms`:e=`${(r/1e3).toFixed(2)}s`,e}function Hi(r,e=8){let t=Math.max(e-r.length,0);return`${" ".repeat(t)}${r}`}var Bt;(function(r){r[r.BLACK=30]="BLACK",r[r.RED=31]="RED",r[r.GREEN=32]="GREEN",r[r.YELLOW=33]="YELLOW",r[r.BLUE=34]="BLUE",r[r.MAGENTA=35]="MAGENTA",r[r.CYAN=36]="CYAN",r[r.WHITE=37]="WHITE",r[r.BRIGHT_BLACK=90]="BRIGHT_BLACK",r[r.BRIGHT_RED=91]="BRIGHT_RED",r[r.BRIGHT_GREEN=92]="BRIGHT_GREEN",r[r.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",r[r.BRIGHT_BLUE=94]="BRIGHT_BLUE",r[r.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",r[r.BRIGHT_CYAN=96]="BRIGHT_CYAN",r[r.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(Bt||(Bt={}));var e5=10;function x9(r){return typeof r!="string"?r:(r=r.toUpperCase(),Bt[r]||Bt.WHITE)}function qi(r,e,t){return!j0&&typeof r=="string"&&(e&&(r=`\x1B[${x9(e)}m${r}\x1B[39m`),t&&(r=`\x1B[${x9(t)+e5}m${r}\x1B[49m`)),r}function Xi(r,e=["constructor"]){let t=Object.getPrototypeOf(r),n=Object.getOwnPropertyNames(t),i=r;for(let s of n){let o=i[s];typeof o=="function"&&(e.find(a=>s===a)||(i[s]=o.bind(r)))}}var Qr=class{getHighResolutionTimer(){let e;if(j0()&&Rt.performance)e=Rt?.performance?.now?.();else if("hrtime"in Yr){let t=Yr?.hrtime?.();e=t[0]*1e3+t[1]/1e6}else e=Date.now();return e}getMemoryUsageMB(){let t=Rt?.performance?.memory?.usedJSHeapSize;return t==null?null:Math.trunc(t/1024/1024)}},l0=new Qr;globalThis.Probe=Qr;globalThis.probe=l0;var Ve={debug:j0()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},Yi={enabled:!0,level:0},B0=class extends ue{constructor({id:e}={id:""}){super({level:0}),this.VERSION=ji,this._startTs=l0.getHighResolutionTimer(),this._deltaTs=l0.getHighResolutionTimer(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new Ct(`__probe-${this.id}__`,{[this.id]:Yi}),this.timeStamp(`${this.id} started`),Xi(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((l0.getHighResolutionTimer()-this._startTs).toPrecision(10))}getDelta(){return Number((l0.getHighResolutionTimer()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._updateConfiguration({enabled:e}),this}setLevel(e){return this._updateConfiguration({level:e}),this}get(e){return this._getConfiguration()[e]}set(e,t){this._updateConfiguration({[e]:t})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,t){if(!e)throw new Error(t||"Assertion failed")}warn(e,...t){return this._log("warn",0,e,t,{method:Ve.warn,once:!0})}error(e,...t){return this._log("error",0,e,t,{method:Ve.error})}deprecated(e,t){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${t}\` instead`)}removed(e,t){return this.error(`\`${e}\` has been removed. Use \`${t}\` instead`)}probe(e,t,...n){let i=l0.getMemoryUsageMB();if(i!==null){let s=`${i}MB `;typeof t=="function"?t=()=>`${s}${t()}`:typeof t=="string"&&(t=`${s}${t}`)}return this._log("log",e,t,n,{method:Ve.log,time:!0,once:!0})}log(e,t,...n){return this._log("log",e,t,n,{method:Ve.debug})}info(e,t,...n){return this._log("info",e,t,n,{method:console.info})}once(e,t,...n){return this._log("once",e,t,n,{method:Ve.debug||Ve.info,once:!0})}table(e,t,n){return t?this._log("table",e,t,n&&[n]||[],{method:console.table||W0,tag:r5(t)}):W0}time(e,t){return this._log("time",e,t,[],{method:console.time?console.time:console.info})}timeEnd(e,t){return this._log("time",e,t,[],{method:console.timeEnd?console.timeEnd:console.info})}timeStamp(e,t){return this._log("time",e,t,[],{method:console.timeStamp||W0})}group(e,t,n={collapsed:!1}){let i=(n.collapsed?console.groupCollapsed:console.group)||console.info;return this._log("group",e,t,[],{method:i})}groupCollapsed(e,t,n={}){return this.group(e,t,Object.assign({},n,{collapsed:!0}))}groupEnd(e){return this._log("groupEnd",e,"",[],{method:console.groupEnd||W0})}withGroup(e,t,n){this.group(e,t)();try{n()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&super._shouldLog(e)}_emit(e,t){let n=t.method;Ue(n),t.total=this.getTotal(),t.delta=this.getDelta(),this._deltaTs=l0.getHighResolutionTimer();let i=t5(this.id,t.message,t);return n.bind(console,i,...t.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(Yi),this._storage.config[this.id]}_updateConfiguration(e){let t=this._storage.config[this.id]||{...Yi};this._storage.setConfiguration({[this.id]:{...t,...e}})}};B0.VERSION=ji;function t5(r,e,t){if(typeof e=="string"){let n=t.time?Hi(y9(t.total)):"";e=t.time?`${r}: ${n} ${e}`:`${r}: ${e}`,e=qi(e,t.color,t.background)}return e}function r5(r){for(let e in r)for(let t in r[e])return t||"untitled";return"empty"}globalThis.probe||(globalThis.probe=l0);var ff=new B0({id:"@probe.gl/log"});var o0=new B0({id:"luma.gl"});var Ki={};function $e(r="id"){Ki[r]=Ki[r]||1;let e=Ki[r]++;return`${r}-${e}`}var n5="cpu-hotspot-profiler",b9="GPU Resource Counts",v9="Resource Counts",T9="GPU Time and Memory",i5=["Resources","Buffers","Textures","Samplers","TextureViews","Framebuffers","QuerySets","Shaders","RenderPipelines","ComputePipelines","PipelineLayouts","VertexArrays","RenderPasss","RenderBundleEncoders","RenderBundles","ComputePasss","CommandEncoders","CommandBuffers"],s5=["Resources","Buffers","Textures","Samplers","TextureViews","Framebuffers","QuerySets","Shaders","RenderPipelines","SharedRenderPipelines","ComputePipelines","PipelineLayouts","VertexArrays","RenderPasss","RenderBundleEncoders","RenderBundles","ComputePasss","CommandEncoders","CommandBuffers"],o5=i5.flatMap(r=>[`${r} Created`,`${r} Active`]),a5=s5.flatMap(r=>[`${r} Created`,`${r} Active`]),S9=new WeakMap,w9=new WeakMap,d0=class{static defaultProps={id:"undefined",handle:void 0,_isHandleBorrowed:!1,userData:void 0};toString(){return`${this[Symbol.toStringTag]||this.constructor.name}:"${this.id}"`}toJSON(){return this.toString()}id;props;userData={};_device;destroyed=!1;allocatedBytes=0;allocatedBytesName=null;_attachedResources=new Set;get ownsHandle(){return(this.props.handle===void 0||this.props.handle===null)&&!this.isHandleBorrowed}get isHandleBorrowed(){return!!this.props._isHandleBorrowed}constructor(e,t,n){if(!e)throw new Error("no device");this._device=e,this.props=c5(t,n);let i=this.props.id!=="undefined"?this.props.id:$e(this[Symbol.toStringTag]);this.props.id=i,this.id=i,this.userData=this.props.userData||{},this.addStats()}destroy(){this.destroyed||this.destroyResource()}delete(){return this.destroy(),this}getProps(){return this.props}attachResource(e){this._attachedResources.add(e)}detachResource(e){this._attachedResources.delete(e)}destroyAttachedResource(e){this._attachedResources.delete(e)&&e.destroy()}destroyAttachedResources(){for(let e of this._attachedResources)e.destroy();this._attachedResources=new Set}destroyResource(){this.destroyed||(this.destroyAttachedResources(),this.removeStats(),this.destroyed=!0)}removeStats(){let e=Dt(this._device),t=e?H0():0,n=[this._device.statsManager.getStats(b9),this._device.statsManager.getStats(v9)],i=_9(this._device);for(let o of n)A9(o,i);let s=this.getStatsName();for(let o of n)o.get("Resources Active").decrementCount(),o.get(`${s}s Active`).decrementCount();e&&(e.statsBookkeepingCalls=(e.statsBookkeepingCalls||0)+1,e.statsBookkeepingTimeMs=(e.statsBookkeepingTimeMs||0)+(H0()-t))}trackAllocatedMemory(e,t=this.getStatsName()){let n=Dt(this._device),i=n?H0():0,s=this._device.statsManager.getStats(T9);this.allocatedBytes>0&&this.allocatedBytesName&&(s.get("GPU Memory").subtractCount(this.allocatedBytes),s.get(`${this.allocatedBytesName} Memory`).subtractCount(this.allocatedBytes)),s.get("GPU Memory").addCount(e),s.get(`${t} Memory`).addCount(e),n&&(n.statsBookkeepingCalls=(n.statsBookkeepingCalls||0)+1,n.statsBookkeepingTimeMs=(n.statsBookkeepingTimeMs||0)+(H0()-i)),this.allocatedBytes=e,this.allocatedBytesName=t}trackReferencedMemory(e,t=this.getStatsName()){this.trackAllocatedMemory(e,`External ${t}`)}trackDeallocatedMemory(e=this.getStatsName()){if(this.allocatedBytes===0){this.allocatedBytesName=null;return}let t=Dt(this._device),n=t?H0():0,i=this._device.statsManager.getStats(T9);i.get("GPU Memory").subtractCount(this.allocatedBytes),i.get(`${this.allocatedBytesName||e} Memory`).subtractCount(this.allocatedBytes),t&&(t.statsBookkeepingCalls=(t.statsBookkeepingCalls||0)+1,t.statsBookkeepingTimeMs=(t.statsBookkeepingTimeMs||0)+(H0()-n)),this.allocatedBytes=0,this.allocatedBytesName=null}trackDeallocatedReferencedMemory(e=this.getStatsName()){this.trackDeallocatedMemory(`Referenced ${e}`)}addStats(){let e=this.getStatsName(),t=Dt(this._device),n=t?H0():0,i=[this._device.statsManager.getStats(b9),this._device.statsManager.getStats(v9)],s=_9(this._device);for(let o of i)A9(o,s);for(let o of i)o.get("Resources Created").incrementCount(),o.get("Resources Active").incrementCount(),o.get(`${e}s Created`).incrementCount(),o.get(`${e}s Active`).incrementCount();t&&(t.statsBookkeepingCalls=(t.statsBookkeepingCalls||0)+1,t.statsBookkeepingTimeMs=(t.statsBookkeepingTimeMs||0)+(H0()-n)),u5(this._device,e)}getStatsName(){return l5(this)}};function c5(r,e){let t={...e};for(let n in r)r[n]!==void 0&&(t[n]=r[n]);return t}function A9(r,e){let t=r.stats,n=!1;for(let c of e)t[c]||(r.get(c),n=!0);let i=Object.keys(t).length,s=S9.get(r);if(!n&&s?.orderedStatNames===e&&s.statCount===i)return;let o={},a=w9.get(e);a||(a=new Set(e),w9.set(e,a));for(let c of e)t[c]&&(o[c]=t[c]);for(let[c,u]of Object.entries(t))a.has(c)||(o[c]=u);for(let c of Object.keys(t))delete t[c];Object.assign(t,o),S9.set(r,{orderedStatNames:e,statCount:i})}function _9(r){return r.type==="webgl"?a5:o5}function Dt(r){let e=r.userData[n5];return e?.enabled?e:null}function H0(){return globalThis.performance?.now?.()??Date.now()}function u5(r,e){let t=Dt(r);if(!(!t||!t.activeDefaultFramebufferAcquireDepth))switch(t.transientCanvasResourceCreates=(t.transientCanvasResourceCreates||0)+1,e){case"Texture":t.transientCanvasTextureCreates=(t.transientCanvasTextureCreates||0)+1;break;case"TextureView":t.transientCanvasTextureViewCreates=(t.transientCanvasTextureViewCreates||0)+1;break;case"Sampler":t.transientCanvasSamplerCreates=(t.transientCanvasSamplerCreates||0)+1;break;case"Framebuffer":t.transientCanvasFramebufferCreates=(t.transientCanvasFramebufferCreates||0)+1;break;default:break}}function l5(r){let e=Object.getPrototypeOf(r);for(;e;){let t=Object.getPrototypeOf(e);if(!t||t===d0.prototype)return d5(e)||r[Symbol.toStringTag]||r.constructor.name;e=t}return r[Symbol.toStringTag]||r.constructor.name}function d5(r){let e=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag);return typeof e?.get=="function"?e.get.call(r):typeof e?.value=="string"?e.value:null}var w0=class r extends d0{static INDEX=16;static VERTEX=32;static UNIFORM=64;static STORAGE=128;static INDIRECT=256;static QUERY_RESOLVE=512;static MAP_READ=1;static MAP_WRITE=2;static COPY_SRC=4;static COPY_DST=8;get[Symbol.toStringTag](){return"Buffer"}usage;indexType;updateTimestamp;constructor(e,t){let n={...t};(t.usage||0)&r.INDEX&&!t.indexType&&(t.data instanceof Uint32Array?n.indexType="uint32":t.data instanceof Uint16Array?n.indexType="uint16":t.data instanceof Uint8Array&&(n.indexType="uint8")),delete n.data,super(e,n,r.defaultProps),this.usage=n.usage||0,this.indexType=n.indexType,this.updateTimestamp=e.incrementTimestamp()}clone(e){return this.device.createBuffer({...this.props,...e})}static DEBUG_DATA_MAX_LENGTH=32;debugData=new ArrayBuffer(0);_setDebugData(e,t,n){if(!this.device.props.debug)return;let i=null,s;ArrayBuffer.isView(e)?(i=e,s=e.buffer):s=e;let o=Math.min(e?e.byteLength:n,r.DEBUG_DATA_MAX_LENGTH);if(s===null)this.debugData=new ArrayBuffer(o);else{let a=Math.min(i?.byteOffset||0,s.byteLength),c=Math.max(0,s.byteLength-a),u=Math.min(o,c);this.debugData=new Uint8Array(s,a,u).slice().buffer}}static defaultProps={...d0.defaultProps,handle:void 0,usage:0,byteLength:0,byteOffset:0,data:null,indexType:"uint16",onMapped:void 0}};var Zi=globalThis.Float16Array;function M9(){return Zi??Uint16Array}function I9(r){return!!(Zi&&r===Zi)}function P9(r){let e=r.includes("norm"),t=!e&&!r.startsWith("float"),n=r.startsWith("s"),i=Qi[r],[s,o,a]=i||["uint8 ","i32",1];return{signedType:s,primitiveType:o,byteLength:a,normalized:e,integer:t,signed:n}}function L9(r){let e=r;switch(e){case"uint8":return"unorm8";case"sint8":return"snorm8";case"uint16":return"unorm16";case"sint16":return"snorm16";default:return e}}function f5(r){let e=ArrayBuffer.isView(r)?r.constructor:r;if(I9(e))return"float16";if(e===Uint8ClampedArray)return"uint8";let t=Object.values(Qi).find(n=>e===n[4]);if(!t)throw new Error(e.name);return t[0]}function E9(r){return f5(r)}function h5(r){if(r==="float16")return M9();let e=Qi[r];if(!e)throw new Error(r);let[,,,,t]=e;return t}function R9(r){return h5(r)}var Qi={uint8:["uint8","u32",1,!1,Uint8Array],sint8:["sint8","i32",1,!1,Int8Array],unorm8:["uint8","f32",1,!0,Uint8Array],snorm8:["sint8","f32",1,!0,Int8Array],uint16:["uint16","u32",2,!1,Uint16Array],sint16:["sint16","i32",2,!1,Int16Array],unorm16:["uint16","u32",2,!0,Uint16Array],snorm16:["sint16","i32",2,!0,Int16Array],float16:["float16","f16",2,!1,Uint16Array],float32:["float32","f32",4,!1,Float32Array],uint32:["uint32","u32",4,!1,Uint32Array],sint32:["sint32","i32",4,!1,Int32Array]};var Ji=class{getDataTypeInfo(e){return P9(e)}getNormalizedDataType(e){return L9(e)}alignTo(e,t){return Br(e,t)}getDataType(e){return E9(e)}getTypedArrayConstructor(e){return R9(e)}},C9=new Ji;var e0="texture-compression-bc",N="texture-compression-astc",A0="texture-compression-etc2",B9="texture-compression-etc1-webgl",Jr="texture-compression-pvrtc-webgl",e1="texture-compression-atc-webgl",en="float32-renderable-webgl",t1="float16-renderable-webgl",p5="rgb9e5ufloat-renderable-webgl",r1="snorm8-renderable-webgl",q0="norm16-webgl",n1="norm16-renderable-webgl",i1="snorm16-renderable-webgl",tn="float32-filterable",D9="float16-filterable-webgl",Ot=1,kt=2,a1=4,c1=8,We=16,nn=5,k9=10,q=Ot|kt,rn=Ot|a1,D0=Ot|kt|a1|c1,_0=Ot|kt|We,m5=Ot|a1|We,o1=D0|We,O9=(kt|c1|We)<<nn,g5=(kt|c1)<<nn,n0=We<<nn,je=o1<<nn,y5=D0<<k9,s1=We<<k9;function sn(r){let e=v5[r];if(!e)throw new Error(`Unsupported texture format ${r}`);return e}var x5={r8unorm:{webgpu:D0|n0},rg8unorm:{webgpu:D0|n0},"rgb8unorm-webgl":{},rgba8unorm:{webgpu:o1},"rgba8unorm-srgb":{webgpu:D0},r8snorm:{render:r1,webgpu:rn|O9},rg8snorm:{render:r1,webgpu:rn|O9},"rgb8snorm-webgl":{},rgba8snorm:{render:r1,webgpu:m5|g5},r8uint:{webgpu:q|n0},rg8uint:{webgpu:q|n0},rgba8uint:{webgpu:_0},r8sint:{webgpu:q|n0},rg8sint:{webgpu:q|n0},rgba8sint:{webgpu:_0},bgra8unorm:{webgpu:D0},"bgra8unorm-srgb":{webgpu:y5},r16unorm:{f:q0,render:n1,webgpu:je},rg16unorm:{f:q0,render:n1,webgpu:je},"rgb16unorm-webgl":{f:q0,render:!1},rgba16unorm:{f:q0,render:n1,webgpu:je},r16snorm:{f:q0,render:i1,webgpu:je},rg16snorm:{f:q0,render:i1,webgpu:je},"rgb16snorm-webgl":{f:q0,render:!1},rgba16snorm:{f:q0,render:i1,webgpu:je},r16uint:{webgpu:q|n0},rg16uint:{webgpu:q|n0},rgba16uint:{webgpu:_0},r16sint:{webgpu:q|n0},rg16sint:{webgpu:q|n0},rgba16sint:{webgpu:_0},r16float:{render:t1,filter:"float16-filterable-webgl",webgpu:D0|n0},rg16float:{render:t1,filter:D9,webgpu:D0|n0},rgba16float:{render:t1,filter:D9,webgpu:o1},r32uint:{webgpu:_0},rg32uint:{webgpu:q|s1},rgba32uint:{webgpu:_0},r32sint:{webgpu:_0},rg32sint:{webgpu:q|s1},rgba32sint:{webgpu:_0},r32float:{render:en,filter:tn,webgpu:_0},rg32float:{render:!1,filter:tn,webgpu:q|s1},"rgb32float-webgl":{render:en,filter:tn},rgba32float:{render:en,filter:tn,webgpu:_0},"rgba4unorm-webgl":{channels:"rgba",bitsPerChannel:[4,4,4,4],packed:!0},"rgb565unorm-webgl":{channels:"rgb",bitsPerChannel:[5,6,5,0],packed:!0},"rgb5a1unorm-webgl":{channels:"rgba",bitsPerChannel:[5,5,5,1],packed:!0},rgb9e5ufloat:{channels:"rgb",packed:!0,render:p5,webgpu:rn},rg11b10ufloat:{channels:"rgb",bitsPerChannel:[11,11,10,0],packed:!0,p:1,render:en,webgpu:rn|n0},rgb10a2unorm:{channels:"rgba",bitsPerChannel:[10,10,10,2],packed:!0,p:1,webgpu:D0|n0},rgb10a2uint:{channels:"rgba",bitsPerChannel:[10,10,10,2],packed:!0,p:1,webgpu:q|n0},stencil8:{attachment:"stencil",bitsPerChannel:[8,0,0,0],dataType:"uint8",webgpu:q},depth16unorm:{attachment:"depth",bitsPerChannel:[16,0,0,0],dataType:"uint16",webgpu:q},depth24plus:{attachment:"depth",bitsPerChannel:[24,0,0,0],dataType:"uint32",webgpu:q},depth32float:{attachment:"depth",bitsPerChannel:[32,0,0,0],dataType:"float32",webgpu:q},"depth24plus-stencil8":{attachment:"depth-stencil",bitsPerChannel:[24,8,0,0],packed:!0,webgpu:q},"depth32float-stencil8":{attachment:"depth-stencil",bitsPerChannel:[32,8,0,0],packed:!0,f:"depth32float-stencil8",webgpu:q}},b5={"bc1-rgb-unorm-webgl":{f:e0},"bc1-rgb-unorm-srgb-webgl":{f:e0},"bc1-rgba-unorm":{f:e0},"bc1-rgba-unorm-srgb":{f:e0},"bc2-rgba-unorm":{f:e0},"bc2-rgba-unorm-srgb":{f:e0},"bc3-rgba-unorm":{f:e0},"bc3-rgba-unorm-srgb":{f:e0},"bc4-r-unorm":{f:e0},"bc4-r-snorm":{f:e0},"bc5-rg-unorm":{f:e0},"bc5-rg-snorm":{f:e0},"bc6h-rgb-ufloat":{f:e0},"bc6h-rgb-float":{f:e0},"bc7-rgba-unorm":{f:e0},"bc7-rgba-unorm-srgb":{f:e0},"etc2-rgb8unorm":{f:A0},"etc2-rgb8unorm-srgb":{f:A0},"etc2-rgb8a1unorm":{f:A0},"etc2-rgb8a1unorm-srgb":{f:A0},"etc2-rgba8unorm":{f:A0},"etc2-rgba8unorm-srgb":{f:A0},"eac-r11unorm":{f:A0},"eac-r11snorm":{f:A0},"eac-rg11unorm":{f:A0},"eac-rg11snorm":{f:A0},"astc-4x4-unorm":{f:N},"astc-4x4-unorm-srgb":{f:N},"astc-5x4-unorm":{f:N},"astc-5x4-unorm-srgb":{f:N},"astc-5x5-unorm":{f:N},"astc-5x5-unorm-srgb":{f:N},"astc-6x5-unorm":{f:N},"astc-6x5-unorm-srgb":{f:N},"astc-6x6-unorm":{f:N},"astc-6x6-unorm-srgb":{f:N},"astc-8x5-unorm":{f:N},"astc-8x5-unorm-srgb":{f:N},"astc-8x6-unorm":{f:N},"astc-8x6-unorm-srgb":{f:N},"astc-8x8-unorm":{f:N},"astc-8x8-unorm-srgb":{f:N},"astc-10x5-unorm":{f:N},"astc-10x5-unorm-srgb":{f:N},"astc-10x6-unorm":{f:N},"astc-10x6-unorm-srgb":{f:N},"astc-10x8-unorm":{f:N},"astc-10x8-unorm-srgb":{f:N},"astc-10x10-unorm":{f:N},"astc-10x10-unorm-srgb":{f:N},"astc-12x10-unorm":{f:N},"astc-12x10-unorm-srgb":{f:N},"astc-12x12-unorm":{f:N},"astc-12x12-unorm-srgb":{f:N},"pvrtc-rgb4unorm-webgl":{f:Jr},"pvrtc-rgba4unorm-webgl":{f:Jr},"pvrtc-rgb2unorm-webgl":{f:Jr},"pvrtc-rgba2unorm-webgl":{f:Jr},"etc1-rgb-unorm-webgl":{f:B9},"etc1-rbg-unorm-webgl":{f:B9},"atc-rgb-unorm-webgl":{f:e1},"atc-rgba-unorm-webgl":{f:e1},"atc-rgbai-unorm-webgl":{f:e1}},v5={...x5,...b5};var T5=/^(r|rg|rgb|rgba|bgra)([0-9]*)([a-z]*)(-srgb)?(-webgl)?$/,S5=["rgb","rgba","bgra"],w5=["depth","stencil"],A5=5,_5=["bc1","bc2","bc3","bc4","bc5","bc6","bc7","etc1","etc2","eac","atc","astc","pvrtc"],u1=class{isColor(e){return S5.some(t=>e.startsWith(t))}isDepthStencil(e){return w5.some(t=>e.startsWith(t))}isCompressed(e){return _5.some(t=>e.startsWith(t))}getInfo(e){return N9(e)}getCapabilities(e){return I5(e)}getWebGPUCapabilities(e){let t=sn(e);return t.webgpu!==void 0?t.webgpu:this.isCompressed(e)&&!e.endsWith("-webgl")?A5:0}computeMemoryLayout(e){return M5(e)}},le=new u1;function M5({format:r,width:e,height:t,depth:n,byteAlignment:i}){let s=le.getInfo(r),{bytesPerPixel:o,bytesPerBlock:a=o,blockWidth:c=1,blockHeight:u=1,compressed:l=!1}=s,d=l?Math.ceil(e/c):e,f=l?Math.ceil(t/u):t,h=d*a,p=Math.ceil(h/i)*i,m=f,g=p*m*n;return{bytesPerPixel:o,bytesPerRow:p,rowsPerImage:m,depthOrArrayLayers:n,bytesPerImage:p*m,byteLength:g}}function I5(r){let e=sn(r),t={format:r,create:e.f??!0,render:e.render??!0,filter:e.filter??!0,blend:e.blend??!0,store:e.store??!0},n=N9(r),i=r.startsWith("depth")||r.startsWith("stencil"),s=n?.signed,o=n?.integer,a=n?.webgl,c=!!n?.compressed;return t.render&&=!i&&!c,t.filter&&=!i&&!s&&!o&&!a,t}function N9(r){let e=P5(r);if(le.isCompressed(r)){e.channels="rgb",e.components=3,e.bytesPerPixel=1,e.srgb=!1,e.compressed=!0,e.bytesPerBlock=E5(r);let n=L5(r);n&&(e.blockWidth=n.blockWidth,e.blockHeight=n.blockHeight)}let t=e.packed?null:T5.exec(r);if(t){let[,n,i,s,o,a]=t,c=`${s}${i}`,u=C9.getDataTypeInfo(c),l=u.byteLength*8,d=n?.length??1,f=[l,d>=2?l:0,d>=3?l:0,d>=4?l:0];e={format:r,attachment:e.attachment,dataType:u.signedType,components:d,channels:n,integer:u.integer,signed:u.signed,normalized:u.normalized,bitsPerChannel:f,bytesPerPixel:u.byteLength*d,packed:e.packed,srgb:e.srgb},a==="-webgl"&&(e.webgl=!0),o==="-srgb"&&(e.srgb=!0)}return r.endsWith("-webgl")&&(e.webgl=!0),r.endsWith("-srgb")&&(e.srgb=!0),e}function P5(r){let e={...sn(r)},t=e.bytesPerPixel||1,n=e.bitsPerChannel||[8,8,8,8];return delete e.bitsPerChannel,delete e.bytesPerPixel,delete e.f,delete e.render,delete e.filter,delete e.blend,delete e.store,delete e.webgpu,{...e,format:r,attachment:e.attachment||"color",channels:e.channels||"r",components:e.components||e.channels?.length||1,bytesPerPixel:t,bitsPerChannel:n,dataType:e.dataType||"uint8",srgb:e.srgb??!1,packed:e.packed??!1,webgl:e.webgl??!1,integer:e.integer??!1,signed:e.signed??!1,normalized:e.normalized??!1,compressed:e.compressed??!1}}function L5(r){let t=/.*-(\d+)x(\d+)-.*/.exec(r);if(t){let[,n,i]=t;return{blockWidth:Number(n),blockHeight:Number(i)}}return r.startsWith("bc")||r.startsWith("etc1")||r.startsWith("etc2")||r.startsWith("eac")||r.startsWith("atc")?{blockWidth:4,blockHeight:4}:r.startsWith("pvrtc-rgb4")||r.startsWith("pvrtc-rgba4")?{blockWidth:4,blockHeight:4}:r.startsWith("pvrtc-rgb2")||r.startsWith("pvrtc-rgba2")?{blockWidth:8,blockHeight:4}:null}function E5(r){return r.startsWith("bc1")||r.startsWith("bc4")||r.startsWith("etc1")||r.startsWith("etc2-rgb8")||r.startsWith("etc2-rgb8a1")||r.startsWith("eac-r11")||r==="atc-rgb-unorm-webgl"?8:r.startsWith("bc2")||r.startsWith("bc3")||r.startsWith("bc5")||r.startsWith("bc6h")||r.startsWith("bc7")||r.startsWith("etc2-rgba8")||r.startsWith("eac-rg11")||r.startsWith("astc")||r==="atc-rgba-unorm-webgl"||r==="atc-rgbai-unorm-webgl"?16:r.startsWith("pvrtc")?8:16}function Nt(r){return typeof ImageData<"u"&&r instanceof ImageData||typeof ImageBitmap<"u"&&r instanceof ImageBitmap||typeof HTMLImageElement<"u"&&r instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&r instanceof HTMLVideoElement||typeof VideoFrame<"u"&&r instanceof VideoFrame||typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement||typeof OffscreenCanvas<"u"&&r instanceof OffscreenCanvas}function on(r){if(typeof ImageData<"u"&&r instanceof ImageData||typeof ImageBitmap<"u"&&r instanceof ImageBitmap||typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement||typeof OffscreenCanvas<"u"&&r instanceof OffscreenCanvas)return{width:r.width,height:r.height};if(typeof HTMLImageElement<"u"&&r instanceof HTMLImageElement)return{width:r.naturalWidth,height:r.naturalHeight};if(typeof HTMLVideoElement<"u"&&r instanceof HTMLVideoElement)return{width:r.videoWidth,height:r.videoHeight};if(typeof VideoFrame<"u"&&r instanceof VideoFrame)return{width:r.displayWidth,height:r.displayHeight};throw new Error("Unknown image type")}var X0=class r extends d0{static defaultProps={...d0.defaultProps,type:"color-sampler",addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge",addressModeW:"clamp-to-edge",magFilter:"nearest",minFilter:"nearest",mipmapFilter:"none",lodMinClamp:0,lodMaxClamp:32,compare:"less-equal",maxAnisotropy:1};get[Symbol.toStringTag](){return"Sampler"}constructor(e,t){t=r.normalizeProps(e,t),super(e,t,r.defaultProps)}static normalizeProps(e,t){return t}};var R5={"1d":"1d","2d":"2d","2d-array":"2d",cube:"2d","cube-array":"2d","3d":"3d"},t0=class r extends d0{static SAMPLE=4;static STORAGE=8;static RENDER=16;static COPY_SRC=1;static COPY_DST=2;static TEXTURE=4;static RENDER_ATTACHMENT=16;dimension;baseDimension;format;width;height;depth;mipLevels;samples;byteAlignment;ready=Promise.resolve(this);isReady=!0;updateTimestamp;get[Symbol.toStringTag](){return"Texture"}toString(){return`Texture(${this.id},${this.format},${this.width}x${this.height})`}constructor(e,t,n){if(t=r.normalizeProps(e,t),super(e,t,r.defaultProps),this.dimension=this.props.dimension,this.baseDimension=R5[this.dimension],this.format=this.props.format,this.width=this.props.width,this.height=this.props.height,this.depth=this.props.depth,this.mipLevels=this.props.mipLevels,this.samples=this.props.samples||1,this.dimension==="cube"&&(this.depth=6),this.props.width===void 0||this.props.height===void 0)if(e.isExternalImage(t.data)){let i=e.getExternalImageSize(t.data);this.width=i?.width||1,this.height=i?.height||1}else this.width=1,this.height=1,(this.props.width===void 0||this.props.height===void 0)&&o0.warn(`${this} created with undefined width or height. This is deprecated. Use DynamicTexture instead.`)();this.byteAlignment=n?.byteAlignment||1,this.updateTimestamp=e.incrementTimestamp()}clone(e){return this.device.createTexture({...this.props,...e})}setSampler(e){this.sampler=e instanceof X0?e:this.device.createSampler(e)}copyImageData(e){let{data:t,depth:n,...i}=e;this.writeData(t,{...i,depthOrArrayLayers:i.depthOrArrayLayers??n})}computeMemoryLayout(e={}){let t=this._normalizeTextureReadOptions(e),{width:n=this.width,height:i=this.height,depthOrArrayLayers:s=this.depth}=t,{format:o,byteAlignment:a}=this;return le.computeMemoryLayout({format:o,width:n,height:i,depth:s,byteAlignment:a})}readBuffer(e,t){throw new Error("readBuffer not implemented")}readDataAsync(e){throw new Error("readBuffer not implemented")}writeBuffer(e,t){throw new Error("readBuffer not implemented")}writeData(e,t){throw new Error("readBuffer not implemented")}readDataSyncWebGL(e){throw new Error("readDataSyncWebGL not available")}generateMipmapsWebGL(){throw new Error("generateMipmapsWebGL not available")}static normalizeProps(e,t){let n={...t},{width:i,height:s}=n;return typeof i=="number"&&(n.width=Math.max(1,Math.ceil(i))),typeof s=="number"&&(n.height=Math.max(1,Math.ceil(s))),n}_initializeData(e){this.device.isExternalImage(e)?this.copyExternalImage({image:e,width:this.width,height:this.height,depth:this.depth,mipLevel:0,x:0,y:0,z:0,aspect:"all",colorSpace:"srgb",premultipliedAlpha:!1,flipY:!1}):e&&this.copyImageData({data:e,mipLevel:0,x:0,y:0,z:0,aspect:"all"})}_normalizeCopyImageDataOptions(e){let{data:t,depth:n,...i}=e,s=this._normalizeTextureWriteOptions({...i,depthOrArrayLayers:i.depthOrArrayLayers??n});return{data:t,depth:s.depthOrArrayLayers,...s}}_normalizeCopyExternalImageOptions(e){let t=r._omitUndefined(e),n=t.mipLevel??0,i=this._getMipLevelSize(n),s=this.device.getExternalImageSize(e.image),o={...r.defaultCopyExternalImageOptions,...i,...s,...t};return o.width=Math.min(o.width,i.width-o.x),o.height=Math.min(o.height,i.height-o.y),o.depth=Math.min(o.depth,i.depthOrArrayLayers-o.z),o}_normalizeCopyElementImageOptions(e){let t=r._omitUndefined(e),n=t.mipLevel??0,i=this._getMipLevelSize(n),s={...r.defaultCopyElementImageOptions,...i,...t};return s.width=Math.min(s.width,i.width-s.x),s.height=Math.min(s.height,i.height-s.y),s.depth=Math.min(s.depth,i.depthOrArrayLayers-s.z),s}_normalizeTextureReadOptions(e){let t=r._omitUndefined(e),n=t.mipLevel??0,i=this._getMipLevelSize(n),s={...r.defaultTextureReadOptions,...i,...t};return s.width=Math.min(s.width,i.width-s.x),s.height=Math.min(s.height,i.height-s.y),s.depthOrArrayLayers=Math.min(s.depthOrArrayLayers,i.depthOrArrayLayers-s.z),s}_getSupportedColorReadOptions(e){let t=this._normalizeTextureReadOptions(e),n=le.getInfo(this.format);switch(this._validateColorReadAspect(t),this._validateColorReadFormat(n),this.dimension){case"2d":case"cube":case"cube-array":case"2d-array":case"3d":return t;default:throw new Error(`${this} color readback does not support ${this.dimension} textures`)}}_validateColorReadAspect(e){if(e.aspect!=="all")throw new Error(`${this} color readback only supports aspect 'all'`)}_validateColorReadFormat(e){if(e.compressed)throw new Error(`${this} color readback does not support compressed formats (${this.format})`);switch(e.attachment){case"color":return;case"depth":throw new Error(`${this} color readback does not support depth formats (${this.format})`);case"stencil":throw new Error(`${this} color readback does not support stencil formats (${this.format})`);case"depth-stencil":throw new Error(`${this} color readback does not support depth-stencil formats (${this.format})`);default:throw new Error(`${this} color readback does not support format ${this.format}`)}}_normalizeTextureWriteOptions(e){let t=r._omitUndefined(e),n=t.mipLevel??0,i=this._getMipLevelSize(n),s={...r.defaultTextureWriteOptions,...i,...t};s.width=Math.min(s.width,i.width-s.x),s.height=Math.min(s.height,i.height-s.y),s.depthOrArrayLayers=Math.min(s.depthOrArrayLayers,i.depthOrArrayLayers-s.z);let o=le.computeMemoryLayout({format:this.format,width:s.width,height:s.height,depth:s.depthOrArrayLayers,byteAlignment:this.byteAlignment}),a=o.bytesPerPixel*s.width;if(s.bytesPerRow=t.bytesPerRow??o.bytesPerRow,s.rowsPerImage=t.rowsPerImage??s.height,s.bytesPerRow<a)throw new Error(`bytesPerRow (${s.bytesPerRow}) must be at least ${a} for ${this.format}`);if(s.rowsPerImage<s.height)throw new Error(`rowsPerImage (${s.rowsPerImage}) must be at least ${s.height} for ${this.format}`);let c=this.device.getTextureFormatInfo(this.format).bytesPerPixel;if(c&&s.bytesPerRow%c!==0)throw new Error(`bytesPerRow (${s.bytesPerRow}) must be a multiple of bytesPerPixel (${c}) for ${this.format}`);return s}_getMipLevelSize(e){let t=Math.max(1,this.width>>e),n=this.baseDimension==="1d"?1:Math.max(1,this.height>>e),i=this.dimension==="3d"?Math.max(1,this.depth>>e):this.depth;return{width:t,height:n,depthOrArrayLayers:i}}getAllocatedByteLength(){let e=0;for(let t=0;t<this.mipLevels;t++){let{width:n,height:i,depthOrArrayLayers:s}=this._getMipLevelSize(t);e+=le.computeMemoryLayout({format:this.format,width:n,height:i,depth:s,byteAlignment:1}).byteLength}return e*this.samples}static _omitUndefined(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}static defaultProps={...d0.defaultProps,data:null,dimension:"2d",format:"rgba8unorm",usage:r.SAMPLE|r.RENDER|r.COPY_DST,width:void 0,height:void 0,depth:1,mipLevels:1,samples:void 0,sampler:{},view:void 0};static defaultCopyDataOptions={data:void 0,byteOffset:0,bytesPerRow:void 0,rowsPerImage:void 0,width:void 0,height:void 0,depthOrArrayLayers:void 0,depth:1,mipLevel:0,x:0,y:0,z:0,aspect:"all"};static defaultCopyExternalImageOptions={image:void 0,sourceX:0,sourceY:0,width:void 0,height:void 0,depth:1,mipLevel:0,x:0,y:0,z:0,aspect:"all",colorSpace:"srgb",premultipliedAlpha:!1,flipY:!1};static defaultCopyElementImageOptions={element:void 0,width:void 0,height:void 0,sourceX:0,sourceY:0,sourceWidth:void 0,sourceHeight:void 0,depth:1,mipLevel:0,x:0,y:0,z:0,aspect:"all",colorSpace:"srgb",premultipliedAlpha:!1,flipY:!1};static defaultTextureReadOptions={x:0,y:0,z:0,width:void 0,height:void 0,depthOrArrayLayers:1,mipLevel:0,aspect:"all"};static defaultTextureWriteOptions={byteOffset:0,bytesPerRow:void 0,rowsPerImage:void 0,x:0,y:0,z:0,width:void 0,height:void 0,depthOrArrayLayers:1,mipLevel:0,aspect:"all"}};function an(r,e,t){let n=r.bindings.find(i=>i.name===e||`${i.name.toLocaleLowerCase()}uniforms`===e.toLocaleLowerCase());return!n&&!t?.ignoreWarnings&&o0.warn(`Binding ${e} not set: Not found in shader layout.`)(),n||null}var D5=w0.DEBUG_DATA_MAX_LENGTH,z=class{device;id;ready;usage;props;isReady=!0;destroyed=!1;generation=0;updateTimestamp;debugData=new ArrayBuffer(0);_debugDataEnabled;_maxDebugDataByteLength;_ownsBuffer;_buffer;get buffer(){return this._buffer}get byteLength(){return this._buffer.byteLength}get[Symbol.toStringTag](){return"DynamicBuffer"}toString(){return`DynamicBuffer:"${this.id}":${this.byteLength}B`}toJSON(){return this.toString()}constructor(e,t){let{debugData:n=!1,buffer:i,ownsBuffer:s=!0,...o}=t;if(i&&i.device!==e)throw new Error("DynamicBuffer adopted buffers must belong to the supplied device");if(i&&(o.byteLength!==void 0||o.data!==void 0))throw new Error("DynamicBuffer cannot combine an adopted buffer with byteLength or data");let a=t.id||i?.id||$e("dynamic-buffer"),c={...o,id:a,usage:o.usage??i?.usage,indexType:o.indexType??i?.indexType};(c.usage||0)&w0.INDEX&&!c.indexType&&(o.data instanceof Uint32Array?c.indexType="uint32":o.data instanceof Uint16Array?c.indexType="uint16":o.data instanceof Uint8Array&&(c.indexType="uint8")),delete c.data,delete c.byteOffset,this.device=e,this.id=a,this.props=c,this.usage=c.usage||0,this._debugDataEnabled=!!n,this._maxDebugDataByteLength=typeof n=="object"&&n.maxByteLength!==void 0?n.maxByteLength:D5,this._ownsBuffer=s,this._buffer=i??this.device.createBuffer({...o,id:a}),this.ready=Promise.resolve(this._buffer),this.updateTimestamp=this._buffer.updateTimestamp,this._resetDebugData(this._buffer.byteLength),o.data&&this._writeDebugData(o.data,o.byteOffset||0)}write(e,t=0){this._buffer.write(e,t),this._touch(),this._writeDebugData(e,t)}async mapAndWriteAsync(e,t=0,n=this.byteLength-t){let i=null;await this._buffer.mapAndWriteAsync(async(s,o)=>{await e(s,o),i=new Uint8Array(s.slice(0,n))},t,n),this._touch(),i&&this._writeDebugData(i,t)}async readAsync(e=0,t=this.byteLength-e){let n=await this._buffer.readAsync(e,t);return this._writeDebugData(n,e)&&this._touch(),n}async mapAndReadAsync(e,t=0,n=this.byteLength-t){let i=null,s=await this._buffer.mapAndReadAsync(async(o,a)=>(i=new Uint8Array(o.slice(0)),await e(o,a)),t,n);return i&&this._writeDebugData(i,t)&&this._touch(),s}resize(e){let{byteLength:t,preserveData:n=!1}=e;if(t===this.byteLength)return!1;let i=Math.min(e.copyByteLength??Math.min(this.byteLength,t),this.byteLength,t),s=this._buffer,o=this.debugData.slice(0),{data:a,byteOffset:c,...u}=this.props,l=this.device.createBuffer({...u,byteLength:t});return n&&i>0&&this._copyBufferContents(s,l,i),this._buffer=l,this._resetDebugData(t),n&&o.byteLength>0&&this._writeDebugData(o,0),this._ownsBuffer&&s.destroy(),this._ownsBuffer=!0,this.generation++,this._touch(),!0}ensureSize(e,t){return e<=this.byteLength?!1:this.resize({byteLength:e,preserveData:t?.preserveData})}getBinding(e){return e?.offset===void 0&&e?.size===void 0?this._buffer:{buffer:this._buffer,offset:e?.offset,size:e?.size}}destroy(){this.destroyed||(this._ownsBuffer&&this._buffer.destroy(),this.destroyed=!0,this.debugData=new ArrayBuffer(0))}_copyBufferContents(e,t,n){let i=this.device.type==="webgpu"?Math.ceil(n/4)*4:n,s=this.device.createCommandEncoder();s.copyBufferToBuffer({sourceBuffer:e,destinationBuffer:t,size:i}),this.device.submit(s.finish())}_touch(){this.updateTimestamp=this.device.incrementTimestamp()}_resetDebugData(e){if(!this._debugDataEnabled){this.debugData=new ArrayBuffer(0);return}this.debugData=new ArrayBuffer(Math.min(e,this._maxDebugDataByteLength))}_writeDebugData(e,t){if(!this._debugDataEnabled||this.debugData.byteLength===0||t>=this.debugData.byteLength)return!1;let n=ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e),i=new Uint8Array(this.debugData),s=Math.min(n.byteLength,i.byteLength-t);return i.set(n.subarray(0,s),t),s>0}};function O0(r){return r!==null&&typeof r=="object"&&"buffer"in r}function cn(r){return r instanceof z?r:O0(r)&&r.buffer instanceof z?r.buffer:null}function l1(r){return r instanceof z?r.buffer:r}function He(r){return{buffer:l1(r.buffer),offset:r.offset,size:r.size}}var d1={"+X":0,"-X":1,"+Y":2,"-Y":3,"+Z":4,"-Z":5};function Ft(r){return r?Array.isArray(r)?r[0]??null:r:null}function F9(r){let{dimension:e,data:t}=r;if(!t)return null;switch(e){case"1d":{let n=Ft(t);if(!n)return null;let{width:i}=Gt(n);return{width:i,height:1}}case"2d":{if(ArrayBuffer.isView(t))return null;let n=Ft(t);return n?Gt(n):null}case"3d":case"2d-array":{if(!Array.isArray(t)||t.length===0)return null;let n=Ft(t[0]);return n?Gt(n):null}case"cube":{let n=Object.keys(t)[0]??null;if(!n)return null;let i=t[n],s=Ft(i);return s?Gt(s):null}case"cube-array":{if(!Array.isArray(t)||t.length===0)return null;let n=t[0],i=Object.keys(n)[0]??null;if(!i)return null;let s=Ft(n[i]);return s?Gt(s):null}default:return null}}function Gt(r){if(Nt(r))return on(r);if(typeof r=="object"&&"width"in r&&"height"in r)return{width:r.width,height:r.height};throw new Error("Unsupported mip-level data")}function O5(r){return typeof r=="object"&&r!==null&&"data"in r&&"width"in r&&"height"in r}function k5(r){return ArrayBuffer.isView(r)}function f1(r){let{textureFormat:e,format:t}=r;if(e&&t&&e!==t)throw new Error(`Conflicting texture formats "${e}" and "${t}" provided for the same mip level`);return e??t}function G9(r){let e=d1[r];if(e===void 0)throw new Error(`Invalid cube face: ${r}`);return e}function N5(r,e){return 6*r+G9(e)}function h1(r){throw new Error("setTexture1DData not supported in WebGL.")}function F5(r){return Array.isArray(r)?r:[r]}function de(r,e,t,n){let i=F5(e),s=r,o=[];for(let a=0;a<i.length;a++){let c=i[a];if(Nt(c))o.push({type:"external-image",image:c,z:s,mipLevel:a});else if(O5(c))o.push({type:"texture-data",data:c,textureFormat:f1(c),z:s,mipLevel:a});else if(k5(c)&&t)o.push({type:"texture-data",data:{data:c,width:Math.max(1,t.width>>a),height:Math.max(1,t.height>>a),...n?{format:n}:{}},textureFormat:n,z:s,mipLevel:a});else throw new Error("Unsupported 2D mip-level payload")}return o}function p1(r){let e=[];for(let t=0;t<r.length;t++)e.push(...de(t,r[t]));return e}function m1(r){let e=[];for(let t=0;t<r.length;t++)e.push(...de(t,r[t]));return e}function g1(r){let e=[];for(let[t,n]of Object.entries(r)){let i=G9(t);e.push(...de(i,n))}return e}function y1(r){let e=[];return r.forEach((t,n)=>{for(let[i,s]of Object.entries(t)){let o=N5(n,i);e.push(...de(o,s))}}),e}var a0=class r{device;id;props;_texture=null;_sampler=null;_view=null;ready;isReady=!1;destroyed=!1;generation=0;updateTimestamp;resolveReady=()=>{};rejectReady=()=>{};get texture(){if(!this._texture)throw new Error("Texture not initialized yet");return this._texture}get sampler(){if(!this._sampler)throw new Error("Sampler not initialized yet");return this._sampler}get view(){if(!this._view)throw new Error("View not initialized yet");return this._view}get[Symbol.toStringTag](){return"DynamicTexture"}toString(){let e=this._texture?.width??this.props.width??"?",t=this._texture?.height??this.props.height??"?";return`DynamicTexture:"${this.id}":${e}x${t}px:(${this.isReady?"ready":"loading..."})`}resolveTextureBinding(e){return this.isReady?this.texture:null}constructor(e,t){this.device=e;let n=$e("dynamic-texture"),i=t;this.props={...r.defaultProps,id:n,...t,data:null},this.id=this.props.id,this.ready=new Promise((s,o)=>{this.resolveReady=s,this.rejectReady=o}),this.updateTimestamp=this.device.incrementTimestamp(),this.initAsync(i)}async initAsync(e){try{let t=await this._loadAllData(e);this._checkNotDestroyed();let n=t.data?G5({...t,width:e.width,height:e.height,format:e.format}):[],i="format"in e&&e.format!==void 0,s="usage"in e&&e.usage!==void 0,a=(()=>{if(this.props.width&&this.props.height)return{width:this.props.width,height:this.props.height};let m=F9(t);return m||{width:this.props.width||1,height:this.props.height||1}})();if(!a||a.width<=0||a.height<=0)throw new Error(`${this} size could not be determined or was zero`);let c=z5(this.device,n,a,{format:i?e.format:void 0}),u=c.format??this.props.format,l={...this.props,...a,format:u,mipLevels:1,data:void 0};this.device.isTextureFormatCompressed(u)&&!s&&(l.usage=t0.SAMPLE|t0.COPY_DST);let d=this.props.mipmaps&&!c.hasExplicitMipChain&&!this.device.isTextureFormatCompressed(u);if(this.device.type==="webgpu"&&d){let m=this.props.dimension==="3d"?t0.SAMPLE|t0.STORAGE|t0.COPY_DST|t0.COPY_SRC:t0.SAMPLE|t0.RENDER|t0.COPY_DST|t0.COPY_SRC;l.usage|=m}let f=this.device.getMipLevelCount(l.width,l.height),h=c.hasExplicitMipChain?c.mipLevels:this.props.mipLevels==="auto"?f:Math.max(1,Math.min(f,this.props.mipLevels??1)),p={...l,mipLevels:h};this._texture=this.device.createTexture(p),this._sampler=this.texture.sampler,this._view=this.texture.view,this._touchGeneration(),c.subresources.length&&this._setTextureSubresources(c.subresources),this.props.mipmaps&&!c.hasExplicitMipChain&&!d&&o0.warn(`${this} skipping auto-generated mipmaps for compressed texture format`)(),d&&this.generateMipmaps(),this.isReady=!0,this.resolveReady(this.texture),o0.info(1,`${this} created`)()}catch(t){let n=t instanceof Error?t:new Error(String(t));this.rejectReady(n)}}destroy(){this._texture&&(this._texture.destroy(),this._texture=null,this._sampler=null,this._view=null),this.isReady=!1,this.destroyed=!0}generateMipmaps(){this.device.type==="webgl"?(this.texture.generateMipmapsWebGL(),this._touch()):this.device.type==="webgpu"?(this.device.generateMipmapsWebGPU(this.texture),this._touch()):o0.warn(`${this} mipmaps not supported on ${this.device.type}`)}setSampler(e={}){this._checkReady();let t=e instanceof X0?e:this.device.createSampler(e);this.texture.setSampler(t),this._sampler=t,this._touchGeneration()}async readBuffer(e={}){this.isReady||await this.ready;let t=e.width??this.texture.width,n=e.height??this.texture.height,i=e.depthOrArrayLayers??this.texture.depth,s=this.texture.computeMemoryLayout({width:t,height:n,depthOrArrayLayers:i}),o=this.device.createBuffer({byteLength:s.byteLength,usage:w0.COPY_DST|w0.MAP_READ});this.texture.readBuffer({...e,width:t,height:n,depthOrArrayLayers:i},o);let a=this.device.createFence();return await a.signaled,a.destroy(),o}async readAsync(e={}){this.isReady||await this.ready;let t=e.width??this.texture.width,n=e.height??this.texture.height,i=e.depthOrArrayLayers??this.texture.depth,s=this.texture.computeMemoryLayout({width:t,height:n,depthOrArrayLayers:i}),o=await this.readBuffer(e),a=await o.readAsync(0,s.byteLength);return o.destroy(),a.buffer instanceof ArrayBuffer?a.buffer:a.slice().buffer}resize(e){if(this._checkReady(),e.width===this.texture.width&&e.height===this.texture.height)return!1;let t=this.texture;return this._texture=t.clone(e),this._sampler=this.texture.sampler,this._view=this.texture.view,t.destroy(),this._touchGeneration(),o0.info(`${this} resized`),!0}getCubeFaceIndex(e){let t=d1[e];if(t===void 0)throw new Error(`Invalid cube face: ${e}`);return t}getCubeArrayFaceIndex(e,t){return 6*e+this.getCubeFaceIndex(t)}setTexture1DData(e){if(this._checkReady(),this.texture.props.dimension!=="1d")throw new Error(`${this} is not 1d`);let t=h1(e);this._setTextureSubresources(t)}setTexture2DData(e,t=0){if(this._checkReady(),this.texture.props.dimension!=="2d")throw new Error(`${this} is not 2d`);let n=de(t,e);this._setTextureSubresources(n)}setTexture3DData(e){if(this.texture.props.dimension!=="3d")throw new Error(`${this} is not 3d`);let t=p1(e);this._setTextureSubresources(t)}setTextureArrayData(e){if(this.texture.props.dimension!=="2d-array")throw new Error(`${this} is not 2d-array`);let t=m1(e);this._setTextureSubresources(t)}setTextureCubeData(e){if(this.texture.props.dimension!=="cube")throw new Error(`${this} is not cube`);let t=g1(e);this._setTextureSubresources(t)}setTextureCubeArrayData(e){if(this.texture.props.dimension!=="cube-array")throw new Error(`${this} is not cube-array`);let t=y1(e);this._setTextureSubresources(t)}_setTextureSubresources(e){for(let t of e){let{z:n,mipLevel:i}=t;switch(t.type){case"external-image":let{image:s,flipY:o}=t;this.texture.copyExternalImage({image:s,z:n,mipLevel:i,flipY:o});break;case"texture-data":let{data:a,textureFormat:c}=t;if(c&&c!==this.texture.format)throw new Error(`${this} mip level ${i} uses format "${c}" but texture format is "${this.texture.format}"`);this.texture.writeData(a.data,{x:0,y:0,z:n,width:a.width,height:a.height,depthOrArrayLayers:1,mipLevel:i});break;default:throw new Error("Unsupported 2D mip-level payload")}}e.length>0&&this._touch()}async _loadAllData(e){let t=await x1(e.data);return{dimension:e.dimension??"2d",data:t??null}}_checkNotDestroyed(){this.destroyed&&o0.warn(`${this} already destroyed`)}_checkReady(){this.isReady||o0.warn(`${this} Cannot perform this operation before ready`)}_touch(){this.updateTimestamp=this.device.incrementTimestamp()}_touchGeneration(){this.generation++,this._touch()}static defaultProps={...t0.defaultProps,dimension:"2d",data:null,mipmaps:!1}};function G5(r){if(!r.data)return[];let e=r.width&&r.height?{width:r.width,height:r.height}:void 0,t="format"in r?r.format:void 0;switch(r.dimension){case"1d":return h1(r.data);case"2d":return de(0,r.data,e,t);case"3d":return p1(r.data);case"2d-array":return m1(r.data);case"cube":return g1(r.data);case"cube-array":return y1(r.data);default:throw new Error(`Unhandled dimension ${r.dimension}`)}}function z5(r,e,t,n){if(e.length===0)return{subresources:e,mipLevels:1,format:n.format,hasExplicitMipChain:!1};let i=new Map;for(let l of e){let d=i.get(l.z)??[];d.push(l),i.set(l.z,d)}let s=e.some(l=>l.mipLevel>0),o=n.format,a=Number.POSITIVE_INFINITY,c=[];for(let[l,d]of i){let f=[...d].sort((v,T)=>v.mipLevel-T.mipLevel),h=f[0];if(!h||h.mipLevel!==0)throw new Error(`DynamicTexture: slice ${l} is missing mip level 0`);let p=U9(r,h);if(p.width!==t.width||p.height!==t.height)throw new Error(`DynamicTexture: slice ${l} base level dimensions ${p.width}x${p.height} do not match expected ${t.width}x${t.height}`);let m=z9(h);if(m){if(o&&o!==m)throw new Error(`DynamicTexture: slice ${l} base level format "${m}" does not match texture format "${o}"`);o=m}let g=o&&r.isTextureFormatCompressed(o)?U5(r,p.width,p.height,o):r.getMipLevelCount(p.width,p.height),b=0;for(let v=0;v<f.length;v++){let T=f[v];if(!T||T.mipLevel!==v||v>=g)break;let S=U9(r,T),y=Math.max(1,p.width>>v),x=Math.max(1,p.height>>v);if(S.width!==y||S.height!==x)break;let w=z9(T);if(w&&(o||(o=w),w!==o))break;b++,c.push(T)}a=Math.min(a,b)}let u=Number.isFinite(a)?Math.max(1,a):1;return{subresources:c.filter(l=>l.mipLevel<u),mipLevels:u,format:o,hasExplicitMipChain:s}}function z9(r){if(r.type==="texture-data")return r.textureFormat??f1(r.data)}function U9(r,e){switch(e.type){case"external-image":return r.getExternalImageSize(e.image);case"texture-data":return{width:e.data.width,height:e.data.height};default:throw new Error("Unsupported texture subresource")}}function U5(r,e,t,n){let{blockWidth:i=1,blockHeight:s=1}=r.getTextureFormatInfo(n),o=1;for(let a=1;;a++){let c=Math.max(1,e>>a),u=Math.max(1,t>>a);if(c<i||u<s)break;o++}return o}async function x1(r){if(r=await r,Array.isArray(r))return await Promise.all(r.map(x1));if(r&&typeof r=="object"&&r.constructor===Object){let e=r,t=await Promise.all(Object.values(e).map(x1)),n=Object.keys(e),i={};for(let s=0;s<n.length;s++)i[n[s]]=t[s];return i}return r}function g0(r){return r!==null&&typeof r=="object"&&"resolveTextureBinding"in r&&typeof r.resolveTextureBinding=="function"}function V9(r){return r?.type==="texture"||r?.type==="external-texture"}function zt(r,e,t){let n=an(r,e,{ignoreWarnings:!0});return V9(n)?n:r.bindings.length===0&&t?.fallbackGroup!==void 0?{type:"texture",name:e,group:t.fallbackGroup,location:0}:null}var M0=2,j5=1e4,b1="render pipeline initialization failed",W5=["stencil8","depth16unorm","depth24plus","depth24plus-stencil8","depth32float","depth32float-stencil8"],f0=class r{static async createAsync(e,t){let n=!P.PipelineFactory.getAsyncCompilation(e),i=n?P.PipelineFactory.beginAsyncCompilation(e):P.PipelineFactory.getAsyncCompilation(e),s;try{s=new this(e,t)}finally{n&&P.PipelineFactory.endAsyncCompilation(e,i)}try{return n?await Promise.all(i):await s._pipelineInitialization,s}catch(o){throw s.destroy(),o}}static defaultProps={...P.RenderPipeline.defaultProps,inferDrawCount:"no",enforceMatchingVectorLengths:!0,geometry:null,attributeVectors:void 0,source:void 0,sourceLanguage:void 0,vs:null,fs:null,id:"unnamed",handle:void 0,userData:{},defines:{},modules:[],plugins:[],indexBuffer:null,indexCount:void 0,firstVertex:0,firstIndex:0,attributes:{},constantAttributes:{},bindings:{},uniforms:{},varyings:[],isInstanced:void 0,instanceCount:0,vertexCount:0,shaderInputs:void 0,pipelineFactory:void 0,shaderFactory:void 0,transformFeedback:void 0,shaderAssembler:void 0,debugShaders:void 0,disableWarnings:void 0};device;id;source;vs;fs;pipelineFactory;shaderFactory;userData={};parameters;topology;bufferLayout;isInstanced=void 0;instanceCount=0;vertexCount;indexCount;firstVertex;firstIndex;indexBuffer=null;bufferAttributes={};constantAttributes={};bindings={};vertexArray;transformFeedback=null;pipeline;shaderInputs;_uniformStore;_attributeInfos={};props;batchUniformBuffer;geometryVectorBindings;attributeVectorBindings;explicitBufferLayout=[];constructorDrawCounts;constructorDrawOffsets;drawingVectorBatches=!1;indexVector=null;currentAttributes={};currentAttributeByteOffsets={};_dynamicIndexBufferSource=null;_dynamicAttributeBufferSources={};_colorAttachmentFormats;_depthStencilAttachmentFormat;_pipelineNeedsUpdate="newly created";_needsRedraw="initializing";_drawBlockedReason=!1;_destroyed=!1;_vertexCountSet=!1;_lastDrawTimestamp=-1;_bindingTable=[];_pipelineInitialization;get[Symbol.toStringTag](){return"Model"}toString(){return`Model(${this.id})`}constructor(e,t){this.constructorDrawOffsets={firstVertex:t.firstVertex,firstIndex:t.firstIndex};let n=this.constructor.defaultProps;this.constructorDrawCounts={vertexCount:t.vertexCount??(n.vertexCount||void 0),instanceCount:t.instanceCount??(n.instanceCount||void 0)};let i=n.shaderAssembler,s=Object.hasOwn(t,"vertexCount");this.props={...n,...t,shaderAssembler:t.shaderAssembler??(i&&v1(i,e.info.shadingLanguage)?i:e.info.shadingLanguage==="wgsl"?new U0:new _t)},this._vertexCountSet=s,t=this.props,this.id=t.id||Q("model"),this.device=e,Object.assign(this.userData,t.userData),this.vertexCount=this.props.vertexCount,this.indexCount=this.props.indexCount,this.firstVertex=this.props.firstVertex,this.firstIndex=this.props.firstIndex,this.instanceCount=this.props.instanceCount,this.topology=this.props.topology,this.bufferLayout=this.props.bufferLayout,this.parameters=this.props.parameters,this._colorAttachmentFormats=this.props.colorAttachmentFormats,this._depthStencilAttachmentFormat=this.props.depthStencilAttachmentFormat,this.isInstanced=t.isInstanced??(t.instanceCount?!0:void 0),this.explicitBufferLayout=this.bufferLayout,this.geometryVectorBindings=new Lt(e,`${this.id}-geometry`),this.attributeVectorBindings=new Lt(e,`${this.id}-attributes`);try{this._initializeProps(t);let o=ce(e),a=(0,un.resolveShaderPlugins)(this.props.plugins,o.shaderLanguage),c=(0,un.mergeShaderPluginModules)(this.props.modules,a.modules),u=Object.fromEntries(c.map(m=>[m.name,m])),l=t.shaderInputs||new J(u,{disableWarnings:this.props.disableWarnings});t.shaderInputs&&a.modules.length>0&&l.addModules(a.modules),this.setShaderInputs(l);let d=Hr(this.props.modules,l.getModules()),f={...a.defines,...this.props.defines};if(this.device.type==="webgl"&&(this.props._uniformBlockLayouts=l9(d)),this.props.shaderLayout=ze(this.props.shaderLayout,d)||null,this.device.type==="webgpu"&&this.props.source){let m=this.props.shaderAssembler;(0,P.assert)(v1(m,"wgsl"));let{source:g,getUniforms:b,bindingTable:v,entryPoints:T={},shaderLayout:S}=m.assembleWGSLShader({platformInfo:o,...this.props,modules:d,defines:f,pluginHooks:a.hooks,pluginInjections:a.injections,pluginVertexInputs:a.vertexInputs,pluginInterStageVariables:a.interStageVariables});this.source=g,this.props.vertexEntryPoint=T.vertex||this.props.vertexEntryPoint,this.props.fragmentEntryPoint=T.fragment||this.props.fragmentEntryPoint,this._getModuleUniforms=b,this._bindingTable=v;let y=S??e.getShaderLayout?.(this.source),x=H5(y,a.vertexInputs),w=u9(this.props.shaderLayout,x,Object.keys(a.vertexInputs));this.props.shaderLayout=ze(w||null,d)||null}else{let m=this.props.shaderAssembler;(0,P.assert)(v1(m,"glsl"));let{vs:g,fs:b,getUniforms:v}=m.assembleGLSLShaderPair({platformInfo:o,...this.props,modules:d,defines:f,pluginHooks:a.hooks,pluginInjections:a.injections,pluginVertexInputs:a.vertexInputs,pluginInterStageVariables:a.interStageVariables});this.vs=g,this.fs=b,this._getModuleUniforms=v,this._bindingTable=[]}this.pipelineFactory=t.pipelineFactory||P.PipelineFactory.getDefaultPipelineFactory(this.device),this.shaderFactory=t.shaderFactory||P.ShaderFactory.getDefaultShaderFactory(this.device);let p=P.PipelineFactory.getAsyncCompilation(this.device);p?(this._pipelineInitialization=this._initializePipelineAsync(t),p.push(this._pipelineInitialization)):(this.pipeline=this._updatePipeline(),this._initializePipelineResources(t))}catch(o){try{r.prototype.destroy.call(this)}finally{throw o}}}_initializeProps(e){e.geometry&&this.setGeometry(e.geometry),e.attributeVectors&&this.setAttributeVectors(e.attributeVectors)}_usesManagedUniformBuffer(e){return!0}async _initializePipelineAsync(e){await this._updatePipelineAsync(),this._initializePipelineResources(e)}_initializeAttributes(){this.applyVectorAttributes(),this.indexVector&&this.bindIndexVector()}_initializePipelineResources(e){this.vertexArray=this.device.createVertexArray({shaderLayout:this.pipeline.shaderLayout,bufferLayout:this.pipeline.bufferLayout}),this._initializeAttributes(),e.indexBuffer&&this.setIndexBuffer(e.indexBuffer),e.indexCount!==void 0&&this.setIndexCount(e.indexCount),this.constructorDrawOffsets.firstVertex!==void 0&&(this.firstVertex=this.constructorDrawOffsets.firstVertex),this.constructorDrawOffsets.firstIndex!==void 0&&(this.firstIndex=this.constructorDrawOffsets.firstIndex),e.isInstanced!==void 0&&(this.isInstanced=e.isInstanced),this.constructorDrawCounts.instanceCount!==void 0&&this.setInstanceCount(this.constructorDrawCounts.instanceCount),this.constructorDrawCounts.vertexCount!==void 0&&this.setVertexCount(this.constructorDrawCounts.vertexCount),e.attributes&&this.setAttributes(e.attributes),e.constantAttributes&&this.setConstantAttributes(e.constantAttributes),e.bindings&&this.setBindings(e.bindings),e.transformFeedback&&(this.transformFeedback=e.transformFeedback)}destroy(){this._destroyed||(this.pipeline&&(this.pipelineFactory.release(this.pipeline),this.shaderFactory.release(this.pipeline.vs),this.pipeline.fs&&this.pipeline.fs!==this.pipeline.vs&&this.shaderFactory.release(this.pipeline.fs)),this.vertexArray?.destroy(),this.geometryVectorBindings.destroy(),this.attributeVectorBindings.destroy(),this._uniformStore?.destroy(),this.batchUniformBuffer?.destroy(),this._destroyed=!0)}needsRedraw(){this._getBindingsUpdateTimestamp()>this._lastDrawTimestamp&&this.setNeedsRedraw("contents of bound textures or buffers updated");let e=this._needsRedraw;return this._needsRedraw=!1,e}setNeedsRedraw(e){this._needsRedraw||=e}getBindingDebugTable(){return this._bindingTable}predraw(e){this._syncDynamicBuffers(),this.updateShaderInputs(e),this.pipeline=this._updatePipeline()}draw(e){if(this.indexVector?.length===0)return this._lastDrawTimestamp=this.device.timestamp,this._needsRedraw=!1,!0;if(!this.drawingVectorBatches&&(this.geometryVectorBindings.batchCount!==1||this.attributeVectorBindings.batchCount!==1))return this.drawVectorGroups(e);if(this._drawBlockedReason&&!this._pipelineNeedsUpdate)return P.log.info(M0,`>>> DRAWING ABORTED ${this.id}: ${this._drawBlockedReason}`)(),!1;let t=this._areBindingsLoading();if(t)return P.log.info(M0,`>>> DRAWING ABORTED ${this.id}: ${t} not loaded`)(),!1;this._syncAttachmentFormats(e);try{e.pushDebugGroup(`${this}.predraw(${e})`),this.device.type==="webgpu"?(this.updateShaderInputs(),this._syncDynamicBuffers(),this.pipeline=this._updatePipeline()):this.predraw(this.device.commandEncoder)}finally{e.popDebugGroup()}let n,i=this.pipeline.isErrored;try{if(e.pushDebugGroup(`${this}.draw(${e})`),this._logDrawCallStart(),this.pipeline=this._updatePipeline(),i=this.pipeline.isErrored,i)P.log.info(M0,`>>> DRAWING ABORTED ${this.id}: ${b1}`)(),n=!1;else{let s=this.vertexArray.getDrawValidationError();if(s)P.log.info(M0,`>>> DRAWING ABORTED ${this.id}: ${s}`)(),this._drawBlockedReason=s,n=!1;else{let o=this._getCurrentShaderLayout(),a=this._getBindings(o),c=this._getBindGroups(o,a),{indexBuffer:u}=this.vertexArray,l=u?this.indexCount??(this._vertexCountSet?this.vertexCount:u.byteLength/(u.indexType==="uint32"?4:2)):void 0;e.setPipeline(this.pipeline),e.setBindings(c,{_bindGroupCacheKeys:this._getBindGroupCacheKeys()}),e.setVertexArray(this.vertexArray),n=this.isInstanced===!0&&this.instanceCount===0?!0:e.draw({isInstanced:this.isInstanced,vertexCount:this.vertexCount,instanceCount:this.isInstanced?this.instanceCount:void 0,indexCount:l,firstVertex:this.firstVertex,firstIndex:this.firstIndex,transformFeedback:this.transformFeedback||void 0,uniforms:this.props.uniforms,parameters:this.parameters,topology:this.topology})}}}finally{e.popDebugGroup(),this._logDrawCallEnd()}return this._logFramebuffer(e),n?(this._lastDrawTimestamp=this.device.timestamp,this._needsRedraw=!1):i?(this._needsRedraw=b1,this._drawBlockedReason=b1):this._drawBlockedReason?this._needsRedraw=this._drawBlockedReason:this._needsRedraw="waiting for resource initialization",n}setGeometry(e){e&&this.setTopology(e.topology),this.setGeometryVectors(e?.attributes??{},e?.bufferLayout),this.setIndexVector(e?.indices??null),e?.vertexCount!==void 0&&this.setVertexCount(e.vertexCount)}setGeometryVectors(e,t){t??=this.getExplicitVectorLayouts(e)??this.getExplicitVectorLayouts(e,this.geometryVectorBindings.sourceLayouts),this.validateVectorLengthPolicy(),this.props.enforceMatchingVectorLengths&&C0(e),this.props.enforceMatchingVectorLengths&&(!this.isInstanced||this.attributeVectorBindings.vertexCount!==void 0)&&C0([...Object.values(e),...Object.values(this.attributeVectorBindings.inputs)]),this.geometryVectorBindings.setInputs(e,t,"vertex",this.props.enforceMatchingVectorLengths),this.claimVectorLayouts(this.geometryVectorBindings),this.syncVectorBindings();let n=this.geometryVectorBindings.rowCount;(0,P.assert)(n===void 0||this.attributeVectorBindings.vertexCount===void 0||n===this.attributeVectorBindings.vertexCount),this.props.inferDrawCount==="vertex"&&this.setVertexCount(n??this.attributeVectorBindings.vertexCount??0)}setAttributeVectors(e,t){t??=this.getExplicitVectorLayouts(e)??this.getExplicitVectorLayouts(e,this.attributeVectorBindings.sourceLayouts),this.isInstanced===void 0&&(t?.some(s=>s.stepMode==="instance")||Object.values(e).some(s=>s&&"data"in s&&s.bufferLayout?.stepMode==="instance"))&&(this.isInstanced=!0);let n=!this.isInstanced||Object.entries(e).some(([s,o])=>o&&"data"in o&&(t?.find(a=>a.name===s||a.attributes?.some(c=>c.attribute===s))?.stepMode??o.bufferLayout?.stepMode)==="vertex");this.validateVectorLengthPolicy(),n&&this.props.enforceMatchingVectorLengths&&C0([...Object.values(this.geometryVectorBindings.inputs),...Object.values(e)]),this.attributeVectorBindings.setInputs(e,t,this.isInstanced?"instance":"vertex",this.props.enforceMatchingVectorLengths),this.claimVectorLayouts(this.attributeVectorBindings),this.syncVectorBindings(),this.props.inferDrawCount==="instance"&&this.attributeVectorBindings.instanceCount!==void 0&&this.setInstanceCount(this.attributeVectorBindings.instanceCount);let i=this.attributeVectorBindings.vertexCount;if(i!==void 0&&this.props.inferDrawCount==="vertex"){let s=this.geometryVectorBindings.rowCount;(0,P.assert)(s===void 0||s===i),s===void 0&&this.setVertexCount(i)}}setGPUAttributes(e,t){this.setAttributeVectors(e,t)}setIndexVector(e){e&&((0,P.assert)(e.format==="uint8"||e.format==="uint16"||e.format==="uint32"),(0,P.assert)(e.data.length<=1),(0,P.assert)(e.byteStride===(e.format==="uint32"?4:e.format==="uint16"?2:1))),this.indexVector=e,this.vertexArray&&this.bindIndexVector()}bindIndexVector(){let e=this.indexVector,t=e?.data[0];if(t&&this.indexVector){let n=t.buffer instanceof z?t.buffer.buffer:t.buffer;(0,P.assert)(n.indexType===this.indexVector.format&&t.byteOffset%this.indexVector.byteStride===0)}this.indexVector=null,this.setIndexBuffer(t?.buffer??null),this.indexVector=e,this.indexCount=e?.length,this.setDrawOffsets({firstVertex:t?.byteOffset??0,firstIndex:t?t.byteOffset/this.indexVector.byteStride:0})}claimVectorLayouts(e){this.explicitBufferLayout=this.explicitBufferLayout.filter(t=>!e.claimedNames.has(t.name)&&!t.attributes?.some(n=>e.claimedNames.has(n.attribute)))}getExplicitVectorLayouts(e,t=this.explicitBufferLayout){let n=new Set(Object.keys(e)),i=t.filter(s=>n.has(s.name)||s.attributes?.some(o=>n.has(o.attribute)));return i.length?i:void 0}getVectorBufferLayout(){let e=[this.geometryVectorBindings,this.attributeVectorBindings];return[...this.explicitBufferLayout.filter(n=>!e.some(i=>i.claimedNames.has(n.name)||n.attributes?.some(s=>i.claimedNames.has(s.attribute)))),...this.geometryVectorBindings.layouts,...this.attributeVectorBindings.layouts]}syncVectorBindings(){let e=this.getVectorBufferLayout();this.vertexArray?(this.applyBufferLayout(e),this.applyVectorAttributes()):this.bufferLayout=e}applyVectorAttributes(){let e=new Set(this.bufferLayout.map(t=>t.name));for(let t of Object.keys(this.currentAttributes))e.has(t)||delete this.currentAttributes[t];this.setAttributes({...this.currentAttributes,...this.geometryVectorBindings.buffers,...this.attributeVectorBindings.buffers},{byteOffsets:{...this.currentAttributeByteOffsets,...this.geometryVectorBindings.byteOffsets,...this.attributeVectorBindings.byteOffsets},disableWarnings:!0}),this.device.type==="webgl"&&this.setConstantAttributes({...this.geometryVectorBindings.constants,...this.attributeVectorBindings.constants})}setGPUVectors(e,t){let n=$0(this.id,e);(0,P.assert)(n.length<=1),Fi(this.id,e,this.bufferLayout),n[0]&&this.setGPUData(n[0].data),this.setBatchDrawCount(n[0]?.rowCount??0,t?.count)}drawVectorGroups(e){let t=this.drawingVectorBatches,n=this._vertexCountSet;this.drawingVectorBatches=!0;try{let i=p9(this,this.geometryVectorBindings,this.attributeVectorBindings,()=>this.syncVectorBindings(),()=>r.prototype.draw.call(this,e),this.props.inferDrawCount);return i&&(this._lastDrawTimestamp=this.device.timestamp,this._needsRedraw=!1),i}finally{this._vertexCountSet=n,this.drawingVectorBatches=t}}drawBatches(e,{vectors:t,onBatch:n}){let i=$0(this.id,t);Fi(this.id,t,this.bufferLayout);for(let m of Object.keys(t))(0,P.assert)(!t[m]||this.currentAttributes[m]);let s={...this.currentAttributes},o={...this.currentAttributeByteOffsets},a={...this.bindings},c=this.instanceCount,u=this.vertexCount,l=this.isInstanced,d=this._vertexCountSet,f=this.drawingVectorBatches,h=this.device.type==="webgpu"&&i.length?new P.UniformStore(this.device,this.shaderInputs.modules):void 0;if(h&&this._uniformStore.uniformBuffers.size){this.batchUniformBuffer??=new $r(this.device);let m=0;for(let g of this._uniformStore.uniformBuffers.keys())m+=this.batchUniformBuffer.getAlignedByteLength(h.getUniformBufferData(g).byteLength);this.batchUniformBuffer.prepare(m*i.length)}this.drawingVectorBatches=!0;let p=!0;try{for(let m of i){this.setGPUData(m.data),this.setBatchDrawCount(m.rowCount),n?.(m);let g={};try{if(h){h.setUniforms(this.shaderInputs.getUniformValues());for(let[b,v]of this._uniformStore.uniformBuffers){let T=`${b}Uniforms`;this.bindings[T]===v&&(g[T]=v,this.setBindings({[T]:this.batchUniformBuffer.write(h.getUniformBufferData(b))}))}}p=r.prototype.draw.call(this,e)&&p}finally{this.setBindings(g)}}}finally{h?.destroy(),this.setAttributes(s,{byteOffsets:o});for(let m of Object.keys(this.bindings))m in a||delete this.bindings[m];this.setBindings(a),this.setInstanceCount(c),this.setVertexCount(u),this.isInstanced=l,this._vertexCountSet=d,this.drawingVectorBatches=f}return p}setGPUData(e){this.setAttributes(Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n.buffer])),{byteOffsets:Object.fromEntries(Object.entries(e).map(([t,n])=>{let i=this.bufferLayout.find(o=>o.name===t),s=n.byteOffset-(i?.attributes?.[0]?.byteOffset??0);return(0,P.assert)(s>=0),[t,s]}))})}validateVectorLengthPolicy(){(0,P.assert)(this.props.enforceMatchingVectorLengths!==!1||this.props.inferDrawCount==="no")}setBatchDrawCount(e,t=this.props.inferDrawCount==="no"?"none":this.props.inferDrawCount){t==="instance"?this.setInstanceCount(e):t==="vertex"&&this.setVertexCount(e)}setTopology(e){e!==this.topology&&(this.topology=e,this._setPipelineNeedsUpdate("topology"))}setBufferLayout(e){this.explicitBufferLayout=e;let t=this.geometryVectorBindings,n=this.attributeVectorBindings,i=this.getExplicitVectorLayouts(t.inputs)??t.sourceLayouts,s=this.getExplicitVectorLayouts(n.inputs)??n.sourceLayouts;t.setInputs(t.inputs,i,"vertex",this.props.enforceMatchingVectorLengths),n.setInputs(n.inputs,s,this.isInstanced?"instance":"vertex",this.props.enforceMatchingVectorLengths),this.props.enforceMatchingVectorLengths&&(!this.isInstanced||n.vertexCount!==void 0)&&C0([...Object.values(t.inputs),...Object.values(n.inputs)]),this.claimVectorLayouts(t),this.claimVectorLayouts(n),this.applyBufferLayout(this.getVectorBufferLayout())}applyBufferLayout(e){if(e=ki(this.pipeline.shaderLayout,e),Ge(e,this.bufferLayout,-1))return;this.bufferLayout=e,this._setPipelineNeedsUpdate("bufferLayout"),this.pipeline=this._updatePipeline();let t=this.vertexArray;this.vertexArray=this.device.createVertexArray({shaderLayout:this.pipeline.shaderLayout,bufferLayout:this.pipeline.bufferLayout}),t.destroy(),this._dynamicAttributeBufferSources={},this.applyVectorAttributes(),this.indexBuffer&&this.vertexArray.setIndexBuffer(this.indexBuffer)}setParameters(e){Ge(e,this.parameters,2)||(this.parameters=e,this.device.type==="webgl"?this.setNeedsRedraw("parameters"):this._setPipelineNeedsUpdate("parameters"))}setInstanceCount(e){this.instanceCount=e,this.isInstanced===void 0&&e>0&&(this.isInstanced=!0),this.setNeedsRedraw("instanceCount")}setVertexCount(e){this.vertexCount=e,this._vertexCountSet=!0,this.setNeedsRedraw("vertexCount")}setIndexCount(e){this.indexCount=e,this.setNeedsRedraw("indexCount")}setDrawOffsets({firstVertex:e,firstIndex:t}){this.firstVertex=e,this.firstIndex=t,this.setNeedsRedraw("drawOffsets")}setShaderInputs(e){this.shaderInputs=e,this._uniformStore=new P.UniformStore(this.device,this.shaderInputs.modules);for(let[t,n]of Object.entries(this.shaderInputs.modules))if(ae(n)&&this._usesManagedUniformBuffer(t)){let i=this._uniformStore.getManagedUniformBuffer(t);this.bindings[`${t}Uniforms`]=i}this.setNeedsRedraw("shaderInputs")}updateShaderInputs(e){this._uniformStore.setUniforms(this.shaderInputs.getUniformValues(),e),this.setBindings(this._getShaderInputBindings()),this.setNeedsRedraw("shaderInputs")}_getShaderInputBindings(){return this.shaderInputs.getBindingValues()}setBindings(e){Object.assign(this.bindings,e),this.setNeedsRedraw("bindings")}setTransformFeedback(e){this.transformFeedback=e,this.setNeedsRedraw("transformFeedback")}setIndexBuffer(e){this.indexVector&&(this.indexCount=void 0,this.firstVertex=0,this.firstIndex=0),this.indexVector=null;let t=e instanceof z?e.buffer:e;this.indexBuffer=t,this._dynamicIndexBufferSource=e instanceof z?{source:e,generation:e.generation}:null,this.vertexArray.setIndexBuffer(t),this.setNeedsRedraw("indexBuffer")}setAttributes(e,t){Object.assign(this.currentAttributes,e);for(let s of Object.keys(e))this.currentAttributeByteOffsets[s]=t?.byteOffsets?.[s]??0;this._drawBlockedReason=!1;let n=t?.disableWarnings??this.props.disableWarnings;e.indices&&P.log.warn(`Model:${this.id} setAttributes() - indexBuffer should be set using setIndexBuffer()`)(),this.bufferLayout=ki(this.pipeline.shaderLayout,this.bufferLayout);let i=new jr(this.bufferLayout);for(let[s,o]of Object.entries(e)){let a=o instanceof z?o.buffer:o,c=i.getBufferLayout(s);if(!c){n||P.log.warn(`Model(${this.id}): Missing layout for buffer "${s}".`)();continue}let u=i.getAttributeNamesForBuffer(c),l=!1;for(let d of u){let f=this._attributeInfos[d];if(f){let h=this.device.type==="webgpu"?this.vertexArray.getBufferSlot(f.bufferName):f.location;if(h===null){n||P.log.warn(`Model(${this.id}): Missing vertex array slot for buffer "${f.bufferName}".`)();continue}let p=t?.byteOffsets?.[s]??0;this.vertexArray.setBuffer(h,a,p),o instanceof z?this._dynamicAttributeBufferSources[h]={source:o,generation:o.generation,byteOffset:p}:delete this._dynamicAttributeBufferSources[h],l=!0}}!l&&!n&&P.log.warn(`Model(${this.id}): Ignoring buffer "${a.id}" for unknown attribute "${s}"`)()}this.setNeedsRedraw("attributes")}setConstantAttributes(e,t){for(let[n,i]of Object.entries(e)){let s=this._attributeInfos[n];s?this.vertexArray.setConstantWebGL(s.location,i):(t?.disableWarnings??this.props.disableWarnings)||P.log.warn(`Model "${this.id}: Ignoring constant supplied for unknown attribute "${n}"`)()}this.setNeedsRedraw("constants")}_areBindingsLoading(){for(let e of Object.values(this.bindings))if(g0(e)&&!e.isReady)return e.id;return!1}_getBindings(e=this._getCurrentShaderLayout()){let t={};for(let[n,i]of Object.entries(this.bindings)){let s=q5(n,i,e);s&&(t[n]=s)}return t}_getBindGroups(e=this._getCurrentShaderLayout(),t=this._getBindings(e)){return e.bindings.length?(0,P.normalizeBindingsByGroup)(e,t):{0:t}}_getBindGroupCacheKeys(){return{}}_getBindingsUpdateTimestamp(){let e=0;this._dynamicIndexBufferSource&&(e=Math.max(e,this._dynamicIndexBufferSource.source.updateTimestamp));for(let t of Object.values(this._dynamicAttributeBufferSources))e=Math.max(e,t.source.updateTimestamp);for(let t of Object.values(this.bindings))t instanceof P.TextureView?e=Math.max(e,t.texture.updateTimestamp):t instanceof P.Buffer||t instanceof P.Texture||t instanceof P.ExternalTexture||t instanceof z?e=Math.max(e,t.updateTimestamp):g0(t)?e=t.isReady?Math.max(e,t.updateTimestamp):1/0:O0(t)&&(e=Math.max(e,(t.buffer instanceof z,t.buffer.updateTimestamp)));return e}_setPipelineNeedsUpdate(e){this._pipelineNeedsUpdate||=e,this._drawBlockedReason=!1,this.setNeedsRedraw(e)}_updatePipeline(){let e=this._preparePipelineUpdate();if(e){try{this.pipeline=this.pipelineFactory.createRenderPipeline(e.props)}catch(t){throw this._releasePipelineShaders(e.vertexShader,e.fragmentShader),this._pipelineNeedsUpdate="pipeline creation failed",t}this._finishPipelineUpdate(e)}return this.pipeline}async _updatePipelineAsync(){let e=this._preparePipelineUpdate();if(e){try{this.pipeline=await this.pipelineFactory.createRenderPipelineAsync(e.props)}catch(t){throw this._releasePipelineShaders(e.vertexShader,e.fragmentShader),this._pipelineNeedsUpdate="asynchronous pipeline creation failed",t}this._finishPipelineUpdate(e)}return this.pipeline}_preparePipelineUpdate(){if(!this._pipelineNeedsUpdate)return null;let e=this.pipeline?.vs??null,t=this.pipeline?.fs??null;this.pipeline&&P.log.log(1,`GPUVectorModel ${this.id}: Recreating pipeline because "${this._pipelineNeedsUpdate}".`)(),this._pipelineNeedsUpdate=!1;let n=null,i=null;try{n=this.shaderFactory.createShader({id:`${this.id}-vertex`,stage:"vertex",source:this.source||this.vs,debugShaders:this.props.debugShaders}),this.source?i=n:this.fs&&(i=this.shaderFactory.createShader({id:`${this.id}-fragment`,stage:"fragment",source:this.fs,debugShaders:this.props.debugShaders}))}catch(s){throw this._releasePipelineShaders(n,i),this._pipelineNeedsUpdate="shader creation failed",s}return{props:{...this.props,bindings:void 0,bufferLayout:this.bufferLayout,colorAttachmentFormats:this._colorAttachmentFormats,depthStencilAttachmentFormat:this._depthStencilAttachmentFormat,topology:this.topology,parameters:this.parameters,bindGroups:void 0,vs:n,fs:i},vertexShader:n,fragmentShader:i,previousVertexShader:e,previousFragmentShader:t}}_finishPipelineUpdate(e){this._attributeInfos=(0,P.getAttributeInfosFromLayouts)(this.pipeline.shaderLayout,this.bufferLayout),this._releasePipelineShaders(e.previousVertexShader,e.previousFragmentShader)}_releasePipelineShaders(e,t){e&&this.shaderFactory.release(e),t&&t!==e&&this.shaderFactory.release(t)}_lastLogTime=0;_logOpen=!1;_logDrawCallStart(){let e=P.log.level>3?0:j5;P.log.level<2||Date.now()-this._lastLogTime<e||(this._lastLogTime=Date.now(),this._logOpen=!0,P.log.group(M0,`>>> DRAWING MODEL ${this.id}`,{collapsed:P.log.level<=2})())}_logDrawCallEnd(){if(this._logOpen){let e=i9(this.pipeline.shaderLayout,this.id);P.log.table(M0,e)();let t=this.shaderInputs.getDebugTable();P.log.table(M0,t)();let n=this._getAttributeDebugTable();P.log.table(M0,this._attributeInfos)(),P.log.table(M0,n)(),P.log.groupEnd(M0)(),this._logOpen=!1}}_drawCount=0;_logFramebuffer(e){let t=this.device.props.debugFramebuffers;if(this._drawCount++,!t)return;let n=e.props.framebuffer;a9(e,n,{id:n?.id||`${this.id}-framebuffer`,minimap:!0})}_getAttributeDebugTable(){let e={};for(let[t,n]of Object.entries(this._attributeInfos)){let i=this.vertexArray.attributes[n.location];e[n.location]={name:t,type:n.shaderType,values:i?this._getBufferOrConstantValues(i,n.bufferDataType):"null"}}if(this.vertexArray.indexBuffer){let{indexBuffer:t}=this.vertexArray,n=t.indexType==="uint32"?new Uint32Array(t.debugData):new Uint16Array(t.debugData);e.indices={name:"indices",type:t.indexType,values:n.toString()}}return e}_getBufferOrConstantValues(e,t){let n=P.dataTypeDecoder.getTypedArrayConstructor(t);return(e instanceof P.Buffer?new n(e.debugData):e).toString()}_getCurrentShaderLayout(){return this.pipeline?.shaderLayout||this.props.shaderLayout||{bindings:[]}}_syncDynamicBuffers(){if(this._dynamicIndexBufferSource&&this._dynamicIndexBufferSource.generation!==this._dynamicIndexBufferSource.source.generation){let e=this._dynamicIndexBufferSource.source.buffer;this.indexBuffer=e,this.vertexArray.setIndexBuffer(e),this._dynamicIndexBufferSource.generation=this._dynamicIndexBufferSource.source.generation,this.setNeedsRedraw("dynamic index buffer")}for(let[e,t]of Object.entries(this._dynamicAttributeBufferSources))t.generation!==t.source.generation&&(this.vertexArray.setBuffer(Number(e),t.source.buffer,t.byteOffset),t.generation=t.source.generation,this.setNeedsRedraw("dynamic attribute buffer"))}_syncAttachmentFormats(e){if(this.device.type!=="webgpu")return;let t=e.framebuffer||e.props.framebuffer,n=e.props,i=n.colorAttachmentFormats??t?.colorAttachments?.map(o=>X5(o?.texture?.format)),s=n.depthStencilAttachmentFormat===!1?void 0:n.depthStencilAttachmentFormat??Y5(t?.depthStencilAttachment?.texture?.format);(!Ge(this._colorAttachmentFormats,i,1)||this._depthStencilAttachmentFormat!==s)&&(this._colorAttachmentFormats=i,this._depthStencilAttachmentFormat=s,this._setPipelineNeedsUpdate("attachment formats"))}};function v1(r,e){return r.shaderLanguage!==void 0&&r.shaderLanguage!==e?!1:e==="glsl"?"assembleGLSLShaderPair"in r&&typeof r.assembleGLSLShaderPair=="function":"assembleWGSLShader"in r&&typeof r.assembleWGSLShader=="function"}function H5(r,e){return!r||Object.keys(e).length===0?r:{...r,attributes:r.attributes.map(t=>{let n=t.name.startsWith("_luma_")?t.name.slice(6):null;return n&&e[n]?{...t,name:n}:t})}}function q5(r,e,t){if(g0(e)){let n=zt(t,r,{fallbackGroup:0});return n?e.resolveTextureBinding(n):null}return e instanceof z?e.buffer:O0(e)?He(e):e}function X5(r){return r&&!$9(r)?r:null}function Y5(r){return r&&$9(r)?r:void 0}function $9(r){return W5.includes(r)}var T1=O(k(),1);var qe=class{id;userData={};topology;bufferLayout=[];vertexCount;indices;attributes;constructor(e){if(this.id=e.id||Q("geometry"),this.topology=e.topology,this.indices=e.indices||null,this.attributes=e.attributes,this.vertexCount=e.vertexCount,this.bufferLayout=e.bufferLayout||[],this.indices&&!(this.indices.usage&T1.Buffer.INDEX))throw new Error("Index buffer must have INDEX usage")}destroy(){this.indices?.destroy();for(let e of Object.values(this.attributes))e.destroy()}getVertexCount(){return this.vertexCount}getAttributes(){return this.attributes}getIndexes(){return this.indices||null}_calculateVertexCount(e){return e.byteLength/12}};function Ut(r,e){if(e instanceof qe)return e;let t=Pe(e),n=K5(r,t),{attributes:i,bufferLayout:s}=Z5(r,t);return new qe({topology:t.topology||"triangle-list",bufferLayout:s,vertexCount:t.vertexCount,indices:n,attributes:i})}function K5(r,e){if(!e.indices)return;let t=e.indices.value;return r.createBuffer({usage:T1.Buffer.INDEX,data:t})}function Z5(r,e){let t={};for(let[n,i]of Object.entries(e.attributes)){let s=e.bufferLayout?.find(o=>o.name===n)?.name||re(n);i&&(t[s]=r.createBuffer({data:i.value,id:`${n}-buffer`}))}return{attributes:t,bufferLayout:e.bufferLayout||gi(e.attributes),vertexCount:e.vertexCount}}var h0=class{attributes;indices;topology;vertexCount;bufferLayout;destroy(){}constructor(e){this.attributes=e.attributes,this.indices=e.indices??null,this.topology=e.topology??"triangle-list",this.vertexCount=e.vertexCount,this.bufferLayout=e.bufferLayout}};var j9=O(k(),1);function W9(r,e){let t=Ut(r,e);try{let n=ln(t);return n.destroy=()=>t.destroy(),n}catch(n){throw t.destroy(),n}}function ln(r){let e={};for(let[o,a]of Object.entries(r.attributes)){let c=r.bufferLayout.find(f=>f.name===o),u=c?.format,l=c?.byteStride??(u?j9.vertexFormatDecoder.getVertexFormatInfo(u).byteLength:0),d=r.indices&&l?Math.floor(a.byteLength/l):r.vertexCount;e[o]={name:o,format:u,length:d,byteStride:l,rowByteLength:l,bufferLayout:c,data:[{buffer:a,byteOffset:0,length:d,format:u,byteStride:l,rowByteLength:l}]}}if(r.indices){let o=Math.min(...Object.values(e).map(a=>a.length));for(let[a,c]of Object.entries(e))e[a]={...c,length:o,data:c.data.map(u=>({...u,length:o}))}}let t=r.indices,n=t?.indexType==="uint32"?4:t?.indexType==="uint8"?1:2,i=t?t.byteLength/n:0,s=t?{name:"indices",format:t.indexType,length:i,byteStride:n,rowByteLength:n,data:[{buffer:t,byteOffset:0,length:i,format:t.indexType,byteStride:n,rowByteLength:n}]}:null;return new h0({attributes:e,indices:s,topology:r.topology,vertexCount:r.vertexCount,bufferLayout:r.bufferLayout})}var Y0=class extends f0{static defaultProps={...f0.defaultProps,material:void 0};get sourceGeometry(){return this.sourceGeometryValue}constructor(e,t){let n=t.geometry===void 0?new.target.defaultProps.geometry:t.geometry,i=n&&!(n instanceof h0)?Ut(e,n):null,s=i?ln(i):n,o={...t,geometry:s instanceof h0?s:null};try{super(e,o)}catch(a){throw i?.destroy(),a}this._gpuGeometry=i,this.sourceGeometryValue=n,i&&this.setIndexCount(this.props.indexCount)}_initializeProps(e){this.material=e.material||null,this._gpuGeometry=null,this.sourceGeometryValue=null,super._initializeProps(e)}_initializeAttributes(){super._initializeAttributes(),this._gpuGeometry&&super.setIndexCount(this.indexCountOverride)}destroy(){super.destroy(),this._gpuGeometry?.destroy(),this._gpuGeometry=null,this.sourceGeometryValue=null}setGeometry(e){this._gpuGeometry?.destroy(),this._gpuGeometry=e&&!(e instanceof h0)?Ut(this.device,e):null;let t=this._gpuGeometry?ln(this._gpuGeometry):e;super.setGeometry(t instanceof h0?t:null),e instanceof h0||super.setIndexCount(this.indexCountOverride),this.sourceGeometryValue=e}setIndexCount(e){this.indexCountOverride=e,super.setIndexCount(e)}setMaterial(e){this.material=e,this.setNeedsRedraw("material")}_usesManagedUniformBuffer(e){return!this.material?.ownsModule(e)}updateShaderInputs(e){super.updateShaderInputs(e),this.material?.updateShaderInputs(e)}_getShaderInputBindings(){let e=super._getShaderInputBindings(),t=this.material;return t?Object.fromEntries(Object.entries(e).filter(([n])=>!t.ownsBinding(n))):e}_areBindingsLoading(){let e=super._areBindingsLoading();if(e)return e;for(let t of Object.values(this.material?.bindings||{}))if(g0(t)&&!t.isReady)return t.id;return!1}_getBindGroups(e=this._getCurrentShaderLayout(),t=this._getBindings(e)){let n=super._getBindGroups(e,t);for(let[i,s]of Object.entries(this.material?.getBindingsByGroup(e)||{})){let o=Number(i);n[o]={...n[o]||{},...s}}return n}_getBindGroupCacheKeys(){let e=this.material?.getBindGroupCacheKey(3);return e?{3:e}:{}}_getBindingsUpdateTimestamp(){return Math.max(super._getBindingsUpdateTimestamp(),this.material?.getBindingsUpdateTimestamp()||0)}};var I0=O(k(),1);var Ye=3,Xe=class{device;modules;_materialBindingNames;_materialModuleNames;constructor(e,t={}){this.device=e,this.modules=t.modules||[];let n=new J(Object.fromEntries(this.modules.map(i=>[i.name,i])));this._materialBindingNames=Q5(n),this._materialModuleNames=J5(n)}createMaterial(e={}){return new Ke(this.device,{...e,factory:this})}getBindingNames(){return Array.from(this._materialBindingNames)}ownsBinding(e){if(this._materialBindingNames.has(e))return!0;let t=S1(e);return t?this._materialModuleNames.has(t):!1}ownsModule(e){return this._materialModuleNames.has(e)}getBindingsByGroup(e){return Object.keys(e).length>0?{[Ye]:e}:{}}};function S1(r){return r.endsWith("Uniforms")?r.slice(0,-8):null}function Q5(r){let e=new Set;for(let t of Object.values(r.modules))for(let n of t.bindingLayout||[])n.group===Ye&&e.add(n.name);return e}function J5(r){let e=new Set;for(let t of Object.values(r.modules))t.name&&t.bindingLayout?.some(n=>n.group===Ye&&n.name===t.name)&&e.add(t.name);return e}var Ke=class{id;device;factory;shaderInputs;bindings={};_uniformStore;_bindGroupCacheToken={};_dynamicResourceGenerations={};constructor(e,t={}){this.id=t.id||Q("material"),this.device=e,this.factory=t.factory||new Xe(e,{modules:t.modules||t.shaderInputs?.getModules()||[]});let n=Object.fromEntries((t.shaderInputs?.getModules()||this.factory.modules).map(i=>[i.name,i]));this.shaderInputs=t.shaderInputs||new J(n),this._uniformStore=new I0.UniformStore(this.device,this.shaderInputs.modules);for(let[i,s]of Object.entries(this.shaderInputs.modules))if(this.ownsModule(i)&&ae(s)){let o=this._uniformStore.getManagedUniformBuffer(i);this.bindings[`${i}Uniforms`]=o}this.updateShaderInputs(),t.bindings&&this._replaceOwnedBindings(t.bindings)}destroy(){this._uniformStore.destroy()}clone(e={}){let t=this.factory.createMaterial({id:e.id,shaderInputs:e.shaderInputs,bindings:{...this.getResourceBindings(),...e.bindings}});return e.shaderInputs||t.setProps(this.shaderInputs.getUniformValues()),e.moduleProps&&t.setProps(e.moduleProps),t.updateShaderInputs(),t}ownsBinding(e){return this.factory.ownsBinding(e)}ownsModule(e){return this.factory.ownsModule(e)}setProps(e){this.shaderInputs.setProps(e)}updateShaderInputs(e){this._uniformStore.setUniforms(this.shaderInputs.getUniformValues(),e),this._setOwnedBindings(this.shaderInputs.getBindingValues())&&(this._bindGroupCacheToken={})}getResourceBindings(){let e={};for(let[t,n]of Object.entries(this.bindings))S1(t)||(e[t]=n);return e}getBindings(e={bindings:[]}){this._syncDynamicResourceGenerations();let t={},n=t;for(let[i,s]of Object.entries(this.bindings))if(g0(s)){let o=zt(e,i,{fallbackGroup:Ye}),a=o?s.resolveTextureBinding(o):null;a&&(n[i]=a)}else s instanceof z?n[i]=s.buffer:O0(s)?n[i]=He(s):n[i]=s;return this._syncDynamicResourceGenerations(),t}getBindingsByGroup(e={bindings:[]}){return this.factory.getBindingsByGroup(this.getBindings(e))}getBindGroupCacheKey(e){return this._syncDynamicResourceGenerations(),e===Ye?this._bindGroupCacheToken:null}getBindingsUpdateTimestamp(){let e=0;for(let t of Object.values(this.bindings))t instanceof I0.TextureView?e=Math.max(e,t.texture.updateTimestamp):t instanceof I0.Buffer||t instanceof I0.Texture||t instanceof I0.ExternalTexture||t instanceof z?e=Math.max(e,t.updateTimestamp):g0(t)?e=t.isReady?Math.max(e,t.updateTimestamp):1/0:O0(t)&&(e=Math.max(e,(t.buffer instanceof z,t.buffer.updateTimestamp)));return e}_replaceOwnedBindings(e){this._setOwnedBindings(e)&&(this._bindGroupCacheToken={})}_setOwnedBindings(e){let t=!1;for(let[n,i]of Object.entries(e))i!==void 0&&this.ownsBinding(n)&&this.bindings[n]!==i&&(this.bindings[n]=i,t=!0);return t}_syncDynamicResourceGenerations(){let e={},t=!1;for(let[n,i]of Object.entries(this.bindings)){let s=e8(i);s!==null&&(e[n]=s,this._dynamicResourceGenerations[n]!==s&&(t=!0))}Object.keys(e).length!==Object.keys(this._dynamicResourceGenerations).length&&(t=!0),this._dynamicResourceGenerations=e,t&&(this._bindGroupCacheToken={})}};function e8(r){return g0(r)?r.generation:cn(r)?.generation??null}var Ze=O(k(),1),q9=O(S0(),1);var H9=35980,t8=35981,dn=class r{device;model;transformFeedback;outputVectorBindings={};outputBuffers={};static defaultProps={...f0.defaultProps,inputVectors:void 0,outputVectors:void 0,feedbackBufferMode:"separate",outputs:void 0,feedbackBuffers:void 0};static isSupported(e){return e?.info?.type==="webgl"}constructor(e,t=r.defaultProps){if(!r.isSupported(e))throw new Error("BufferTransform not yet implemented on WebGPU");this.device=e,this.outputBuffers=t.feedbackBuffers||{};let{inputVectors:n,outputVectors:i,...s}=t;this.model=new f0(this.device,{id:t.id||"buffer-transform-model",fs:t.fs||(0,q9.getPassthroughFS)(),topology:t.topology||"point-list",varyings:t.outputs||t.varyings,...s,bufferMode:t.bufferMode||(t.feedbackBufferMode==="interleaved"?H9:t8)}),this.transformFeedback=this.device.createTransformFeedback({layout:this.model.pipeline.shaderLayout,buffers:t.feedbackBuffers}),this.model.setTransformFeedback(this.transformFeedback),n&&this.model.setGPUVectors(n,{count:"vertex"}),i&&this.setOutputVectors(i)}destroy(){this.model&&this.model.destroy()}delete(){this.destroy()}run(e){let{inputVectors:t,outputVectors:n,inputBuffers:i,outputBuffers:s,...o}=e??{};i&&this.model.setAttributes(i),t&&this.model.setGPUVectors(t,{count:"vertex"}),s&&(this.outputBuffers=s),(s||n||Object.keys(this.outputVectorBindings).length>0)&&this.setOutputVectors(n??this.outputVectorBindings);let a=this.device.beginRenderPass({discard:!0,...o});try{this.model.draw(a)}finally{a.end()}}setOutputVectors(e){let t=$0(this.model.id,e);(0,Ze.assert)(t.length===0||this.model.pipeline.props.bufferMode!==H9),(0,Ze.assert)(t.length<=1),this.outputVectorBindings=e,this.transformFeedback.setBuffers({...this.outputBuffers,...Object.fromEntries(Object.entries(t[0]?.data??{}).map(([n,i])=>((0,Ze.assert)(i.byteStride===i.rowByteLength),[n,{buffer:i.buffer instanceof z?i.buffer.buffer:i.buffer,byteOffset:i.byteOffset,byteLength:i.length*i.byteStride}])))})}getBuffer(e){return this.transformFeedback.getBuffer(e)}readAsync(e){let t=this.getBuffer(e);if(!t)throw new Error("BufferTransform#getBuffer");if(t instanceof Ze.Buffer)return t.readAsync();let{buffer:n,byteOffset:i=0,byteLength:s=n.byteLength}=t;return n.readAsync(i,s)}};var X9=O(S0(),1);var r8="transform_output",fn=class{device;model;sampler;currentIndex=0;samplerTextureMap=null;bindings=[];resources={};constructor(e,t){this.device=e;let{inputVectors:n,...i}=t;this.sampler=e.createSampler({addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge",minFilter:"nearest",magFilter:"nearest",mipmapFilter:"nearest"}),this.model=new f0(this.device,{id:t.id||Q("texture-transform-model"),fs:t.fs||(0,X9.getPassthroughFS)({input:t.targetTextureVarying,inputChannels:t.targetTextureChannels,output:r8}),vertexCount:t.vertexCount,...i}),n&&this.model.setGPUVectors(n,{count:"vertex"}),this._initialize(t),Object.seal(this)}destroy(){this.model.destroy();for(let e of this.bindings)e.framebuffer?.destroy()}delete(){this.destroy()}run(e){let{inputVectors:t,...n}=e??{};t&&this.model.setGPUVectors(t,{count:"vertex"});let{framebuffer:i}=this.bindings[this.currentIndex],s=this.device.beginRenderPass({framebuffer:i,...n});try{this.model.draw(s)}finally{s.end()}this.device.submit()}getTargetTexture(){let{targetTexture:e}=this.bindings[this.currentIndex];return e}getFramebuffer(){return this.bindings[this.currentIndex].framebuffer}_initialize(e){this._updateBindings(e)}_updateBindings(e){this.bindings[this.currentIndex]=this._updateBinding(this.bindings[this.currentIndex],e)}_updateBinding(e,{sourceBuffers:t,sourceTextures:n,targetTexture:i}){if(e||(e={sourceBuffers:{},sourceTextures:{},targetTexture:null}),Object.assign(e.sourceTextures,n),Object.assign(e.sourceBuffers,t),i){e.targetTexture=i;let{width:s,height:o}=i;e.framebuffer&&e.framebuffer.destroy(),e.framebuffer=this.device.createFramebuffer({id:"transform-framebuffer",width:s,height:o,colorAttachments:[i]}),e.framebuffer.resize({width:s,height:o})}return e}_setSourceTextureParameters(){let e=this.currentIndex,{sourceTextures:t}=this.bindings[e];for(let n in t)t[n].sampler=this.sampler}};var n8=`struct VertexInputs {
|
|
130
|
+
`,e}function Wr(r,e,t){return`${r}:${e}:${t}`}function J4(r,e){let t=/^\/\/ ----- MODULE ([^\n]+) ---------------$/gm,n,i;for(i=t.exec(r);i&&i.index<=e;)n=i[1],i=t.exec(r);return n}function e5(r,e){let t=r.indexOf(wt);return t>=0?e>t:!0}function t5(r){return r.replace(/\s+/g," ").trim()}var $0=class r extends Le{shaderLanguage="wgsl";_wgslBindingRegistry=new Map;assembleWGSLShader(e){let t=this._getModuleList(e.modules),n=[...this._injectionTargets,...e.injectionTargets||[]],i=this._transpileShader(e,t,e.source,e.shaderStage??(e.computeEntryPoint?"compute":void 0)),s={vertex:i.entryPoints?.vertex??e.vertexEntryPoint,fragment:i.entryPoints?.fragment??e.fragmentEntryPoint,compute:i.entryPoints?.compute??e.computeEntryPoint},o=r.getShaderPreprocessorDefines(e,t),a=e.platformInfo.shaderLanguage==="wgsl"&&i.code?Ne(i.code,{defines:o}):i.code,{source:c,getUniforms:u,bindingAssignments:l}=g9({...e,source:a,vertexEntryPoint:s.vertex,fragmentEntryPoint:s.fragment,defines:o,_bindingRegistry:this._wgslBindingRegistry,modules:i.modules,injectionTargets:n}),d=e.platformInfo.shaderLanguage==="wgsl"?Ne(c,{defines:o}):c;return{source:d,entryPoints:s,getUniforms:u,modules:t,bindingAssignments:l,bindingTable:h9(d,l),shaderLayout:i9(d,{vertexEntryPoint:s.vertex,scanVertexAttributes:e.scanVertexAttributes})}}static getShaderPreprocessorDefines(e,t){return{...r.getPlatformPreprocessorDefines(e.platformInfo),...t.reduce((n,i)=>(Object.assign(n,i.defines),n),{}),...e.defines}}static getPlatformPreprocessorDefines(e){let t=e.limits||{};return{LUMA_SUPPORTS_VERTEX_STORAGE_BUFFERS:e.type==="webgpu"&&(t.maxStorageBuffersInVertexStage||0)>0,LUMA_FP32_TAN_PRECISION_WORKAROUND:e.type==="webgpu"&&e.gpu.toLowerCase()!=="nvidia"&&e.gpu.toLowerCase()!=="amd",LUMA_FP64_INTEGER_ARITHMETIC:e.type==="webgpu"&&e.gpu.toLowerCase()==="apple"}}};var Et=D(k(),1),qr=class{device;buffer;byteOffset=0;constructor(e){this.device=e}prepare(e){if(!this.buffer||this.buffer.byteLength<e){let t=Math.max(1024,(this.buffer?.byteLength??0)*2,e),n=this.device.createBuffer({id:"batch-uniforms",byteLength:t,usage:Et.Buffer.UNIFORM|Et.Buffer.COPY_DST});this.buffer?.destroy(),this.buffer=n}this.byteOffset=0}getAlignedByteLength(e){let t=this.device.limits.minUniformBufferOffsetAlignment||1;return Math.ceil(e/t)*t}write(e){(0,Et.assert)(this.buffer&&this.byteOffset+e.byteLength<=this.buffer.byteLength);let t={buffer:this.buffer,offset:this.byteOffset,size:e.byteLength};return this.buffer.write(e,t.offset),this.byteOffset+=this.getAlignedByteLength(e.byteLength),t}destroy(){this.buffer?.destroy(),this.buffer=void 0,this.byteOffset=0}};function y9(r,e){let t={},n="Values";if(r.attributes.length===0&&!r.varyings?.length)return{"No attributes or varyings":{[n]:"N/A"}};for(let i of r.attributes)if(i){let s=`${i.location} ${i.name}: ${i.type}`;t[`in ${s}`]={[n]:i.stepMode||"vertex"}}for(let i of r.varyings||[]){let s=`${i.location} ${i.name}`;t[`out ${s}`]={[n]:JSON.stringify(i)}}return t}var x9="__debugFramebufferState";function v9(r,e,t){if(r.device.type!=="webgl")return;let n=i5(r.device);if(!n.flushing){if(o5(r)){r5(r,t,n);return}e&&s5(e)&&e.handle!==null&&(n.queuedFramebuffers.includes(e)||n.queuedFramebuffers.push(e))}}function r5(r,e,t){if(t.queuedFramebuffers.length===0)return;let n=r.device,{gl:i}=n,s=i.getParameter(36010),o=i.getParameter(36006),[a,c]=r.device.getDefaultCanvasContext().getDrawingBufferSize(),u=b9(e.top,8),l=b9(e.left,8);t.flushing=!0;try{for(let d of t.queuedFramebuffers){let[f,h,p,m,g]=n5({framebuffer:d,targetWidth:a,targetHeight:c,topPx:u,leftPx:l,minimap:e.minimap});i.bindFramebuffer(36008,d.handle),i.bindFramebuffer(36009,null),i.blitFramebuffer(0,0,d.width,d.height,f,h,p,m,16384,9728),u+=g+8}}finally{i.bindFramebuffer(36008,s),i.bindFramebuffer(36009,o),t.flushing=!1}}function n5(r){let{framebuffer:e,targetWidth:t,targetHeight:n,topPx:i,leftPx:s,minimap:o}=r,a=o?Math.max(Math.floor(t/4),1):t,c=o?Math.max(Math.floor(n/4),1):n,u=Math.min(a/e.width,c/e.height),l=Math.max(Math.floor(e.width*u),1),d=Math.max(Math.floor(e.height*u),1),f=s,h=Math.max(n-i-d,0),p=f+l,m=h+d;return[f,h,p,m,d]}function i5(r){return r.userData[x9]||={flushing:!1,queuedFramebuffers:[]},r.userData[x9]}function s5(r){return"colorAttachments"in r}function o5(r){let e=r.props.framebuffer;return!e||e.handle===null}function b9(r,e){if(!r)return e;let t=Number.parseInt(r,10);return Number.isFinite(t)?t:e}function Fe(r,e,t){if(r===e)return!0;if(!t||!r||!e)return!1;if(Array.isArray(r)){if(!Array.isArray(e)||r.length!==e.length)return!1;for(let n=0;n<r.length;n++)if(!Fe(r[n],e[n],t-1))return!1;return!0}if(Array.isArray(e))return!1;if(typeof r=="object"&&typeof e=="object"){let n=r,i=e,s=Object.keys(r),o=Object.keys(e);if(s.length!==o.length)return!1;for(let a of s)if(!e.hasOwnProperty(a)||!Fe(n[a],i[a],t-1))return!1;return!0}return!1}var T9=D(k(),1),Hr=class{bufferLayouts;constructor(e){this.bufferLayouts=e}getBufferLayout(e){return this.bufferLayouts.find(t=>t.name===e)||null}getAttributeNamesForBuffer(e){return(0,T9.getBufferLayoutAttributeNames)(e)}mergeBufferLayouts(e,t){let n=[...e];for(let i of t){let s=n.findIndex(o=>o.name===i.name);s<0?n.push(i):n[s]=i}return n}};var V0=D(k(),1);function Wi(r,e){let t=(0,V0.getShaderAttributeLocationMap)(r),n=e.slice();return n.sort((i,s)=>{let o=(0,V0.getMinimumAttributeLocation)((0,V0.getBufferLayoutAttributeNames)(i).map(c=>t[c])),a=(0,V0.getMinimumAttributeLocation)((0,V0.getBufferLayoutAttributeNames)(s).map(c=>t[c]));return o-a}),n}var Xr=D(b0(),1);function Ge(r,e){if(!r||!e.some(n=>n.bindingLayout?.length))return r;let t={...r,bindings:r.bindings.map(n=>({...n}))};"attributes"in(r||{})&&(t.attributes=r?.attributes||[]);for(let n of e)for(let i of n.bindingLayout||[])for(let s of a5(i.name)){let o=t.bindings.find(a=>a.name===s);o?.group===0&&(o.group=i.group),o&&i.visibility!==void 0&&(o.visibility=i.visibility)}return t}function S9(r,e,t=[]){return r?e?{...r,attributes:r.attributes.length?l5(r.attributes,e.attributes.filter(n=>t.includes(n.name))):e.attributes,bindings:u5(r.bindings,e.bindings)}:r:e}function ae(r){return!!(r.uniformTypes&&!c5(r.uniformTypes))}function w9(r){let e=[];for(let t of r){let n=(0,Xr.getShaderModuleUniformBlockName)(t),i=new Set([t.vs,t.fs].flatMap(o=>o?(0,Xr.getGLSLUniformBlocks)(o).filter(a=>a.isStd140).map(a=>a.blockName):[])),s=i.has(n)?n:i.size===1?i.values().next().value:void 0;ae(t)&&s&&e.push({name:s,uniformTypes:t.uniformTypes})}return e}function Yr(r,e){let t=[],n=new Set;for(let i of[...r||[],...e||[]])n.has(i.name)||(n.add(i.name),t.push(i));return t}function a5(r){let e=new Set([r,`${r}Uniforms`]);return r.endsWith("Uniforms")||e.add(`${r}Sampler`),[...e]}function c5(r){for(let e in r)return!1;return!0}function u5(r,e){let t=r.map(s=>({...s})),n=new Set(r.map(s=>s.name)),i=new Set(r.map(s=>`${s.group}:${s.location}`));for(let s of e){let o=`${s.group}:${s.location}`;!n.has(s.name)&&!i.has(o)&&t.push({...s})}return t}function l5(r,e){let t=r.map(s=>({...s})),n=new Map(r.map(s=>[s.name,s])),i=new Map(r.map(s=>[s.location,s]));for(let s of e){let o=n.get(s.name);if(o){if(o.type!==s.type||o.location!==s.location)throw new Error(`Shader attribute "${s.name}" conflicts with its inferred type or location`);continue}let a=i.get(s.location);if(a)throw new Error(`Shader attributes "${a.name}" and "${s.name}" both use location ${s.location}`);t.push({...s})}return t}function ce(r){return{type:r.type,shaderLanguage:r.info.shadingLanguage,shaderLanguageVersion:r.info.shadingLanguageVersion,gpu:r.info.gpu,limits:r.limits,features:r.features}}var qi={};function J(r="id"){qi[r]=qi[r]||1;let e=qi[r]++;return`${r}-${e}`}var I9=D(k(),1);function Hi(r,e,t){for(let[n,i]of Object.entries(e)){if(!i)continue;if(!i.format)throw new Error(`${r} GPUVector "${n}" requires a format`);let s=t.find(d=>d.name===n);if(!s)throw new Error(`${r} GPUVector "${n}" requires a Model buffer layout`);let o=s.attributes??[];if(o.length>1)throw new Error(`${r} GPUVector "${n}" does not support interleaved layouts`);let a=o[0],c=s.format??a?.format,u=A9(r,n,i.format),l=s.byteStride??u.byteLength;if(c!==i.format||l!==i.byteStride||i.rowByteLength!==u.byteLength)throw new Error(`${r} GPUVector "${n}" must match its Model buffer layout`)}}function U0(r,e){let t=Object.entries(e).filter(o=>o[1]!==void 0);if(t.length===0)return[];let[n,i]=t[0];for(let[o,a]of t){if(!a.format)throw new Error(`${r} GPUVector "${o}" requires a format`);if(A9(r,o,a.format),a.length!==i.length)throw new Error(`${r} GPUVector "${o}" rows must match "${n}" rows`);if(a.data.length!==i.data.length)throw new Error(`${r} GPUVector chunk counts must align`)}let s=0;return i.data.map((o,a)=>{let c={};for(let[l,d]of t){let f=d.data[a];if(!f||f.length!==o.length)throw new Error(`${r} GPUVector chunk ${a} row counts must align`);if(f.format!==d.format||f.byteStride!==d.byteStride||f.rowByteLength!==d.rowByteLength)throw new Error(`${r} GPUVector "${l}" chunk layout must be stable`);c[l]=f}let u={batchIndex:a,rowIndexOffset:s,rowCount:o.length,data:c};return s+=o.length,u})}function A9(r,e,t){if(t.includes("<"))throw new Error(`${r} GPUVector "${e}" requires a fixed-width scalar format`);return I9.vertexFormatDecoder.getVertexFormatInfo(t)}var Kr=D(k(),1);function C0(r){let e;for(let t of Object.values(r)){if(!t||"isConstant"in t)continue;let n=0;for(let i of t.data)n+=i.length;if((0,Kr.assert)(n===t.length),e){(0,Kr.assert)(t.length===e.length&&t.data.length===e.data.length);for(let i=0;i<t.data.length;i++)(0,Kr.assert)(t.data[i].length===e.data[i].length)}else e=t}}function M9(r,e,t,n,i,s){let o=e.inputs,a=t.inputs,c=e.sourceLayouts,u=t.sourceLayouts,l=e.layouts,d=t.layouts,f=t.stepMode,h=e.batchCount,p=t.batchCount,m=Array.from({length:h},(x,w)=>e.getBatch(w)),g=Array.from({length:p},(x,w)=>t.getBatch(w)),b=_9(m),v=_9(g),T=r.vertexCount,S=r.instanceCount,y=!0;try{let x=r.isInstanced&&t.vertexCount===void 0,w=x?h*p:Math.max(h,p);if(h===0||p===0)return!0;for(let I=0;I<w;I++){let A=x?Math.floor(I/p):Math.min(I,h-1),M=x?I%p:Math.min(I,p-1);e.setInputs(m[A],l,"vertex"),t.setInputs(g[M],d,f),n();let R=e.rowCount!==void 0?b[A]:t.vertexCount!==void 0?v[M]:0;s==="vertex"&&r.setVertexCount(Math.max(0,Math.min(e.rowCount??t.vertexCount??T,T-R))),s==="instance"&&t.instanceCount!==void 0&&r.setInstanceCount(Math.max(0,Math.min(t.instanceCount,S-v[M]))),!(!r.indexBuffer&&r.vertexCount===0||r.isInstanced&&r.instanceCount===0)&&(y=i()&&y)}}finally{e.setInputs(o,c,"vertex"),t.setInputs(a,u,f),n(),r.setVertexCount(T),r.setInstanceCount(S)}return y}function _9(r){let e=0;return r.map(t=>{let n=e;for(let i of Object.values(t))if(i&&"data"in i){e+=i.length;break}return n})}var o0=D(k(),1);var Pt=class{device;id;inputs={};sourceLayouts;stepMode="vertex";claimedNames=new Set;layouts=[];buffers={};byteOffsets={};constants={};rowCount;vertexCount;instanceCount;constantBuffers={};constructor(e,t){this.device=e,this.id=t}setInputs(e,t,n,i=!0){if(i)C0(e);else for(let u of Object.values(e))u&&!q(u)&&(0,o0.assert)(u.data.length===1);this.claimedNames.clear(),this.inputs=e,this.sourceLayouts=t,this.stepMode=n,this.rowCount=void 0,this.vertexCount=void 0,this.instanceCount=void 0;let s=t??Object.entries(e).flatMap(([u,l])=>l&&!q(l)&&l.bufferLayout?[{...l.bufferLayout,name:u}]:[]),o=Object.entries(e).flatMap(([u,l])=>{if(!l||s.some(h=>h.name===u||h.attributes?.some(p=>p.attribute===u)))return[];(0,o0.assert)(l.format);let d=l.format,f=q(l)?0:l.byteStride;return[{name:u,stepMode:n,byteStride:f,attributes:[{attribute:u,format:d,byteOffset:0}]}]}),a=[...s,...f5(e,o)];for(let[u,l]of Object.entries(e))if(l){if(!q(l)&&!Array.isArray(l.data))throw new TypeError(`Expected a GPU vector or constant for ${u}`);!q(l)&&i&&((a.find(h=>h.name===u||h.attributes?.some(p=>p.attribute===u))?.stepMode??n)==="instance"?((0,o0.assert)(this.instanceCount===void 0||this.instanceCount===l.length),this.instanceCount=l.length):((0,o0.assert)(this.vertexCount===void 0||this.vertexCount===l.length),this.vertexCount=l.length),this.rowCount=n==="instance"?this.instanceCount:this.vertexCount),this.claimedNames.add(u)}this.layouts=a.flatMap(u=>{let l=e[u.name],d=u.attributes??(u.format?[{attribute:u.name,format:u.format,byteOffset:0}]:[]),f=d.filter(p=>q(e[p.attribute])),h={...u,stepMode:u.stepMode??n};return this.device.type!=="webgpu"||l&&!q(l)&&l.bufferLayout||!f.length||f.length===d.length?[{...h,byteStride:f.length===d.length&&f.length?0:h.byteStride}]:[{...h,attributes:d.filter(p=>!q(e[p.attribute]))},{...h,name:`${u.name}-constants`,byteStride:0,attributes:f}]}),this.buffers={},this.byteOffsets={},this.constants={};let c=new Set;for(let u of this.layouts){this.claimedNames.add(u.name);let l=u.attributes??(u.format?[{attribute:u.name,format:u.format,byteOffset:0}]:[]);for(let h of l)this.claimedNames.add(h.attribute);let d=e[u.name];if(d&&!q(d)){let h=d.bufferLayout||!d.format?0:(l.find(p=>p.attribute===u.name)??l[0])?.byteOffset??0;this.bindVector(u.name,d,h)}let f=0;for(let h of l){let p=e[h.attribute]??(h.attribute===u.name?e[u.name]:void 0);p&&((0,o0.assert)(p.format===void 0||p.format===h.format),q(p)?(this.constants[h.attribute]=d5(p),f=Math.max(f,(h.byteOffset??0)+p.byteLength)):this.buffers[u.name]||this.bindVector(u.name,p,h.byteOffset??0))}if(this.device.type==="webgpu"&&f&&!this.buffers[u.name]){let h=new Uint8Array(Math.ceil(f/4)*4);for(let m of l){let g=e[m.attribute];q(g)&&h.set(new Uint8Array(g.value.buffer,g.value.byteOffset,g.byteLength),m.byteOffset??0)}let p=this.constantBuffers[u.name];(!p||p.byteLength<h.byteLength)&&(p?.destroy(),p=this.device.createBuffer({id:`${this.id}-${u.name}-constant`,byteLength:h.byteLength,usage:o0.Buffer.VERTEX|o0.Buffer.COPY_DST|o0.Buffer.COPY_SRC}),this.constantBuffers[u.name]=p),p.write(h),this.buffers[u.name]=p,c.add(u.name)}}for(let[u,l]of Object.entries(this.constantBuffers))c.has(u)||(l.destroy(),delete this.constantBuffers[u])}get batchCount(){let e=Object.values(this.inputs).find(t=>t&&!q(t));return e&&!q(e)?e.data.length:1}getBatch(e){return Object.fromEntries(Object.entries(this.inputs).map(([t,n])=>{if(!n||q(n))return[t,n];let i=n.data[e];return[t,{...n,length:i?.length??0,data:i?[i]:[]}]}))}destroy(){for(let e of Object.values(this.constantBuffers))e.destroy();this.constantBuffers={}}bindVector(e,t,n){let i=t.data[0];if(!i)return;let s=i.byteOffset-n;(0,o0.assert)(s>=0),this.buffers[e]=i.buffer,this.byteOffsets[e]=s}};function q(r){return!!(r&&"isConstant"in r&&r.isConstant)}function d5(r){let e=o0.vertexFormatDecoder.getVertexFormatInfo(r.format);if(r.format==="unorm10-10-10-2"){let n=r.value[0];return new Float32Array([(n&1023)/1023,(n>>>10&1023)/1023,(n>>>20&1023)/1023,(n>>>30)/3])}let t=Array.from(r.value);if(r.format==="unorm8x4-bgra"&&([t[0],t[2]]=[t[2],t[0]]),e.normalized){let n=r.value.BYTES_PER_ELEMENT*8,i=2**n-1;return new Float32Array(t.map(s=>e.signed?(s+2**(n-1))/i*2-1:s/i))}return e.integer?e.signed?new Int32Array(t):new Uint32Array(t):new Float32Array(t)}function f5(r,e){let t=[],n,i=0,s=[...e].sort((o,a)=>{let c=r[o.name],u=r[a.name];return(c&&!q(c)?c.data[0]?.byteOffset??0:0)-(u&&!q(u)?u.data[0]?.byteOffset??0:0)});for(let o of s){let a=r[o.name],c=o.attributes[0];if(q(a)){n||(n={...o,attributes:[]},t.push(n));let l=Math.min(4,a.byteLength);i=Math.ceil(i/l)*l,n.attributes.push({...c,byteOffset:i}),i+=a.byteLength;continue}let u=t.find(l=>{let d=r[l.name];if(!d||q(d)||!d.data.length||!a.data.length)return!1;let f=a.data[0].byteOffset-d.data[0].byteOffset;return l.stepMode===o.stepMode&&l.byteStride===o.byteStride&&f>=0&&f+a.rowByteLength<=a.byteStride&&a.data.every((h,p)=>{let m=d.data[p];return h.buffer===m.buffer&&h.byteStride===m.byteStride&&h.byteOffset-m.byteOffset===f})});if(u){let l=r[u.name];u.attributes.push({...c,byteOffset:a.data[0].byteOffset-l.data[0].byteOffset})}else t.push({...o,attributes:[...o.attributes]})}return t}var Zr=D(k(),1),Yi=D(b0(),1);function Xi(r){return(Array.isArray(r)?r.length===0||typeof r[0]=="number":ArrayBuffer.isView(r)&&!(r instanceof DataView))||typeof r=="number"||typeof r=="boolean"}function E9(r,e={}){let t={bindings:{},uniforms:{}};return Object.keys(r).forEach(n=>{let i=r[n];Object.prototype.hasOwnProperty.call(e,n)||Xi(i)?t.uniforms[n]=i:t.bindings[n]=i}),t}var e0=class{options={disableWarnings:!1};modules;moduleUniforms;moduleBindings;directBindings={};constructor(e,t){Object.assign(this.options,t);let n=(0,Yi.getShaderModuleDependencies)(Object.values(e).filter(h5));for(let i of n)e[i.name]=i;Zr.log.log(1,"Creating ShaderInputs with modules",Object.keys(e))(),this.modules=e,this.moduleUniforms={},this.moduleBindings={};for(let[i,s]of Object.entries(e))s&&(this._addModule(s),s.name&&i!==s.name&&!this.options.disableWarnings&&Zr.log.warn(`Module name: ${i} vs ${s.name}`)())}destroy(){}setProps(e){e.bindings&&Object.assign(this.directBindings,e.bindings);for(let t of Object.keys(e)){if(t==="bindings")continue;let n=t,i=e[n]||{},s=this.modules[n];if(!s)this.options.disableWarnings||Zr.log.warn(`Module ${t} not found`)();else{let o=this.moduleUniforms[n],a=this.moduleBindings[n],c=s.getUniforms?.(i,o)||i,{uniforms:u,bindings:l}=E9(c,s.uniformTypes);this.moduleUniforms[n]=P9(o,u,s.uniformTypes),this.moduleBindings[n]={...a,...l}}}}getModules(){return Object.values(this.modules)}addModules(e){let t=(0,Yi.getShaderModuleDependencies)(e);for(let n of t){let i=n.name;this.modules[i]||(this.modules[i]=n,this._addModule(n))}}getUniformValues(){return this.moduleUniforms}getBindingValues(){let e={};for(let t of Object.values(this.moduleBindings))Object.assign(e,t);return Object.assign(e,this.directBindings),e}getModuleBindingValues(e){let t=this.moduleBindings[e];return t?{...t}:{}}getDebugTable(){let e={};for(let[t,n]of Object.entries(this.moduleUniforms))for(let[i,s]of Object.entries(n))e[`${t}.${i}`]={type:this.modules[t].uniformTypes?.[i],value:String(s)};return e}_addModule(e){let t=e.name;this.moduleUniforms[t]=P9({},e.defaultUniforms||{},e.uniformTypes),this.moduleBindings[t]={}}};function P9(r={},e={},t={}){let n={...r};for(let[i,s]of Object.entries(e))s!==void 0&&(n[i]=Ki(r[i],s,t[i]));return n}function Ki(r,e,t){if(!t||typeof t=="string")return Lt(e);if(Array.isArray(t)){if(Zi(e)||!Array.isArray(e))return Lt(e);let o=Array.isArray(r)&&!Zi(r)?[...r]:[],a=o.slice();for(let c=0;c<e.length;c++){let u=e[c];u!==void 0&&(a[c]=Ki(o[c],u,t[0]))}return a}if(!Qi(e))return Lt(e);let n=t,i=Qi(r)?r:{},s={...i};for(let[o,a]of Object.entries(e))a!==void 0&&(s[o]=Ki(i[o],a,n[o]));return s}function Lt(r){return ArrayBuffer.isView(r)?Array.prototype.slice.call(r):Array.isArray(r)?Zi(r)?r.slice():r.map(t=>t===void 0?void 0:Lt(t)):Qi(r)?Object.fromEntries(Object.entries(r).map(([e,t])=>[e,t===void 0?void 0:Lt(t)])):r}function Zi(r){return ArrayBuffer.isView(r)||Array.isArray(r)&&(r.length===0||typeof r[0]=="number")}function Qi(r){return!!r&&typeof r=="object"&&!Array.isArray(r)&&!ArrayBuffer.isView(r)}function h5(r){return!!r?.dependencies}var Rt=globalThis,p5=globalThis.document||{},Qr=globalThis.process||{},m5=globalThis.console,g5=globalThis.navigator||{};function Jr(r){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&process.versions?.electron)return!0;let e=typeof navigator<"u"&&navigator.userAgent,t=r||e;return!!(t&&t.indexOf("Electron")>=0)}function j0(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||Jr()}var Ji="5.0.0";function ze(r,e){if(!r)throw new Error(e||"Assertion failed")}function en(r){if(!r)return 0;let e;switch(typeof r){case"number":e=r;break;case"object":e=r.logLevel||r.priority||0;break;default:return 0}return ze(Number.isFinite(e)&&e>=0),e}function e1(r){let{logLevel:e,message:t}=r;r.logLevel=en(e);let n=r.args?Array.from(r.args):[];for(;n.length&&n.shift()!==t;);switch(typeof e){case"string":case"function":t!==void 0&&n.unshift(t),r.message=e;break;case"object":Object.assign(r,e);break;default:}typeof r.message=="function"&&(r.message=r.message());let i=typeof r.message;return ze(i==="string"||i==="object"),Object.assign(r,{args:n},r.opts)}var W0=()=>{},ue=class{constructor({level:e=0}={}){this.userData={},this._onceCache=new Set,this._level=e}set level(e){this.setLevel(e)}get level(){return this.getLevel()}setLevel(e){return this._level=e,this}getLevel(){return this._level}warn(e,...t){return this._log("warn",0,e,t,{once:!0})}error(e,...t){return this._log("error",0,e,t)}log(e,t,...n){return this._log("log",e,t,n)}info(e,t,...n){return this._log("info",e,t,n)}once(e,t,...n){return this._log("once",e,t,n,{once:!0})}_log(e,t,n,i,s={}){let o=e1({logLevel:t,message:n,args:this._buildArgs(t,n,i),opts:s});return this._createLogFunction(e,o,s)}_buildArgs(e,t,n){return[e,t,...n]}_createLogFunction(e,t,n){if(!this._shouldLog(t.logLevel))return W0;let i=this._getOnceTag(n.tag??t.tag??t.message);if((n.once||t.once)&&i!==void 0){if(this._onceCache.has(i))return W0;this._onceCache.add(i)}return this._emit(e,t)}_shouldLog(e){return this.getLevel()>=en(e)}_getOnceTag(e){if(e!==void 0)try{return typeof e=="string"?e:String(e)}catch{return}}};function x5(r){try{let e=window[r],t="__storage_test__";return e.setItem(t,t),e.removeItem(t),e}catch{return null}}var Ct=class{constructor(e,t,n="sessionStorage"){this.storage=x5(n),this.id=e,this.config=t,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){let t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}}_loadConfiguration(){let e={};if(this.storage){let t=this.storage.getItem(this.id);e=t?JSON.parse(t):{}}return Object.assign(this.config,e),this}};function L9(r){let e;return r<10?e=`${r.toFixed(2)}ms`:r<100?e=`${r.toFixed(1)}ms`:r<1e3?e=`${r.toFixed(0)}ms`:e=`${(r/1e3).toFixed(2)}s`,e}function t1(r,e=8){let t=Math.max(e-r.length,0);return`${" ".repeat(t)}${r}`}var Bt;(function(r){r[r.BLACK=30]="BLACK",r[r.RED=31]="RED",r[r.GREEN=32]="GREEN",r[r.YELLOW=33]="YELLOW",r[r.BLUE=34]="BLUE",r[r.MAGENTA=35]="MAGENTA",r[r.CYAN=36]="CYAN",r[r.WHITE=37]="WHITE",r[r.BRIGHT_BLACK=90]="BRIGHT_BLACK",r[r.BRIGHT_RED=91]="BRIGHT_RED",r[r.BRIGHT_GREEN=92]="BRIGHT_GREEN",r[r.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",r[r.BRIGHT_BLUE=94]="BRIGHT_BLUE",r[r.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",r[r.BRIGHT_CYAN=96]="BRIGHT_CYAN",r[r.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(Bt||(Bt={}));var b5=10;function R9(r){return typeof r!="string"?r:(r=r.toUpperCase(),Bt[r]||Bt.WHITE)}function r1(r,e,t){return!j0&&typeof r=="string"&&(e&&(r=`\x1B[${R9(e)}m${r}\x1B[39m`),t&&(r=`\x1B[${R9(t)+b5}m${r}\x1B[49m`)),r}function n1(r,e=["constructor"]){let t=Object.getPrototypeOf(r),n=Object.getOwnPropertyNames(t),i=r;for(let s of n){let o=i[s];typeof o=="function"&&(e.find(a=>s===a)||(i[s]=o.bind(r)))}}var tn=class{getHighResolutionTimer(){let e;if(j0()&&Rt.performance)e=Rt?.performance?.now?.();else if("hrtime"in Qr){let t=Qr?.hrtime?.();e=t[0]*1e3+t[1]/1e6}else e=Date.now();return e}getMemoryUsageMB(){let t=Rt?.performance?.memory?.usedJSHeapSize;return t==null?null:Math.trunc(t/1024/1024)}},f0=new tn;globalThis.Probe=tn;globalThis.probe=f0;var $e={debug:j0()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},i1={enabled:!0,level:0},B0=class extends ue{constructor({id:e}={id:""}){super({level:0}),this.VERSION=Ji,this._startTs=f0.getHighResolutionTimer(),this._deltaTs=f0.getHighResolutionTimer(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new Ct(`__probe-${this.id}__`,{[this.id]:i1}),this.timeStamp(`${this.id} started`),n1(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((f0.getHighResolutionTimer()-this._startTs).toPrecision(10))}getDelta(){return Number((f0.getHighResolutionTimer()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._updateConfiguration({enabled:e}),this}setLevel(e){return this._updateConfiguration({level:e}),this}get(e){return this._getConfiguration()[e]}set(e,t){this._updateConfiguration({[e]:t})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,t){if(!e)throw new Error(t||"Assertion failed")}warn(e,...t){return this._log("warn",0,e,t,{method:$e.warn,once:!0})}error(e,...t){return this._log("error",0,e,t,{method:$e.error})}deprecated(e,t){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${t}\` instead`)}removed(e,t){return this.error(`\`${e}\` has been removed. Use \`${t}\` instead`)}probe(e,t,...n){let i=f0.getMemoryUsageMB();if(i!==null){let s=`${i}MB `;typeof t=="function"?t=()=>`${s}${t()}`:typeof t=="string"&&(t=`${s}${t}`)}return this._log("log",e,t,n,{method:$e.log,time:!0,once:!0})}log(e,t,...n){return this._log("log",e,t,n,{method:$e.debug})}info(e,t,...n){return this._log("info",e,t,n,{method:console.info})}once(e,t,...n){return this._log("once",e,t,n,{method:$e.debug||$e.info,once:!0})}table(e,t,n){return t?this._log("table",e,t,n&&[n]||[],{method:console.table||W0,tag:T5(t)}):W0}time(e,t){return this._log("time",e,t,[],{method:console.time?console.time:console.info})}timeEnd(e,t){return this._log("time",e,t,[],{method:console.timeEnd?console.timeEnd:console.info})}timeStamp(e,t){return this._log("time",e,t,[],{method:console.timeStamp||W0})}group(e,t,n={collapsed:!1}){let i=(n.collapsed?console.groupCollapsed:console.group)||console.info;return this._log("group",e,t,[],{method:i})}groupCollapsed(e,t,n={}){return this.group(e,t,Object.assign({},n,{collapsed:!0}))}groupEnd(e){return this._log("groupEnd",e,"",[],{method:console.groupEnd||W0})}withGroup(e,t,n){this.group(e,t)();try{n()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&super._shouldLog(e)}_emit(e,t){let n=t.method;ze(n),t.total=this.getTotal(),t.delta=this.getDelta(),this._deltaTs=f0.getHighResolutionTimer();let i=v5(this.id,t.message,t);return n.bind(console,i,...t.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(i1),this._storage.config[this.id]}_updateConfiguration(e){let t=this._storage.config[this.id]||{...i1};this._storage.setConfiguration({[this.id]:{...t,...e}})}};B0.VERSION=Ji;function v5(r,e,t){if(typeof e=="string"){let n=t.time?t1(L9(t.total)):"";e=t.time?`${r}: ${n} ${e}`:`${r}: ${e}`,e=r1(e,t.color,t.background)}return e}function T5(r){for(let e in r)for(let t in r[e])return t||"untitled";return"empty"}globalThis.probe||(globalThis.probe=f0);var Wf=new B0({id:"@probe.gl/log"});var a0=new B0({id:"luma.gl"});var s1={};function Ve(r="id"){s1[r]=s1[r]||1;let e=s1[r]++;return`${r}-${e}`}function Ue(r,e){if(!r){let t=new Error(e??"luma.gl assertion failed.");throw Error.captureStackTrace?.(t,Ue),t}}var rn=class{_owner=null;_ownedResources=new Set;_state="live";_destroyingOwnedResources=!1;_destroyRequested=!1;get owner(){return this._owner}get ownedResources(){return Array.from(this._ownedResources)}get destroyed(){return this._state==="destroyed"}transferOwnershipTo(e){Ue(this._state==="live"&&!this._destroyingOwnedResources),Ue(!this._owner||this._owner.canChangeOwnership()),Ue(!e||e.canChangeOwnership());for(let t=e;t;t=t._owner)Ue(t!==this);return e!==this._owner&&(this._owner?._ownedResources.delete(this),this._owner=e,e?._ownedResources.add(this)),this}destroy(){if(this._state!=="live")return;if(this._destroyingOwnedResources){this._destroyRequested=!0;return}this._destroyRequested=!1,this._state="destroying",this._owner?._ownedResources.delete(this),this._owner=null;let e=[];try{try{this.onBeforeDestroy()}catch(t){e.push(t)}this.destroyChildren(e);try{this.onDestroy()}catch(t){e.push(t)}}finally{this._state="destroyed"}if(e.length)throw new AggregateError(e,"Resource cleanup failed")}delete(){return this.destroy(),this}attachResource(e){e.transferOwnershipTo(this)}detachResource(e){e._owner===this&&e.transferOwnershipTo(null)}destroyAttachedResource(e){e._owner===this&&e.destroy()}destroyAttachedResources(){if(this._state!=="live"||this._destroyingOwnedResources)return;let e=[];if(this.destroyChildren(e),this._destroyRequested)try{this.destroy()}catch(t){e.push(t)}if(e.length)throw new AggregateError(e,"Resource cleanup failed")}onBeforeDestroy(){}onDestroy(){}canChangeOwnership(){return this._state==="live"&&!this._destroyingOwnedResources}destroyChildren(e){this._destroyingOwnedResources=!0;try{for(let t of this._ownedResources)try{t.destroy()}catch(n){e.push(n)}}finally{this._ownedResources.clear(),this._destroyingOwnedResources=!1}}};var S5="cpu-hotspot-profiler",C9="GPU Resource Counts",B9="Resource Counts",D9="GPU Time and Memory",w5=["Resources","Buffers","Textures","Samplers","TextureViews","Framebuffers","QuerySets","Shaders","RenderPipelines","ComputePipelines","PipelineLayouts","VertexArrays","RenderPasss","RenderBundleEncoders","RenderBundles","ComputePasss","CommandEncoders","CommandBuffers"],I5=["Resources","Buffers","Textures","Samplers","TextureViews","Framebuffers","QuerySets","Shaders","RenderPipelines","SharedRenderPipelines","ComputePipelines","PipelineLayouts","VertexArrays","RenderPasss","RenderBundleEncoders","RenderBundles","ComputePasss","CommandEncoders","CommandBuffers"],A5=w5.flatMap(r=>[`${r} Created`,`${r} Active`]),_5=I5.flatMap(r=>[`${r} Created`,`${r} Active`]),O9=new WeakMap,N9=new WeakMap,h0=class extends rn{static defaultProps={id:"undefined",handle:void 0,_isHandleBorrowed:!1,userData:void 0};toString(){return`${this[Symbol.toStringTag]||this.constructor.name}:"${this.id}"`}toJSON(){return this.toString()}id;props;userData={};_device;allocatedBytes=0;allocatedBytesName=null;get ownsHandle(){return(this.props.handle===void 0||this.props.handle===null)&&!this.isHandleBorrowed}get isHandleBorrowed(){return!!this.props._isHandleBorrowed}constructor(e,t,n){if(super(),!e)throw new Error("no device");this._device=e,this.props=M5(t,n);let i=this.props.id!=="undefined"?this.props.id:Ve(this[Symbol.toStringTag]);this.props.id=i,this.id=i,this.userData=this.props.userData||{},this.addStats()}getProps(){return this.props}destroyHandle(){}onDestroy(){try{this.destroyHandle()}finally{this.trackDeallocatedMemory(),this.removeStats()}}removeStats(){let e=Dt(this._device),t=e?q0():0,n=[this._device.statsManager.getStats(C9),this._device.statsManager.getStats(B9)],i=F9(this._device);for(let o of n)k9(o,i);let s=this.getStatsName();for(let o of n)o.get("Resources Active").decrementCount(),o.get(`${s}s Active`).decrementCount();e&&(e.statsBookkeepingCalls=(e.statsBookkeepingCalls||0)+1,e.statsBookkeepingTimeMs=(e.statsBookkeepingTimeMs||0)+(q0()-t))}trackAllocatedMemory(e,t=this.getStatsName()){let n=Dt(this._device),i=n?q0():0,s=this._device.statsManager.getStats(D9);this.allocatedBytes>0&&this.allocatedBytesName&&(s.get("GPU Memory").subtractCount(this.allocatedBytes),s.get(`${this.allocatedBytesName} Memory`).subtractCount(this.allocatedBytes)),s.get("GPU Memory").addCount(e),s.get(`${t} Memory`).addCount(e),n&&(n.statsBookkeepingCalls=(n.statsBookkeepingCalls||0)+1,n.statsBookkeepingTimeMs=(n.statsBookkeepingTimeMs||0)+(q0()-i)),this.allocatedBytes=e,this.allocatedBytesName=t}trackReferencedMemory(e,t=this.getStatsName()){this.trackAllocatedMemory(e,`External ${t}`)}trackDeallocatedMemory(e=this.getStatsName()){if(this.allocatedBytes===0){this.allocatedBytesName=null;return}let t=Dt(this._device),n=t?q0():0,i=this._device.statsManager.getStats(D9);i.get("GPU Memory").subtractCount(this.allocatedBytes),i.get(`${this.allocatedBytesName||e} Memory`).subtractCount(this.allocatedBytes),t&&(t.statsBookkeepingCalls=(t.statsBookkeepingCalls||0)+1,t.statsBookkeepingTimeMs=(t.statsBookkeepingTimeMs||0)+(q0()-n)),this.allocatedBytes=0,this.allocatedBytesName=null}trackDeallocatedReferencedMemory(e=this.getStatsName()){this.trackDeallocatedMemory(`Referenced ${e}`)}addStats(){let e=this.getStatsName(),t=Dt(this._device),n=t?q0():0,i=[this._device.statsManager.getStats(C9),this._device.statsManager.getStats(B9)],s=F9(this._device);for(let o of i)k9(o,s);for(let o of i)o.get("Resources Created").incrementCount(),o.get("Resources Active").incrementCount(),o.get(`${e}s Created`).incrementCount(),o.get(`${e}s Active`).incrementCount();t&&(t.statsBookkeepingCalls=(t.statsBookkeepingCalls||0)+1,t.statsBookkeepingTimeMs=(t.statsBookkeepingTimeMs||0)+(q0()-n)),E5(this._device,e)}getStatsName(){return P5(this)}};function M5(r,e){let t={...e};for(let n in r)r[n]!==void 0&&(t[n]=r[n]);return t}function k9(r,e){let t=r.stats,n=!1;for(let c of e)t[c]||(r.get(c),n=!0);let i=Object.keys(t).length,s=O9.get(r);if(!n&&s?.orderedStatNames===e&&s.statCount===i)return;let o={},a=N9.get(e);a||(a=new Set(e),N9.set(e,a));for(let c of e)t[c]&&(o[c]=t[c]);for(let[c,u]of Object.entries(t))a.has(c)||(o[c]=u);for(let c of Object.keys(t))delete t[c];Object.assign(t,o),O9.set(r,{orderedStatNames:e,statCount:i})}function F9(r){return r.type==="webgl"?_5:A5}function Dt(r){let e=r.userData[S5];return e?.enabled?e:null}function q0(){return globalThis.performance?.now?.()??Date.now()}function E5(r,e){let t=Dt(r);if(!(!t||!t.activeDefaultFramebufferAcquireDepth))switch(t.transientCanvasResourceCreates=(t.transientCanvasResourceCreates||0)+1,e){case"Texture":t.transientCanvasTextureCreates=(t.transientCanvasTextureCreates||0)+1;break;case"TextureView":t.transientCanvasTextureViewCreates=(t.transientCanvasTextureViewCreates||0)+1;break;case"Sampler":t.transientCanvasSamplerCreates=(t.transientCanvasSamplerCreates||0)+1;break;case"Framebuffer":t.transientCanvasFramebufferCreates=(t.transientCanvasFramebufferCreates||0)+1;break;default:break}}function P5(r){let e=Object.getPrototypeOf(r);for(;e;){let t=Object.getPrototypeOf(e);if(!t||t===h0.prototype)return L5(e)||r[Symbol.toStringTag]||r.constructor.name;e=t}return r[Symbol.toStringTag]||r.constructor.name}function L5(r){let e=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag);return typeof e?.get=="function"?e.get.call(r):typeof e?.value=="string"?e.value:null}var A0=class r extends h0{static INDEX=16;static VERTEX=32;static UNIFORM=64;static STORAGE=128;static INDIRECT=256;static QUERY_RESOLVE=512;static MAP_READ=1;static MAP_WRITE=2;static COPY_SRC=4;static COPY_DST=8;get[Symbol.toStringTag](){return"Buffer"}usage;indexType;updateTimestamp;constructor(e,t){let n={...t};(t.usage||0)&r.INDEX&&!t.indexType&&(t.data instanceof Uint32Array?n.indexType="uint32":t.data instanceof Uint16Array?n.indexType="uint16":t.data instanceof Uint8Array&&(n.indexType="uint8")),delete n.data,super(e,n,r.defaultProps),this.usage=n.usage||0,this.indexType=n.indexType,this.updateTimestamp=e.incrementTimestamp()}clone(e){return this.device.createBuffer({...this.props,...e})}static DEBUG_DATA_MAX_LENGTH=32;debugData=new ArrayBuffer(0);_setDebugData(e,t,n){if(!this.device.props.debug)return;let i=null,s;ArrayBuffer.isView(e)?(i=e,s=e.buffer):s=e;let o=Math.min(e?e.byteLength:n,r.DEBUG_DATA_MAX_LENGTH);if(s===null)this.debugData=new ArrayBuffer(o);else{let a=Math.min(i?.byteOffset||0,s.byteLength),c=Math.max(0,s.byteLength-a),u=Math.min(o,c);this.debugData=new Uint8Array(s,a,u).slice().buffer}}static defaultProps={...h0.defaultProps,handle:void 0,usage:0,byteLength:0,byteOffset:0,data:null,indexType:"uint16",onMapped:void 0}};var o1=globalThis.Float16Array;function G9(){return o1??Uint16Array}function z9(r){return!!(o1&&r===o1)}var $9=new Map;function V9(r){let e=$9.get(r);if(e)return e;let t=Object.freeze(R5(r));return Object.hasOwn(nn,r)&&$9.set(r,t),t}function R5(r){let e=r.includes("norm"),t=!e&&!r.startsWith("float"),n=r.startsWith("s"),i=nn[r],[s,o,a]=i||["uint8 ","i32",1];return{signedType:s,primitiveType:o,byteLength:a,normalized:e,integer:t,signed:n}}function U9(r){let e=r;switch(e){case"uint8":return"unorm8";case"sint8":return"snorm8";case"uint16":return"unorm16";case"sint16":return"snorm16";default:return e}}function C5(r){let e=ArrayBuffer.isView(r)?r.constructor:r;if(z9(e))return"float16";if(e===Uint8ClampedArray)return"uint8";let t=Object.values(nn).find(n=>e===n[4]);if(!t)throw new Error(e.name);return t[0]}function j9(r){return C5(r)}function B5(r){if(r==="float16")return G9();let e=nn[r];if(!e)throw new Error(r);let[,,,,t]=e;return t}function W9(r){return B5(r)}var nn={uint8:["uint8","u32",1,!1,Uint8Array],sint8:["sint8","i32",1,!1,Int8Array],unorm8:["uint8","f32",1,!0,Uint8Array],snorm8:["sint8","f32",1,!0,Int8Array],uint16:["uint16","u32",2,!1,Uint16Array],sint16:["sint16","i32",2,!1,Int16Array],unorm16:["uint16","u32",2,!0,Uint16Array],snorm16:["sint16","i32",2,!0,Int16Array],float16:["float16","f16",2,!1,Uint16Array],float32:["float32","f32",4,!1,Float32Array],uint32:["uint32","u32",4,!1,Uint32Array],sint32:["sint32","i32",4,!1,Int32Array]};var a1=class{getDataTypeInfo(e){return V9(e)}getNormalizedDataType(e){return U9(e)}alignTo(e,t){return Dr(e,t)}getDataType(e){return j9(e)}getTypedArrayConstructor(e){return W9(e)}},q9=new a1;var t0="texture-compression-bc",F="texture-compression-astc",_0="texture-compression-etc2",H9="texture-compression-etc1-webgl",sn="texture-compression-pvrtc-webgl",c1="texture-compression-atc-webgl",on="float32-renderable-webgl",u1="float16-renderable-webgl",D5="rgb9e5ufloat-renderable-webgl",l1="snorm8-renderable-webgl",H0="norm16-webgl",d1="norm16-renderable-webgl",f1="snorm16-renderable-webgl",an="float32-filterable",X9="float16-filterable-webgl",Ot=1,Nt=2,m1=4,g1=8,We=16,un=5,K9=10,H=Ot|Nt,cn=Ot|m1,D0=Ot|Nt|m1|g1,M0=Ot|Nt|We,O5=Ot|m1|We,p1=D0|We,Y9=(Nt|g1|We)<<un,N5=(Nt|g1)<<un,i0=We<<un,je=p1<<un,k5=D0<<K9,h1=We<<K9;function ln(r){let e=z5[r];if(!e)throw new Error(`Unsupported texture format ${r}`);return e}var F5={r8unorm:{webgpu:D0|i0},rg8unorm:{webgpu:D0|i0},"rgb8unorm-webgl":{},rgba8unorm:{webgpu:p1},"rgba8unorm-srgb":{webgpu:D0},r8snorm:{render:l1,webgpu:cn|Y9},rg8snorm:{render:l1,webgpu:cn|Y9},"rgb8snorm-webgl":{},rgba8snorm:{render:l1,webgpu:O5|N5},r8uint:{webgpu:H|i0},rg8uint:{webgpu:H|i0},rgba8uint:{webgpu:M0},r8sint:{webgpu:H|i0},rg8sint:{webgpu:H|i0},rgba8sint:{webgpu:M0},bgra8unorm:{webgpu:D0},"bgra8unorm-srgb":{webgpu:k5},r16unorm:{f:H0,render:d1,webgpu:je},rg16unorm:{f:H0,render:d1,webgpu:je},"rgb16unorm-webgl":{f:H0,render:!1},rgba16unorm:{f:H0,render:d1,webgpu:je},r16snorm:{f:H0,render:f1,webgpu:je},rg16snorm:{f:H0,render:f1,webgpu:je},"rgb16snorm-webgl":{f:H0,render:!1},rgba16snorm:{f:H0,render:f1,webgpu:je},r16uint:{webgpu:H|i0},rg16uint:{webgpu:H|i0},rgba16uint:{webgpu:M0},r16sint:{webgpu:H|i0},rg16sint:{webgpu:H|i0},rgba16sint:{webgpu:M0},r16float:{render:u1,filter:"float16-filterable-webgl",webgpu:D0|i0},rg16float:{render:u1,filter:X9,webgpu:D0|i0},rgba16float:{render:u1,filter:X9,webgpu:p1},r32uint:{webgpu:M0},rg32uint:{webgpu:H|h1},rgba32uint:{webgpu:M0},r32sint:{webgpu:M0},rg32sint:{webgpu:H|h1},rgba32sint:{webgpu:M0},r32float:{render:on,filter:an,webgpu:M0},rg32float:{render:!1,filter:an,webgpu:H|h1},"rgb32float-webgl":{render:on,filter:an},rgba32float:{render:on,filter:an,webgpu:M0},"rgba4unorm-webgl":{channels:"rgba",bitsPerChannel:[4,4,4,4],packed:!0},"rgb565unorm-webgl":{channels:"rgb",bitsPerChannel:[5,6,5,0],packed:!0},"rgb5a1unorm-webgl":{channels:"rgba",bitsPerChannel:[5,5,5,1],packed:!0},rgb9e5ufloat:{channels:"rgb",packed:!0,render:D5,webgpu:cn},rg11b10ufloat:{channels:"rgb",bitsPerChannel:[11,11,10,0],packed:!0,p:1,render:on,webgpu:cn|i0},rgb10a2unorm:{channels:"rgba",bitsPerChannel:[10,10,10,2],packed:!0,p:1,webgpu:D0|i0},rgb10a2uint:{channels:"rgba",bitsPerChannel:[10,10,10,2],packed:!0,p:1,webgpu:H|i0},stencil8:{attachment:"stencil",bitsPerChannel:[8,0,0,0],dataType:"uint8",webgpu:H},depth16unorm:{attachment:"depth",bitsPerChannel:[16,0,0,0],dataType:"uint16",webgpu:H},depth24plus:{attachment:"depth",bitsPerChannel:[24,0,0,0],dataType:"uint32",webgpu:H},depth32float:{attachment:"depth",bitsPerChannel:[32,0,0,0],dataType:"float32",webgpu:H},"depth24plus-stencil8":{attachment:"depth-stencil",bitsPerChannel:[24,8,0,0],packed:!0,webgpu:H},"depth32float-stencil8":{attachment:"depth-stencil",bitsPerChannel:[32,8,0,0],packed:!0,f:"depth32float-stencil8",webgpu:H}},G5={"bc1-rgb-unorm-webgl":{f:t0},"bc1-rgb-unorm-srgb-webgl":{f:t0},"bc1-rgba-unorm":{f:t0},"bc1-rgba-unorm-srgb":{f:t0},"bc2-rgba-unorm":{f:t0},"bc2-rgba-unorm-srgb":{f:t0},"bc3-rgba-unorm":{f:t0},"bc3-rgba-unorm-srgb":{f:t0},"bc4-r-unorm":{f:t0},"bc4-r-snorm":{f:t0},"bc5-rg-unorm":{f:t0},"bc5-rg-snorm":{f:t0},"bc6h-rgb-ufloat":{f:t0},"bc6h-rgb-float":{f:t0},"bc7-rgba-unorm":{f:t0},"bc7-rgba-unorm-srgb":{f:t0},"etc2-rgb8unorm":{f:_0},"etc2-rgb8unorm-srgb":{f:_0},"etc2-rgb8a1unorm":{f:_0},"etc2-rgb8a1unorm-srgb":{f:_0},"etc2-rgba8unorm":{f:_0},"etc2-rgba8unorm-srgb":{f:_0},"eac-r11unorm":{f:_0},"eac-r11snorm":{f:_0},"eac-rg11unorm":{f:_0},"eac-rg11snorm":{f:_0},"astc-4x4-unorm":{f:F},"astc-4x4-unorm-srgb":{f:F},"astc-5x4-unorm":{f:F},"astc-5x4-unorm-srgb":{f:F},"astc-5x5-unorm":{f:F},"astc-5x5-unorm-srgb":{f:F},"astc-6x5-unorm":{f:F},"astc-6x5-unorm-srgb":{f:F},"astc-6x6-unorm":{f:F},"astc-6x6-unorm-srgb":{f:F},"astc-8x5-unorm":{f:F},"astc-8x5-unorm-srgb":{f:F},"astc-8x6-unorm":{f:F},"astc-8x6-unorm-srgb":{f:F},"astc-8x8-unorm":{f:F},"astc-8x8-unorm-srgb":{f:F},"astc-10x5-unorm":{f:F},"astc-10x5-unorm-srgb":{f:F},"astc-10x6-unorm":{f:F},"astc-10x6-unorm-srgb":{f:F},"astc-10x8-unorm":{f:F},"astc-10x8-unorm-srgb":{f:F},"astc-10x10-unorm":{f:F},"astc-10x10-unorm-srgb":{f:F},"astc-12x10-unorm":{f:F},"astc-12x10-unorm-srgb":{f:F},"astc-12x12-unorm":{f:F},"astc-12x12-unorm-srgb":{f:F},"pvrtc-rgb4unorm-webgl":{f:sn},"pvrtc-rgba4unorm-webgl":{f:sn},"pvrtc-rgb2unorm-webgl":{f:sn},"pvrtc-rgba2unorm-webgl":{f:sn},"etc1-rgb-unorm-webgl":{f:H9},"etc1-rbg-unorm-webgl":{f:H9},"atc-rgb-unorm-webgl":{f:c1},"atc-rgba-unorm-webgl":{f:c1},"atc-rgbai-unorm-webgl":{f:c1}},z5={...F5,...G5};var $5=/^(r|rg|rgb|rgba|bgra)([0-9]*)([a-z]*)(-srgb)?(-webgl)?$/,V5=["rgb","rgba","bgra"],U5=["depth","stencil"],j5=5,W5=["bc1","bc2","bc3","bc4","bc5","bc6","bc7","etc1","etc2","eac","atc","astc","pvrtc"],y1=class{isColor(e){return V5.some(t=>e.startsWith(t))}isDepthStencil(e){return U5.some(t=>e.startsWith(t))}isCompressed(e){return W5.some(t=>e.startsWith(t))}getInfo(e){return Q9(e)}getCapabilities(e){return H5(e)}getWebGPUCapabilities(e){let t=ln(e);return t.webgpu!==void 0?t.webgpu:this.isCompressed(e)&&!e.endsWith("-webgl")?j5:0}computeMemoryLayout(e,t){return q5(e,t)}},qe=new y1;function q5({format:r,width:e,height:t,depth:n,byteAlignment:i},s={}){let o=qe.getInfo(r),{bytesPerPixel:a,blockHeight:c=1,compressed:u=!1}=o,l=x1(o,e,i),d=u?Math.ceil(t/c):t;return s.bytesPerPixel=a,s.bytesPerRow=l,s.rowsPerImage=d,s.depthOrArrayLayers=n,s.bytesPerImage=l*d,s.byteLength=s.bytesPerImage*n,s}function x1(r,e,t){let{bytesPerPixel:n,bytesPerBlock:i=n,blockWidth:s=1,compressed:o=!1}=r,a=o?Math.ceil(e/s):e;return Math.ceil(a*i/t)*t}function H5(r){let e=ln(r),t={format:r,create:e.f??!0,render:e.render??!0,filter:e.filter??!0,blend:e.blend??!0,store:e.store??!0},n=Q9(r),i=r.startsWith("depth")||r.startsWith("stencil"),s=n?.signed,o=n?.integer,a=n?.webgl,c=!!n?.compressed;return t.render&&=!i&&!c,t.filter&&=!i&&!s&&!o&&!a,t}var Z9=new Map;function Q9(r){let e=Z9.get(r);if(!e){let t=X5(r);t.bitsPerChannel=Object.freeze([...t.bitsPerChannel]),e=Object.freeze(t),Z9.set(r,e)}return e}function X5(r){let e=Y5(r);if(qe.isCompressed(r)){e.channels="rgb",e.components=3,e.bytesPerPixel=1,e.srgb=!1,e.compressed=!0,e.bytesPerBlock=Z5(r);let n=K5(r);n&&(e.blockWidth=n.blockWidth,e.blockHeight=n.blockHeight)}let t=e.packed?null:$5.exec(r);if(t){let[,n,i,s,o,a]=t,c=`${s}${i}`,u=q9.getDataTypeInfo(c),l=u.byteLength*8,d=n?.length??1,f=[l,d>=2?l:0,d>=3?l:0,d>=4?l:0];e={format:r,attachment:e.attachment,dataType:u.signedType,components:d,channels:n,integer:u.integer,signed:u.signed,normalized:u.normalized,bitsPerChannel:f,bytesPerPixel:u.byteLength*d,packed:e.packed,srgb:e.srgb},a==="-webgl"&&(e.webgl=!0),o==="-srgb"&&(e.srgb=!0)}return r.endsWith("-webgl")&&(e.webgl=!0),r.endsWith("-srgb")&&(e.srgb=!0),e}function Y5(r){let e={...ln(r)},t=e.bytesPerPixel||1,n=e.bitsPerChannel||[8,8,8,8];return delete e.bitsPerChannel,delete e.bytesPerPixel,delete e.f,delete e.render,delete e.filter,delete e.blend,delete e.store,delete e.webgpu,{...e,format:r,attachment:e.attachment||"color",channels:e.channels||"r",components:e.components||e.channels?.length||1,bytesPerPixel:t,bitsPerChannel:n,dataType:e.dataType||"uint8",srgb:e.srgb??!1,packed:e.packed??!1,webgl:e.webgl??!1,integer:e.integer??!1,signed:e.signed??!1,normalized:e.normalized??!1,compressed:e.compressed??!1}}function K5(r){let t=/.*-(\d+)x(\d+)-.*/.exec(r);if(t){let[,n,i]=t;return{blockWidth:Number(n),blockHeight:Number(i)}}return r.startsWith("bc")||r.startsWith("etc1")||r.startsWith("etc2")||r.startsWith("eac")||r.startsWith("atc")?{blockWidth:4,blockHeight:4}:r.startsWith("pvrtc-rgb4")||r.startsWith("pvrtc-rgba4")?{blockWidth:4,blockHeight:4}:r.startsWith("pvrtc-rgb2")||r.startsWith("pvrtc-rgba2")?{blockWidth:8,blockHeight:4}:null}function Z5(r){return r.startsWith("bc1")||r.startsWith("bc4")||r.startsWith("etc1")||r.startsWith("etc2-rgb8")||r.startsWith("etc2-rgb8a1")||r.startsWith("eac-r11")||r==="atc-rgb-unorm-webgl"?8:r.startsWith("bc2")||r.startsWith("bc3")||r.startsWith("bc5")||r.startsWith("bc6h")||r.startsWith("bc7")||r.startsWith("etc2-rgba8")||r.startsWith("eac-rg11")||r.startsWith("astc")||r==="atc-rgba-unorm-webgl"||r==="atc-rgbai-unorm-webgl"?16:r.startsWith("pvrtc")?8:16}function kt(r){return typeof ImageData<"u"&&r instanceof ImageData||typeof ImageBitmap<"u"&&r instanceof ImageBitmap||typeof HTMLImageElement<"u"&&r instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&r instanceof HTMLVideoElement||typeof VideoFrame<"u"&&r instanceof VideoFrame||typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement||typeof OffscreenCanvas<"u"&&r instanceof OffscreenCanvas}function dn(r){if(typeof ImageData<"u"&&r instanceof ImageData||typeof ImageBitmap<"u"&&r instanceof ImageBitmap||typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement||typeof OffscreenCanvas<"u"&&r instanceof OffscreenCanvas)return{width:r.width,height:r.height};if(typeof HTMLImageElement<"u"&&r instanceof HTMLImageElement)return{width:r.naturalWidth,height:r.naturalHeight};if(typeof HTMLVideoElement<"u"&&r instanceof HTMLVideoElement)return{width:r.videoWidth,height:r.videoHeight};if(typeof VideoFrame<"u"&&r instanceof VideoFrame)return{width:r.displayWidth,height:r.displayHeight};throw new Error("Unknown image type")}var X0=class r extends h0{static defaultProps={...h0.defaultProps,type:"color-sampler",addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge",addressModeW:"clamp-to-edge",magFilter:"nearest",minFilter:"nearest",mipmapFilter:"none",lodMinClamp:0,lodMaxClamp:32,compare:"less-equal",maxAnisotropy:1};get[Symbol.toStringTag](){return"Sampler"}constructor(e,t){t=r.normalizeProps(e,t),super(e,t,r.defaultProps)}static normalizeProps(e,t){return t}};function J9(r,e){let t=e instanceof X0?e:r.device.createSampler(e);if(t===r.sampler)return;e instanceof X0||t.transferOwnershipTo(r);let n=r.sampler;r.sampler=t,n?.owner===r&&n.destroy()}var e2=[],Q5=Object.freeze({}),J5={"1d":"1d","2d":"2d","2d-array":"2d",cube:"2d","cube-array":"2d","3d":"3d"},r0=class r extends h0{static SAMPLE=4;static STORAGE=8;static RENDER=16;static COPY_SRC=1;static COPY_DST=2;static TEXTURE=4;static RENDER_ATTACHMENT=16;dimension;baseDimension;format;width;height;depth;mipLevels;samples;byteAlignment;ready=Promise.resolve(this);isReady=!0;updateTimestamp;get[Symbol.toStringTag](){return"Texture"}toString(){return`Texture(${this.id},${this.format},${this.width}x${this.height})`}constructor(e,t,n){if(t=r.normalizeProps(e,t),super(e,t,r.defaultProps),this.dimension=this.props.dimension,this.baseDimension=J5[this.dimension],this.format=this.props.format,this.width=this.props.width,this.height=this.props.height,this.depth=this.props.depth,this.mipLevels=this.props.mipLevels,this.samples=this.props.samples||1,this.dimension==="cube"&&(this.depth=6),this.props.width===void 0||this.props.height===void 0)if(e.isExternalImage(t.data)){let i=e.getExternalImageSize(t.data);this.width=i?.width||1,this.height=i?.height||1}else this.width=1,this.height=1,(this.props.width===void 0||this.props.height===void 0)&&a0.warn(`${this} created with undefined width or height. This is deprecated. Use DynamicTexture instead.`)();this.byteAlignment=n?.byteAlignment||1,this.updateTimestamp=e.incrementTimestamp()}clone(e){return this.device.createTexture({...this.props,...e})}setSampler(e){J9(this,e)}copyImageData(e){let{data:t,depth:n,...i}=e;this.writeData(t,{...i,depthOrArrayLayers:i.depthOrArrayLayers??n})}computeMemoryLayout(e=Q5,t){let n=e2.pop()||{readOptions:{},layoutOptions:{}};try{let i=this._normalizeTextureReadOptions(e,n.readOptions),s=n.layoutOptions;return s.format=this.format,s.width=i.width,s.height=i.height,s.depth=i.depthOrArrayLayers,s.byteAlignment=this.byteAlignment,qe.computeMemoryLayout(s,t)}finally{e2.push(n)}}readBuffer(e,t){throw new Error("readBuffer not implemented")}readDataAsync(e){throw new Error("readBuffer not implemented")}writeBuffer(e,t){throw new Error("readBuffer not implemented")}writeData(e,t){throw new Error("readBuffer not implemented")}readDataSyncWebGL(e){throw new Error("readDataSyncWebGL not available")}generateMipmapsWebGL(){throw new Error("generateMipmapsWebGL not available")}static normalizeProps(e,t){let n={...t},{width:i,height:s}=n;return typeof i=="number"&&(n.width=Math.max(1,Math.ceil(i))),typeof s=="number"&&(n.height=Math.max(1,Math.ceil(s))),n}_initializeData(e){this.device.isExternalImage(e)?this.copyExternalImage({image:e,width:this.width,height:this.height,depth:this.depth,mipLevel:0,x:0,y:0,z:0,aspect:"all",colorSpace:"srgb",premultipliedAlpha:!1,flipY:!1}):e&&this.copyImageData({data:e,mipLevel:0,x:0,y:0,z:0,aspect:"all"})}_normalizeCopyImageDataOptions(e,t={}){let{data:n,depth:i,depthOrArrayLayers:s}=e;if(this._normalizeTextureWriteOptions(e,t),s===void 0&&i!==void 0){let o=this.dimension==="3d"?Math.max(1,this.depth>>t.mipLevel):this.depth;t.depthOrArrayLayers=Math.min(i,o-t.z)}return t.data=n,t.depth=t.depthOrArrayLayers,t}_normalizeCopyExternalImageOptions(e,t={}){let{width:n,height:i}=e,s=this.device.getExternalImageSize(e.image),o=r._normalizeOptions(e,r.defaultCopyExternalImageOptions,t),a=Math.max(1,this.width>>o.mipLevel),c=this.baseDimension==="1d"?1:Math.max(1,this.height>>o.mipLevel),u=this.dimension==="3d"?Math.max(1,this.depth>>o.mipLevel):this.depth;return o.width=Math.min(n??s.width,a-o.x),o.height=Math.min(i??s.height,c-o.y),o.depth=Math.min(o.depth,u-o.z),o}_normalizeCopyElementImageOptions(e,t={}){let n=r._normalizeOptions(e,r.defaultCopyElementImageOptions,t),i=Math.max(1,this.width>>n.mipLevel),s=this.baseDimension==="1d"?1:Math.max(1,this.height>>n.mipLevel),o=this.dimension==="3d"?Math.max(1,this.depth>>n.mipLevel):this.depth;return n.width=Math.min(n.width??i,i-n.x),n.height=Math.min(n.height??s,s-n.y),n.depth=Math.min(n.depth,o-n.z),n}_normalizeTextureReadOptions(e,t={}){let{depthOrArrayLayers:n}=e,i=r._normalizeOptions(e,r.defaultTextureReadOptions,t),s=Math.max(1,this.width>>i.mipLevel),o=this.baseDimension==="1d"?1:Math.max(1,this.height>>i.mipLevel),a=this.dimension==="3d"?Math.max(1,this.depth>>i.mipLevel):this.depth;return i.width=Math.min(i.width??s,s-i.x),i.height=Math.min(i.height??o,o-i.y),i.depthOrArrayLayers=Math.min(n??a,a-i.z),i}_getSupportedColorReadOptions(e){let t=this._normalizeTextureReadOptions(e),n=qe.getInfo(this.format);switch(this._validateColorReadAspect(t),this._validateColorReadFormat(n),this.dimension){case"2d":case"cube":case"cube-array":case"2d-array":case"3d":return t;default:throw new Error(`${this} color readback does not support ${this.dimension} textures`)}}_validateColorReadAspect(e){if(e.aspect!=="all")throw new Error(`${this} color readback only supports aspect 'all'`)}_validateColorReadFormat(e){if(e.compressed)throw new Error(`${this} color readback does not support compressed formats (${this.format})`);switch(e.attachment){case"color":return;case"depth":throw new Error(`${this} color readback does not support depth formats (${this.format})`);case"stencil":throw new Error(`${this} color readback does not support stencil formats (${this.format})`);case"depth-stencil":throw new Error(`${this} color readback does not support depth-stencil formats (${this.format})`);default:throw new Error(`${this} color readback does not support format ${this.format}`)}}_normalizeTextureWriteOptions(e,t={}){let{byteOffset:n=0,bytesPerRow:i,rowsPerImage:s}=e;this._normalizeTextureReadOptions(e,t);let o=t;o.byteOffset=n;let a=this.device.getTextureFormatInfo(this.format),c=a.bytesPerPixel*o.width;if(o.bytesPerRow=i??x1(a,o.width,this.byteAlignment),o.rowsPerImage=s??o.height,o.bytesPerRow<c)throw new Error(`bytesPerRow (${o.bytesPerRow}) must be at least ${c} for ${this.format}`);if(o.rowsPerImage<o.height)throw new Error(`rowsPerImage (${o.rowsPerImage}) must be at least ${o.height} for ${this.format}`);let{bytesPerPixel:u}=a;if(u&&o.bytesPerRow%u!==0)throw new Error(`bytesPerRow (${o.bytesPerRow}) must be a multiple of bytesPerPixel (${u}) for ${this.format}`);return o}_getMipLevelSize(e){let t=Math.max(1,this.width>>e),n=this.baseDimension==="1d"?1:Math.max(1,this.height>>e),i=this.dimension==="3d"?Math.max(1,this.depth>>e):this.depth;return{width:t,height:n,depthOrArrayLayers:i}}getAllocatedByteLength(){let e=0;for(let t=0;t<this.mipLevels;t++){let{width:n,height:i,depthOrArrayLayers:s}=this._getMipLevelSize(t);e+=qe.computeMemoryLayout({format:this.format,width:n,height:i,depth:s,byteAlignment:1}).byteLength}return e*this.samples}static _normalizeOptions(e,t,n){for(let i in t)n[i]=e[i]===void 0?t[i]:e[i];return n}static defaultProps={...h0.defaultProps,data:null,dimension:"2d",format:"rgba8unorm",usage:r.SAMPLE|r.RENDER|r.COPY_DST,width:void 0,height:void 0,depth:1,mipLevels:1,samples:void 0,sampler:{},view:void 0};static defaultCopyDataOptions={data:void 0,byteOffset:0,bytesPerRow:void 0,rowsPerImage:void 0,width:void 0,height:void 0,depthOrArrayLayers:void 0,depth:1,mipLevel:0,x:0,y:0,z:0,aspect:"all"};static defaultCopyExternalImageOptions={image:void 0,sourceX:0,sourceY:0,width:void 0,height:void 0,depth:1,mipLevel:0,x:0,y:0,z:0,aspect:"all",colorSpace:"srgb",premultipliedAlpha:!1,flipY:!1};static defaultCopyElementImageOptions={element:void 0,width:void 0,height:void 0,sourceX:0,sourceY:0,sourceWidth:void 0,sourceHeight:void 0,depth:1,mipLevel:0,x:0,y:0,z:0,aspect:"all",colorSpace:"srgb",premultipliedAlpha:!1,flipY:!1};static defaultTextureReadOptions={x:0,y:0,z:0,width:void 0,height:void 0,depthOrArrayLayers:1,mipLevel:0,aspect:"all"}};function fn(r,e,t){let n=r.bindings.find(i=>i.name===e||`${i.name.toLocaleLowerCase()}uniforms`===e.toLocaleLowerCase());return!n&&!t?.ignoreWarnings&&a0.warn(`Binding ${e} not set: Not found in shader layout.`)(),n||null}var r8=A0.DEBUG_DATA_MAX_LENGTH,$=class{device;id;ready;usage;props;isReady=!0;destroyed=!1;generation=0;updateTimestamp;debugData=new ArrayBuffer(0);_debugDataEnabled;_maxDebugDataByteLength;_ownsBuffer;_buffer;get buffer(){return this._buffer}get byteLength(){return this._buffer.byteLength}get[Symbol.toStringTag](){return"DynamicBuffer"}toString(){return`DynamicBuffer:"${this.id}":${this.byteLength}B`}toJSON(){return this.toString()}constructor(e,t){let{debugData:n=!1,buffer:i,ownsBuffer:s=!0,...o}=t;if(i&&i.device!==e)throw new Error("DynamicBuffer adopted buffers must belong to the supplied device");if(i&&(o.byteLength!==void 0||o.data!==void 0))throw new Error("DynamicBuffer cannot combine an adopted buffer with byteLength or data");let a=t.id||i?.id||Ve("dynamic-buffer"),c={...o,id:a,usage:o.usage??i?.usage,indexType:o.indexType??i?.indexType};(c.usage||0)&A0.INDEX&&!c.indexType&&(o.data instanceof Uint32Array?c.indexType="uint32":o.data instanceof Uint16Array?c.indexType="uint16":o.data instanceof Uint8Array&&(c.indexType="uint8")),delete c.data,delete c.byteOffset,this.device=e,this.id=a,this.props=c,this.usage=c.usage||0,this._debugDataEnabled=!!n,this._maxDebugDataByteLength=typeof n=="object"&&n.maxByteLength!==void 0?n.maxByteLength:r8,this._ownsBuffer=s,this._buffer=i??this.device.createBuffer({...o,id:a}),this.ready=Promise.resolve(this._buffer),this.updateTimestamp=this._buffer.updateTimestamp,this._resetDebugData(this._buffer.byteLength),o.data&&this._writeDebugData(o.data,o.byteOffset||0)}write(e,t=0){this._buffer.write(e,t),this._touch(),this._writeDebugData(e,t)}async mapAndWriteAsync(e,t=0,n=this.byteLength-t){let i=null;await this._buffer.mapAndWriteAsync(async(s,o)=>{await e(s,o),i=new Uint8Array(s.slice(0,n))},t,n),this._touch(),i&&this._writeDebugData(i,t)}async readAsync(e=0,t=this.byteLength-e){let n=await this._buffer.readAsync(e,t);return this._writeDebugData(n,e)&&this._touch(),n}async mapAndReadAsync(e,t=0,n=this.byteLength-t){let i=null,s=await this._buffer.mapAndReadAsync(async(o,a)=>(i=new Uint8Array(o.slice(0)),await e(o,a)),t,n);return i&&this._writeDebugData(i,t)&&this._touch(),s}resize(e){let{byteLength:t,preserveData:n=!1}=e;if(t===this.byteLength)return!1;let i=Math.min(e.copyByteLength??Math.min(this.byteLength,t),this.byteLength,t),s=this._buffer,o=this.debugData.slice(0),{data:a,byteOffset:c,...u}=this.props,l=this.device.createBuffer({...u,byteLength:t});return n&&i>0&&this._copyBufferContents(s,l,i),this._buffer=l,this._resetDebugData(t),n&&o.byteLength>0&&this._writeDebugData(o,0),this._ownsBuffer&&s.destroy(),this._ownsBuffer=!0,this.generation++,this._touch(),!0}ensureSize(e,t){return e<=this.byteLength?!1:this.resize({byteLength:e,preserveData:t?.preserveData})}getBinding(e){return e?.offset===void 0&&e?.size===void 0?this._buffer:{buffer:this._buffer,offset:e?.offset,size:e?.size}}destroy(){this.destroyed||(this._ownsBuffer&&this._buffer.destroy(),this.destroyed=!0,this.debugData=new ArrayBuffer(0))}_copyBufferContents(e,t,n){let i=this.device.type==="webgpu"?Math.ceil(n/4)*4:n,s=this.device.createCommandEncoder();s.copyBufferToBuffer({sourceBuffer:e,destinationBuffer:t,size:i}),this.device.submit(s.finish())}_touch(){this.updateTimestamp=this.device.incrementTimestamp()}_resetDebugData(e){if(!this._debugDataEnabled){this.debugData=new ArrayBuffer(0);return}this.debugData=new ArrayBuffer(Math.min(e,this._maxDebugDataByteLength))}_writeDebugData(e,t){if(!this._debugDataEnabled||this.debugData.byteLength===0||t>=this.debugData.byteLength)return!1;let n=ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e),i=new Uint8Array(this.debugData),s=Math.min(n.byteLength,i.byteLength-t);return i.set(n.subarray(0,s),t),s>0}};function O0(r){return r!==null&&typeof r=="object"&&"buffer"in r}function hn(r){return r instanceof $?r:O0(r)&&r.buffer instanceof $?r.buffer:null}function b1(r){return r instanceof $?r.buffer:r}function He(r){return{buffer:b1(r.buffer),offset:r.offset,size:r.size}}var v1={"+X":0,"-X":1,"+Y":2,"-Y":3,"+Z":4,"-Z":5};function Ft(r){return r?Array.isArray(r)?r[0]??null:r:null}function t2(r){let{dimension:e,data:t}=r;if(!t)return null;switch(e){case"1d":{let n=Ft(t);if(!n)return null;let{width:i}=Gt(n);return{width:i,height:1}}case"2d":{if(ArrayBuffer.isView(t))return null;let n=Ft(t);return n?Gt(n):null}case"3d":case"2d-array":{if(!Array.isArray(t)||t.length===0)return null;let n=Ft(t[0]);return n?Gt(n):null}case"cube":{let n=Object.keys(t)[0]??null;if(!n)return null;let i=t[n],s=Ft(i);return s?Gt(s):null}case"cube-array":{if(!Array.isArray(t)||t.length===0)return null;let n=t[0],i=Object.keys(n)[0]??null;if(!i)return null;let s=Ft(n[i]);return s?Gt(s):null}default:return null}}function Gt(r){if(kt(r))return dn(r);if(typeof r=="object"&&"width"in r&&"height"in r)return{width:r.width,height:r.height};throw new Error("Unsupported mip-level data")}function n8(r){return typeof r=="object"&&r!==null&&"data"in r&&"width"in r&&"height"in r}function i8(r){return ArrayBuffer.isView(r)}function T1(r){let{textureFormat:e,format:t}=r;if(e&&t&&e!==t)throw new Error(`Conflicting texture formats "${e}" and "${t}" provided for the same mip level`);return e??t}function r2(r){let e=v1[r];if(e===void 0)throw new Error(`Invalid cube face: ${r}`);return e}function s8(r,e){return 6*r+r2(e)}function S1(r){throw new Error("setTexture1DData not supported in WebGL.")}function o8(r){return Array.isArray(r)?r:[r]}function le(r,e,t,n){let i=o8(e),s=r,o=[];for(let a=0;a<i.length;a++){let c=i[a];if(kt(c))o.push({type:"external-image",image:c,z:s,mipLevel:a});else if(n8(c))o.push({type:"texture-data",data:c,textureFormat:T1(c),z:s,mipLevel:a});else if(i8(c)&&t)o.push({type:"texture-data",data:{data:c,width:Math.max(1,t.width>>a),height:Math.max(1,t.height>>a),...n?{format:n}:{}},textureFormat:n,z:s,mipLevel:a});else throw new Error("Unsupported 2D mip-level payload")}return o}function w1(r){let e=[];for(let t=0;t<r.length;t++)e.push(...le(t,r[t]));return e}function I1(r){let e=[];for(let t=0;t<r.length;t++)e.push(...le(t,r[t]));return e}function A1(r){let e=[];for(let[t,n]of Object.entries(r)){let i=r2(t);e.push(...le(i,n))}return e}function _1(r){let e=[];return r.forEach((t,n)=>{for(let[i,s]of Object.entries(t)){let o=s8(n,i);e.push(...le(o,s))}}),e}var c0=class r{device;id;props;_texture=null;_sampler=null;_view=null;ready;isReady=!1;destroyed=!1;generation=0;updateTimestamp;resolveReady=()=>{};rejectReady=()=>{};get texture(){if(!this._texture)throw new Error("Texture not initialized yet");return this._texture}get sampler(){if(!this._sampler)throw new Error("Sampler not initialized yet");return this._sampler}get view(){if(!this._view)throw new Error("View not initialized yet");return this._view}get[Symbol.toStringTag](){return"DynamicTexture"}toString(){let e=this._texture?.width??this.props.width??"?",t=this._texture?.height??this.props.height??"?";return`DynamicTexture:"${this.id}":${e}x${t}px:(${this.isReady?"ready":"loading..."})`}resolveTextureBinding(e){return this.isReady?this.texture:null}constructor(e,t){this.device=e;let n=Ve("dynamic-texture"),i=t;this.props={...r.defaultProps,id:n,...t,data:null},this.id=this.props.id,this.ready=new Promise((s,o)=>{this.resolveReady=s,this.rejectReady=o}),this.updateTimestamp=this.device.incrementTimestamp(),this.initAsync(i)}async initAsync(e){try{let t=await this._loadAllData(e);this._checkNotDestroyed();let n=t.data?a8({...t,width:e.width,height:e.height,format:e.format}):[],i="format"in e&&e.format!==void 0,s="usage"in e&&e.usage!==void 0,a=(()=>{if(this.props.width&&this.props.height)return{width:this.props.width,height:this.props.height};let m=t2(t);return m||{width:this.props.width||1,height:this.props.height||1}})();if(!a||a.width<=0||a.height<=0)throw new Error(`${this} size could not be determined or was zero`);let c=c8(this.device,n,a,{format:i?e.format:void 0}),u=c.format??this.props.format,l={...this.props,...a,format:u,mipLevels:1,data:void 0};this.device.isTextureFormatCompressed(u)&&!s&&(l.usage=r0.SAMPLE|r0.COPY_DST);let d=this.props.mipmaps&&!c.hasExplicitMipChain&&!this.device.isTextureFormatCompressed(u);if(this.device.type==="webgpu"&&d){let m=this.props.dimension==="3d"?r0.SAMPLE|r0.STORAGE|r0.COPY_DST|r0.COPY_SRC:r0.SAMPLE|r0.RENDER|r0.COPY_DST|r0.COPY_SRC;l.usage|=m}let f=this.device.getMipLevelCount(l.width,l.height),h=c.hasExplicitMipChain?c.mipLevels:this.props.mipLevels==="auto"?f:Math.max(1,Math.min(f,this.props.mipLevels??1)),p={...l,mipLevels:h};this._texture=this.device.createTexture(p),this._sampler=this.texture.sampler,this._view=this.texture.view,this._touchGeneration(),c.subresources.length&&this._setTextureSubresources(c.subresources),this.props.mipmaps&&!c.hasExplicitMipChain&&!d&&a0.warn(`${this} skipping auto-generated mipmaps for compressed texture format`)(),d&&this.generateMipmaps(),this.isReady=!0,this.resolveReady(this.texture),a0.info(1,`${this} created`)()}catch(t){let n=t instanceof Error?t:new Error(String(t));this.rejectReady(n)}}destroy(){this._texture&&(this._texture.destroy(),this._texture=null,this._sampler=null,this._view=null),this.isReady=!1,this.destroyed=!0}generateMipmaps(){this.device.type==="webgl"?(this.texture.generateMipmapsWebGL(),this._touch()):this.device.type==="webgpu"?(this.device.generateMipmapsWebGPU(this.texture),this._touch()):a0.warn(`${this} mipmaps not supported on ${this.device.type}`)}setSampler(e={}){this._checkReady();let t=e instanceof X0?e:this.device.createSampler(e);this.texture.setSampler(t),this._sampler=t,this._touchGeneration()}async readBuffer(e={}){this.isReady||await this.ready;let t=e.width??this.texture.width,n=e.height??this.texture.height,i=e.depthOrArrayLayers??this.texture.depth,s=this.texture.computeMemoryLayout({width:t,height:n,depthOrArrayLayers:i}),o=this.device.createBuffer({byteLength:s.byteLength,usage:A0.COPY_DST|A0.MAP_READ});this.texture.readBuffer({...e,width:t,height:n,depthOrArrayLayers:i},o);let a=this.device.createFence();return await a.signaled,a.destroy(),o}async readAsync(e={}){this.isReady||await this.ready;let t=e.width??this.texture.width,n=e.height??this.texture.height,i=e.depthOrArrayLayers??this.texture.depth,s=this.texture.computeMemoryLayout({width:t,height:n,depthOrArrayLayers:i}),o=await this.readBuffer(e),a=await o.readAsync(0,s.byteLength);return o.destroy(),a.buffer instanceof ArrayBuffer?a.buffer:a.slice().buffer}resize(e){if(this._checkReady(),e.width===this.texture.width&&e.height===this.texture.height)return!1;let t=this.texture;return this._texture=t.clone(e),this._sampler=this.texture.sampler,this._view=this.texture.view,t.destroy(),this._touchGeneration(),a0.info(`${this} resized`),!0}getCubeFaceIndex(e){let t=v1[e];if(t===void 0)throw new Error(`Invalid cube face: ${e}`);return t}getCubeArrayFaceIndex(e,t){return 6*e+this.getCubeFaceIndex(t)}setTexture1DData(e){if(this._checkReady(),this.texture.props.dimension!=="1d")throw new Error(`${this} is not 1d`);let t=S1(e);this._setTextureSubresources(t)}setTexture2DData(e,t=0){if(this._checkReady(),this.texture.props.dimension!=="2d")throw new Error(`${this} is not 2d`);let n=le(t,e);this._setTextureSubresources(n)}setTexture3DData(e){if(this.texture.props.dimension!=="3d")throw new Error(`${this} is not 3d`);let t=w1(e);this._setTextureSubresources(t)}setTextureArrayData(e){if(this.texture.props.dimension!=="2d-array")throw new Error(`${this} is not 2d-array`);let t=I1(e);this._setTextureSubresources(t)}setTextureCubeData(e){if(this.texture.props.dimension!=="cube")throw new Error(`${this} is not cube`);let t=A1(e);this._setTextureSubresources(t)}setTextureCubeArrayData(e){if(this.texture.props.dimension!=="cube-array")throw new Error(`${this} is not cube-array`);let t=_1(e);this._setTextureSubresources(t)}_setTextureSubresources(e){for(let t of e){let{z:n,mipLevel:i}=t;switch(t.type){case"external-image":let{image:s,flipY:o}=t;this.texture.copyExternalImage({image:s,z:n,mipLevel:i,flipY:o});break;case"texture-data":let{data:a,textureFormat:c}=t;if(c&&c!==this.texture.format)throw new Error(`${this} mip level ${i} uses format "${c}" but texture format is "${this.texture.format}"`);this.texture.writeData(a.data,{x:0,y:0,z:n,width:a.width,height:a.height,depthOrArrayLayers:1,mipLevel:i});break;default:throw new Error("Unsupported 2D mip-level payload")}}e.length>0&&this._touch()}async _loadAllData(e){let t=await M1(e.data);return{dimension:e.dimension??"2d",data:t??null}}_checkNotDestroyed(){this.destroyed&&a0.warn(`${this} already destroyed`)}_checkReady(){this.isReady||a0.warn(`${this} Cannot perform this operation before ready`)}_touch(){this.updateTimestamp=this.device.incrementTimestamp()}_touchGeneration(){this.generation++,this._touch()}static defaultProps={...r0.defaultProps,dimension:"2d",data:null,mipmaps:!1}};function a8(r){if(!r.data)return[];let e=r.width&&r.height?{width:r.width,height:r.height}:void 0,t="format"in r?r.format:void 0;switch(r.dimension){case"1d":return S1(r.data);case"2d":return le(0,r.data,e,t);case"3d":return w1(r.data);case"2d-array":return I1(r.data);case"cube":return A1(r.data);case"cube-array":return _1(r.data);default:throw new Error(`Unhandled dimension ${r.dimension}`)}}function c8(r,e,t,n){if(e.length===0)return{subresources:e,mipLevels:1,format:n.format,hasExplicitMipChain:!1};let i=new Map;for(let l of e){let d=i.get(l.z)??[];d.push(l),i.set(l.z,d)}let s=e.some(l=>l.mipLevel>0),o=n.format,a=Number.POSITIVE_INFINITY,c=[];for(let[l,d]of i){let f=[...d].sort((v,T)=>v.mipLevel-T.mipLevel),h=f[0];if(!h||h.mipLevel!==0)throw new Error(`DynamicTexture: slice ${l} is missing mip level 0`);let p=i2(r,h);if(p.width!==t.width||p.height!==t.height)throw new Error(`DynamicTexture: slice ${l} base level dimensions ${p.width}x${p.height} do not match expected ${t.width}x${t.height}`);let m=n2(h);if(m){if(o&&o!==m)throw new Error(`DynamicTexture: slice ${l} base level format "${m}" does not match texture format "${o}"`);o=m}let g=o&&r.isTextureFormatCompressed(o)?u8(r,p.width,p.height,o):r.getMipLevelCount(p.width,p.height),b=0;for(let v=0;v<f.length;v++){let T=f[v];if(!T||T.mipLevel!==v||v>=g)break;let S=i2(r,T),y=Math.max(1,p.width>>v),x=Math.max(1,p.height>>v);if(S.width!==y||S.height!==x)break;let w=n2(T);if(w&&(o||(o=w),w!==o))break;b++,c.push(T)}a=Math.min(a,b)}let u=Number.isFinite(a)?Math.max(1,a):1;return{subresources:c.filter(l=>l.mipLevel<u),mipLevels:u,format:o,hasExplicitMipChain:s}}function n2(r){if(r.type==="texture-data")return r.textureFormat??T1(r.data)}function i2(r,e){switch(e.type){case"external-image":return r.getExternalImageSize(e.image);case"texture-data":return{width:e.data.width,height:e.data.height};default:throw new Error("Unsupported texture subresource")}}function u8(r,e,t,n){let{blockWidth:i=1,blockHeight:s=1}=r.getTextureFormatInfo(n),o=1;for(let a=1;;a++){let c=Math.max(1,e>>a),u=Math.max(1,t>>a);if(c<i||u<s)break;o++}return o}async function M1(r){if(r=await r,Array.isArray(r))return await Promise.all(r.map(M1));if(r&&typeof r=="object"&&r.constructor===Object){let e=r,t=await Promise.all(Object.values(e).map(M1)),n=Object.keys(e),i={};for(let s=0;s<n.length;s++)i[n[s]]=t[s];return i}return r}function v0(r){return r!==null&&typeof r=="object"&&"resolveTextureBinding"in r&&typeof r.resolveTextureBinding=="function"}function s2(r){return r?.type==="texture"||r?.type==="external-texture"}function zt(r,e,t){let n=fn(r,e,{ignoreWarnings:!0});return s2(n)?n:r.bindings.length===0&&t?.fallbackGroup!==void 0?{type:"texture",name:e,group:t.fallbackGroup,location:0}:null}var E0=2,f8=1e4,E1="render pipeline initialization failed",h8=["stencil8","depth16unorm","depth24plus","depth24plus-stencil8","depth32float","depth32float-stencil8"],p0=class r{static async createAsync(e,t){let n=!E.PipelineFactory.getAsyncCompilation(e),i=n?E.PipelineFactory.beginAsyncCompilation(e):E.PipelineFactory.getAsyncCompilation(e),s;try{s=new this(e,t)}finally{n&&E.PipelineFactory.endAsyncCompilation(e,i)}try{return n?await Promise.all(i):await s._pipelineInitialization,s}catch(o){throw s.destroy(),o}}static defaultProps={...E.RenderPipeline.defaultProps,inferDrawCount:"no",enforceMatchingVectorLengths:!0,geometry:null,attributeVectors:void 0,source:void 0,sourceLanguage:void 0,vs:null,fs:null,id:"unnamed",handle:void 0,userData:{},defines:{},modules:[],plugins:[],indexBuffer:null,indexCount:void 0,firstVertex:0,firstIndex:0,attributes:{},constantAttributes:{},bindings:{},uniforms:{},varyings:[],isInstanced:void 0,instanceCount:0,vertexCount:0,shaderInputs:void 0,pipelineFactory:void 0,shaderFactory:void 0,transformFeedback:void 0,shaderAssembler:void 0,debugShaders:void 0,disableWarnings:void 0};device;id;source;vs;fs;pipelineFactory;shaderFactory;userData={};parameters;topology;bufferLayout;isInstanced=void 0;instanceCount=0;vertexCount;indexCount;firstVertex;firstIndex;indexBuffer=null;bufferAttributes={};constantAttributes={};bindings={};vertexArray;transformFeedback=null;pipeline;shaderInputs;_uniformStore;_attributeInfos={};props;batchUniformBuffer;geometryVectorBindings;attributeVectorBindings;explicitBufferLayout=[];constructorDrawCounts;constructorDrawOffsets;drawingVectorBatches=!1;indexVector=null;currentAttributes={};currentAttributeByteOffsets={};_dynamicIndexBufferSource=null;_dynamicAttributeBufferSources={};_colorAttachmentFormats;_depthStencilAttachmentFormat;_pipelineNeedsUpdate="newly created";_needsRedraw="initializing";_drawBlockedReason=!1;_destroyed=!1;_vertexCountSet=!1;_lastDrawTimestamp=-1;_bindingTable=[];_pipelineInitialization;get[Symbol.toStringTag](){return"Model"}toString(){return`Model(${this.id})`}constructor(e,t){this.constructorDrawOffsets={firstVertex:t.firstVertex,firstIndex:t.firstIndex};let n=this.constructor.defaultProps;this.constructorDrawCounts={vertexCount:t.vertexCount??(n.vertexCount||void 0),instanceCount:t.instanceCount??(n.instanceCount||void 0)};let i=n.shaderAssembler,s=Object.hasOwn(t,"vertexCount");this.props={...n,...t,shaderAssembler:t.shaderAssembler??(i&&P1(i,e.info.shadingLanguage)?i:e.info.shadingLanguage==="wgsl"?new $0:new At)},this._vertexCountSet=s,t=this.props,this.id=t.id||J("model"),this.device=e,Object.assign(this.userData,t.userData),this.vertexCount=this.props.vertexCount,this.indexCount=this.props.indexCount,this.firstVertex=this.props.firstVertex,this.firstIndex=this.props.firstIndex,this.instanceCount=this.props.instanceCount,this.topology=this.props.topology,this.bufferLayout=this.props.bufferLayout,this.parameters=this.props.parameters,this._colorAttachmentFormats=this.props.colorAttachmentFormats,this._depthStencilAttachmentFormat=this.props.depthStencilAttachmentFormat,this.isInstanced=t.isInstanced??(t.instanceCount?!0:void 0),this.explicitBufferLayout=this.bufferLayout,this.geometryVectorBindings=new Pt(e,`${this.id}-geometry`),this.attributeVectorBindings=new Pt(e,`${this.id}-attributes`);try{this._initializeProps(t);let o=ce(e),a=(0,pn.resolveShaderPlugins)(this.props.plugins,o.shaderLanguage),c=(0,pn.mergeShaderPluginModules)(this.props.modules,a.modules),u=Object.fromEntries(c.map(m=>[m.name,m])),l=t.shaderInputs||new e0(u,{disableWarnings:this.props.disableWarnings});t.shaderInputs&&a.modules.length>0&&l.addModules(a.modules),this.setShaderInputs(l);let d=Yr(this.props.modules,l.getModules()),f={...a.defines,...this.props.defines};if(this.device.type==="webgl"&&(this.props._uniformBlockLayouts=w9(d)),this.props.shaderLayout=Ge(this.props.shaderLayout,d)||null,this.device.type==="webgpu"&&this.props.source){let m=this.props.shaderAssembler;(0,E.assert)(P1(m,"wgsl"));let{source:g,getUniforms:b,bindingTable:v,entryPoints:T={},shaderLayout:S}=m.assembleWGSLShader({platformInfo:o,...this.props,modules:d,defines:f,pluginInjectionTargets:a.injectionTargets,pluginInjections:a.injections,pluginVertexInputs:a.vertexInputs,pluginInterStageVariables:a.interStageVariables});this.source=g,this.props.vertexEntryPoint=T.vertex||this.props.vertexEntryPoint,this.props.fragmentEntryPoint=T.fragment||this.props.fragmentEntryPoint,this._getModuleUniforms=b,this._bindingTable=v;let y=S??e.getShaderLayout?.(this.source),x=p8(y,a.vertexInputs),w=S9(this.props.shaderLayout,x,Object.keys(a.vertexInputs));this.props.shaderLayout=Ge(w||null,d)||null}else{let m=this.props.shaderAssembler;(0,E.assert)(P1(m,"glsl"));let{vs:g,fs:b,getUniforms:v}=m.assembleGLSLShaderPair({platformInfo:o,...this.props,modules:d,defines:f,pluginInjectionTargets:a.injectionTargets,pluginInjections:a.injections,pluginVertexInputs:a.vertexInputs,pluginInterStageVariables:a.interStageVariables});this.vs=g,this.fs=b,this._getModuleUniforms=v,this._bindingTable=[]}this.pipelineFactory=t.pipelineFactory||E.PipelineFactory.getDefaultPipelineFactory(this.device),this.shaderFactory=t.shaderFactory||E.ShaderFactory.getDefaultShaderFactory(this.device);let p=E.PipelineFactory.getAsyncCompilation(this.device);p?(this._pipelineInitialization=this._initializePipelineAsync(t),p.push(this._pipelineInitialization)):(this.pipeline=this._updatePipeline(),this._initializePipelineResources(t))}catch(o){try{r.prototype.destroy.call(this)}finally{throw o}}}_initializeProps(e){e.geometry&&this.setGeometry(e.geometry),e.attributeVectors&&this.setAttributeVectors(e.attributeVectors)}_usesManagedUniformBuffer(e){return!0}async _initializePipelineAsync(e){await this._updatePipelineAsync(),this._initializePipelineResources(e)}_initializeAttributes(){this.applyVectorAttributes(),this.indexVector&&this.bindIndexVector()}_initializePipelineResources(e){this.vertexArray=this.device.createVertexArray({shaderLayout:this.pipeline.shaderLayout,bufferLayout:this.pipeline.bufferLayout}),this._initializeAttributes(),e.indexBuffer&&this.setIndexBuffer(e.indexBuffer),e.indexCount!==void 0&&this.setIndexCount(e.indexCount),this.constructorDrawOffsets.firstVertex!==void 0&&(this.firstVertex=this.constructorDrawOffsets.firstVertex),this.constructorDrawOffsets.firstIndex!==void 0&&(this.firstIndex=this.constructorDrawOffsets.firstIndex),e.isInstanced!==void 0&&(this.isInstanced=e.isInstanced),this.constructorDrawCounts.instanceCount!==void 0&&this.setInstanceCount(this.constructorDrawCounts.instanceCount),this.constructorDrawCounts.vertexCount!==void 0&&this.setVertexCount(this.constructorDrawCounts.vertexCount),e.attributes&&this.setAttributes(e.attributes),e.constantAttributes&&this.setConstantAttributes(e.constantAttributes),e.bindings&&this.setBindings(e.bindings),e.transformFeedback&&(this.transformFeedback=e.transformFeedback)}destroy(){this._destroyed||(this.pipeline&&(this.pipelineFactory.release(this.pipeline),this.shaderFactory.release(this.pipeline.vs),this.pipeline.fs&&this.pipeline.fs!==this.pipeline.vs&&this.shaderFactory.release(this.pipeline.fs)),this.vertexArray?.destroy(),this.geometryVectorBindings.destroy(),this.attributeVectorBindings.destroy(),this._uniformStore?.destroy(),this.batchUniformBuffer?.destroy(),this._destroyed=!0)}needsRedraw(){this._getBindingsUpdateTimestamp()>this._lastDrawTimestamp&&this.setNeedsRedraw("contents of bound textures or buffers updated");let e=this._needsRedraw;return this._needsRedraw=!1,e}setNeedsRedraw(e){this._needsRedraw||=e}getBindingDebugTable(){return this._bindingTable}predraw(e){this._syncDynamicBuffers(),this.updateShaderInputs(e),this.pipeline=this._updatePipeline()}draw(e,t){return t?.parameters?this._withDrawParameters(e,t.parameters,()=>this._draw(e)):this._draw(e)}_withDrawParameters(e,t,n){let i=e.getParameters();try{return e.setParameters(t),n()}finally{e.setParameters(i)}}_draw(e){if(this.indexVector?.length===0)return this._lastDrawTimestamp=this.device.timestamp,this._needsRedraw=!1,!0;if(!this.drawingVectorBatches&&(this.geometryVectorBindings.batchCount!==1||this.attributeVectorBindings.batchCount!==1))return this.drawVectorGroups(e);if(this._drawBlockedReason&&!this._pipelineNeedsUpdate)return E.log.info(E0,`>>> DRAWING ABORTED ${this.id}: ${this._drawBlockedReason}`)(),!1;let t=this._areBindingsLoading();if(t)return E.log.info(E0,`>>> DRAWING ABORTED ${this.id}: ${t} not loaded`)(),!1;this._syncAttachmentFormats(e);try{e.pushDebugGroup(`${this}.predraw(${e})`),this.device.type==="webgpu"?(this.updateShaderInputs(),this._syncDynamicBuffers(),this.pipeline=this._updatePipeline()):this.predraw(this.device.commandEncoder)}finally{e.popDebugGroup()}let n,i=this.pipeline.isErrored;try{if(e.pushDebugGroup(`${this}.draw(${e})`),this._logDrawCallStart(),this.pipeline=this._updatePipeline(),i=this.pipeline.isErrored,i)E.log.info(E0,`>>> DRAWING ABORTED ${this.id}: ${E1}`)(),n=!1;else{let s=this.vertexArray.getDrawValidationError();if(s)E.log.info(E0,`>>> DRAWING ABORTED ${this.id}: ${s}`)(),this._drawBlockedReason=s,n=!1;else{let o=this._getCurrentShaderLayout(),a=this._getBindings(o),c=this._getBindGroups(o,a),{indexBuffer:u}=this.vertexArray,l=u?this.indexCount??(this._vertexCountSet?this.vertexCount:u.byteLength/(u.indexType==="uint32"?4:2)):void 0;e.setPipeline(this.pipeline),e.setBindings(c,{_bindGroupCacheKeys:this._getBindGroupCacheKeys()}),e.setVertexArray(this.vertexArray),n=this.isInstanced===!0&&this.instanceCount===0?!0:e.draw({isInstanced:this.isInstanced,vertexCount:this.vertexCount,instanceCount:this.isInstanced?this.instanceCount:void 0,indexCount:l,firstVertex:this.firstVertex,firstIndex:this.firstIndex,transformFeedback:this.transformFeedback||void 0,uniforms:this.props.uniforms,parameters:this.parameters,topology:this.topology})}}}finally{e.popDebugGroup(),this._logDrawCallEnd()}return this._logFramebuffer(e),n?(this._lastDrawTimestamp=this.device.timestamp,this._needsRedraw=!1):i?(this._needsRedraw=E1,this._drawBlockedReason=E1):this._drawBlockedReason?this._needsRedraw=this._drawBlockedReason:this._needsRedraw="waiting for resource initialization",n}setGeometry(e){e&&this.setTopology(e.topology),this.setGeometryVectors(e?.attributes??{},e?.bufferLayout),this.setIndexVector(e?.indices??null),e?.vertexCount!==void 0&&this.setVertexCount(e.vertexCount)}setGeometryVectors(e,t){t??=this.getExplicitVectorLayouts(e)??this.getExplicitVectorLayouts(e,this.geometryVectorBindings.sourceLayouts),this.validateVectorLengthPolicy(),this.props.enforceMatchingVectorLengths&&C0(e),this.props.enforceMatchingVectorLengths&&(!this.isInstanced||this.attributeVectorBindings.vertexCount!==void 0)&&C0([...Object.values(e),...Object.values(this.attributeVectorBindings.inputs)]),this.geometryVectorBindings.setInputs(e,t,"vertex",this.props.enforceMatchingVectorLengths),this.claimVectorLayouts(this.geometryVectorBindings),this.syncVectorBindings();let n=this.geometryVectorBindings.rowCount;(0,E.assert)(n===void 0||this.attributeVectorBindings.vertexCount===void 0||n===this.attributeVectorBindings.vertexCount),this.props.inferDrawCount==="vertex"&&this.setVertexCount(n??this.attributeVectorBindings.vertexCount??0)}setAttributeVectors(e,t){t??=this.getExplicitVectorLayouts(e)??this.getExplicitVectorLayouts(e,this.attributeVectorBindings.sourceLayouts),this.isInstanced===void 0&&(t?.some(s=>s.stepMode==="instance")||Object.values(e).some(s=>s&&"data"in s&&s.bufferLayout?.stepMode==="instance"))&&(this.isInstanced=!0);let n=!this.isInstanced||Object.entries(e).some(([s,o])=>o&&"data"in o&&(t?.find(a=>a.name===s||a.attributes?.some(c=>c.attribute===s))?.stepMode??o.bufferLayout?.stepMode)==="vertex");this.validateVectorLengthPolicy(),n&&this.props.enforceMatchingVectorLengths&&C0([...Object.values(this.geometryVectorBindings.inputs),...Object.values(e)]),this.attributeVectorBindings.setInputs(e,t,this.isInstanced?"instance":"vertex",this.props.enforceMatchingVectorLengths),this.claimVectorLayouts(this.attributeVectorBindings),this.syncVectorBindings(),this.props.inferDrawCount==="instance"&&this.attributeVectorBindings.instanceCount!==void 0&&this.setInstanceCount(this.attributeVectorBindings.instanceCount);let i=this.attributeVectorBindings.vertexCount;if(i!==void 0&&this.props.inferDrawCount==="vertex"){let s=this.geometryVectorBindings.rowCount;(0,E.assert)(s===void 0||s===i),s===void 0&&this.setVertexCount(i)}}setGPUAttributes(e,t){this.setAttributeVectors(e,t)}setIndexVector(e){e&&((0,E.assert)(e.format==="uint8"||e.format==="uint16"||e.format==="uint32"),(0,E.assert)(e.data.length<=1),(0,E.assert)(e.byteStride===(e.format==="uint32"?4:e.format==="uint16"?2:1))),this.indexVector=e,this.vertexArray&&this.bindIndexVector()}bindIndexVector(){let e=this.indexVector,t=e?.data[0];if(t&&this.indexVector){let n=t.buffer instanceof $?t.buffer.buffer:t.buffer;(0,E.assert)(n.indexType===this.indexVector.format&&t.byteOffset%this.indexVector.byteStride===0)}this.indexVector=null,this.setIndexBuffer(t?.buffer??null),this.indexVector=e,this.indexCount=e?.length,this.setDrawOffsets({firstVertex:t?.byteOffset??0,firstIndex:t?t.byteOffset/this.indexVector.byteStride:0})}claimVectorLayouts(e){this.explicitBufferLayout=this.explicitBufferLayout.filter(t=>!e.claimedNames.has(t.name)&&!t.attributes?.some(n=>e.claimedNames.has(n.attribute)))}getExplicitVectorLayouts(e,t=this.explicitBufferLayout){let n=new Set(Object.keys(e)),i=t.filter(s=>n.has(s.name)||s.attributes?.some(o=>n.has(o.attribute)));return i.length?i:void 0}getVectorBufferLayout(){let e=[this.geometryVectorBindings,this.attributeVectorBindings];return[...this.explicitBufferLayout.filter(n=>!e.some(i=>i.claimedNames.has(n.name)||n.attributes?.some(s=>i.claimedNames.has(s.attribute)))),...this.geometryVectorBindings.layouts,...this.attributeVectorBindings.layouts]}syncVectorBindings(){let e=this.getVectorBufferLayout();this.vertexArray?(this.applyBufferLayout(e),this.applyVectorAttributes()):this.bufferLayout=e}applyVectorAttributes(){let e=new Set(this.bufferLayout.map(t=>t.name));for(let t of Object.keys(this.currentAttributes))e.has(t)||delete this.currentAttributes[t];this.setAttributes({...this.currentAttributes,...this.geometryVectorBindings.buffers,...this.attributeVectorBindings.buffers},{byteOffsets:{...this.currentAttributeByteOffsets,...this.geometryVectorBindings.byteOffsets,...this.attributeVectorBindings.byteOffsets},disableWarnings:!0}),this.device.type==="webgl"&&this.setConstantAttributes({...this.geometryVectorBindings.constants,...this.attributeVectorBindings.constants})}setGPUVectors(e,t){let n=U0(this.id,e);(0,E.assert)(n.length<=1),Hi(this.id,e,this.bufferLayout),n[0]&&this.setGPUData(n[0].data),this.setBatchDrawCount(n[0]?.rowCount??0,t?.count)}drawVectorGroups(e){let t=this.drawingVectorBatches,n=this._vertexCountSet;this.drawingVectorBatches=!0;try{let i=M9(this,this.geometryVectorBindings,this.attributeVectorBindings,()=>this.syncVectorBindings(),()=>r.prototype.draw.call(this,e),this.props.inferDrawCount);return i&&(this._lastDrawTimestamp=this.device.timestamp,this._needsRedraw=!1),i}finally{this._vertexCountSet=n,this.drawingVectorBatches=t}}drawBatches(e,{vectors:t,onBatch:n}){let i=U0(this.id,t);Hi(this.id,t,this.bufferLayout);for(let m of Object.keys(t))(0,E.assert)(!t[m]||this.currentAttributes[m]);let s={...this.currentAttributes},o={...this.currentAttributeByteOffsets},a={...this.bindings},c=this.instanceCount,u=this.vertexCount,l=this.isInstanced,d=this._vertexCountSet,f=this.drawingVectorBatches,h=this.device.type==="webgpu"&&i.length?new E.UniformStore(this.device,this.shaderInputs.modules):void 0;if(h&&this._uniformStore.uniformBuffers.size){this.batchUniformBuffer??=new qr(this.device);let m=0;for(let g of this._uniformStore.uniformBuffers.keys())m+=this.batchUniformBuffer.getAlignedByteLength(h.getUniformBufferData(g).byteLength);this.batchUniformBuffer.prepare(m*i.length)}this.drawingVectorBatches=!0;let p=!0;try{for(let m of i){this.setGPUData(m.data),this.setBatchDrawCount(m.rowCount),n?.(m);let g={};try{if(h){h.setUniforms(this.shaderInputs.getUniformValues());for(let[b,v]of this._uniformStore.uniformBuffers){let T=`${b}Uniforms`;this.bindings[T]===v&&(g[T]=v,this.setBindings({[T]:this.batchUniformBuffer.write(h.getUniformBufferData(b))}))}}p=r.prototype.draw.call(this,e)&&p}finally{this.setBindings(g)}}}finally{h?.destroy(),this.setAttributes(s,{byteOffsets:o});for(let m of Object.keys(this.bindings))m in a||delete this.bindings[m];this.setBindings(a),this.setInstanceCount(c),this.setVertexCount(u),this.isInstanced=l,this._vertexCountSet=d,this.drawingVectorBatches=f}return p}setGPUData(e){this.setAttributes(Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n.buffer])),{byteOffsets:Object.fromEntries(Object.entries(e).map(([t,n])=>{let i=this.bufferLayout.find(o=>o.name===t),s=n.byteOffset-(i?.attributes?.[0]?.byteOffset??0);return(0,E.assert)(s>=0),[t,s]}))})}validateVectorLengthPolicy(){(0,E.assert)(this.props.enforceMatchingVectorLengths!==!1||this.props.inferDrawCount==="no")}setBatchDrawCount(e,t=this.props.inferDrawCount==="no"?"none":this.props.inferDrawCount){t==="instance"?this.setInstanceCount(e):t==="vertex"&&this.setVertexCount(e)}setTopology(e){e!==this.topology&&(this.topology=e,this._setPipelineNeedsUpdate("topology"))}setBufferLayout(e){this.explicitBufferLayout=e;let t=this.geometryVectorBindings,n=this.attributeVectorBindings,i=this.getExplicitVectorLayouts(t.inputs)??t.sourceLayouts,s=this.getExplicitVectorLayouts(n.inputs)??n.sourceLayouts;t.setInputs(t.inputs,i,"vertex",this.props.enforceMatchingVectorLengths),n.setInputs(n.inputs,s,this.isInstanced?"instance":"vertex",this.props.enforceMatchingVectorLengths),this.props.enforceMatchingVectorLengths&&(!this.isInstanced||n.vertexCount!==void 0)&&C0([...Object.values(t.inputs),...Object.values(n.inputs)]),this.claimVectorLayouts(t),this.claimVectorLayouts(n),this.applyBufferLayout(this.getVectorBufferLayout())}applyBufferLayout(e){if(e=Wi(this.pipeline.shaderLayout,e),Fe(e,this.bufferLayout,-1))return;this.bufferLayout=e,this._setPipelineNeedsUpdate("bufferLayout"),this.pipeline=this._updatePipeline();let t=this.vertexArray;this.vertexArray=this.device.createVertexArray({shaderLayout:this.pipeline.shaderLayout,bufferLayout:this.pipeline.bufferLayout}),t.destroy(),this._dynamicAttributeBufferSources={},this.applyVectorAttributes(),this.indexBuffer&&this.vertexArray.setIndexBuffer(this.indexBuffer)}setParameters(e){Fe(e,this.parameters,2)||(this.parameters=e,this.device.type==="webgl"?this.setNeedsRedraw("parameters"):this._setPipelineNeedsUpdate("parameters"))}setInstanceCount(e){this.instanceCount=e,this.isInstanced===void 0&&e>0&&(this.isInstanced=!0),this.setNeedsRedraw("instanceCount")}setVertexCount(e){this.vertexCount=e,this._vertexCountSet=!0,this.setNeedsRedraw("vertexCount")}setIndexCount(e){this.indexCount=e,this.setNeedsRedraw("indexCount")}setDrawOffsets({firstVertex:e,firstIndex:t}){this.firstVertex=e,this.firstIndex=t,this.setNeedsRedraw("drawOffsets")}setShaderInputs(e){this.shaderInputs=e,this._uniformStore=new E.UniformStore(this.device,this.shaderInputs.modules);for(let[t,n]of Object.entries(this.shaderInputs.modules))if(ae(n)&&this._usesManagedUniformBuffer(t)){let i=this._uniformStore.getManagedUniformBuffer(t);this.bindings[`${t}Uniforms`]=i}this.setNeedsRedraw("shaderInputs")}updateShaderInputs(e){this._uniformStore.setUniforms(this.shaderInputs.getUniformValues(),e),this.setBindings(this._getShaderInputBindings()),this.setNeedsRedraw("shaderInputs")}_getShaderInputBindings(){return this.shaderInputs.getBindingValues()}setBindings(e){Object.assign(this.bindings,e),this.setNeedsRedraw("bindings")}setTransformFeedback(e){this.transformFeedback=e,this.setNeedsRedraw("transformFeedback")}setIndexBuffer(e){this.indexVector&&(this.indexCount=void 0,this.firstVertex=0,this.firstIndex=0),this.indexVector=null;let t=e instanceof $?e.buffer:e;this.indexBuffer=t,this._dynamicIndexBufferSource=e instanceof $?{source:e,generation:e.generation}:null,this.vertexArray.setIndexBuffer(t),this.setNeedsRedraw("indexBuffer")}setAttributes(e,t){Object.assign(this.currentAttributes,e);for(let s of Object.keys(e))this.currentAttributeByteOffsets[s]=t?.byteOffsets?.[s]??0;this._drawBlockedReason=!1;let n=t?.disableWarnings??this.props.disableWarnings;e.indices&&E.log.warn(`Model:${this.id} setAttributes() - indexBuffer should be set using setIndexBuffer()`)(),this.bufferLayout=Wi(this.pipeline.shaderLayout,this.bufferLayout);let i=new Hr(this.bufferLayout);for(let[s,o]of Object.entries(e)){let a=o instanceof $?o.buffer:o,c=i.getBufferLayout(s);if(!c){n||E.log.warn(`Model(${this.id}): Missing layout for buffer "${s}".`)();continue}let u=i.getAttributeNamesForBuffer(c),l=!1;for(let d of u){let f=this._attributeInfos[d];if(f){let h=this.device.type==="webgpu"?this.vertexArray.getBufferSlot(f.bufferName):f.location;if(h===null){n||E.log.warn(`Model(${this.id}): Missing vertex array slot for buffer "${f.bufferName}".`)();continue}let p=t?.byteOffsets?.[s]??0;this.vertexArray.setBuffer(h,a,p),o instanceof $?this._dynamicAttributeBufferSources[h]={source:o,generation:o.generation,byteOffset:p}:delete this._dynamicAttributeBufferSources[h],l=!0}}!l&&!n&&E.log.warn(`Model(${this.id}): Ignoring buffer "${a.id}" for unknown attribute "${s}"`)()}this.setNeedsRedraw("attributes")}setConstantAttributes(e,t){for(let[n,i]of Object.entries(e)){let s=this._attributeInfos[n];s?this.vertexArray.setConstantWebGL(s.location,i):(t?.disableWarnings??this.props.disableWarnings)||E.log.warn(`Model "${this.id}: Ignoring constant supplied for unknown attribute "${n}"`)()}this.setNeedsRedraw("constants")}_areBindingsLoading(){for(let e of Object.values(this.bindings))if(v0(e)&&!e.isReady)return e.id;return!1}_getBindings(e=this._getCurrentShaderLayout()){let t={};for(let[n,i]of Object.entries(this.bindings)){let s=m8(n,i,e);s&&(t[n]=s)}return t}_getBindGroups(e=this._getCurrentShaderLayout(),t=this._getBindings(e)){return e.bindings.length?(0,E.normalizeBindingsByGroup)(e,t):{0:t}}_getBindGroupCacheKeys(){return{}}_getBindingsUpdateTimestamp(){let e=0;this._dynamicIndexBufferSource&&(e=Math.max(e,this._dynamicIndexBufferSource.source.updateTimestamp));for(let t of Object.values(this._dynamicAttributeBufferSources))e=Math.max(e,t.source.updateTimestamp);for(let t of Object.values(this.bindings))t instanceof E.TextureView?e=Math.max(e,t.texture.updateTimestamp):t instanceof E.Buffer||t instanceof E.Texture||t instanceof E.ExternalTexture||t instanceof $?e=Math.max(e,t.updateTimestamp):v0(t)?e=t.isReady?Math.max(e,t.updateTimestamp):1/0:O0(t)&&(e=Math.max(e,(t.buffer instanceof $,t.buffer.updateTimestamp)));return e}_setPipelineNeedsUpdate(e){this._pipelineNeedsUpdate||=e,this._drawBlockedReason=!1,this.setNeedsRedraw(e)}_updatePipeline(){let e=this._preparePipelineUpdate();if(e){try{this.pipeline=this.pipelineFactory.createRenderPipeline(e.props)}catch(t){throw this._releasePipelineShaders(e.vertexShader,e.fragmentShader),this._pipelineNeedsUpdate="pipeline creation failed",t}this._finishPipelineUpdate(e)}return this.pipeline}async _updatePipelineAsync(){let e=this._preparePipelineUpdate();if(e){try{this.pipeline=await this.pipelineFactory.createRenderPipelineAsync(e.props)}catch(t){throw this._releasePipelineShaders(e.vertexShader,e.fragmentShader),this._pipelineNeedsUpdate="asynchronous pipeline creation failed",t}this._finishPipelineUpdate(e)}return this.pipeline}_preparePipelineUpdate(){if(!this._pipelineNeedsUpdate)return null;let e=this.pipeline?.vs??null,t=this.pipeline?.fs??null;this.pipeline&&E.log.log(1,`GPUVectorModel ${this.id}: Recreating pipeline because "${this._pipelineNeedsUpdate}".`)(),this._pipelineNeedsUpdate=!1;let n=null,i=null;try{n=this.shaderFactory.createShader({id:`${this.id}-vertex`,stage:"vertex",source:this.source||this.vs,debugShaders:this.props.debugShaders}),this.source?i=n:this.fs&&(i=this.shaderFactory.createShader({id:`${this.id}-fragment`,stage:"fragment",source:this.fs,debugShaders:this.props.debugShaders}))}catch(s){throw this._releasePipelineShaders(n,i),this._pipelineNeedsUpdate="shader creation failed",s}return{props:{...this.props,bindings:void 0,bufferLayout:this.bufferLayout,colorAttachmentFormats:this._colorAttachmentFormats,depthStencilAttachmentFormat:this._depthStencilAttachmentFormat,topology:this.topology,parameters:this.parameters,bindGroups:void 0,vs:n,fs:i},vertexShader:n,fragmentShader:i,previousVertexShader:e,previousFragmentShader:t}}_finishPipelineUpdate(e){this._attributeInfos=(0,E.getAttributeInfosFromLayouts)(this.pipeline.shaderLayout,this.bufferLayout),this._releasePipelineShaders(e.previousVertexShader,e.previousFragmentShader)}_releasePipelineShaders(e,t){e&&this.shaderFactory.release(e),t&&t!==e&&this.shaderFactory.release(t)}_lastLogTime=0;_logOpen=!1;_logDrawCallStart(){let e=E.log.level>3?0:f8;E.log.level<2||Date.now()-this._lastLogTime<e||(this._lastLogTime=Date.now(),this._logOpen=!0,E.log.group(E0,`>>> DRAWING MODEL ${this.id}`,{collapsed:E.log.level<=2})())}_logDrawCallEnd(){if(this._logOpen){let e=y9(this.pipeline.shaderLayout,this.id);E.log.table(E0,e)();let t=this.shaderInputs.getDebugTable();E.log.table(E0,t)();let n=this._getAttributeDebugTable();E.log.table(E0,this._attributeInfos)(),E.log.table(E0,n)(),E.log.groupEnd(E0)(),this._logOpen=!1}}_drawCount=0;_logFramebuffer(e){let t=this.device.props.debugFramebuffers;if(this._drawCount++,!t)return;let n=e.props.framebuffer;v9(e,n,{id:n?.id||`${this.id}-framebuffer`,minimap:!0})}_getAttributeDebugTable(){let e={};for(let[t,n]of Object.entries(this._attributeInfos)){let i=this.vertexArray.attributes[n.location];e[n.location]={name:t,type:n.shaderType,values:i?this._getBufferOrConstantValues(i,n.bufferDataType):"null"}}if(this.vertexArray.indexBuffer){let{indexBuffer:t}=this.vertexArray,n=t.indexType==="uint32"?new Uint32Array(t.debugData):new Uint16Array(t.debugData);e.indices={name:"indices",type:t.indexType,values:n.toString()}}return e}_getBufferOrConstantValues(e,t){let n=E.dataTypeDecoder.getTypedArrayConstructor(t);return(e instanceof E.Buffer?new n(e.debugData):e).toString()}_getCurrentShaderLayout(){return this.pipeline?.shaderLayout||this.props.shaderLayout||{bindings:[]}}_syncDynamicBuffers(){if(this._dynamicIndexBufferSource&&this._dynamicIndexBufferSource.generation!==this._dynamicIndexBufferSource.source.generation){let e=this._dynamicIndexBufferSource.source.buffer;this.indexBuffer=e,this.vertexArray.setIndexBuffer(e),this._dynamicIndexBufferSource.generation=this._dynamicIndexBufferSource.source.generation,this.setNeedsRedraw("dynamic index buffer")}for(let[e,t]of Object.entries(this._dynamicAttributeBufferSources))t.generation!==t.source.generation&&(this.vertexArray.setBuffer(Number(e),t.source.buffer,t.byteOffset),t.generation=t.source.generation,this.setNeedsRedraw("dynamic attribute buffer"))}_syncAttachmentFormats(e){if(this.device.type!=="webgpu")return;let t=e.framebuffer||e.props.framebuffer,n=e.props,i=n.colorAttachmentFormats??t?.colorAttachments?.map(o=>g8(o?.texture?.format)),s=n.depthStencilAttachmentFormat===!1?void 0:n.depthStencilAttachmentFormat??y8(t?.depthStencilAttachment?.texture?.format);(!Fe(this._colorAttachmentFormats,i,1)||this._depthStencilAttachmentFormat!==s)&&(this._colorAttachmentFormats=i,this._depthStencilAttachmentFormat=s,this._setPipelineNeedsUpdate("attachment formats"))}};function P1(r,e){return r.shaderLanguage!==void 0&&r.shaderLanguage!==e?!1:e==="glsl"?"assembleGLSLShaderPair"in r&&typeof r.assembleGLSLShaderPair=="function":"assembleWGSLShader"in r&&typeof r.assembleWGSLShader=="function"}function p8(r,e){return!r||Object.keys(e).length===0?r:{...r,attributes:r.attributes.map(t=>{let n=t.name.startsWith("_luma_")?t.name.slice(6):null;return n&&e[n]?{...t,name:n}:t})}}function m8(r,e,t){if(v0(e)){let n=zt(t,r,{fallbackGroup:0});return n?e.resolveTextureBinding(n):null}return e instanceof $?e.buffer:O0(e)?He(e):e}function g8(r){return r&&!o2(r)?r:null}function y8(r){return r&&o2(r)?r:void 0}function o2(r){return h8.includes(r)}var L1=D(k(),1);var Xe=class{id;userData={};topology;bufferLayout=[];vertexCount;indices;attributes;constructor(e){if(this.id=e.id||J("geometry"),this.topology=e.topology,this.indices=e.indices||null,this.attributes=e.attributes,this.vertexCount=e.vertexCount,this.bufferLayout=e.bufferLayout||[],this.indices&&!(this.indices.usage&L1.Buffer.INDEX))throw new Error("Index buffer must have INDEX usage")}destroy(){this.indices?.destroy();for(let e of Object.values(this.attributes))e.destroy()}getVertexCount(){return this.vertexCount}getAttributes(){return this.attributes}getIndexes(){return this.indices||null}_calculateVertexCount(e){return e.byteLength/12}};function $t(r,e){if(e instanceof Xe)return e;let t=Me(e),n=x8(r,t),{attributes:i,bufferLayout:s}=b8(r,t);return new Xe({topology:t.topology||"triangle-list",bufferLayout:s,vertexCount:t.vertexCount,indices:n,attributes:i})}function x8(r,e){if(!e.indices)return;let t=e.indices.value;return r.createBuffer({usage:L1.Buffer.INDEX,data:t})}function b8(r,e){let t={};for(let[n,i]of Object.entries(e.attributes)){let s=e.bufferLayout?.find(o=>o.name===n)?.name||re(n);i&&(t[s]=r.createBuffer({data:i.value,id:`${n}-buffer`}))}return{attributes:t,bufferLayout:e.bufferLayout||Ai(e.attributes),vertexCount:e.vertexCount}}var m0=class{attributes;indices;topology;vertexCount;bufferLayout;destroy(){}constructor(e){this.attributes=e.attributes,this.indices=e.indices??null,this.topology=e.topology??"triangle-list",this.vertexCount=e.vertexCount,this.bufferLayout=e.bufferLayout}};var a2=D(k(),1);function c2(r,e){let t=$t(r,e);try{let n=mn(t);return n.destroy=()=>t.destroy(),n}catch(n){throw t.destroy(),n}}function mn(r){let e={};for(let[o,a]of Object.entries(r.attributes)){let c=r.bufferLayout.find(f=>f.name===o),u=c?.format,l=c?.byteStride??(u?a2.vertexFormatDecoder.getVertexFormatInfo(u).byteLength:0),d=r.indices&&l?Math.floor(a.byteLength/l):r.vertexCount;e[o]={name:o,format:u,length:d,byteStride:l,rowByteLength:l,bufferLayout:c,data:[{buffer:a,byteOffset:0,length:d,format:u,byteStride:l,rowByteLength:l}]}}if(r.indices){let o=Math.min(...Object.values(e).map(a=>a.length));for(let[a,c]of Object.entries(e))e[a]={...c,length:o,data:c.data.map(u=>({...u,length:o}))}}let t=r.indices,n=t?.indexType==="uint32"?4:t?.indexType==="uint8"?1:2,i=t?t.byteLength/n:0,s=t?{name:"indices",format:t.indexType,length:i,byteStride:n,rowByteLength:n,data:[{buffer:t,byteOffset:0,length:i,format:t.indexType,byteStride:n,rowByteLength:n}]}:null;return new m0({attributes:e,indices:s,topology:r.topology,vertexCount:r.vertexCount,bufferLayout:r.bufferLayout})}var Y0=class extends p0{static defaultProps={...p0.defaultProps,material:void 0};get sourceGeometry(){return this.sourceGeometryValue}constructor(e,t){let n=t.geometry===void 0?new.target.defaultProps.geometry:t.geometry,i=n&&!(n instanceof m0)?$t(e,n):null,s=i?mn(i):n,o={...t,geometry:s instanceof m0?s:null};try{super(e,o)}catch(a){throw i?.destroy(),a}this._gpuGeometry=i,this.sourceGeometryValue=n,i&&this.setIndexCount(this.props.indexCount)}_initializeProps(e){this.material=e.material||null,this._gpuGeometry=null,this.sourceGeometryValue=null,super._initializeProps(e)}_initializeAttributes(){super._initializeAttributes(),this._gpuGeometry&&super.setIndexCount(this.indexCountOverride)}destroy(){super.destroy(),this._gpuGeometry?.destroy(),this._gpuGeometry=null,this.sourceGeometryValue=null}setGeometry(e){this._gpuGeometry?.destroy(),this._gpuGeometry=e&&!(e instanceof m0)?$t(this.device,e):null;let t=this._gpuGeometry?mn(this._gpuGeometry):e;super.setGeometry(t instanceof m0?t:null),e instanceof m0||super.setIndexCount(this.indexCountOverride),this.sourceGeometryValue=e}setIndexCount(e){this.indexCountOverride=e,super.setIndexCount(e)}setMaterial(e){this.material=e,this.setNeedsRedraw("material")}_usesManagedUniformBuffer(e){return!this.material?.ownsModule(e)}updateShaderInputs(e){super.updateShaderInputs(e),this.material?.updateShaderInputs(e)}_getShaderInputBindings(){let e=super._getShaderInputBindings(),t=this.material;return t?Object.fromEntries(Object.entries(e).filter(([n])=>!t.ownsBinding(n))):e}_areBindingsLoading(){let e=super._areBindingsLoading();if(e)return e;for(let t of Object.values(this.material?.bindings||{}))if(v0(t)&&!t.isReady)return t.id;return!1}_getBindGroups(e=this._getCurrentShaderLayout(),t=this._getBindings(e)){let n=super._getBindGroups(e,t);for(let[i,s]of Object.entries(this.material?.getBindingsByGroup(e)||{})){let o=Number(i);n[o]={...n[o]||{},...s}}return n}_getBindGroupCacheKeys(){let e=this.material?.getBindGroupCacheKey(3);return e?{3:e}:{}}_getBindingsUpdateTimestamp(){return Math.max(super._getBindingsUpdateTimestamp(),this.material?.getBindingsUpdateTimestamp()||0)}};var P0=D(k(),1);var Ke=3,Ye=class{device;modules;_materialBindingNames;_materialModuleNames;constructor(e,t={}){this.device=e,this.modules=t.modules||[];let n=new e0(Object.fromEntries(this.modules.map(i=>[i.name,i])));this._materialBindingNames=v8(n),this._materialModuleNames=T8(n)}createMaterial(e={}){return new Ze(this.device,{...e,factory:this})}getBindingNames(){return Array.from(this._materialBindingNames)}ownsBinding(e){if(this._materialBindingNames.has(e))return!0;let t=R1(e);return t?this._materialModuleNames.has(t):!1}ownsModule(e){return this._materialModuleNames.has(e)}getBindingsByGroup(e){return Object.keys(e).length>0?{[Ke]:e}:{}}};function R1(r){return r.endsWith("Uniforms")?r.slice(0,-8):null}function v8(r){let e=new Set;for(let t of Object.values(r.modules))for(let n of t.bindingLayout||[])n.group===Ke&&e.add(n.name);return e}function T8(r){let e=new Set;for(let t of Object.values(r.modules))t.name&&t.bindingLayout?.some(n=>n.group===Ke&&n.name===t.name)&&e.add(t.name);return e}var Ze=class{id;metadata={};device;factory;shaderInputs;bindings={};_uniformStore;_bindGroupCacheToken={};_dynamicResourceGenerations={};constructor(e,t={}){this.id=t.id||J("material"),this.device=e,this.factory=t.factory||new Ye(e,{modules:t.modules||t.shaderInputs?.getModules()||[]});let n=Object.fromEntries((t.shaderInputs?.getModules()||this.factory.modules).map(i=>[i.name,i]));this.shaderInputs=t.shaderInputs||new e0(n),this._uniformStore=new P0.UniformStore(this.device,this.shaderInputs.modules);for(let[i,s]of Object.entries(this.shaderInputs.modules))if(this.ownsModule(i)&&ae(s)){let o=this._uniformStore.getManagedUniformBuffer(i);this.bindings[`${i}Uniforms`]=o}this.updateShaderInputs(),t.bindings&&this._replaceOwnedBindings(t.bindings)}destroy(){this._uniformStore.destroy()}clone(e={}){let t=this.factory.createMaterial({id:e.id,shaderInputs:e.shaderInputs,bindings:{...this.getResourceBindings(),...e.bindings}});return e.shaderInputs||t.setProps(this.shaderInputs.getUniformValues()),e.moduleProps&&t.setProps(e.moduleProps),t.metadata={...this.metadata},t.updateShaderInputs(),t}ownsBinding(e){return this.factory.ownsBinding(e)}ownsModule(e){return this.factory.ownsModule(e)}setProps(e){this.shaderInputs.setProps(e)}updateShaderInputs(e){this._uniformStore.setUniforms(this.shaderInputs.getUniformValues(),e),this._setOwnedBindings(this.shaderInputs.getBindingValues())&&(this._bindGroupCacheToken={})}getResourceBindings(){let e={};for(let[t,n]of Object.entries(this.bindings))R1(t)||(e[t]=n);return e}getBindings(e={bindings:[]}){this._syncDynamicResourceGenerations();let t={},n=t;for(let[i,s]of Object.entries(this.bindings))if(v0(s)){let o=zt(e,i,{fallbackGroup:Ke}),a=o?s.resolveTextureBinding(o):null;a&&(n[i]=a)}else s instanceof $?n[i]=s.buffer:O0(s)?n[i]=He(s):n[i]=s;return this._syncDynamicResourceGenerations(),t}getBindingsByGroup(e={bindings:[]}){return this.factory.getBindingsByGroup(this.getBindings(e))}getBindGroupCacheKey(e){return this._syncDynamicResourceGenerations(),e===Ke?this._bindGroupCacheToken:null}getBindingsUpdateTimestamp(){let e=0;for(let t of Object.values(this.bindings))t instanceof P0.TextureView?e=Math.max(e,t.texture.updateTimestamp):t instanceof P0.Buffer||t instanceof P0.Texture||t instanceof P0.ExternalTexture||t instanceof $?e=Math.max(e,t.updateTimestamp):v0(t)?e=t.isReady?Math.max(e,t.updateTimestamp):1/0:O0(t)&&(e=Math.max(e,(t.buffer instanceof $,t.buffer.updateTimestamp)));return e}_replaceOwnedBindings(e){this._setOwnedBindings(e)&&(this._bindGroupCacheToken={})}_setOwnedBindings(e){let t=!1;for(let[n,i]of Object.entries(e))i!==void 0&&this.ownsBinding(n)&&this.bindings[n]!==i&&(this.bindings[n]=i,t=!0);return t}_syncDynamicResourceGenerations(){let e={},t=!1;for(let[n,i]of Object.entries(this.bindings)){let s=S8(i);s!==null&&(e[n]=s,this._dynamicResourceGenerations[n]!==s&&(t=!0))}Object.keys(e).length!==Object.keys(this._dynamicResourceGenerations).length&&(t=!0),this._dynamicResourceGenerations=e,t&&(this._bindGroupCacheToken={})}};function S8(r){return v0(r)?r.generation:hn(r)?.generation??null}var Qe=D(k(),1),l2=D(b0(),1);var u2=35980,w8=35981,gn=class r{device;model;transformFeedback;outputVectorBindings={};outputBuffers={};static defaultProps={...p0.defaultProps,inputVectors:void 0,outputVectors:void 0,feedbackBufferMode:"separate",outputs:void 0,feedbackBuffers:void 0};static isSupported(e){return e?.info?.type==="webgl"}constructor(e,t=r.defaultProps){if(!r.isSupported(e))throw new Error("BufferTransform not yet implemented on WebGPU");this.device=e,this.outputBuffers=t.feedbackBuffers||{};let{inputVectors:n,outputVectors:i,...s}=t;this.model=new p0(this.device,{id:t.id||"buffer-transform-model",fs:t.fs||(0,l2.getPassthroughFS)(),topology:t.topology||"point-list",varyings:t.outputs||t.varyings,...s,bufferMode:t.bufferMode||(t.feedbackBufferMode==="interleaved"?u2:w8)}),this.transformFeedback=this.device.createTransformFeedback({layout:this.model.pipeline.shaderLayout,buffers:t.feedbackBuffers}),this.model.setTransformFeedback(this.transformFeedback),n&&this.model.setGPUVectors(n,{count:"vertex"}),i&&this.setOutputVectors(i)}destroy(){this.model&&this.model.destroy()}delete(){this.destroy()}run(e){let{inputVectors:t,outputVectors:n,inputBuffers:i,outputBuffers:s,...o}=e??{};i&&this.model.setAttributes(i),t&&this.model.setGPUVectors(t,{count:"vertex"}),s&&(this.outputBuffers=s),(s||n||Object.keys(this.outputVectorBindings).length>0)&&this.setOutputVectors(n??this.outputVectorBindings);let a=this.device.beginRenderPass({discard:!0,...o});try{this.model.draw(a)}finally{a.end()}}setOutputVectors(e){let t=U0(this.model.id,e);(0,Qe.assert)(t.length===0||this.model.pipeline.props.bufferMode!==u2),(0,Qe.assert)(t.length<=1),this.outputVectorBindings=e,this.transformFeedback.setBuffers({...this.outputBuffers,...Object.fromEntries(Object.entries(t[0]?.data??{}).map(([n,i])=>((0,Qe.assert)(i.byteStride===i.rowByteLength),[n,{buffer:i.buffer instanceof $?i.buffer.buffer:i.buffer,byteOffset:i.byteOffset,byteLength:i.length*i.byteStride}])))})}getBuffer(e){return this.transformFeedback.getBuffer(e)}readAsync(e){let t=this.getBuffer(e);if(!t)throw new Error("BufferTransform#getBuffer");if(t instanceof Qe.Buffer)return t.readAsync();let{buffer:n,byteOffset:i=0,byteLength:s=n.byteLength}=t;return n.readAsync(i,s)}};var d2=D(b0(),1);var I8="transform_output",yn=class{device;model;sampler;currentIndex=0;samplerTextureMap=null;bindings=[];resources={};constructor(e,t){this.device=e;let{inputVectors:n,...i}=t;this.sampler=e.createSampler({addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge",minFilter:"nearest",magFilter:"nearest",mipmapFilter:"nearest"}),this.model=new p0(this.device,{id:t.id||J("texture-transform-model"),fs:t.fs||(0,d2.getPassthroughFS)({input:t.targetTextureVarying,inputChannels:t.targetTextureChannels,output:I8}),vertexCount:t.vertexCount,...i}),n&&this.model.setGPUVectors(n,{count:"vertex"}),this._initialize(t),Object.seal(this)}destroy(){this.model.destroy();for(let e of this.bindings)e.framebuffer?.destroy()}delete(){this.destroy()}run(e){let{inputVectors:t,...n}=e??{};t&&this.model.setGPUVectors(t,{count:"vertex"});let{framebuffer:i}=this.bindings[this.currentIndex],s=this.device.beginRenderPass({framebuffer:i,...n});try{this.model.draw(s)}finally{s.end()}this.device.submit()}getTargetTexture(){let{targetTexture:e}=this.bindings[this.currentIndex];return e}getFramebuffer(){return this.bindings[this.currentIndex].framebuffer}_initialize(e){this._updateBindings(e)}_updateBindings(e){this.bindings[this.currentIndex]=this._updateBinding(this.bindings[this.currentIndex],e)}_updateBinding(e,{sourceBuffers:t,sourceTextures:n,targetTexture:i}){if(e||(e={sourceBuffers:{},sourceTextures:{},targetTexture:null}),Object.assign(e.sourceTextures,n),Object.assign(e.sourceBuffers,t),i){e.targetTexture=i;let{width:s,height:o}=i;e.framebuffer&&e.framebuffer.destroy(),e.framebuffer=this.device.createFramebuffer({id:"transform-framebuffer",width:s,height:o,colorAttachments:[i]}),e.framebuffer.resize({width:s,height:o})}return e}_setSourceTextureParameters(){let e=this.currentIndex,{sourceTextures:t}=this.bindings[e];for(let n in t)t[n].sampler=this.sampler}};var A8=`struct VertexInputs {
|
|
124
131
|
@location(0) clipSpacePositions: vec2<f32>,
|
|
125
132
|
@location(1) texCoords: vec2<f32>,
|
|
126
133
|
@location(2) coordinates: vec2<f32>
|
|
@@ -142,7 +149,7 @@ fn vertexMain(inputs: VertexInputs) -> FragmentInputs {
|
|
|
142
149
|
outputs.uv = inputs.texCoords;
|
|
143
150
|
return outputs;
|
|
144
151
|
}
|
|
145
|
-
`,
|
|
152
|
+
`,_8=`#version 300 es
|
|
146
153
|
in vec2 clipSpacePositions;
|
|
147
154
|
in vec2 texCoords;
|
|
148
155
|
in vec2 coordinates;
|
|
@@ -157,8 +164,8 @@ void main(void) {
|
|
|
157
164
|
coordinate = coordinates;
|
|
158
165
|
uv = texCoords;
|
|
159
166
|
}
|
|
160
|
-
`,
|
|
161
|
-
${i.source}`),super(e,{id:i.id||
|
|
167
|
+
`,M8=[-1,-1,1,-1,-1,1,1,1],E8=[-1,-1,3,-1,-1,3],K0=class extends Y0{constructor(e,t){let{geometryType:n="quad",...i}=t,s=n==="triangle"?E8:M8,o=s.map(c=>(c+1)/2),a=s.length/2;i.source&&(i.source=`${A8}
|
|
168
|
+
${i.source}`),super(e,{id:i.id||J("clip-space"),...i,vs:_8,vertexCount:a,geometry:new z({topology:n==="triangle"?"triangle-list":"triangle-strip",vertexCount:a,attributes:{clipSpacePositions:{size:2,value:new Float32Array(s)},texCoords:{size:2,value:new Float32Array(o)},coordinates:{size:2,value:new Float32Array(o)}}})})}};var P8={name:"background",uniformTypes:{scale:"vec2<f32>",flipY:"i32"}},L8=`@group(0) @binding(auto) var backgroundTexture: texture_2d<f32>;
|
|
162
169
|
@group(0) @binding(auto) var backgroundTextureSampler: sampler;
|
|
163
170
|
struct backgroundUniforms {
|
|
164
171
|
scale: vec2<f32>,
|
|
@@ -180,7 +187,7 @@ fn fragmentMain(inputs: FragmentInputs) -> @location(0) vec4<f32> {
|
|
|
180
187
|
let position: vec2<f32> = billboardTexture_getTextureUV(inputs.uv);
|
|
181
188
|
return textureSample(backgroundTexture, backgroundTextureSampler, position);
|
|
182
189
|
}
|
|
183
|
-
`,
|
|
190
|
+
`,R8=`#version 300 es
|
|
184
191
|
precision highp float;
|
|
185
192
|
|
|
186
193
|
uniform sampler2D backgroundTexture;
|
|
@@ -205,7 +212,7 @@ void main(void) {
|
|
|
205
212
|
vec2 position = billboardTexture_getTextureUV(coordinate);
|
|
206
213
|
fragColor = texture(backgroundTexture, position);
|
|
207
214
|
}
|
|
208
|
-
`,
|
|
215
|
+
`,Je=class extends K0{backgroundTexture=null;flipY=!1;constructor(e,t){if(super(e,{...t,id:t.id||"background-texture-model",source:L8,fs:R8,modules:[...t.modules||[],P8],parameters:{depthWriteEnabled:!1,...t.parameters||{},...t.blend?{blend:!0,blendColorOperation:"add",blendAlphaOperation:"add",blendColorSrcFactor:"one-minus-dst-alpha",blendColorDstFactor:"one",blendAlphaSrcFactor:"one-minus-dst-alpha",blendAlphaDstFactor:"one"}:{}}}),!t.backgroundTexture)throw new Error("BackgroundTextureModel requires a backgroundTexture prop");this.setProps(t)}setProps(e){let{backgroundTexture:t}=e;if(e.flipY!==void 0&&(this.flipY=e.flipY,this.backgroundTexture&&this.updateScale(this.backgroundTexture)),t)if(this.setBindings({backgroundTexture:t}),t.isReady){let n=t instanceof c0?t.texture:t;this.backgroundTexture=n,this.updateScale(n)}else t.ready.then(n=>{this.backgroundTexture=n,this.updateScale(n)})}predraw(e){super.predraw(e)}updateScale(e){if(!e){this.shaderInputs.setProps({background:{scale:[1,1],flipY:0}});return}let[t,n]=this.device.getCanvasContext().getDrawingBufferSize(),i=e.width,s=e.height,o=t/n,a=i/s,c=1,u=1;o>a?u=o/a:c=a/o,this.shaderInputs.setProps({background:{scale:[c,u],flipY:this.flipY?1:0}})}};var xn=class extends z{constructor(e={}){let t=new Ae(e);super({...t,attributes:t.attributes})}},bn=class extends z{constructor(e={}){let t=new mt({size:2}),n=new Uint32Array(24),i=[4,5,2,3,0,1];for(let o=0;o<n.length;o++)n[o]=i[Math.floor(o/4)];t.attributes.faceIndex={size:1,value:n},e.indices===!1&&(t.attributes.COLOR_0={size:3,value:new Float32Array(Array.from(t.attributes.POSITION.value,o=>(o+1)/2))});let s=e.indices===!1?mr(t):t;super({id:e.id,topology:t.topology,indices:e.indices===!1?void 0:t.indices,attributes:f2(s.attributes,e.attributes)})}},et=class extends z{constructor(e={}){let t=new yt({...e,attributes:void 0,radius:e.radius??1});for(let i of["POSITION","NORMAL"]){let s=t.attributes[i].value;for(let o=0;o<s.length;o+=3){let a=s[o];s[o]=s[o+2],s[o+2]=a}}let n=t.indices?.value;if(n)for(let i=0;i<n.length;i+=3){let s=n[i+1];n[i+1]=n[i+2],n[i+2]=s}super({...t,attributes:{...t.attributes,...e.attributes}})}},vn=class extends z{constructor(e={}){let t=new xt({...e,radius:e.radius??1});super({...t,attributes:t.attributes})}},tt=class extends z{constructor(e={}){let t=new gt({...e,bottomRadius:e.bottomRadius??1});super({...t,attributes:t.attributes})}},Tn=class extends tt{constructor(e={}){let t=e.radius??1;super({...e,topRadius:t,bottomRadius:t})}},Z0=class extends tt{constructor(e={}){let t=e.cap??!0;super({...e,topRadius:0,bottomRadius:e.radius??1,topCap:t,bottomCap:t})}},Sn=class extends z{constructor(e={}){let{type:t="x,y",offset:n=0,flipCull:i=!1}=e,s={"x,y":{sizeX:e.xlen,sizeZ:e.ylen,nx:e.nx,nz:e.ny},"x,z":{sizeX:e.xlen,sizeZ:e.zlen,nx:e.nx,nz:e.nz},"y,z":{sizeX:e.ylen,sizeZ:e.zlen,nx:e.ny,nz:e.nz}}[t];if(!s)throw new Error("Invalid plane axes");let o=new ee({sizeX:s.sizeX||1,sizeZ:s.sizeZ||1,nx:s.nx||1,nz:s.nz||1});C8(o,t,n,i);let a=e.unpack?mr(o):o;super({id:e.id,topology:o.topology,indices:e.unpack?void 0:o.indices,attributes:f2(a.attributes,e.attributes)})}};function C8(r,e,t,n){let i=r.attributes.POSITION.value,s=r.attributes.NORMAL.value,o=r.attributes.TEXCOORD_0.value;for(let a=0;a<i.length/3;a++){let c=a*3,u=Number(i[c])*(n?-1:1),l=-Number(i[c+2]),d=n?1:-1;e==="x,y"?(i.set([u,l,t],c),s.set([0,0,d],c)):e==="x,z"?(i.set([u,t,l],c),s.set([0,d,0],c)):(i.set([t,u,l],c),s.set([d,0,0],c)),n&&(o[a*2]=1-Number(o[a*2]))}if(e!=="x,z"&&r.indices){let a=r.indices.value;for(let c=0;c<a.length;c+=3){let u=a[c+1];a[c+1]=a[c+2],a[c+2]=u}}}function f2(r,e={}){let t={};for(let[n,i]of Object.entries(r))i&&(t[n]=i);return{...t,...e}}var B8=.02,D8=.12,O8=.15,N8=.2,D1=[0,1,0],k8=[255,255,255],F8=1,C1=.35,B1=255,G8=1,z8=.01,$8={depthCompare:"less-equal",depthWriteEnabled:!1,cullMode:"none"},V8=[{name:"instancePosition",format:"float32x3",stepMode:"instance"},{name:"instanceDirection",format:"float32x3",stepMode:"instance"},{name:"instanceScale",format:"float32x3",stepMode:"instance"},{name:"instanceColor",format:"float32x4",stepMode:"instance"}],U8={name:"lightMarker",props:{},uniforms:{},uniformTypes:{viewProjectionMatrix:"mat4x4<f32>"}},j8="inputs.positions * inputs.instanceScale",W8="vec3<f32>(inputs.positions.x * inputs.instanceScale.x, (inputs.positions.y - 0.5) * inputs.instanceScale.y, inputs.positions.z * inputs.instanceScale.z)",q8="positions * instanceScale",H8="vec3(positions.x * instanceScale.x, (positions.y - 0.5) * instanceScale.y, positions.z * instanceScale.z)",Q0=class extends Y0{lightModelProps;_instanceData;_managedBuffers;buildInstanceData;sizePropNames;constructor(e,t,n){let i=n.buildInstanceData(t),s=h2(e,t.id||n.idPrefix,i),o=new e0({lightMarker:U8});o.setProps({lightMarker:{viewProjectionMatrix:m2(t)}});let{source:a,vs:c,fs:u}=Q8(n.anchorMode),l=t;super(e,{...l,id:t.id||n.idPrefix,source:a,vs:c,fs:u,geometry:n.geometry,shaderInputs:o,bufferLayout:[...V8],attributes:s,instanceCount:i.instanceCount,parameters:g2(t.parameters)}),this.lightModelProps=t,this._instanceData=i,this._managedBuffers=s,this.buildInstanceData=n.buildInstanceData,this.sizePropNames=n.sizePropNames}destroy(){super.destroy(),p2(this._managedBuffers),this._managedBuffers={}}draw(e,t){return this.instanceCount===0?!0:super.draw(e,t)}setProps(e){this.lightModelProps={...this.lightModelProps,...e},e.parameters&&this.setParameters(g2(this.lightModelProps.parameters)),("viewMatrix"in e||"projectionMatrix"in e)&&(this.shaderInputs.setProps({lightMarker:{viewProjectionMatrix:m2(this.lightModelProps)}}),this.setNeedsRedraw("lightMarker camera")),Z8(e,this.sizePropNames)&&this.rebuildInstanceData()}rebuildInstanceData(){let e=this.buildInstanceData(this.lightModelProps),t=h2(this.device,this.id,e);this.setAttributes(t),this.setInstanceCount(e.instanceCount),p2(this._managedBuffers),this._managedBuffers=t,this._instanceData=e}};function y2(r){let e=v2(r.lights),t=O1(r),n=r.pointLightRadius??B8*t.sceneScale*t.markerScale;return k1(e.length,(i,s)=>({color:N1(i),direction:D1,position:i.position,scale:[n,n,n]}),e)}function x2(r){let e=T2(r.lights),t=O1(r),n=r.spotLightLength??D8*t.sceneScale*t.markerScale;return k1(e.length,(i,s)=>{let o=Vt(i.outerConeAngle??Math.PI/4,0,Math.PI/2-z8),a=Math.tan(o)*n;return{color:N1(i),direction:S2(i.direction),position:i.position,scale:[a,n,a]}},e)}function b2(r){let e=X8(r.lights),t=O1(r),n=r.directionalLightLength??O8*t.sceneScale*t.markerScale,i=n*N8;return k1(e.length,(s,o)=>{let a=S2(s.direction),c=[t.sceneCenter[0]-a[0]*t.sceneScale*C1,t.sceneCenter[1]-a[1]*t.sceneScale*C1,t.sceneCenter[2]-a[2]*t.sceneScale*C1];return{color:N1(s),direction:a,position:c,scale:[i,n,i]}},e)}function v2(r){return r.filter(e=>e.type==="point")}function T2(r){return r.filter(e=>e.type==="spot")}function X8(r){return r.filter(e=>e.type==="directional")}function O1(r){let e=Y8(r.lights,r.bounds),t=[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2,(e[0][2]+e[1][2])/2],n=Math.max(Math.hypot(e[1][0]-e[0][0],e[1][1]-e[0][1],e[1][2]-e[0][2]),G8);return{bounds:e,markerScale:Math.max(r.markerScale??F8,0),sceneCenter:t,sceneScale:n}}function N1(r){let e=r.color||k8,t=Math.max(r.intensity??1,0),n=Vt(.35+.3*Math.log10(t+1),.35,1);return[Vt(e[0]/B1,0,1)*n,Vt(e[1]/B1,0,1)*n,Vt(e[2]/B1,0,1)*n,1]}function S2(r){let[e,t,n]=r||D1,i=Math.hypot(e,t,n);return i===0?[...D1]:[e/i,t/i,n/i]}function k1(r,e,t=[]){let n=new Float32Array(r*3),i=new Float32Array(r*3),s=new Float32Array(r*3),o=new Float32Array(r*4);for(let[a,c]of t.entries()){let u=e(c,a);n.set(u.position,a*3),i.set(u.direction,a*3),s.set(u.scale,a*3),o.set(u.color,a*4)}return{instanceCount:r,instancePositions:n,instanceDirections:i,instanceScales:s,instanceColors:o}}function Y8(r,e){if(e)return K8(e);let t=[...v2(r).map(s=>s.position),...T2(r).map(s=>s.position)];if(t.length===0)return[[-.5,-.5,-.5],[.5,.5,.5]];let n=[...t[0]],i=[...t[0]];for(let s of t.slice(1))n[0]=Math.min(n[0],s[0]),n[1]=Math.min(n[1],s[1]),n[2]=Math.min(n[2],s[2]),i[0]=Math.max(i[0],s[0]),i[1]=Math.max(i[1],s[1]),i[2]=Math.max(i[2],s[2]);return[n,i]}function K8(r){return[[...r[0]],[...r[1]]]}function h2(r,e,t){return{instancePosition:r.createBuffer({id:`${e}-instance-position`,data:wn(t.instancePositions,3)}),instanceDirection:r.createBuffer({id:`${e}-instance-direction`,data:wn(t.instanceDirections,3)}),instanceScale:r.createBuffer({id:`${e}-instance-scale`,data:wn(t.instanceScales,3)}),instanceColor:r.createBuffer({id:`${e}-instance-color`,data:wn(t.instanceColors,4)})}}function wn(r,e){return r.length>0?r:new Float32Array(e)}function p2(r){for(let e of Object.values(r))e?.destroy()}function m2(r){return new L(r.projectionMatrix).multiplyRight(r.viewMatrix)}function Z8(r,e){return"lights"in r||"bounds"in r||"markerScale"in r?!0:e.some(t=>t in r)}function g2(r){return{...$8,...r||{}}}function Q8(r){let e=r==="apex"?W8:j8,t=r==="apex"?H8:q8;return{source:`struct lightMarkerUniforms {
|
|
209
216
|
viewProjectionMatrix: mat4x4<f32>,
|
|
210
217
|
};
|
|
211
218
|
|
|
@@ -287,7 +294,7 @@ out vec4 fragColor;
|
|
|
287
294
|
void main(void) {
|
|
288
295
|
fragColor = vColor;
|
|
289
296
|
}
|
|
290
|
-
`}}function Vt(r,e,t){return Math.min(t,Math.max(e,r))}var R8=new Je({nlat:8,nlong:12,radius:1}),bn=class extends Q0{constructor(e,t){super(e,t,{anchorMode:"centered",buildInstanceData:e2,geometry:R8,idPrefix:"point-light-model",sizePropNames:["pointLightRadius"]})}};var C8=new Z0({cap:!0,nradial:16,nvertical:1,radius:1}),vn=class extends Q0{constructor(e,t){super(e,t,{anchorMode:"apex",buildInstanceData:t2,geometry:C8,idPrefix:"spot-light-model",sizePropNames:["spotLightLength"]})}};var B8=new Z0({cap:!0,nradial:12,nvertical:1,radius:1}),Tn=class extends Q0{constructor(e,t){super(e,t,{anchorMode:"apex",buildInstanceData:r2,geometry:B8,idPrefix:"directional-light-model",sizePropNames:["directionalLightLength"]})}};function L1(r,e){if(!r)throw new Error(e)}var y0=class{id;matrix=new R;display=!0;position=new D;rotation=new D;scale=new D(1,1,1);userData={};props={};constructor(e={}){let{id:t}=e;this.id=t||Q(this.constructor.name),this._setScenegraphNodeProps(e)}getBounds(){return null}destroy(){}delete(){this.destroy()}setProps(e){return this._setScenegraphNodeProps(e),this}toString(){return`{type: ScenegraphNode, id: ${this.id})}`}setPosition(e){return L1(e.length===3,"setPosition requires vector argument"),this.position=e,this}setRotation(e){return L1(e.length===3||e.length===4,"setRotation requires vector argument"),this.rotation=e,this}setScale(e){return L1(e.length===3,"setScale requires vector argument"),this.scale=e,this}setMatrix(e,t=!0){t?this.matrix.copy(e):this.matrix=e}setMatrixComponents(e){let{position:t,rotation:n,scale:i,update:s=!0}=e;return t&&this.setPosition(t),n&&this.setRotation(n),i&&this.setScale(i),s&&this.updateMatrix(),this}updateMatrix(){if(this.matrix.identity(),this.matrix.translate(this.position),this.rotation.length===4){let e=new R().fromQuaternion(this.rotation);this.matrix.multiplyRight(e)}else this.matrix.rotateXYZ(this.rotation);return this.matrix.scale(this.scale),this}update({position:e,rotation:t,scale:n}={}){return e&&this.setPosition(e),t&&this.setRotation(t),n&&this.setScale(n),this.updateMatrix(),this}getCoordinateUniforms(e,t){t=t||this.matrix;let n=new R(e).multiplyRight(t),i=n.invert(),s=i.transpose();return{viewMatrix:e,modelMatrix:t,objectMatrix:t,worldMatrix:n,worldInverseMatrix:i,worldInverseTransposeMatrix:s}}_setScenegraphNodeProps(e){e.display!==void 0&&(this.display=e.display),e?.position&&this.setPosition(e.position),e?.rotation&&this.setRotation(e.rotation),e?.scale&&this.setScale(e.scale),this.updateMatrix(),e?.matrix&&this.setMatrix(e.matrix),Object.assign(this.props,e)}};var _n=O(k(),1);function Sn(){return[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]]}function wn(r,e,t){let n=new R(t);for(let i=0;i<8;i++){let s=new D(e[i&1?1:0][0],e[i&2?1:0][1],e[i&4?1:0][2]);n.transformAsPoint(s,s);for(let o=0;o<3;o++)r[0][o]=Math.min(r[0][o],s[o]),r[1][o]=Math.max(r[1][o],s[o])}}function An(r){return Number.isFinite(r[0][0])}var c0=class r extends y0{children;transformSource;constructor(e={}){e=Array.isArray(e)?{children:e}:e;let{children:t=[]}=e;_n.log.assert(t.every(n=>n instanceof y0),"every child must an instance of ScenegraphNode"),super(e),this.children=t,this.transformSource=e.transformSource??null}getBounds(){let e=Sn();return this.traverse((t,{worldMatrix:n})=>{let i=t.getBounds();if(!i)return;let s=new R(n).multiplyRight(t.matrix);wn(e,i,s)}),An(e)?e:null}destroy(){this.children.forEach(e=>e.destroy()),this.removeAll(),super.destroy()}add(...e){for(let t of e)Array.isArray(t)?this.add(...t):this.children.push(t);return this}remove(e){let t=this.children,n=t.indexOf(e);return n>-1&&t.splice(n,1),this}removeAll(){return this.children=[],this}findNode(e){let t=this.findNodes(e);if(t.length>1)throw new Error(`Ambiguous scenegraph path: ${e} (${t.length} matches)`);return t[0]}findNodes(e){let t=e.startsWith("/"),n=e==="/"?[]:(t?e.slice(1):e).split("/").map(c=>{if(!c||/~(?![01])/.test(c))throw new Error(`Invalid scenegraph path: ${e}`);return c.replace(/~1/g,"/").replace(/~0/g,"~")}),i=[],s=[],o=new Set,a=[{node:this,depth:0}];for(;a.length;){let{node:c,depth:u}=a.pop();(0,_n.assert)(!o.has(c)),o.add(c),s.length=u,s.push(c.id);let l=s.length-n.length;if((t?l===1:l>=0)&&n.every((d,f)=>d===s[l+f])&&i.push(c),c instanceof r)for(let d=c.children.length-1;d>=0;d--)a.push({node:c.children[d],depth:u+1})}return i}traverse(e,{worldMatrix:t=new R}={}){if(!this.display)return;let n=new R(t).multiplyRight(this.matrix);for(let i of this.children)i.display&&(i instanceof r?i.traverse(e,{worldMatrix:n}):e(i,{worldMatrix:n}))}traverseDepthSorted(e,{viewMatrix:t,worldMatrix:n=new R,order:i="back-to-front"}){let s=new R(t),o=[];this.traverse((c,u)=>{let l=c.getBounds(),d=l?new D(l[0]).add(l[1]).divide([2,2,2]):new D,f=new R(u.worldMatrix).multiplyRight(c.matrix);f.transformAsPoint(d,d),s.transformAsPoint(d,d),o.push({node:c,context:{worldMatrix:f,bounds:l,depth:-d[2]},index:o.length})},{worldMatrix:new R(n)});let a=i==="back-to-front"?-1:1;o.sort((c,u)=>a*(c.context.depth-u.context.depth)||c.index-u.index);for(let{node:c,context:u}of o)e(c,u)}preorderTraversal(e,{worldMatrix:t=new R}={}){let n=new R(t).multiplyRight(this.matrix);e(this,{worldMatrix:n});for(let i of this.children)i instanceof r?i.preorderTraversal(e,{worldMatrix:n}):e(i,{worldMatrix:n})}};var Mn=class extends y0{geometry;constructor(e){super(e),this.geometry=e.geometry}getBounds(){let e=this.geometry.attributes.POSITION;if(!e||e.size!==3||!e.value.length)return null;let t=[1/0,1/0,1/0],n=[-1/0,-1/0,-1/0];for(let i=0;i<e.value.length;i++){let s=i%3;t[s]=Math.min(t[s],e.value[i]),n[s]=Math.max(n[s],e.value[i])}return[t,n]}};var tt=class extends y0{model;instanceMatrices;bounds=null;managedResources;constructor(e){super(e),this.model=e.model,this.managedResources=e.managedResources||[],this.instanceMatrices=e.instanceMatrices||null,this.bounds=e.bounds?this.instanceMatrices?D8(e.bounds,this.instanceMatrices):e.bounds:null,this.setProps(e)}destroy(){this.model&&(this.model.destroy(),this.model=null),this.managedResources.forEach(e=>e.destroy()),this.managedResources=[]}getBounds(){return this.bounds}draw(e){return this.model.draw(e)}};function D8(r,e){let t=Sn();for(let n of e)wn(t,r,n);return An(t)?t:null}var p0=O(k(),1);function E1(r,e={}){let{angleThreshold:t=30,weldTolerance:n=0,positionAttribute:i="POSITION"}=e,s=a2(r,i);(0,p0.assert)(Number.isFinite(n)&&n>=0),(0,p0.assert)(Number.isFinite(t)&&t>=0&&t<=180);let o=r.indices?.value,a=s.value.length/3,c=new Map,u=new Map,l=new Set,d=new Map,f=Math.cos(t*Math.PI/180),h=n*n;function p(v){return[s.value[v*3],s.value[v*3+1],s.value[v*3+2]]}function m(v){let T=c.get(v);if(T!==void 0)return T;(0,p0.assert)(Number.isInteger(v)&&v>=0&&v<a);let S=p(v);(0,p0.assert)(S.every(Number.isFinite));let y=n>0?S.map(_=>Math.floor(_/n)):S,x=n>0?1:0;for(let _=-x;_<=x;_++)for(let I=-x;I<=x;I++)for(let C=-x;C<=x;C++){let M=u.get(`${y[0]+_},${y[1]+I},${y[2]+C}`);for(let B of M||[]){let L=p(B);if((S[0]-L[0])**2+(S[1]-L[1])**2+(S[2]-L[2])**2<=h)return c.set(v,B),B}}let w=y.join(","),A=u.get(w)||[];return A.push(v),u.set(w,A),c.set(v,v),v}function g(v,T,S){let y=Math.min(v,T),x=Math.max(v,T),w=`${y},${x}`,A=d.get(w);if(A){A.faceCount++;let _=S[0]*A.normal[0]+S[1]*A.normal[1]+S[2]*A.normal[2];A.crease||=_<1-1e-7&&_<=f+1e-7}else d.set(w,{start:y,end:x,normal:S,faceCount:1,crease:!1})}for(let v=0;v<r.vertexCount;v+=3){let T=m(o?.[v]??v),S=m(o?.[v+1]??v+1),y=m(o?.[v+2]??v+2);if(T===S||S===y||y===T)continue;let x=[T,S,y].sort((L,E)=>L-E).join(",");if(l.has(x))continue;l.add(x);let w=p(T),A=p(S),_=p(y),I=A.map((L,E)=>L-w[E]),C=_.map((L,E)=>L-w[E]),M=[I[1]*C[2]-I[2]*C[1],I[2]*C[0]-I[0]*C[2],I[0]*C[1]-I[1]*C[0]],B=Math.hypot(...M);B!==0&&(M[0]/=B,M[1]/=B,M[2]/=B,g(T,S,M),g(S,y,M),g(y,T,M))}let b=[...d.values()].filter(v=>e.includeCoplanarEdges||v.faceCount!==2||v.crease).sort((v,T)=>v.start-T.start||v.end-T.end);return new G({id:`${r.id}-edges`,topology:"line-list",attributes:{[i]:s},indices:new Uint32Array(b.flatMap(v=>[v.start,v.end]))})}function o2(r,e={}){(0,p0.assert)(r.length>0);let t=e.positionAttribute??"POSITION",n=r.map(l=>a2(l,t)),i=n[0];(0,p0.assert)(n.every(l=>l.value.constructor===i.value.constructor&&!!l.normalized==!!i.normalized));let s=i.value.constructor,o=new s(n.reduce((l,d)=>l+d.value.length,0)),a=new Uint32Array(r.reduce((l,d)=>l+d.vertexCount,0)),c=0,u=0;for(let[l,d]of r.entries()){let f=n[l];o.set(f.value,c);for(let h=0;h<d.vertexCount;h++){let p=d.indices?.value[h]??h;(0,p0.assert)(Number.isInteger(p)&&p>=0&&p<f.value.length/3),a[u++]=p+c/3}c+=f.value.length}return E1(new G({id:`${r[0].id}-batch`,topology:"triangle-list",attributes:{[t]:{...i,value:o}},indices:a}),e)}function a2(r,e){let t=r.attributes[e];return(0,p0.assert)(r.topology==="triangle-list"&&t?.size===3),(0,p0.assert)(t.value.length%3===0&&r.vertexCount%3===0),(0,p0.assert)(!t.byteStride||t.byteStride===t.value.BYTES_PER_ELEMENT*3),(0,p0.assert)(r.vertexCount>=0&&r.vertexCount<=(r.indices?.value.length??t.value.length/3)),t}var In=O(k(),1);function c2(r,e={}){let{width:t=1,cap:n="butt",join:i="miter",miterLimit:s=4,roundSegments:o=16}=e;(0,In.assert)(Number.isFinite(t)&&t>=0&&Number.isFinite(s)&&s>=1),(0,In.assert)(Number.isInteger(o)&&o>=2&&o<=256);let a=[];for(let g of r){(0,In.assert)(Number.isFinite(g[0])&&Number.isFinite(g[1])&&Number.isFinite(g[2]??0));let b=a.at(-1);(!b||b[0]!==g[0]||b[1]!==g[1])&&a.push([g[0],g[1],g[2]??0])}e.closed&&a.length>1&&a[0][0]===a.at(-1)[0]&&a[0][1]===a.at(-1)[1]&&a.pop();let c=!!(e.closed&&a.length>2),u=[],l=[],d=t/2;if(a.length>1&&t>0){let g=[],b=[0];for(let T=0;T<a.length-(c?0:1);T++){let S=a[T],y=a[(T+1)%a.length],x=y[0]-S[0],w=y[1]-S[1],A=Math.hypot(x,w);g.push({direction:[x/A,w/A],length:A}),b.push(b.at(-1)+A)}let v=a.map((T,S)=>{let y=g[(S-1+g.length)%g.length],x=g[S%g.length],w=b[S];if(!c&&(S===0||S===a.length-1)){let L0=S===0?x.direction:y.direction,E0=n==="square"?S===0?-d:d:0,ge=p(T,L0,d,E0,w+E0),lt=p(T,L0,-d,E0,w+E0);return n==="round"&&m(T,L0,w,S===0),{incomingLeft:ge,outgoingLeft:ge,incomingRight:lt,outgoingRight:lt}}let A=y.direction,_=x.direction,I=A[0]*_[1]-A[1]*_[0],C=A[0]*_[0]+A[1]*_[1],M={incomingLeft:p(T,A,d,0,w),incomingRight:p(T,A,-d,0,w),outgoingLeft:p(T,_,d,0,w),outgoingRight:p(T,_,-d,0,w)};if(1+C<1e-8)return i==="round"&&(m(T,A,w,!1),m(T,_,w,!0)),M;let B=[-(A[1]+_[1])*d/(1+C),(A[0]+_[0])*d/(1+C)],L=Math.hypot(...B);if(Math.abs(I)<1e-8||i==="miter"&&L<=s*d){let L0=h(T,B,w,d),E0=h(T,[-B[0],-B[1]],w,-d);return{incomingLeft:L0,outgoingLeft:L0,incomingRight:E0,outgoingRight:E0}}let E=Math.sign(I),U=Math.min(1,Math.min(y.length,x.length)/(2*L)),j=h(T,[B[0]*E*U,B[1]*E*U],w,d*E);E>0?(M.incomingLeft=j,M.outgoingLeft=j):(M.incomingRight=j,M.outgoingRight=j);let b0=E>0?M.incomingRight:M.incomingLeft,Kt=E>0?M.outgoingRight:M.outgoingLeft;if(i==="round"){let L0=Math.atan2(I,C),E0=Math.atan2(b0.position[1]-T[1],b0.position[0]-T[0]),ge=Math.max(1,Math.ceil(Math.abs(L0)/Math.PI*o)),lt=b0;for(let Zt=1;Zt<=ge;Zt++){let j1=E0+L0*Zt/ge,W1=Zt===ge?Kt:h(T,[Math.cos(j1)*d,Math.sin(j1)*d],w,-d*E);f(j,lt,W1),lt=W1}}else f(j,b0,Kt);return M});g.forEach((T,S)=>{let y=v[S],x=v[(S+1)%v.length],w=c&&S===g.length-1,A=w?{...x.incomingLeft,distance:b.at(-1)}:x.incomingLeft,_=w?{...x.incomingRight,distance:b.at(-1)}:x.incomingRight;f(y.outgoingLeft,y.outgoingRight,A),f(y.outgoingRight,_,A)})}return new G({id:e.id,topology:"triangle-list",attributes:{POSITION:{size:3,value:new Float32Array(u)},TEXCOORD_0:{size:2,value:new Float32Array(l)}}});function f(g,b,v){let T=(b.position[0]-g.position[0])*(v.position[1]-g.position[1])-(b.position[1]-g.position[1])*(v.position[0]-g.position[0]);if(T!==0)for(let S of T>0?[g,b,v]:[g,v,b])u.push(...S.position),l.push(S.distance,S.across)}function h(g,b,v,T){return{position:[g[0]+b[0],g[1]+b[1],g[2]],distance:v,across:T}}function p(g,b,v,T,S){return h(g,[-b[1]*v+b[0]*T,b[0]*v+b[1]*T],S,v)}function m(g,b,v,T){let S={position:g,distance:v,across:0},y=Math.atan2(b[1],b[0])+(T?-Math.PI/2:Math.PI/2),x;for(let w=0;w<=o;w++){let A=y-Math.PI*w/o,_=[Math.cos(A)*d,Math.sin(A)*d],I=h(g,_,v+_[0]*b[0]+_[1]*b[1],-_[0]*b[1]+_[1]*b[0]);x&&f(S,x,I),x=I}}}var B1=O(k(),1),u2=10,O8=1e-10;function f2(r){let{positions:e,indices:t,attributes:n=[],preserveBoundary:i=!0}=r;(0,B1.assert)(t.length%3===0&&e.length%3===0);let s=Math.max(0,Math.min(t.length,Math.floor((r.targetIndexCount??t.length*(r.targetRatio??.5))/3)*3));if(t.length===0||s>=t.length)return{indices:t.slice(),geometricError:0};let o=e.length/3,a=Array.from({length:o},()=>({quadric:new Float64Array(u2),neighbors:new Set,boundaryNeighbors:new Set,triangles:new Set,active:!1,version:0})),c=[],u=new Map,l=new Map,d=new O1,f=0,h=0,p=(y,x,w)=>{let A=Math.min(y,x),_=Math.max(y,x),I=A*o+_,M=(u.get(I)||0)+w;M<=0?(u.delete(I),a[y].neighbors.delete(x),a[x].neighbors.delete(y)):(u.set(I,M),a[y].neighbors.add(x),a[x].neighbors.add(y)),M===1?(a[y].boundaryNeighbors.add(x),a[x].boundaryNeighbors.add(y)):(a[y].boundaryNeighbors.delete(x),a[x].boundaryNeighbors.delete(y))},m=y=>{let x=c[y];if(!x.active)return;let[w,A,_]=x.vertices;l.delete(d2(w,A,_)),p(w,A,-1),p(A,_,-1),p(_,w,-1),a[w].triangles.delete(y),a[A].triangles.delete(y),a[_].triangles.delete(y),x.active=!1,f--},g=y=>{let x=c[y],[w,A,_]=x.vertices;if(w===A||A===_||_===w)return!1;let I=d2(w,A,_);return l.has(I)?!1:(l.set(I,y),p(w,A,1),p(A,_,1),p(_,w,1),a[w].triangles.add(y),a[A].triangles.add(y),a[_].triangles.add(y),a[w].active=!0,a[A].active=!0,a[_].active=!0,x.active=!0,f++,!0)};for(let y=0;y<t.length;y+=3){let x=t[y],w=t[y+1],A=t[y+2];(0,B1.assert)(x<o&&w<o&&A<o);let _={vertices:[x,w,A],active:!1},I=c.push(_)-1;g(I)&&k8(a,e,x,w,A)}let b=(y,x)=>{if(!a[y].active||!a[x].active)return;let w=F8(n,y,x);if(Number.isFinite(w))for(let[A,_]of[[y,x],[x,y]]){if(i&&!l2(a,e,A,_))continue;let I=Math.max(0,N8(a,e,y,x,A));d.add({retainedVertex:A,removedVertex:_,retainedVersion:a[A].version,removedVersion:a[_].version,geometricCost:I,cost:I+w})}};for(let y=0;y<a.length;y++)for(let x of a[y].neighbors)y<x&&b(y,x);for(;f*3>s;){let y=d.remove();if(!y)break;let{retainedVertex:x,removedVertex:w}=y,A=a[x],_=a[w];if(!A.active||!_.active||A.version!==y.retainedVersion||_.version!==y.removedVersion||!A.neighbors.has(w)||i&&!l2(a,e,x,w)||!G8(c,a,e,x,w))continue;let I=new Set([x,w,...A.neighbors,..._.neighbors]),C=[..._.triangles];for(let M of C)m(M);for(let M of C){let B=c[M];for(let L=0;L<3;L++)B.vertices[L]===w&&(B.vertices[L]=x);g(M)}for(let M=0;M<u2;M++)A.quadric[M]+=_.quadric[M];_.active=!1,h=Math.max(h,y.geometricCost);for(let M of I)a[M].version++;for(let M of I)if(a[M].active)for(let B of a[M].neighbors)b(M,B)}let v=t.constructor,T=new v(f*3),S=0;for(let y of c)y.active&&(T[S++]=y.vertices[0],T[S++]=y.vertices[1],T[S++]=y.vertices[2]);return{indices:T,geometricError:Math.sqrt(h)}}function k8(r,e,t,n,i){let s=D1(e,t,n,i),o=Math.hypot(s[0],s[1],s[2]);if(o===0)return;let a=s[0]/o,c=s[1]/o,u=s[2]/o,l=-(a*e[t*3]+c*e[t*3+1]+u*e[t*3+2]),d=[a,c,u,l];for(let f of[t,n,i]){let h=0;for(let p=0;p<4;p++)for(let m=p;m<4;m++)r[f].quadric[h++]+=d[p]*d[m]}}function N8(r,e,t,n,i){let s=[e[i*3],e[i*3+1],e[i*3+2],1],o=0,a=0;for(let c=0;c<4;c++)for(let u=c;u<4;u++){let l=r[t].quadric[o]+r[n].quadric[o];a+=l*s[c]*s[u]*(c===u?1:2),o++}return a}function F8(r,e,t){let n=0;for(let i of r){let s=i.weight??1;if(s===0)continue;let o=i.values instanceof Uint8Array||i.values instanceof Uint16Array||i.values instanceof Uint32Array;for(let a=0;a<i.size;a++){let c=i.values[e*i.size+a]-i.values[t*i.size+a];if(o&&c!==0)return 1/0;n+=c*c*s}}return n}function l2(r,e,t,n){let i=r[t].boundaryNeighbors.size>0,s=r[n].boundaryNeighbors.size>0;if(i!==s)return!1;if(!s)return!0;let o=r[n].boundaryNeighbors;if(o.size!==2||!o.has(t))return!1;let a=[...o].find(p=>p!==t);if(a===void 0)return!1;let c=Pn(e,t,n),u=Pn(e,a,n),l=R1(c),d=R1(u),f=[c[1]*u[2]-c[2]*u[1],c[2]*u[0]-c[0]*u[2],c[0]*u[1]-c[1]*u[0]];return c[0]*u[0]+c[1]*u[1]+c[2]*u[2]<=0&&R1(f)<=O8*l*d}function G8(r,e,t,n,i){for(let s of e[i].triangles){let o=r[s];if(o.vertices.includes(n))continue;let a=D1(t,...o.vertices),c=o.vertices.map(d=>d===i?n:d),u=D1(t,...c);if(a[0]*u[0]+a[1]*u[1]+a[2]*u[2]<=0)return!1}return!0}function D1(r,e,t,n){let i=Pn(r,t,e),s=Pn(r,n,e);return[i[1]*s[2]-i[2]*s[1],i[2]*s[0]-i[0]*s[2],i[0]*s[1]-i[1]*s[0]]}function Pn(r,e,t){return[r[e*3]-r[t*3],r[e*3+1]-r[t*3+1],r[e*3+2]-r[t*3+2]]}function R1(r){return r[0]*r[0]+r[1]*r[1]+r[2]*r[2]}function d2(r,e,t){return[r,e,t].sort((n,i)=>n-i).join(":")}var O1=class{entries=[];add(e){this.entries.push(e);let t=this.entries.length-1;for(;t>0;){let n=t-1>>1;if(C1(this.entries[n],e)<=0)break;this.entries[t]=this.entries[n],this.entries[n]=e,t=n}}remove(){let e=this.entries[0],t=this.entries.pop();if(!e||!t||this.entries.length===0)return e;this.entries[0]=t;let n=0;for(;;){let i=n*2+1;if(i>=this.entries.length)break;let s=i+1,o=s<this.entries.length&&C1(this.entries[s],this.entries[i])<0?s:i;if(C1(this.entries[n],this.entries[o])<=0)break;[this.entries[n],this.entries[o]]=[this.entries[o],this.entries[n]],n=o}return e}};function C1(r,e){return r.cost-e.cost||r.retainedVertex-e.retainedVertex||r.removedVertex-e.removedVertex}function h2(){let r=1,e=1;return()=>(r=Math.sin(e*17.23),e=Math.cos(r*27.92),z8(Math.abs(r*e)*1432.71))}function z8(r){return r-Math.floor(r)}var m2="";function g2(r){m2=r}function Ln(r){return U8(r)?r:m2+r}async function y2(r,e){let t=new Image,n=Ln(r);t.crossOrigin=e?.crossOrigin||"anonymous",t.src=n;try{await t.decode()}catch(i){throw p2("decode",n,i)}try{return e?await createImageBitmap(t,e):await createImageBitmap(t)}catch(i){throw p2("create",n,i)}}async function x2(r,e){return await new Promise((t,n)=>{try{let i=new Image,s=Ln(r);i.onload=()=>t(i),i.onerror=()=>n(new Error(`Could not load image ${s}.`)),i.crossOrigin=e?.crossOrigin||"anonymous",i.src=s}catch(i){n(i)}})}function p2(r,e,t){let n=t instanceof Error?t.message:String(t),i=r==="decode"?`Could not decode source image "${e}": ${n}`:`Could not create ImageBitmap from decoded image "${e}": ${n}`;return new Error(i,{cause:t})}function U8(r){return r.startsWith("/")||/^[a-z][a-z\d+\-.]*:/i.test(r)}var fe=O(k(),1);var En=class{device;id;destroyed=!1;generation=0;_source;_colorSpace;_sampler;_isReady=!1;_updateTimestamp;_sourceVersion=0;_sourceFrameToken=null;_texture=null;_textureFrameToken=void 0;_externalTexture=null;get source(){return this._source}get isReady(){return this._observeSource(),this._isReady}get updateTimestamp(){return this._observeSource(),this._updateTimestamp}get[Symbol.toStringTag](){return"VideoTexture"}toString(){let e=k1(this._source);return`VideoTexture:"${this.id}":${e.width}x${e.height}px:(${this._isReady?"ready":"loading..."})`}constructor(e,t){(0,fe.assert)($t(t?.source)||b2(t?.source)),this.device=e,this.id=t.id||Q("video-texture"),this._source=t.source,this._colorSpace=t.colorSpace??"srgb",this._sampler=t.sampler??{},this._updateTimestamp=this.device.incrementTimestamp(),this.setSource(t.source)}setSource(e){(0,fe.assert)($t(e)||b2(e)),this._destroyExternalTexture(),this._source=e,this._sourceVersion++,this._sourceFrameToken=null,this._textureFrameToken=void 0,this._observeSource(),this._touchGeneration()}resolveTextureBinding(e){return this._observeSource(),!this._isReady||this.destroyed?null:e.type==="external-texture"&&this.device.type==="webgpu"?this._createNativeExternalTexture():this._resolveCopiedTexture()}setSampler(e){this._sampler=e,this._texture?.setSampler(e),this._externalTexture?.setSampler?.(e),this._touchGeneration()}destroy(){this.destroyed||(this._destroyExternalTexture(),this._texture?.destroy(),this._texture=null,this._textureFrameToken=void 0,this._isReady=!1,this.destroyed=!0,this._touchGeneration())}_resolveCopiedTexture(){let e=this._getOrCreateCopiedTexture();return Object.is(this._textureFrameToken,this._sourceFrameToken)||(e.copyExternalImage({image:this._source,colorSpace:this._colorSpace}),this._textureFrameToken=this._sourceFrameToken),e}_getOrCreateCopiedTexture(){let e=this._getResolvedSize(),t=this._texture;if(t&&t.width===e.width&&t.height===e.height)return t;t?.destroy();let n=this.device.createTexture({id:`${this.id}-texture`,width:e.width,height:e.height,format:"rgba8unorm",usage:fe.Texture.SAMPLE|fe.Texture.COPY_DST,mipLevels:1,sampler:this._sampler});return this._texture=n,this._textureFrameToken=void 0,this._touchGeneration(),n}_createNativeExternalTexture(){return this._destroyExternalTexture(),this._externalTexture=this.device.createExternalTexture({id:`${this.id}-external`,source:this._source,colorSpace:this._colorSpace,sampler:this._sampler}),this.generation++,this._externalTexture}_destroyExternalTexture(){this._externalTexture?.destroy(),this._externalTexture=null}_getResolvedSize(){let e=k1(this._source);return(0,fe.assert)(e.width>0&&e.height>0),e}_observeSource(){if(this.destroyed)return;let e=V8(this._source);if(e!==this._isReady&&(this._isReady=e,this._touch()),!e)return;let t=$8(this._source,this._sourceVersion);Object.is(t,this._sourceFrameToken)||(this._sourceFrameToken=t,this._touch())}_touch(){this._updateTimestamp=this.device.incrementTimestamp()}_touchGeneration(){this.generation++,this._touch()}};function $t(r){return!r||typeof r!="object"?!1:typeof HTMLVideoElement<"u"&&r instanceof HTMLVideoElement||"videoWidth"in r&&"videoHeight"in r&&"readyState"in r&&"currentTime"in r}function b2(r){return!r||typeof r!="object"?!1:typeof VideoFrame<"u"&&r instanceof VideoFrame||"displayWidth"in r&&"displayHeight"in r&&"timestamp"in r&&!("videoWidth"in r)}function V8(r){let e=k1(r);return e.width<=0||e.height<=0?!1:$t(r)?r.readyState>=2:!0}function k1(r){return $t(r)?{width:r.videoWidth,height:r.videoHeight}:{width:r.displayWidth,height:r.displayHeight}}function $8(r,e){return $t(r)?`${e}:${r.currentTime}:${r.videoWidth}x${r.videoHeight}`:`${e}:${r.timestamp}:${r.displayWidth}x${r.displayHeight}`}var N0=O(k(),1),I2=O(S0(),1);var k0=O(k(),1),rt=class{id;current;next;constructor(e){this.id=e.id||"swap",this.current=e.current,this.next=e.next}destroy(){this.current?.destroy(),this.next?.destroy()}swap(){let e=this.current;this.current=this.next,this.next=e}},nt=class extends rt{constructor(e,t){t={...t};let{width:n=1,height:i=1}=t,s=t.colorAttachments?.map(c=>typeof c!="string"?c:e.createTexture({id:`${t.id}-texture-0`,format:c,usage:k0.Texture.SAMPLE|k0.Texture.RENDER|k0.Texture.COPY_SRC|k0.Texture.COPY_DST,width:n,height:i})),o=e.createFramebuffer({...t,colorAttachments:s});s=t.colorAttachments?.map(c=>typeof c!="string"?c:e.createTexture({id:`${t.id}-texture-1`,format:c,usage:k0.Texture.SAMPLE|k0.Texture.RENDER|k0.Texture.COPY_SRC|k0.Texture.COPY_DST,width:n,height:i}));let a=e.createFramebuffer({...t,colorAttachments:s});super({current:o,next:a});for(let[c,u]of(t.colorAttachments||[]).entries())typeof u=="string"&&(o.attachResource(o.colorAttachments[c].texture),a.attachResource(a.colorAttachments[c].texture))}resize(e){if(e.width===this.current.width&&e.height===this.current.height)return!1;let{current:t,next:n}=this;return this.current=t.clone(e),v2(this.current),t.destroy(),this.next=n.clone(e),v2(this.next),n.destroy(),!0}};function v2(r){for(let e of r.colorAttachments)r.attachResource(e.texture);r.depthStencilAttachment&&r.attachResource(r.depthStencilAttachment.texture)}var Rn=class extends rt{constructor(e,t){super({current:e.createBuffer(t),next:e.createBuffer(t)})}resize(e){if(e.byteLength===this.current.byteLength)return!1;let{current:t,next:n}=this;return this.current=t.clone(e),t.destroy(),this.next=n.clone(e),n.destroy(),!0}};var F=O(k(),1),Cn=O(S0(),1);var N1=2,j8=1e4,it=class r{static async createAsync(e,t){let n=!F.PipelineFactory.getAsyncCompilation(e),i=n?F.PipelineFactory.beginAsyncCompilation(e):F.PipelineFactory.getAsyncCompilation(e),s;try{s=new r(e,t)}finally{n&&F.PipelineFactory.endAsyncCompilation(e,i)}try{return n?await Promise.all(i):await s._pipelineInitialization,s}catch(o){throw s.destroy(),o}}static defaultProps={...F.ComputePipeline.defaultProps,id:"unnamed",handle:void 0,userData:{},source:"",sourceLanguage:void 0,modules:[],defines:{},plugins:[],bindings:void 0,shaderInputs:void 0,pipelineFactory:void 0,shaderFactory:void 0,shaderAssembler:void 0,debugShaders:void 0};device;id;pipelineFactory;shaderFactory;userData={};bindings={};pipeline;source;shader;shaderInputs;_uniformStore;_pipelineNeedsUpdate="newly created";_getModuleUniforms;props;_destroyed=!1;_pipelineInitialization;constructor(e,t){if(e.type!=="webgpu")throw new Error("Computation is only supported in WebGPU");this.props={...r.defaultProps,...t,shaderAssembler:t.shaderAssembler??r.defaultProps.shaderAssembler??new U0},t=this.props,this.id=t.id||Q("model"),this.device=e,Object.assign(this.userData,t.userData);let n=ce(e),i=(0,Cn.resolveShaderPlugins)(this.props.plugins,n.shaderLanguage);if(i.hooks.length>0)throw new Error("Computation does not support ShaderPlugin render hooks");if(Object.keys(i.vertexInputs).length>0||Object.keys(i.interStageVariables).length>0)throw new Error("Computation does not support ShaderPlugin vertex inputs or interStageVariables");let s=(0,Cn.mergeShaderPluginModules)(this.props.modules,i.modules),o=Object.fromEntries(s.map(g=>[g.name,g]));this.shaderInputs=t.shaderInputs||new J(o),t.shaderInputs&&i.modules.length>0&&this.shaderInputs.addModules(i.modules),this.setShaderInputs(this.shaderInputs);let a=Hr(this.props.modules,this.shaderInputs?.getModules()),c={...i.defines,...this.props.defines};this.props.shaderLayout=ze(this.props.shaderLayout,a)||null,this.pipelineFactory=t.pipelineFactory||F.PipelineFactory.getDefaultPipelineFactory(this.device),this.shaderFactory=t.shaderFactory||F.ShaderFactory.getDefaultShaderFactory(this.device);let u=this.props.shaderAssembler;(0,F.assert)(u instanceof U0);let{source:l,getUniforms:d,entryPoints:f={},shaderLayout:h}=u.assembleWGSLShader({platformInfo:n,...this.props,modules:a,defines:c,shaderStage:"compute",computeEntryPoint:this.props.entryPoint,scanVertexAttributes:!1,pluginInjections:i.injections});this.source=l,this.props.entryPoint=f.compute||this.props.entryPoint,this._getModuleUniforms=d;let p=h??e.getShaderLayout?.(this.source,{scanVertexAttributes:!1});this.props.shaderLayout=ze(this.props.shaderLayout||p||null,a)||null;let m=F.PipelineFactory.getAsyncCompilation(this.device);m?(this._pipelineInitialization=this._updatePipelineAsync(),m.push(this._pipelineInitialization)):this.pipeline=this._updatePipeline(),t.bindings&&this.setBindings(t.bindings)}destroy(){this._destroyed||(this.pipeline&&this.pipelineFactory.release(this.pipeline),this.shader&&this.shaderFactory.release(this.shader),this._uniformStore.destroy(),this._destroyed=!0)}predraw(e){this.updateShaderInputs(e)}dispatch(e,t,n,i){try{this._logDrawCallStart(),this._setPipeline(e),e.dispatch(t,n,i)}finally{this._logDrawCallEnd()}}dispatchIndirect(e,t,n=0){try{this._logDrawCallStart(),this._setPipeline(e),e.dispatchIndirect(t,n)}finally{this._logDrawCallEnd()}}_setPipeline(e){this.pipeline=this._updatePipeline(),this.pipeline.setBindings(this.bindings),e.setPipeline(this.pipeline),e.setBindings({})}setVertexCount(e){}setInstanceCount(e){}setShaderInputs(e){this.shaderInputs=e,this._uniformStore=new F.UniformStore(this.device,this.shaderInputs.modules);for(let[t,n]of Object.entries(this.shaderInputs.modules))if(ae(n)){let i=this._uniformStore.getManagedUniformBuffer(t);this.bindings[`${t}Uniforms`]=i}}setShaderModuleProps(e){let t=this._getModuleUniforms(e),n=Object.keys(t).filter(s=>{let o=t[s];return!Gi(o)}),i={};for(let s of n)i[s]=t[s],delete t[s]}updateShaderInputs(e){this._uniformStore.setUniforms(this.shaderInputs.getUniformValues(),e)}setBindings(e){Object.assign(this.bindings,e)}_setPipelineNeedsUpdate(e){this._pipelineNeedsUpdate=this._pipelineNeedsUpdate||e}_updatePipeline(){let e=this._preparePipelineUpdate();return e&&(this.pipeline=this.pipelineFactory.createComputePipeline(e.props),this._finishPipelineUpdate(e.previousShader)),this.pipeline}async _updatePipelineAsync(){let e=this._preparePipelineUpdate();if(e){try{this.pipeline=await this.pipelineFactory.createComputePipelineAsync(e.props)}catch(t){throw this.shaderFactory.release(this.shader),this.shader=e.previousShader,this._pipelineNeedsUpdate="asynchronous pipeline creation failed",t}this._finishPipelineUpdate(e.previousShader)}return this.pipeline}_preparePipelineUpdate(){if(!this._pipelineNeedsUpdate)return null;let e=this.pipeline?this.shader:null;return this.pipeline&&F.log.log(1,`Model ${this.id}: Recreating pipeline because "${this._pipelineNeedsUpdate}".`)(),this._pipelineNeedsUpdate=!1,this.shader=this.shaderFactory.createShader({id:`${this.id}-fragment`,stage:"compute",source:this.source,debugShaders:this.props.debugShaders}),{props:{...this.props,shader:this.shader},previousShader:e}}_finishPipelineUpdate(e){e&&this.shaderFactory.release(e)}_lastLogTime=0;_logOpen=!1;_logDrawCallStart(){let e=F.log.level>3?0:j8;F.log.level<2||Date.now()-this._lastLogTime<e||(this._lastLogTime=Date.now(),this._logOpen=!0,F.log.group(N1,`>>> DRAWING MODEL ${this.id}`,{collapsed:F.log.level<=2})())}_logDrawCallEnd(){if(this._logOpen){let e=this.shaderInputs.getDebugTable();F.log.table(N1,e)(),F.log.groupEnd(N1)(),this._logOpen=!1}}_drawCount=0;_getBufferOrConstantValues(e,t){let n=F.dataTypeDecoder.getTypedArrayConstructor(t);return(e instanceof F.Buffer?new n(e.debugData):e).toString()}};function T2(r){let{shaderPass:e,action:t,shadingLanguage:n}=r;switch(t){case"filter":let i=`${e.name}_filterColor_ext`;return n==="wgsl"?W8(i):q8(i);case"sample":let s=`${e.name}_sampleColor`;return n==="wgsl"?H8(s):X8(s);default:throw new Error(`${e.name} no fragment shader generated for shader pass`)}}function W8(r){return`@group(0) @binding(auto) var sourceTexture: texture_2d<f32>;
|
|
297
|
+
`}}function Vt(r,e,t){return Math.min(t,Math.max(e,r))}var J8=new et({nlat:8,nlong:12,radius:1}),In=class extends Q0{constructor(e,t){super(e,t,{anchorMode:"centered",buildInstanceData:y2,geometry:J8,idPrefix:"point-light-model",sizePropNames:["pointLightRadius"]})}};var e6=new Z0({cap:!0,nradial:16,nvertical:1,radius:1}),An=class extends Q0{constructor(e,t){super(e,t,{anchorMode:"apex",buildInstanceData:x2,geometry:e6,idPrefix:"spot-light-model",sizePropNames:["spotLightLength"]})}};var t6=new Z0({cap:!0,nradial:12,nvertical:1,radius:1}),_n=class extends Q0{constructor(e,t){super(e,t,{anchorMode:"apex",buildInstanceData:b2,geometry:t6,idPrefix:"directional-light-model",sizePropNames:["directionalLightLength"]})}};function F1(r,e){if(!r)throw new Error(e)}var T0=class{id;matrix=new L;display=!0;selectable=!0;hoverable=!0;position=new B;rotation=new B;scale=new B(1,1,1);metadata={};userData={};props={};constructor(e={}){let{id:t}=e;this.id=t||J(this.constructor.name),this._setScenegraphNodeProps(e)}getBounds(){return null}destroy(){}delete(){this.destroy()}setProps(e){return this._setScenegraphNodeProps(e),this}toString(){return`{type: ScenegraphNode, id: ${this.id})}`}setPosition(e){return F1(e.length===3,"setPosition requires vector argument"),this.position=e,this}setRotation(e){return F1(e.length===3||e.length===4,"setRotation requires vector argument"),this.rotation=e,this}setScale(e){return F1(e.length===3,"setScale requires vector argument"),this.scale=e,this}setMatrix(e,t=!0){t?this.matrix.copy(e):this.matrix=e}setMatrixComponents(e){let{position:t,rotation:n,scale:i,update:s=!0}=e;return t&&this.setPosition(t),n&&this.setRotation(n),i&&this.setScale(i),s&&this.updateMatrix(),this}updateMatrix(){if(this.matrix.identity(),this.matrix.translate(this.position),this.rotation.length===4){let e=new L().fromQuaternion(this.rotation);this.matrix.multiplyRight(e)}else this.matrix.rotateXYZ(this.rotation);return this.matrix.scale(this.scale),this}update({position:e,rotation:t,scale:n}={}){return e&&this.setPosition(e),t&&this.setRotation(t),n&&this.setScale(n),this.updateMatrix(),this}getCoordinateUniforms(e,t){t=t||this.matrix;let n=new L(e).multiplyRight(t),i=n.invert(),s=i.transpose();return{viewMatrix:e,modelMatrix:t,objectMatrix:t,worldMatrix:n,worldInverseMatrix:i,worldInverseTransposeMatrix:s}}_setScenegraphNodeProps(e){e.selectable!==void 0&&(this.selectable=e.selectable),e.hoverable!==void 0&&(this.hoverable=e.hoverable),e.display!==void 0&&(this.display=e.display),e?.position&&this.setPosition(e.position),e?.rotation&&this.setRotation(e.rotation),e?.scale&&this.setScale(e.scale),this.updateMatrix(),e?.matrix&&this.setMatrix(e.matrix),Object.assign(this.props,e)}};function G1(r,e){return r.length>0&&r.every(t=>e==="select"?t.selectable:t.hoverable)}function Mn(r,e){return r.find(t=>G1(t.path,e))}var En=class{hoveredHits=new Map;pendingHover=new Map;onEvent;constructor(e){this.onEvent=e}select(e,t=0){let n=Mn(e,"select");if(n)return this.emitPath("select",n,0,t),n}updateHover(e,t=0){let n=Mn(e,"hover"),i=n?{...n,path:[...n.path]}:void 0,s=this.pendingHover.get(t);if(s)return s.push(i),n;let o=[i];this.pendingHover.set(t,o);try{for(;o.length;){let a=o.shift(),c=this.hoveredHits.get(t),u=c?.path||[],l=a?.path||[],d=0;for(;d<u.length&&d<l.length&&u[d]===l[d];)d++;a?this.hoveredHits.set(t,a):this.hoveredHits.delete(t),c&&this.emitPath("hover-out",c,d,t),a&&this.emitPath("hover-in",a,d,t)}}finally{this.pendingHover.delete(t)}return n}clearHover(e=0){this.updateHover([],e)}emitPath(e,t,n,i){let{path:s}=t,o=s[s.length-1];for(let a=s.length-1;a>=n;a--)this.onEvent({type:e,target:o,currentTarget:s[a],controllerIndex:i,hit:t})}};var Pn=class{entries=new Map;set(e,t,n){let i=this.entries.get(e);i||(i=new Map,this.entries.set(e,i)),i.set(t,n)}get(e,t=0){return this.entries.get(e)?.get(t)}};var Bn=D(k(),1);function Ln(){return[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]]}function Rn(r,e,t){let n=new L(t);for(let i=0;i<8;i++){let s=new B(e[i&1?1:0][0],e[i&2?1:0][1],e[i&4?1:0][2]);n.transformAsPoint(s,s);for(let o=0;o<3;o++)r[0][o]=Math.min(r[0][o],s[o]),r[1][o]=Math.max(r[1][o],s[o])}}function Cn(r){return Number.isFinite(r[0][0])}var u0=class r extends T0{children;transformSource;constructor(e={}){e=Array.isArray(e)?{children:e}:e;let{children:t=[]}=e;Bn.log.assert(t.every(n=>n instanceof T0),"every child must an instance of ScenegraphNode"),super(e),this.children=t,this.transformSource=e.transformSource??null}getBounds(){let e=Ln();return this.traverse((t,{worldMatrix:n})=>{let i=t.getBounds();if(!i)return;let s=new L(n).multiplyRight(t.matrix);Rn(e,i,s)}),Cn(e)?e:null}destroy(){this.children.forEach(e=>e.destroy()),this.removeAll(),super.destroy()}add(...e){for(let t of e)Array.isArray(t)?this.add(...t):this.children.push(t);return this}remove(e){let t=this.children,n=t.indexOf(e);return n>-1&&t.splice(n,1),this}removeAll(){return this.children=[],this}findNode(e){let t=this.findNodes(e);if(t.length>1)throw new Error(`Ambiguous scenegraph path: ${e} (${t.length} matches)`);return t[0]}findNodes(e){let t=e.startsWith("/"),n=e==="/"?[]:(t?e.slice(1):e).split("/").map(c=>{if(!c||/~(?![01])/.test(c))throw new Error(`Invalid scenegraph path: ${e}`);return c.replace(/~1/g,"/").replace(/~0/g,"~")}),i=[],s=[],o=new Set,a=[{node:this,depth:0}];for(;a.length;){let{node:c,depth:u}=a.pop();(0,Bn.assert)(!o.has(c)),o.add(c),s.length=u,s.push(c.id);let l=s.length-n.length;if((t?l===1:l>=0)&&n.every((d,f)=>d===s[l+f])&&i.push(c),c instanceof r)for(let d=c.children.length-1;d>=0;d--)a.push({node:c.children[d],depth:u+1})}return i}traverse(e,{worldMatrix:t=new L}={}){if(!this.display)return;let n=new L(t).multiplyRight(this.matrix);for(let i of this.children)i.display&&(i instanceof r?i.traverse(e,{worldMatrix:n}):e(i,{worldMatrix:n}))}traverseDepthSorted(e,{viewMatrix:t,worldMatrix:n=new L,order:i="back-to-front"}){let s=new L(t),o=[];this.traverse((c,u)=>{let l=c.getBounds(),d=l?new B(l[0]).add(l[1]).divide([2,2,2]):new B,f=new L(u.worldMatrix).multiplyRight(c.matrix);f.transformAsPoint(d,d),s.transformAsPoint(d,d),o.push({node:c,context:{worldMatrix:f,bounds:l,depth:-d[2]},index:o.length})},{worldMatrix:new L(n)});let a=i==="back-to-front"?-1:1;o.sort((c,u)=>a*(c.context.depth-u.context.depth)||c.index-u.index);for(let{node:c,context:u}of o)e(c,u)}preorderTraversal(e,{worldMatrix:t=new L}={}){let n=new L(t).multiplyRight(this.matrix);e(this,{worldMatrix:n});for(let i of this.children)i instanceof r?i.preorderTraversal(e,{worldMatrix:n}):e(i,{worldMatrix:n})}};var Dn=class extends T0{geometry;constructor(e){super(e),this.geometry=e.geometry}getBounds(){let e=this.geometry.attributes.POSITION;if(!e||e.size!==3||!e.value.length)return null;let t=[1/0,1/0,1/0],n=[-1/0,-1/0,-1/0];for(let i=0;i<e.value.length;i++){let s=i%3;t[s]=Math.min(t[s],e.value[i]),n[s]=Math.max(n[s],e.value[i])}return[t,n]}};var rt=class extends T0{model;instanceMatrices;bounds=null;managedResources;constructor(e){super(e),this.model=e.model,this.managedResources=e.managedResources||[],this.instanceMatrices=e.instanceMatrices||null,this.bounds=e.bounds?this.instanceMatrices?r6(e.bounds,this.instanceMatrices):e.bounds:null,this.setProps(e)}destroy(){this.model&&(this.model.destroy(),this.model=null),this.managedResources.forEach(e=>e.destroy()),this.managedResources=[]}getBounds(){return this.bounds}draw(e){return this.model.draw(e)}};function r6(r,e){let t=Ln();for(let n of e)Rn(t,r,n);return Cn(t)?t:null}var g0=D(k(),1);function z1(r,e={}){let{angleThreshold:t=30,weldTolerance:n=0,positionAttribute:i="POSITION"}=e,s=I2(r,i);(0,g0.assert)(Number.isFinite(n)&&n>=0),(0,g0.assert)(Number.isFinite(t)&&t>=0&&t<=180);let o=r.indices?.value,a=s.value.length/3,c=new Map,u=new Map,l=new Set,d=new Map,f=Math.cos(t*Math.PI/180),h=n*n;function p(v){return[s.value[v*3],s.value[v*3+1],s.value[v*3+2]]}function m(v){let T=c.get(v);if(T!==void 0)return T;(0,g0.assert)(Number.isInteger(v)&&v>=0&&v<a);let S=p(v);(0,g0.assert)(S.every(Number.isFinite));let y=n>0?S.map(A=>Math.floor(A/n)):S,x=n>0?1:0;for(let A=-x;A<=x;A++)for(let M=-x;M<=x;M++)for(let R=-x;R<=x;R++){let _=u.get(`${y[0]+A},${y[1]+M},${y[2]+R}`);for(let C of _||[]){let P=p(C);if((S[0]-P[0])**2+(S[1]-P[1])**2+(S[2]-P[2])**2<=h)return c.set(v,C),C}}let w=y.join(","),I=u.get(w)||[];return I.push(v),u.set(w,I),c.set(v,v),v}function g(v,T,S){let y=Math.min(v,T),x=Math.max(v,T),w=`${y},${x}`,I=d.get(w);if(I){I.faceCount++;let A=S[0]*I.normal[0]+S[1]*I.normal[1]+S[2]*I.normal[2];I.crease||=A<1-1e-7&&A<=f+1e-7}else d.set(w,{start:y,end:x,normal:S,faceCount:1,crease:!1})}for(let v=0;v<r.vertexCount;v+=3){let T=m(o?.[v]??v),S=m(o?.[v+1]??v+1),y=m(o?.[v+2]??v+2);if(T===S||S===y||y===T)continue;let x=[T,S,y].sort((P,O)=>P-O).join(",");if(l.has(x))continue;l.add(x);let w=p(T),I=p(S),A=p(y),M=I.map((P,O)=>P-w[O]),R=A.map((P,O)=>P-w[O]),_=[M[1]*R[2]-M[2]*R[1],M[2]*R[0]-M[0]*R[2],M[0]*R[1]-M[1]*R[0]],C=Math.hypot(..._);C!==0&&(_[0]/=C,_[1]/=C,_[2]/=C,g(T,S,_),g(S,y,_),g(y,T,_))}let b=[...d.values()].filter(v=>e.includeCoplanarEdges||v.faceCount!==2||v.crease).sort((v,T)=>v.start-T.start||v.end-T.end);return new z({id:`${r.id}-edges`,topology:"line-list",attributes:{[i]:s},indices:new Uint32Array(b.flatMap(v=>[v.start,v.end]))})}function w2(r,e={}){(0,g0.assert)(r.length>0);let t=e.positionAttribute??"POSITION",n=r.map(l=>I2(l,t)),i=n[0];(0,g0.assert)(n.every(l=>l.value.constructor===i.value.constructor&&!!l.normalized==!!i.normalized));let s=i.value.constructor,o=new s(n.reduce((l,d)=>l+d.value.length,0)),a=new Uint32Array(r.reduce((l,d)=>l+d.vertexCount,0)),c=0,u=0;for(let[l,d]of r.entries()){let f=n[l];o.set(f.value,c);for(let h=0;h<d.vertexCount;h++){let p=d.indices?.value[h]??h;(0,g0.assert)(Number.isInteger(p)&&p>=0&&p<f.value.length/3),a[u++]=p+c/3}c+=f.value.length}return z1(new z({id:`${r[0].id}-batch`,topology:"triangle-list",attributes:{[t]:{...i,value:o}},indices:a}),e)}function I2(r,e){let t=r.attributes[e];return(0,g0.assert)(r.topology==="triangle-list"&&t?.size===3),(0,g0.assert)(t.value.length%3===0&&r.vertexCount%3===0),(0,g0.assert)(!t.byteStride||t.byteStride===t.value.BYTES_PER_ELEMENT*3),(0,g0.assert)(r.vertexCount>=0&&r.vertexCount<=(r.indices?.value.length??t.value.length/3)),t}var On=D(k(),1);function A2(r,e={}){let{width:t=1,cap:n="butt",join:i="miter",miterLimit:s=4,roundSegments:o=16}=e;(0,On.assert)(Number.isFinite(t)&&t>=0&&Number.isFinite(s)&&s>=1),(0,On.assert)(Number.isInteger(o)&&o>=2&&o<=256);let a=[];for(let g of r){(0,On.assert)(Number.isFinite(g[0])&&Number.isFinite(g[1])&&Number.isFinite(g[2]??0));let b=a.at(-1);(!b||b[0]!==g[0]||b[1]!==g[1])&&a.push([g[0],g[1],g[2]??0])}e.closed&&a.length>1&&a[0][0]===a.at(-1)[0]&&a[0][1]===a.at(-1)[1]&&a.pop();let c=!!(e.closed&&a.length>2),u=[],l=[],d=t/2;if(a.length>1&&t>0){let g=[],b=[0];for(let T=0;T<a.length-(c?0:1);T++){let S=a[T],y=a[(T+1)%a.length],x=y[0]-S[0],w=y[1]-S[1],I=Math.hypot(x,w);g.push({direction:[x/I,w/I],length:I}),b.push(b.at(-1)+I)}let v=a.map((T,S)=>{let y=g[(S-1+g.length)%g.length],x=g[S%g.length],w=b[S];if(!c&&(S===0||S===a.length-1)){let x0=S===0?x.direction:y.direction,R0=n==="square"?S===0?-d:d:0,me=p(T,x0,d,R0,w+R0),dt=p(T,x0,-d,R0,w+R0);return n==="round"&&m(T,x0,w,S===0),{incomingLeft:me,outgoingLeft:me,incomingRight:dt,outgoingRight:dt}}let I=y.direction,A=x.direction,M=I[0]*A[1]-I[1]*A[0],R=I[0]*A[0]+I[1]*A[1],_={incomingLeft:p(T,I,d,0,w),incomingRight:p(T,I,-d,0,w),outgoingLeft:p(T,A,d,0,w),outgoingRight:p(T,A,-d,0,w)};if(1+R<1e-8)return i==="round"&&(m(T,I,w,!1),m(T,A,w,!0)),_;let C=[-(I[1]+A[1])*d/(1+R),(I[0]+A[0])*d/(1+R)],P=Math.hypot(...C);if(Math.abs(M)<1e-8||i==="miter"&&P<=s*d){let x0=h(T,C,w,d),R0=h(T,[-C[0],-C[1]],w,-d);return{incomingLeft:x0,outgoingLeft:x0,incomingRight:R0,outgoingRight:R0}}let O=Math.sign(M),N=Math.min(1,Math.min(y.length,x.length)/(2*P)),V=h(T,[C[0]*O*N,C[1]*O*N],w,d*O);O>0?(_.incomingLeft=V,_.outgoingLeft=V):(_.incomingRight=V,_.outgoingRight=V);let n0=O>0?_.incomingRight:_.incomingLeft,Kt=O>0?_.outgoingRight:_.outgoingLeft;if(i==="round"){let x0=Math.atan2(M,R),R0=Math.atan2(n0.position[1]-T[1],n0.position[0]-T[0]),me=Math.max(1,Math.ceil(Math.abs(x0)/Math.PI*o)),dt=n0;for(let Zt=1;Zt<=me;Zt++){let es=R0+x0*Zt/me,ts=Zt===me?Kt:h(T,[Math.cos(es)*d,Math.sin(es)*d],w,-d*O);f(V,dt,ts),dt=ts}}else f(V,n0,Kt);return _});g.forEach((T,S)=>{let y=v[S],x=v[(S+1)%v.length],w=c&&S===g.length-1,I=w?{...x.incomingLeft,distance:b.at(-1)}:x.incomingLeft,A=w?{...x.incomingRight,distance:b.at(-1)}:x.incomingRight;f(y.outgoingLeft,y.outgoingRight,I),f(y.outgoingRight,A,I)})}return new z({id:e.id,topology:"triangle-list",attributes:{POSITION:{size:3,value:new Float32Array(u)},TEXCOORD_0:{size:2,value:new Float32Array(l)}}});function f(g,b,v){let T=(b.position[0]-g.position[0])*(v.position[1]-g.position[1])-(b.position[1]-g.position[1])*(v.position[0]-g.position[0]);if(T!==0)for(let S of T>0?[g,b,v]:[g,v,b])u.push(...S.position),l.push(S.distance,S.across)}function h(g,b,v,T){return{position:[g[0]+b[0],g[1]+b[1],g[2]],distance:v,across:T}}function p(g,b,v,T,S){return h(g,[-b[1]*v+b[0]*T,b[0]*v+b[1]*T],S,v)}function m(g,b,v,T){let S={position:g,distance:v,across:0},y=Math.atan2(b[1],b[0])+(T?-Math.PI/2:Math.PI/2),x;for(let w=0;w<=o;w++){let I=y-Math.PI*w/o,A=[Math.cos(I)*d,Math.sin(I)*d],M=h(g,A,v+A[0]*b[0]+A[1]*b[1],-A[0]*b[1]+A[1]*b[0]);x&&f(S,x,M),x=M}}}var U1=D(k(),1),_2=10,n6=1e-10;function P2(r){let{positions:e,indices:t,attributes:n=[],preserveBoundary:i=!0}=r;(0,U1.assert)(t.length%3===0&&e.length%3===0);let s=Math.max(0,Math.min(t.length,Math.floor((r.targetIndexCount??t.length*(r.targetRatio??.5))/3)*3));if(t.length===0||s>=t.length)return{indices:t.slice(),geometricError:0};let o=e.length/3,a=Array.from({length:o},()=>({quadric:new Float64Array(_2),neighbors:new Set,boundaryNeighbors:new Set,triangles:new Set,active:!1,version:0})),c=[],u=new Map,l=new Map,d=new W1,f=0,h=0,p=(y,x,w)=>{let I=Math.min(y,x),A=Math.max(y,x),M=I*o+A,_=(u.get(M)||0)+w;_<=0?(u.delete(M),a[y].neighbors.delete(x),a[x].neighbors.delete(y)):(u.set(M,_),a[y].neighbors.add(x),a[x].neighbors.add(y)),_===1?(a[y].boundaryNeighbors.add(x),a[x].boundaryNeighbors.add(y)):(a[y].boundaryNeighbors.delete(x),a[x].boundaryNeighbors.delete(y))},m=y=>{let x=c[y];if(!x.active)return;let[w,I,A]=x.vertices;l.delete(E2(w,I,A)),p(w,I,-1),p(I,A,-1),p(A,w,-1),a[w].triangles.delete(y),a[I].triangles.delete(y),a[A].triangles.delete(y),x.active=!1,f--},g=y=>{let x=c[y],[w,I,A]=x.vertices;if(w===I||I===A||A===w)return!1;let M=E2(w,I,A);return l.has(M)?!1:(l.set(M,y),p(w,I,1),p(I,A,1),p(A,w,1),a[w].triangles.add(y),a[I].triangles.add(y),a[A].triangles.add(y),a[w].active=!0,a[I].active=!0,a[A].active=!0,x.active=!0,f++,!0)};for(let y=0;y<t.length;y+=3){let x=t[y],w=t[y+1],I=t[y+2];(0,U1.assert)(x<o&&w<o&&I<o);let A={vertices:[x,w,I],active:!1},M=c.push(A)-1;g(M)&&i6(a,e,x,w,I)}let b=(y,x)=>{if(!a[y].active||!a[x].active)return;let w=o6(n,y,x);if(Number.isFinite(w))for(let[I,A]of[[y,x],[x,y]]){if(i&&!M2(a,e,I,A))continue;let M=Math.max(0,s6(a,e,y,x,I));d.add({retainedVertex:I,removedVertex:A,retainedVersion:a[I].version,removedVersion:a[A].version,geometricCost:M,cost:M+w})}};for(let y=0;y<a.length;y++)for(let x of a[y].neighbors)y<x&&b(y,x);for(;f*3>s;){let y=d.remove();if(!y)break;let{retainedVertex:x,removedVertex:w}=y,I=a[x],A=a[w];if(!I.active||!A.active||I.version!==y.retainedVersion||A.version!==y.removedVersion||!I.neighbors.has(w)||i&&!M2(a,e,x,w)||!a6(c,a,e,x,w))continue;let M=new Set([x,w,...I.neighbors,...A.neighbors]),R=[...A.triangles];for(let _ of R)m(_);for(let _ of R){let C=c[_];for(let P=0;P<3;P++)C.vertices[P]===w&&(C.vertices[P]=x);g(_)}for(let _=0;_<_2;_++)I.quadric[_]+=A.quadric[_];A.active=!1,h=Math.max(h,y.geometricCost);for(let _ of M)a[_].version++;for(let _ of M)if(a[_].active)for(let C of a[_].neighbors)b(_,C)}let v=t.constructor,T=new v(f*3),S=0;for(let y of c)y.active&&(T[S++]=y.vertices[0],T[S++]=y.vertices[1],T[S++]=y.vertices[2]);return{indices:T,geometricError:Math.sqrt(h)}}function i6(r,e,t,n,i){let s=j1(e,t,n,i),o=Math.hypot(s[0],s[1],s[2]);if(o===0)return;let a=s[0]/o,c=s[1]/o,u=s[2]/o,l=-(a*e[t*3]+c*e[t*3+1]+u*e[t*3+2]),d=[a,c,u,l];for(let f of[t,n,i]){let h=0;for(let p=0;p<4;p++)for(let m=p;m<4;m++)r[f].quadric[h++]+=d[p]*d[m]}}function s6(r,e,t,n,i){let s=[e[i*3],e[i*3+1],e[i*3+2],1],o=0,a=0;for(let c=0;c<4;c++)for(let u=c;u<4;u++){let l=r[t].quadric[o]+r[n].quadric[o];a+=l*s[c]*s[u]*(c===u?1:2),o++}return a}function o6(r,e,t){let n=0;for(let i of r){let s=i.weight??1;if(s===0)continue;let o=i.values instanceof Uint8Array||i.values instanceof Uint16Array||i.values instanceof Uint32Array;for(let a=0;a<i.size;a++){let c=i.values[e*i.size+a]-i.values[t*i.size+a];if(o&&c!==0)return 1/0;n+=c*c*s}}return n}function M2(r,e,t,n){let i=r[t].boundaryNeighbors.size>0,s=r[n].boundaryNeighbors.size>0;if(i!==s)return!1;if(!s)return!0;let o=r[n].boundaryNeighbors;if(o.size!==2||!o.has(t))return!1;let a=[...o].find(p=>p!==t);if(a===void 0)return!1;let c=Nn(e,t,n),u=Nn(e,a,n),l=$1(c),d=$1(u),f=[c[1]*u[2]-c[2]*u[1],c[2]*u[0]-c[0]*u[2],c[0]*u[1]-c[1]*u[0]];return c[0]*u[0]+c[1]*u[1]+c[2]*u[2]<=0&&$1(f)<=n6*l*d}function a6(r,e,t,n,i){for(let s of e[i].triangles){let o=r[s];if(o.vertices.includes(n))continue;let a=j1(t,...o.vertices),c=o.vertices.map(d=>d===i?n:d),u=j1(t,...c);if(a[0]*u[0]+a[1]*u[1]+a[2]*u[2]<=0)return!1}return!0}function j1(r,e,t,n){let i=Nn(r,t,e),s=Nn(r,n,e);return[i[1]*s[2]-i[2]*s[1],i[2]*s[0]-i[0]*s[2],i[0]*s[1]-i[1]*s[0]]}function Nn(r,e,t){return[r[e*3]-r[t*3],r[e*3+1]-r[t*3+1],r[e*3+2]-r[t*3+2]]}function $1(r){return r[0]*r[0]+r[1]*r[1]+r[2]*r[2]}function E2(r,e,t){return[r,e,t].sort((n,i)=>n-i).join(":")}var W1=class{entries=[];add(e){this.entries.push(e);let t=this.entries.length-1;for(;t>0;){let n=t-1>>1;if(V1(this.entries[n],e)<=0)break;this.entries[t]=this.entries[n],this.entries[n]=e,t=n}}remove(){let e=this.entries[0],t=this.entries.pop();if(!e||!t||this.entries.length===0)return e;this.entries[0]=t;let n=0;for(;;){let i=n*2+1;if(i>=this.entries.length)break;let s=i+1,o=s<this.entries.length&&V1(this.entries[s],this.entries[i])<0?s:i;if(V1(this.entries[n],this.entries[o])<=0)break;[this.entries[n],this.entries[o]]=[this.entries[o],this.entries[n]],n=o}return e}};function V1(r,e){return r.cost-e.cost||r.retainedVertex-e.retainedVertex||r.removedVertex-e.removedVertex}function L2(){let r=1,e=1;return()=>(r=Math.sin(e*17.23),e=Math.cos(r*27.92),c6(Math.abs(r*e)*1432.71))}function c6(r){return r-Math.floor(r)}var C2="";function B2(r){C2=r}function kn(r){return u6(r)?r:C2+r}async function D2(r,e){let t=new Image,n=kn(r);t.crossOrigin=e?.crossOrigin||"anonymous",t.src=n;try{await t.decode()}catch(i){throw R2("decode",n,i)}try{return e?await createImageBitmap(t,e):await createImageBitmap(t)}catch(i){throw R2("create",n,i)}}async function O2(r,e){return await new Promise((t,n)=>{try{let i=new Image,s=kn(r);i.onload=()=>t(i),i.onerror=()=>n(new Error(`Could not load image ${s}.`)),i.crossOrigin=e?.crossOrigin||"anonymous",i.src=s}catch(i){n(i)}})}function R2(r,e,t){let n=t instanceof Error?t.message:String(t),i=r==="decode"?`Could not decode source image "${e}": ${n}`:`Could not create ImageBitmap from decoded image "${e}": ${n}`;return new Error(i,{cause:t})}function u6(r){return r.startsWith("/")||/^[a-z][a-z\d+\-.]*:/i.test(r)}var de=D(k(),1);var Fn=class{device;id;destroyed=!1;generation=0;_source;_colorSpace;_sampler;_isReady=!1;_updateTimestamp;_sourceVersion=0;_sourceFrameToken=null;_texture=null;_textureFrameToken=void 0;_externalTexture=null;get source(){return this._source}get isReady(){return this._observeSource(),this._isReady}get updateTimestamp(){return this._observeSource(),this._updateTimestamp}get[Symbol.toStringTag](){return"VideoTexture"}toString(){let e=q1(this._source);return`VideoTexture:"${this.id}":${e.width}x${e.height}px:(${this._isReady?"ready":"loading..."})`}constructor(e,t){(0,de.assert)(Ut(t?.source)||N2(t?.source)),this.device=e,this.id=t.id||J("video-texture"),this._source=t.source,this._colorSpace=t.colorSpace??"srgb",this._sampler=t.sampler??{},this._updateTimestamp=this.device.incrementTimestamp(),this.setSource(t.source)}setSource(e){(0,de.assert)(Ut(e)||N2(e)),this._destroyExternalTexture(),this._source=e,this._sourceVersion++,this._sourceFrameToken=null,this._textureFrameToken=void 0,this._observeSource(),this._touchGeneration()}resolveTextureBinding(e){return this._observeSource(),!this._isReady||this.destroyed?null:e.type==="external-texture"&&this.device.type==="webgpu"?this._createNativeExternalTexture():this._resolveCopiedTexture()}setSampler(e){this._sampler=e,this._texture?.setSampler(e),this._externalTexture?.setSampler?.(e),this._touchGeneration()}destroy(){this.destroyed||(this._destroyExternalTexture(),this._texture?.destroy(),this._texture=null,this._textureFrameToken=void 0,this._isReady=!1,this.destroyed=!0,this._touchGeneration())}_resolveCopiedTexture(){let e=this._getOrCreateCopiedTexture();return Object.is(this._textureFrameToken,this._sourceFrameToken)||(e.copyExternalImage({image:this._source,colorSpace:this._colorSpace}),this._textureFrameToken=this._sourceFrameToken),e}_getOrCreateCopiedTexture(){let e=this._getResolvedSize(),t=this._texture;if(t&&t.width===e.width&&t.height===e.height)return t;t?.destroy();let n=this.device.createTexture({id:`${this.id}-texture`,width:e.width,height:e.height,format:"rgba8unorm",usage:de.Texture.SAMPLE|de.Texture.COPY_DST,mipLevels:1,sampler:this._sampler});return this._texture=n,this._textureFrameToken=void 0,this._touchGeneration(),n}_createNativeExternalTexture(){return this._destroyExternalTexture(),this._externalTexture=this.device.createExternalTexture({id:`${this.id}-external`,source:this._source,colorSpace:this._colorSpace,sampler:this._sampler}),this.generation++,this._externalTexture}_destroyExternalTexture(){this._externalTexture?.destroy(),this._externalTexture=null}_getResolvedSize(){let e=q1(this._source);return(0,de.assert)(e.width>0&&e.height>0),e}_observeSource(){if(this.destroyed)return;let e=l6(this._source);if(e!==this._isReady&&(this._isReady=e,this._touch()),!e)return;let t=d6(this._source,this._sourceVersion);Object.is(t,this._sourceFrameToken)||(this._sourceFrameToken=t,this._touch())}_touch(){this._updateTimestamp=this.device.incrementTimestamp()}_touchGeneration(){this.generation++,this._touch()}};function Ut(r){return!r||typeof r!="object"?!1:typeof HTMLVideoElement<"u"&&r instanceof HTMLVideoElement||"videoWidth"in r&&"videoHeight"in r&&"readyState"in r&&"currentTime"in r}function N2(r){return!r||typeof r!="object"?!1:typeof VideoFrame<"u"&&r instanceof VideoFrame||"displayWidth"in r&&"displayHeight"in r&&"timestamp"in r&&!("videoWidth"in r)}function l6(r){let e=q1(r);return e.width<=0||e.height<=0?!1:Ut(r)?r.readyState>=2:!0}function q1(r){return Ut(r)?{width:r.videoWidth,height:r.videoHeight}:{width:r.displayWidth,height:r.displayHeight}}function d6(r,e){return Ut(r)?`${e}:${r.currentTime}:${r.videoWidth}x${r.videoHeight}`:`${e}:${r.timestamp}:${r.displayWidth}x${r.displayHeight}`}var k0=D(k(),1),j2=D(b0(),1);var N0=D(k(),1),nt=class{id;current;next;constructor(e){this.id=e.id||"swap",this.current=e.current,this.next=e.next}destroy(){this.current?.destroy(),this.next?.destroy()}swap(){let e=this.current;this.current=this.next,this.next=e}},it=class extends nt{constructor(e,t){t={...t};let{width:n=1,height:i=1}=t,s=t.colorAttachments?.map(c=>typeof c!="string"?c:e.createTexture({id:`${t.id}-texture-0`,format:c,usage:N0.Texture.SAMPLE|N0.Texture.RENDER|N0.Texture.COPY_SRC|N0.Texture.COPY_DST,width:n,height:i})),o=e.createFramebuffer({...t,colorAttachments:s});s=t.colorAttachments?.map(c=>typeof c!="string"?c:e.createTexture({id:`${t.id}-texture-1`,format:c,usage:N0.Texture.SAMPLE|N0.Texture.RENDER|N0.Texture.COPY_SRC|N0.Texture.COPY_DST,width:n,height:i}));let a=e.createFramebuffer({...t,colorAttachments:s});super({current:o,next:a});for(let[c,u]of(t.colorAttachments||[]).entries())typeof u=="string"&&(o.attachResource(o.colorAttachments[c].texture),a.attachResource(a.colorAttachments[c].texture))}resize(e){if(e.width===this.current.width&&e.height===this.current.height)return!1;let{current:t,next:n}=this;return this.current=t.clone(e),k2(this.current),t.destroy(),this.next=n.clone(e),k2(this.next),n.destroy(),!0}};function k2(r){for(let e of r.colorAttachments)r.attachResource(e.texture);r.depthStencilAttachment&&r.attachResource(r.depthStencilAttachment.texture)}var Gn=class extends nt{constructor(e,t){super({current:e.createBuffer(t),next:e.createBuffer(t)})}resize(e){if(e.byteLength===this.current.byteLength)return!1;let{current:t,next:n}=this;return this.current=t.clone(e),t.destroy(),this.next=n.clone(e),n.destroy(),!0}};var G=D(k(),1),zn=D(b0(),1);var H1=2,f6=1e4,st=class r{static async createAsync(e,t){let n=!G.PipelineFactory.getAsyncCompilation(e),i=n?G.PipelineFactory.beginAsyncCompilation(e):G.PipelineFactory.getAsyncCompilation(e),s;try{s=new r(e,t)}finally{n&&G.PipelineFactory.endAsyncCompilation(e,i)}try{return n?await Promise.all(i):await s._pipelineInitialization,s}catch(o){throw s.destroy(),o}}static defaultProps={...G.ComputePipeline.defaultProps,id:"unnamed",handle:void 0,userData:{},source:"",sourceLanguage:void 0,modules:[],defines:{},plugins:[],bindings:void 0,shaderInputs:void 0,pipelineFactory:void 0,shaderFactory:void 0,shaderAssembler:void 0,debugShaders:void 0};device;id;pipelineFactory;shaderFactory;userData={};bindings={};pipeline;source;shader;shaderInputs;_uniformStore;_pipelineNeedsUpdate="newly created";_getModuleUniforms;props;_destroyed=!1;_pipelineInitialization;constructor(e,t){if(e.type!=="webgpu")throw new Error("Computation is only supported in WebGPU");this.props={...r.defaultProps,...t,shaderAssembler:t.shaderAssembler??r.defaultProps.shaderAssembler??new $0},t=this.props,this.id=t.id||J("model"),this.device=e,Object.assign(this.userData,t.userData);let n=ce(e),i=(0,zn.resolveShaderPlugins)(this.props.plugins,n.shaderLanguage);if(i.injectionTargets.length>0)throw new Error("Computation does not support ShaderPlugin render hooks");if(Object.keys(i.vertexInputs).length>0||Object.keys(i.interStageVariables).length>0)throw new Error("Computation does not support ShaderPlugin vertex inputs or interStageVariables");let s=(0,zn.mergeShaderPluginModules)(this.props.modules,i.modules),o=Object.fromEntries(s.map(g=>[g.name,g]));this.shaderInputs=t.shaderInputs||new e0(o),t.shaderInputs&&i.modules.length>0&&this.shaderInputs.addModules(i.modules),this.setShaderInputs(this.shaderInputs);let a=Yr(this.props.modules,this.shaderInputs?.getModules()),c={...i.defines,...this.props.defines};this.props.shaderLayout=Ge(this.props.shaderLayout,a)||null,this.pipelineFactory=t.pipelineFactory||G.PipelineFactory.getDefaultPipelineFactory(this.device),this.shaderFactory=t.shaderFactory||G.ShaderFactory.getDefaultShaderFactory(this.device);let u=this.props.shaderAssembler;(0,G.assert)(u instanceof $0);let{source:l,getUniforms:d,entryPoints:f={},shaderLayout:h}=u.assembleWGSLShader({platformInfo:n,...this.props,modules:a,defines:c,shaderStage:"compute",computeEntryPoint:this.props.entryPoint,scanVertexAttributes:!1,pluginInjections:i.injections});this.source=l,this.props.entryPoint=f.compute||this.props.entryPoint,this._getModuleUniforms=d;let p=h??e.getShaderLayout?.(this.source,{scanVertexAttributes:!1});this.props.shaderLayout=Ge(this.props.shaderLayout||p||null,a)||null;let m=G.PipelineFactory.getAsyncCompilation(this.device);m?(this._pipelineInitialization=this._updatePipelineAsync(),m.push(this._pipelineInitialization)):this.pipeline=this._updatePipeline(),t.bindings&&this.setBindings(t.bindings)}destroy(){this._destroyed||(this.pipeline&&this.pipelineFactory.release(this.pipeline),this.shader&&this.shaderFactory.release(this.shader),this._uniformStore.destroy(),this._destroyed=!0)}predraw(e){this.updateShaderInputs(e)}dispatch(e,t,n,i){try{this._logDrawCallStart(),this._setPipeline(e),e.dispatch(t,n,i)}finally{this._logDrawCallEnd()}}dispatchIndirect(e,t,n=0){try{this._logDrawCallStart(),this._setPipeline(e),e.dispatchIndirect(t,n)}finally{this._logDrawCallEnd()}}_setPipeline(e){this.pipeline=this._updatePipeline(),this.pipeline.setBindings(this.bindings),e.setPipeline(this.pipeline),e.setBindings({})}setVertexCount(e){}setInstanceCount(e){}setShaderInputs(e){this.shaderInputs=e,this._uniformStore=new G.UniformStore(this.device,this.shaderInputs.modules);for(let[t,n]of Object.entries(this.shaderInputs.modules))if(ae(n)){let i=this._uniformStore.getManagedUniformBuffer(t);this.bindings[`${t}Uniforms`]=i}}setShaderModuleProps(e){let t=this._getModuleUniforms(e),n=Object.keys(t).filter(s=>{let o=t[s];return!Xi(o)}),i={};for(let s of n)i[s]=t[s],delete t[s]}updateShaderInputs(e){this._uniformStore.setUniforms(this.shaderInputs.getUniformValues(),e)}setBindings(e){Object.assign(this.bindings,e)}_setPipelineNeedsUpdate(e){this._pipelineNeedsUpdate=this._pipelineNeedsUpdate||e}_updatePipeline(){let e=this._preparePipelineUpdate();return e&&(this.pipeline=this.pipelineFactory.createComputePipeline(e.props),this._finishPipelineUpdate(e.previousShader)),this.pipeline}async _updatePipelineAsync(){let e=this._preparePipelineUpdate();if(e){try{this.pipeline=await this.pipelineFactory.createComputePipelineAsync(e.props)}catch(t){throw this.shaderFactory.release(this.shader),this.shader=e.previousShader,this._pipelineNeedsUpdate="asynchronous pipeline creation failed",t}this._finishPipelineUpdate(e.previousShader)}return this.pipeline}_preparePipelineUpdate(){if(!this._pipelineNeedsUpdate)return null;let e=this.pipeline?this.shader:null;return this.pipeline&&G.log.log(1,`Model ${this.id}: Recreating pipeline because "${this._pipelineNeedsUpdate}".`)(),this._pipelineNeedsUpdate=!1,this.shader=this.shaderFactory.createShader({id:`${this.id}-fragment`,stage:"compute",source:this.source,debugShaders:this.props.debugShaders}),{props:{...this.props,shader:this.shader},previousShader:e}}_finishPipelineUpdate(e){e&&this.shaderFactory.release(e)}_lastLogTime=0;_logOpen=!1;_logDrawCallStart(){let e=G.log.level>3?0:f6;G.log.level<2||Date.now()-this._lastLogTime<e||(this._lastLogTime=Date.now(),this._logOpen=!0,G.log.group(H1,`>>> DRAWING MODEL ${this.id}`,{collapsed:G.log.level<=2})())}_logDrawCallEnd(){if(this._logOpen){let e=this.shaderInputs.getDebugTable();G.log.table(H1,e)(),G.log.groupEnd(H1)(),this._logOpen=!1}}_drawCount=0;_getBufferOrConstantValues(e,t){let n=G.dataTypeDecoder.getTypedArrayConstructor(t);return(e instanceof G.Buffer?new n(e.debugData):e).toString()}};function F2(r){let{shaderPass:e,action:t,shadingLanguage:n}=r;switch(t){case"filter":let i=`${e.name}_filterColor_ext`;return n==="wgsl"?h6(i):m6(i);case"sample":let s=`${e.name}_sampleColor`;return n==="wgsl"?p6(s):g6(s);default:throw new Error(`${e.name} no fragment shader generated for shader pass`)}}function h6(r){return`@group(0) @binding(auto) var sourceTexture: texture_2d<f32>;
|
|
291
298
|
@group(0) @binding(auto) var sourceTextureSampler: sampler;
|
|
292
299
|
|
|
293
300
|
@fragment
|
|
@@ -299,7 +306,7 @@ fn fragmentMain(inputs: FragmentInputs) -> @location(0) vec4f {
|
|
|
299
306
|
fragColor = ${r}(fragColor, texSize, texCoord);
|
|
300
307
|
return fragColor;
|
|
301
308
|
}
|
|
302
|
-
`}function
|
|
309
|
+
`}function p6(r){return`@group(0) @binding(auto) var sourceTexture: texture_2d<f32>;
|
|
303
310
|
@group(0) @binding(auto) var sourceTextureSampler: sampler;
|
|
304
311
|
|
|
305
312
|
@fragment
|
|
@@ -308,7 +315,7 @@ fn fragmentMain(inputs: FragmentInputs) -> @location(0) vec4f {
|
|
|
308
315
|
let texSize = vec2f(textureDimensions(sourceTexture));
|
|
309
316
|
return ${r}(sourceTexture, sourceTextureSampler, texSize, texCoord);
|
|
310
317
|
}
|
|
311
|
-
`}function
|
|
318
|
+
`}function m6(r){return`#version 300 es
|
|
312
319
|
|
|
313
320
|
uniform sampler2D sourceTexture;
|
|
314
321
|
|
|
@@ -326,7 +333,7 @@ void main() {
|
|
|
326
333
|
fragColor = texture(sourceTexture, texCoord);
|
|
327
334
|
fragColor = ${r}(fragColor, texSize, texCoord);
|
|
328
335
|
}
|
|
329
|
-
`}function
|
|
336
|
+
`}function g6(r){return`#version 300 es
|
|
330
337
|
|
|
331
338
|
uniform sampler2D sourceTexture;
|
|
332
339
|
|
|
@@ -343,7 +350,7 @@ void main() {
|
|
|
343
350
|
|
|
344
351
|
fragColor = ${r}(sourceTexture, texSize, texCoord);
|
|
345
352
|
}
|
|
346
|
-
`}var
|
|
353
|
+
`}var G2={name:"textureTransform",source:`
|
|
347
354
|
struct textureTransformUniforms {
|
|
348
355
|
scale: vec2<f32>,
|
|
349
356
|
flipY: i32,
|
|
@@ -380,7 +387,7 @@ vec2 shaderPassRenderer_getRenderTargetUV(vec2 textureUV) {
|
|
|
380
387
|
vec2 unscaledCoord = (textureUV - 0.5) * textureTransform.scale + 0.5;
|
|
381
388
|
return textureTransform.flipY != 0 ? unscaledCoord : vec2(unscaledCoord.x, 1.0 - unscaledCoord.y);
|
|
382
389
|
}
|
|
383
|
-
`,uniformTypes:{scale:"vec2<f32>",flipY:"i32"}};var Y8=new Set(["original","previous"]),Bn=class{device;shaderInputs;passRenderers;swapFramebuffers;textureModel;constructor(e,t){this.device=e;let n=K8(t.shaderPasses);n.map(a=>(0,I2.initializeShaderModule)(a));let i=n.reduce((a,c)=>({...a,[c.name]:c}),{});this.shaderInputs=t.shaderInputs||new J(i);let s=e.getCanvasContext().getDrawingBufferSize();this.swapFramebuffers=new nt(e,{colorAttachments:[t.colorFormat||e.preferredColorFormat],width:s[0],height:s[1]}),this.textureModel=new Qe(e,{backgroundTexture:this.swapFramebuffers.current.colorAttachments[0].texture,flipY:t.flipY??e.type==="webgpu"});let o=t.flipY??e.type==="webgpu";this.passRenderers=t.shaderPasses.map(a=>new F1(e,a,this.shaderInputs,o))}destroy(){for(let e of this.passRenderers)e.destroy();this.swapFramebuffers.destroy(),this.textureModel.destroy()}resize(e){e||=this.device.getCanvasContext().getDrawingBufferSize(),this.swapFramebuffers.resize({width:e[0],height:e[1]});for(let t of this.passRenderers)t.resize(e)}resetHistory(){for(let e of this.passRenderers)e.resetHistory()}renderToScreen(e){return this.encodeToScreen(this.device.commandEncoder,e)}encodeToScreen(e,t){let n=this.encodeToTexture(e,t);if(!n)return!1;let i=this.device.getDefaultCanvasContext().getCurrentFramebuffer({depthStencilFormat:!1});this.textureModel.setProps({backgroundTexture:n}),this.textureModel.predraw(e);let s=e.beginRenderPass({id:"shader-pass-renderer-to-screen",framebuffer:i,clearDepth:!1});return this.textureModel.draw(s),s.end(),!0}renderToTexture(e){return this.encodeToTexture(this.device.commandEncoder,e)}encodeToTexture(e,t){if(e.device!==this.device)throw new Error("ShaderPassRenderer command encoder must belong to the renderer device");let{sourceTexture:n}=t;if(n instanceof a0&&!n.isReady)return null;let i=n instanceof a0?n.texture:n;if(this.passRenderers.length===0)return i;t.resetHistory&&this.resetHistory(),this.textureModel.setProps({backgroundTexture:i}),this.textureModel.predraw(e);let s=a6(this.swapFramebuffers,i),o=e.beginRenderPass({id:"shader-pass-renderer-seed-source",framebuffer:s,clearColor:[0,0,0,1],clearDepth:!1});this.textureModel.draw(o),o.end();let a=s,c=V1(s),u=!1;try{for(let l of this.passRenderers){l.initializeHistoryTargets(i,this.textureModel,e),l.runComputeOptimization({commandEncoder:e,originalTexture:i,previousTexture:c,runtimeUniforms:t.uniforms||{}});for(let d of l.subPassExecutions){let f=d.output||"previous",h=f==="previous"?o6(this.swapFramebuffers,a):l.getOutputFramebuffer(f),p=V1(h),m=l.resolveBindings({execution:d,originalTexture:i,previousTexture:c,outputTexture:p,externalBindings:t.bindings||{}}),g=e6(this.shaderInputs,d,t.uniforms||{});d.subPassRenderer.prepare({commandEncoder:e,bindings:m,textureScale:c6(m.sourceTexture||c,p),uniforms:g});let b=e.beginRenderPass({id:"shader-pass-renderer-run-pass",framebuffer:h,clearColor:[0,0,0,1],clearDepth:1});d.subPassRenderer.draw(b),b.end(),f==="previous"?(c=p,a=h):l.markTargetWritten(f)}}u=!0}finally{for(let l of this.passRenderers)l.finishFrame(u)}return c}},F1=class{device;shaderInputs;passDefinition;renderTargets;subPassExecutions;computeRenderer;constructor(e,t,n,i){if(this.device=e,this.shaderInputs=n,this.passDefinition=t,P2(t)){Q8(t.name,t.renderTargets||{}),this.renderTargets=t6(e,t.renderTargets||{}),Z8(e,t)&&(this.computeRenderer=new G1(e,t.compute,this.renderTargets,n));let s=this.computeRenderer?t.steps.filter(o=>!t.compute.replacedPasses.includes(o.shaderPass.name)):t.steps;this.subPassExecutions=s.flatMap(o=>this.createStepExecutions(t,o,i));return}w2(t,t.name),this.renderTargets={},this.subPassExecutions=this.createPassExecutions(t,{ownerName:t.name,flipY:i})}destroy(){this.computeRenderer?.destroy();for(let e of this.subPassExecutions)e.subPassRenderer.destroy();i6(this.renderTargets)}resize(e){s6(this.device,this.renderTargets,e)}runComputeOptimization(e){if(!this.computeRenderer)return;let t=this.resolveInputTexture(this.computeRenderer.optimization.input,e.originalTexture,e.previousTexture);this.computeRenderer.encode(e.commandEncoder,t,e.runtimeUniforms);for(let n of Object.values(this.computeRenderer.optimization.outputs))this.markTargetWritten(n)}resetHistory(){for(let e of Object.values(this.renderTargets))e.historyInitialized=!1,e.writtenThisFrame=!1}initializeHistoryTargets(e,t,n){for(let i of Object.values(this.renderTargets)){if(i.spec.lifetime!=="history"||i.historyInitialized)continue;let s=M2(i),o=i.spec.initialize||{clearColor:[0,0,0,0]};if(o==="original"){t.setProps({backgroundTexture:e}),t.predraw(n);let a=n.beginRenderPass({id:`${i.name}-initialize-history`,framebuffer:s,clearColor:[0,0,0,0],clearDepth:!1});t.draw(a),a.end()}else n.beginRenderPass({id:`${i.name}-clear-history`,framebuffer:s,clearColor:o.clearColor,clearDepth:!1}).end();i.historyInitialized=!0}}getOutputFramebuffer(e){return this.getRenderTarget(e).framebuffer}markTargetWritten(e){this.getRenderTarget(e).writtenThisFrame=!0}finishFrame(e){for(let t of Object.values(this.renderTargets)){if(e&&t.spec.lifetime==="history"&&t.writtenThisFrame){let n=_2(t),i=M2(t);t.historyTexture=t.texture,t.historyFramebuffer=t.framebuffer,t.texture=n,t.framebuffer=i,t.historyInitialized=!0}t.writtenThisFrame=!1}}getRenderTarget(e){let t=this.renderTargets[e];if(!t)throw new Error(`${this.getOwnerName()}: unknown render target "${e}"`);return t}resolveBindings(e){let{execution:t,originalTexture:n,previousTexture:i,outputTexture:s,externalBindings:o}=e,a=t.inputs||{sourceTexture:"previous"},c=this.shaderInputs.getModuleBindingValues(t.shaderPass.name),u=Object.fromEntries(Object.entries(o).filter(([f])=>t.shaderPass.bindingLayout?.some(h=>h.name===f))),l={...c,...u},d=t.output||"previous";for(let[f,h]of Object.entries(a)){if(!h)continue;let p=this.resolveInputTexture(h,n,i),m=h in this.renderTargets?this.renderTargets[h]:null;if(d!=="previous"&&h===d&&m?.spec.lifetime!=="history")throw new Error(`${t.ownerName}: subpass cannot read and write render target "${d}" in the same draw`);if(p===s)throw new Error(`${t.ownerName}: subpass cannot sample from the render target it is writing to`);l[f]=p}return"sourceTexture"in l||(l.sourceTexture=i),l}createStepExecutions(e,t,n){return w2(t.shaderPass,`${e.name}/${t.shaderPass.name}`),this.createPassExecutions(t.shaderPass,{ownerName:`${e.name}/${t.shaderPass.name}`,firstInputs:t.inputs,lastOutput:t.output,uniformOverrides:t.uniforms,flipY:n})}createPassExecutions(e,t){let n=e.passes||[];return n.map((i,s)=>{let o=s===0,a=s===n.length-1,c=o&&t.firstInputs!==void 0?t.firstInputs:i.inputs,u=a&&t.lastOutput!==void 0?t.lastOutput:i.output;return J8(t.ownerName,c,u,this.renderTargets),{ownerName:t.ownerName,shaderPass:e,subPassRenderer:new z1(this.device,e,i,t.flipY),inputs:c,output:u,uniforms:U1(t.uniformOverrides,i.uniforms)}})}resolveInputTexture(e,t,n){switch(e){case"original":return t;case"previous":return n;default:{let i=this.getRenderTarget(e);return i.spec.lifetime==="history"&&!i.writtenThisFrame?_2(i):i.texture}}}getOwnerName(){return this.passDefinition.name}},G1=class{optimization;renderTargets;shaderInputs;computation;parameterBuffer;constructor(e,t,n,i){this.optimization=t,this.renderTargets=n,this.shaderInputs=i,this.parameterBuffer=e.createBuffer({id:`${t.name}-parameters`,byteLength:Math.max(Math.ceil(t.uniformNames.length/4)*16,16),usage:N0.Buffer.UNIFORM|N0.Buffer.COPY_DST});let s=Object.entries(t.outputs).map(([o,a],c)=>({name:o,type:"storage",group:0,location:c+2,access:"write-only",format:n[a].texture.format}));try{this.computation=new it(e,{id:t.name,source:t.source,shaderLayout:{bindings:[{name:t.uniformBinding,type:"uniform",group:0,location:0},{name:"sourceTexture",type:"texture",group:0,location:1,sampleType:"unfilterable-float"},...s]}})}catch(o){throw this.parameterBuffer.destroy(),o}}encode(e,t,n){let i={...this.shaderInputs.getUniformValues()[this.optimization.uniformModule]||{},...this.optimization.uniforms,...n[this.optimization.uniformModule]||{}},s=new Float32Array(Math.max(Math.ceil(this.optimization.uniformNames.length/4)*4,4));for(let[l,d]of this.optimization.uniformNames.entries()){let f=i[d];s[l]=typeof f=="number"?f:0}this.parameterBuffer.write(s);let o=Object.entries(this.optimization.outputs),a={[this.optimization.uniformBinding]:this.parameterBuffer,sourceTexture:t.view};for(let[l,d]of o)a[l]=this.renderTargets[d].texture.view;this.computation.setBindings(a),this.computation.predraw(e);let c=this.renderTargets[o[0][1]].texture,u=e.beginComputePass({id:this.optimization.name});this.computation.dispatch(u,Math.ceil(c.width/this.optimization.workgroupSize[0]),Math.ceil(c.height/this.optimization.workgroupSize[1]),1),u.end()}destroy(){this.computation.destroy(),this.parameterBuffer.destroy()}},z1=class{model;shaderPass;subPass;flipY;constructor(e,t,n,i){this.shaderPass=t,this.subPass=n,this.flipY=i;let s=n.action||n.filter&&"filter"||n.sampler&&"sample"||"filter",o=T2({shaderPass:t,action:s,shadingLanguage:e.info.shadingLanguage});this.model=new K0(e,{id:`${t.name}-subpass`,source:o,fs:o,modules:[S2,t],parameters:{depthWriteEnabled:!1}})}destroy(){this.model.destroy()}prepare(e){let{commandEncoder:t,bindings:n,textureScale:i,uniforms:s}=e;this.model.shaderInputs.setProps({textureTransform:{scale:i,flipY:this.flipY?1:0}}),this.model.shaderInputs.setProps({[this.shaderPass.name]:this.shaderPass.uniforms||{}}),this.model.shaderInputs.setProps({[this.shaderPass.name]:s||{}}),this.model.setBindings(n||{}),this.model.predraw(t)}draw(e){this.model.draw(e)}};function K8(r){return r.flatMap(e=>P2(e)?e.steps.map(t=>t.shaderPass):[e])}function P2(r){return"steps"in r}function Z8(r,e){let t=e.compute;if(!t||r.type!=="webgpu")return!1;let n=Object.values(t.outputs);return n.length===0||n.length>r.limits.maxStorageTexturesPerShaderStage||t.workgroupSize[0]>r.limits.maxComputeWorkgroupSizeX||t.workgroupSize[1]>r.limits.maxComputeWorkgroupSizeY||t.workgroupSize[0]*t.workgroupSize[1]>r.limits.maxComputeInvocationsPerWorkgroup?!1:n.every(i=>{let s=e.renderTargets?.[i];if(!s?.storage)return!1;let o=s.format||r.preferredColorFormat;return r.getTextureFormatCapabilities(o).store})}function w2(r,e){let t=r.renderTargets;if(t&&Object.keys(t).length>0)throw new Error(`${e}: ShaderPass.renderTargets is not supported; use CompositeShaderPass.renderTargets instead`)}function Q8(r,e){for(let t of Object.keys(e))if(Y8.has(t))throw new Error(`${r}: render target name "${t}" is reserved`)}function J8(r,e,t,n){let i=e||{sourceTexture:"previous"};for(let s of Object.values(i))if(s&&s!=="original"&&s!=="previous"&&!(s in n))throw new Error(`${r}: unknown input source "${s}"`);if(t&&t!=="previous"&&!(t in n))throw new Error(`${r}: unknown output target "${t}"`)}function U1(r,e){if(!(!r&&!e))return{...r||{},...e||{}}}function e6(r,e,t){return U1(U1(r.getUniformValues()[e.shaderPass.name],e.uniforms),t[e.shaderPass.name])}function t6(r,e){let t=r.getCanvasContext().getDrawingBufferSize(),n={};for(let[i,s]of Object.entries(e)){if(s.aliasFor){let o=n[s.aliasFor];if(!o)throw new Error(`${i}: target alias references an unknown earlier target`);let a=$1(t,s.scale),c=s.format||r.preferredColorFormat;if(s.lifetime==="history"||o.spec.lifetime==="history"||!r6(s,o.spec)||o.texture.width!==a[0]||o.texture.height!==a[1]||o.texture.format!==c||s.storage&&!o.spec.storage||!n6(s,o.spec))throw new Error(`${i}: target alias must match a transient target's size, format, and sampler`);n[i]=o;continue}n[i]=L2(r,i,s,t)}return n}function r6(r,e){let t=r.scale||[1,1],n=e.scale||[1,1];return t[0]===n[0]&&t[1]===n[1]}function n6(r,e){let t=r.sampler||{},n=e.sampler||{},i=Object.entries(t);return i.length===Object.keys(n).length&&i.every(([s,o])=>n[s]===o)}function i6(r){for(let e of new Set(Object.values(r)))e.framebuffer.destroy(),e.texture.destroy(),e.historyFramebuffer?.destroy(),e.historyTexture?.destroy()}function s6(r,e,t){for(let n of new Set(Object.values(e))){let i=$1(t,n.spec.scale);if(n.texture.width===i[0]&&n.texture.height===i[1])continue;n.framebuffer.destroy(),n.texture.destroy(),n.historyFramebuffer?.destroy(),n.historyTexture?.destroy();let s=L2(r,n.name,n.spec,t);n.texture=s.texture,n.framebuffer=s.framebuffer,n.historyTexture=s.historyTexture,n.historyFramebuffer=s.historyFramebuffer,n.historyInitialized=!1,n.writtenThisFrame=!1}}function L2(r,e,t,n){let i=$1(n,t.scale),{texture:s,framebuffer:o}=A2(r,e,t,i),a,c;if(t.lifetime==="history"){let u=A2(r,`${e}-history`,t,i);a=u.texture,c=u.framebuffer}return{name:e,spec:t,texture:s,framebuffer:o,historyTexture:a,historyFramebuffer:c,historyInitialized:!1,writtenThisFrame:!1}}function A2(r,e,t,n){let i=r.createTexture({id:`${e}-texture`,width:n[0],height:n[1],format:t.format||r.preferredColorFormat,usage:N0.Texture.SAMPLE|N0.Texture.RENDER|N0.Texture.COPY_SRC|N0.Texture.COPY_DST|(t.storage&&r.type==="webgpu"&&r.getTextureFormatCapabilities(t.format||r.preferredColorFormat).store?N0.Texture.STORAGE:0),...t.sampler?{sampler:t.sampler}:{}}),s=r.createFramebuffer({id:`${e}-framebuffer`,width:n[0],height:n[1],colorAttachments:[i]});return{texture:i,framebuffer:s}}function _2(r){if(!r.historyTexture)throw new Error(`${r.name}: transient render target has no history texture`);return r.historyTexture}function M2(r){if(!r.historyFramebuffer)throw new Error(`${r.name}: transient render target has no history framebuffer`);return r.historyFramebuffer}function $1(r,e=[1,1]){return[Math.max(1,Math.round(r[0]*e[0])),Math.max(1,Math.round(r[1]*e[1]))]}function V1(r){let e=r.colorAttachments[0]?.texture;if(!e)throw new Error("ShaderPassRenderer: framebuffer is missing a color attachment texture");return e}function o6(r,e){return e===r.current?r.next:r.current}function a6(r,e){return V1(r.current)===e?r.next:r.current}function c6(r,e){let t=r.width/r.height,n=e.width/e.height;return n>t?[1,n/t]:[t/n,1]}var x0=O(k(),1);var u6=[0,1,1,1],$=-1,l6={isActive:"i32",indexMode:"i32",batchIndex:"i32",isHighlightActive:"i32",highlightedBatchIndex:"i32",highlightedObjectIndex:"i32",highlightColor:"vec4<f32>"},F0=`precision highp float;
|
|
390
|
+
`,uniformTypes:{scale:"vec2<f32>",flipY:"i32"}};var y6=new Set(["original","previous"]),$n=class{device;shaderInputs;passRenderers;swapFramebuffers;textureModel;constructor(e,t){this.device=e;let n=x6(t.shaderPasses);n.map(a=>(0,j2.initializeShaderModule)(a));let i=n.reduce((a,c)=>({...a,[c.name]:c}),{});this.shaderInputs=t.shaderInputs||new e0(i);let s=e.getCanvasContext().getDrawingBufferSize();this.swapFramebuffers=new it(e,{colorAttachments:[t.colorFormat||e.preferredColorFormat],width:s[0],height:s[1]}),this.textureModel=new Je(e,{backgroundTexture:this.swapFramebuffers.current.colorAttachments[0].texture,flipY:t.flipY??e.type==="webgpu"});let o=t.flipY??e.type==="webgpu";this.passRenderers=t.shaderPasses.map(a=>new X1(e,a,this.shaderInputs,o))}destroy(){for(let e of this.passRenderers)e.destroy();this.swapFramebuffers.destroy(),this.textureModel.destroy()}resize(e){e||=this.device.getCanvasContext().getDrawingBufferSize(),this.swapFramebuffers.resize({width:e[0],height:e[1]});for(let t of this.passRenderers)t.resize(e)}resetHistory(){for(let e of this.passRenderers)e.resetHistory()}renderToScreen(e){return this.encodeToScreen(this.device.commandEncoder,e)}encodeToScreen(e,t){let n=this.encodeToTexture(e,t);if(!n)return!1;let i=this.device.getDefaultCanvasContext().getCurrentFramebuffer({depthStencilFormat:!1});this.textureModel.setProps({backgroundTexture:n}),this.textureModel.predraw(e);let s=e.beginRenderPass({id:"shader-pass-renderer-to-screen",framebuffer:i,clearDepth:!1});return this.textureModel.draw(s),s.end(),!0}renderToTexture(e){return this.encodeToTexture(this.device.commandEncoder,e)}encodeToTexture(e,t){if(e.device!==this.device)throw new Error("ShaderPassRenderer command encoder must belong to the renderer device");let{sourceTexture:n}=t;if(n instanceof c0&&!n.isReady)return null;let i=n instanceof c0?n.texture:n;if(this.passRenderers.length===0)return i;t.resetHistory&&this.resetHistory(),this.textureModel.setProps({backgroundTexture:i}),this.textureModel.predraw(e);let s=P6(this.swapFramebuffers,i),o=e.beginRenderPass({id:"shader-pass-renderer-seed-source",framebuffer:s,clearColor:[0,0,0,1],clearDepth:!1});this.textureModel.draw(o),o.end();let a=s,c=Q1(s),u=!1;try{for(let l of this.passRenderers){l.initializeHistoryTargets(i,this.textureModel,e),l.runComputeOptimization({commandEncoder:e,originalTexture:i,previousTexture:c,runtimeUniforms:t.uniforms||{}});for(let d of l.subPassExecutions){let f=d.output||"previous",h=f==="previous"?E6(this.swapFramebuffers,a):l.getOutputFramebuffer(f),p=Q1(h),m=l.resolveBindings({execution:d,originalTexture:i,previousTexture:c,outputTexture:p,externalBindings:t.bindings||{}}),g=S6(this.shaderInputs,d,t.uniforms||{});d.subPassRenderer.prepare({commandEncoder:e,bindings:m,textureScale:L6(m.sourceTexture||c,p),uniforms:g});let b=e.beginRenderPass({id:"shader-pass-renderer-run-pass",framebuffer:h,clearColor:[0,0,0,1],clearDepth:1});d.subPassRenderer.draw(b),b.end(),f==="previous"?(c=p,a=h):l.markTargetWritten(f)}}u=!0}finally{for(let l of this.passRenderers)l.finishFrame(u)}return c}},X1=class{device;shaderInputs;passDefinition;renderTargets;subPassExecutions;computeRenderer;constructor(e,t,n,i){if(this.device=e,this.shaderInputs=n,this.passDefinition=t,W2(t)){v6(t.name,t.renderTargets||{}),this.renderTargets=w6(e,t.renderTargets||{}),b6(e,t)&&(this.computeRenderer=new Y1(e,t.compute,this.renderTargets,n));let s=this.computeRenderer?t.steps.filter(o=>!t.compute.replacedPasses.includes(o.shaderPass.name)):t.steps;this.subPassExecutions=s.flatMap(o=>this.createStepExecutions(t,o,i));return}z2(t,t.name),this.renderTargets={},this.subPassExecutions=this.createPassExecutions(t,{ownerName:t.name,flipY:i})}destroy(){this.computeRenderer?.destroy();for(let e of this.subPassExecutions)e.subPassRenderer.destroy();_6(this.renderTargets)}resize(e){M6(this.device,this.renderTargets,e)}runComputeOptimization(e){if(!this.computeRenderer)return;let t=this.resolveInputTexture(this.computeRenderer.optimization.input,e.originalTexture,e.previousTexture);this.computeRenderer.encode(e.commandEncoder,t,e.runtimeUniforms);for(let n of Object.values(this.computeRenderer.optimization.outputs))this.markTargetWritten(n)}resetHistory(){for(let e of Object.values(this.renderTargets))e.historyInitialized=!1,e.writtenThisFrame=!1}initializeHistoryTargets(e,t,n){for(let i of Object.values(this.renderTargets)){if(i.spec.lifetime!=="history"||i.historyInitialized)continue;let s=U2(i),o=i.spec.initialize||{clearColor:[0,0,0,0]};if(o==="original"){t.setProps({backgroundTexture:e}),t.predraw(n);let a=n.beginRenderPass({id:`${i.name}-initialize-history`,framebuffer:s,clearColor:[0,0,0,0],clearDepth:!1});t.draw(a),a.end()}else n.beginRenderPass({id:`${i.name}-clear-history`,framebuffer:s,clearColor:o.clearColor,clearDepth:!1}).end();i.historyInitialized=!0}}getOutputFramebuffer(e){return this.getRenderTarget(e).framebuffer}markTargetWritten(e){this.getRenderTarget(e).writtenThisFrame=!0}finishFrame(e){for(let t of Object.values(this.renderTargets)){if(e&&t.spec.lifetime==="history"&&t.writtenThisFrame){let n=V2(t),i=U2(t);t.historyTexture=t.texture,t.historyFramebuffer=t.framebuffer,t.texture=n,t.framebuffer=i,t.historyInitialized=!0}t.writtenThisFrame=!1}}getRenderTarget(e){let t=this.renderTargets[e];if(!t)throw new Error(`${this.getOwnerName()}: unknown render target "${e}"`);return t}resolveBindings(e){let{execution:t,originalTexture:n,previousTexture:i,outputTexture:s,externalBindings:o}=e,a=t.inputs||{sourceTexture:"previous"},c=this.shaderInputs.getModuleBindingValues(t.shaderPass.name),u=Object.fromEntries(Object.entries(o).filter(([f])=>t.shaderPass.bindingLayout?.some(h=>h.name===f))),l={...c,...u},d=t.output||"previous";for(let[f,h]of Object.entries(a)){if(!h)continue;let p=this.resolveInputTexture(h,n,i),m=h in this.renderTargets?this.renderTargets[h]:null;if(d!=="previous"&&h===d&&m?.spec.lifetime!=="history")throw new Error(`${t.ownerName}: subpass cannot read and write render target "${d}" in the same draw`);if(p===s)throw new Error(`${t.ownerName}: subpass cannot sample from the render target it is writing to`);l[f]=p}return"sourceTexture"in l||(l.sourceTexture=i),l}createStepExecutions(e,t,n){return z2(t.shaderPass,`${e.name}/${t.shaderPass.name}`),this.createPassExecutions(t.shaderPass,{ownerName:`${e.name}/${t.shaderPass.name}`,firstInputs:t.inputs,lastOutput:t.output,uniformOverrides:t.uniforms,flipY:n})}createPassExecutions(e,t){let n=e.passes||[];return n.map((i,s)=>{let o=s===0,a=s===n.length-1,c=o&&t.firstInputs!==void 0?t.firstInputs:i.inputs,u=a&&t.lastOutput!==void 0?t.lastOutput:i.output;return T6(t.ownerName,c,u,this.renderTargets),{ownerName:t.ownerName,shaderPass:e,subPassRenderer:new K1(this.device,e,i,t.flipY),inputs:c,output:u,uniforms:Z1(t.uniformOverrides,i.uniforms)}})}resolveInputTexture(e,t,n){switch(e){case"original":return t;case"previous":return n;default:{let i=this.getRenderTarget(e);return i.spec.lifetime==="history"&&!i.writtenThisFrame?V2(i):i.texture}}}getOwnerName(){return this.passDefinition.name}},Y1=class{optimization;renderTargets;shaderInputs;computation;parameterBuffer;constructor(e,t,n,i){this.optimization=t,this.renderTargets=n,this.shaderInputs=i,this.parameterBuffer=e.createBuffer({id:`${t.name}-parameters`,byteLength:Math.max(Math.ceil(t.uniformNames.length/4)*16,16),usage:k0.Buffer.UNIFORM|k0.Buffer.COPY_DST});let s=Object.entries(t.outputs).map(([o,a],c)=>({name:o,type:"storage",group:0,location:c+2,access:"write-only",format:n[a].texture.format}));try{this.computation=new st(e,{id:t.name,source:t.source,shaderLayout:{bindings:[{name:t.uniformBinding,type:"uniform",group:0,location:0},{name:"sourceTexture",type:"texture",group:0,location:1,sampleType:"unfilterable-float"},...s]}})}catch(o){throw this.parameterBuffer.destroy(),o}}encode(e,t,n){let i={...this.shaderInputs.getUniformValues()[this.optimization.uniformModule]||{},...this.optimization.uniforms,...n[this.optimization.uniformModule]||{}},s=new Float32Array(Math.max(Math.ceil(this.optimization.uniformNames.length/4)*4,4));for(let[l,d]of this.optimization.uniformNames.entries()){let f=i[d];s[l]=typeof f=="number"?f:0}this.parameterBuffer.write(s);let o=Object.entries(this.optimization.outputs),a={[this.optimization.uniformBinding]:this.parameterBuffer,sourceTexture:t.view};for(let[l,d]of o)a[l]=this.renderTargets[d].texture.view;this.computation.setBindings(a),this.computation.predraw(e);let c=this.renderTargets[o[0][1]].texture,u=e.beginComputePass({id:this.optimization.name});this.computation.dispatch(u,Math.ceil(c.width/this.optimization.workgroupSize[0]),Math.ceil(c.height/this.optimization.workgroupSize[1]),1),u.end()}destroy(){this.computation.destroy(),this.parameterBuffer.destroy()}},K1=class{model;shaderPass;subPass;flipY;constructor(e,t,n,i){this.shaderPass=t,this.subPass=n,this.flipY=i;let s=n.action||n.filter&&"filter"||n.sampler&&"sample"||"filter",o=F2({shaderPass:t,action:s,shadingLanguage:e.info.shadingLanguage});this.model=new K0(e,{id:`${t.name}-subpass`,source:o,fs:o,modules:[G2,t],parameters:{depthWriteEnabled:!1}})}destroy(){this.model.destroy()}prepare(e){let{commandEncoder:t,bindings:n,textureScale:i,uniforms:s}=e;this.model.shaderInputs.setProps({textureTransform:{scale:i,flipY:this.flipY?1:0}}),this.model.shaderInputs.setProps({[this.shaderPass.name]:this.shaderPass.uniforms||{}}),this.model.shaderInputs.setProps({[this.shaderPass.name]:s||{}}),this.model.setBindings(n||{}),this.model.predraw(t)}draw(e){this.model.draw(e)}};function x6(r){return r.flatMap(e=>W2(e)?e.steps.map(t=>t.shaderPass):[e])}function W2(r){return"steps"in r}function b6(r,e){let t=e.compute;if(!t||r.type!=="webgpu")return!1;let n=Object.values(t.outputs);return n.length===0||n.length>r.limits.maxStorageTexturesPerShaderStage||t.workgroupSize[0]>r.limits.maxComputeWorkgroupSizeX||t.workgroupSize[1]>r.limits.maxComputeWorkgroupSizeY||t.workgroupSize[0]*t.workgroupSize[1]>r.limits.maxComputeInvocationsPerWorkgroup?!1:n.every(i=>{let s=e.renderTargets?.[i];if(!s?.storage)return!1;let o=s.format||r.preferredColorFormat;return r.getTextureFormatCapabilities(o).store})}function z2(r,e){let t=r.renderTargets;if(t&&Object.keys(t).length>0)throw new Error(`${e}: ShaderPass.renderTargets is not supported; use CompositeShaderPass.renderTargets instead`)}function v6(r,e){for(let t of Object.keys(e))if(y6.has(t))throw new Error(`${r}: render target name "${t}" is reserved`)}function T6(r,e,t,n){let i=e||{sourceTexture:"previous"};for(let s of Object.values(i))if(s&&s!=="original"&&s!=="previous"&&!(s in n))throw new Error(`${r}: unknown input source "${s}"`);if(t&&t!=="previous"&&!(t in n))throw new Error(`${r}: unknown output target "${t}"`)}function Z1(r,e){if(!(!r&&!e))return{...r||{},...e||{}}}function S6(r,e,t){return Z1(Z1(r.getUniformValues()[e.shaderPass.name],e.uniforms),t[e.shaderPass.name])}function w6(r,e){let t=r.getCanvasContext().getDrawingBufferSize(),n={};for(let[i,s]of Object.entries(e)){if(s.aliasFor){let o=n[s.aliasFor];if(!o)throw new Error(`${i}: target alias references an unknown earlier target`);let a=J1(t,s.scale),c=s.format||r.preferredColorFormat;if(s.lifetime==="history"||o.spec.lifetime==="history"||!I6(s,o.spec)||o.texture.width!==a[0]||o.texture.height!==a[1]||o.texture.format!==c||s.storage&&!o.spec.storage||!A6(s,o.spec))throw new Error(`${i}: target alias must match a transient target's size, format, and sampler`);n[i]=o;continue}n[i]=q2(r,i,s,t)}return n}function I6(r,e){let t=r.scale||[1,1],n=e.scale||[1,1];return t[0]===n[0]&&t[1]===n[1]}function A6(r,e){let t=r.sampler||{},n=e.sampler||{},i=Object.entries(t);return i.length===Object.keys(n).length&&i.every(([s,o])=>n[s]===o)}function _6(r){for(let e of new Set(Object.values(r)))e.framebuffer.destroy(),e.texture.destroy(),e.historyFramebuffer?.destroy(),e.historyTexture?.destroy()}function M6(r,e,t){for(let n of new Set(Object.values(e))){let i=J1(t,n.spec.scale);if(n.texture.width===i[0]&&n.texture.height===i[1])continue;n.framebuffer.destroy(),n.texture.destroy(),n.historyFramebuffer?.destroy(),n.historyTexture?.destroy();let s=q2(r,n.name,n.spec,t);n.texture=s.texture,n.framebuffer=s.framebuffer,n.historyTexture=s.historyTexture,n.historyFramebuffer=s.historyFramebuffer,n.historyInitialized=!1,n.writtenThisFrame=!1}}function q2(r,e,t,n){let i=J1(n,t.scale),{texture:s,framebuffer:o}=$2(r,e,t,i),a,c;if(t.lifetime==="history"){let u=$2(r,`${e}-history`,t,i);a=u.texture,c=u.framebuffer}return{name:e,spec:t,texture:s,framebuffer:o,historyTexture:a,historyFramebuffer:c,historyInitialized:!1,writtenThisFrame:!1}}function $2(r,e,t,n){let i=r.createTexture({id:`${e}-texture`,width:n[0],height:n[1],format:t.format||r.preferredColorFormat,usage:k0.Texture.SAMPLE|k0.Texture.RENDER|k0.Texture.COPY_SRC|k0.Texture.COPY_DST|(t.storage&&r.type==="webgpu"&&r.getTextureFormatCapabilities(t.format||r.preferredColorFormat).store?k0.Texture.STORAGE:0),...t.sampler?{sampler:t.sampler}:{}}),s=r.createFramebuffer({id:`${e}-framebuffer`,width:n[0],height:n[1],colorAttachments:[i]});return{texture:i,framebuffer:s}}function V2(r){if(!r.historyTexture)throw new Error(`${r.name}: transient render target has no history texture`);return r.historyTexture}function U2(r){if(!r.historyFramebuffer)throw new Error(`${r.name}: transient render target has no history framebuffer`);return r.historyFramebuffer}function J1(r,e=[1,1]){return[Math.max(1,Math.round(r[0]*e[0])),Math.max(1,Math.round(r[1]*e[1]))]}function Q1(r){let e=r.colorAttachments[0]?.texture;if(!e)throw new Error("ShaderPassRenderer: framebuffer is missing a color attachment texture");return e}function E6(r,e){return e===r.current?r.next:r.current}function P6(r,e){return Q1(r.current)===e?r.next:r.current}function L6(r,e){let t=r.width/r.height,n=e.width/e.height;return n>t?[1,n/t]:[t/n,1]}var S0=D(k(),1);var R6=[0,1,1,1],j=-1,C6={isActive:"i32",indexMode:"i32",batchIndex:"i32",isHighlightActive:"i32",highlightedBatchIndex:"i32",highlightedObjectIndex:"i32",highlightColor:"vec4<f32>"},F0=`precision highp float;
|
|
384
391
|
precision highp int;
|
|
385
392
|
|
|
386
393
|
layout(std140) uniform pickingUniforms {
|
|
@@ -393,7 +400,7 @@ layout(std140) uniform pickingUniforms {
|
|
|
393
400
|
int highlightedObjectIndex;
|
|
394
401
|
vec4 highlightColor;
|
|
395
402
|
} picking;
|
|
396
|
-
`,
|
|
403
|
+
`,ot=`struct pickingUniforms {
|
|
397
404
|
isActive: i32,
|
|
398
405
|
indexMode: i32,
|
|
399
406
|
batchIndex: i32,
|
|
@@ -405,9 +412,9 @@ layout(std140) uniform pickingUniforms {
|
|
|
405
412
|
};
|
|
406
413
|
|
|
407
414
|
@group(0) @binding(auto) var<uniform> picking: pickingUniforms;
|
|
408
|
-
`;function
|
|
415
|
+
`;function B6(r={},e){let t={...e};switch(r.isActive!==void 0&&(t.isActive=!!r.isActive),r.indexMode){case"instance":t.indexMode=0;break;case"attribute":t.indexMode=1;break;case"vertex":t.indexMode=2;break;case void 0:break}switch(typeof r.batchIndex=="number"&&(t.batchIndex=r.batchIndex),r.highlightedObjectIndex){case void 0:break;case null:t.isHighlightActive=!1,t.highlightedObjectIndex=j;break;default:t.isHighlightActive=!0,t.highlightedObjectIndex=r.highlightedObjectIndex}switch(r.highlightedBatchIndex){case void 0:break;case null:t.isHighlightActive=!1,t.highlightedBatchIndex=j;break;default:t.isHighlightActive=!0,t.highlightedBatchIndex=r.highlightedBatchIndex}return r.highlightColor&&(t.highlightColor=r.highlightColor),t}var J0={props:{},uniforms:{},name:"picking",uniformTypes:C6,defaultUniforms:{isActive:!1,indexMode:0,batchIndex:0,isHighlightActive:!1,highlightedBatchIndex:j,highlightedObjectIndex:j,highlightColor:R6},getUniforms:B6};var H2=1,D6=new Int32Array([j,j,0,0]);var X2=14,at=8;function Un(r,e="color",t=r==="webgpu"){if(e==="auto")return t?"index":"color";if(e==="index"&&!t)throw new Error(`Picking mode "${e}" requires WebGPU or a WebGL device that supports renderable rg32sint textures.`);return e}function jt(r){return r.type==="webgpu"||r.type==="webgl"&&r.isTextureFormatRenderable("rg32sint")}var Z2=Un;function Y2(r){return{objectIndex:r[0]===j?null:r[0],batchIndex:r[1]===j?null:r[1]}}function K2(r){let e=r[0]+r[1]*256+r[2]*65536;if(e===0)return{objectIndex:null,batchIndex:null};let t=r[3]>0?r[3]-1:0;return{objectIndex:e-1,batchIndex:t}}var Vn=class r{device;props;mode;pickInfo={batchIndex:null,objectIndex:null};framebuffer=null;lastMousePosition=null;tooltipElement=null;static defaultProps={shaderInputs:void 0,onObjectPicked:()=>{},getTooltip:()=>null,mode:"color",backend:"color"};constructor(e,t){this.device=e,this.props={...r.defaultProps,...t};let n=t.mode??t.backend??r.defaultProps.mode;this.props.mode=n,this.props.backend=n,this.mode=Un(this.device.type,n,jt(this.device))}destroy(){this.framebuffer?.destroy(),this.tooltipElement?.remove(),this.tooltipElement=null}getFramebuffer(){return this.framebuffer||(this.framebuffer=this.mode==="index"?this.createIndexFramebuffer():this.createColorFramebuffer()),this.framebuffer}clearPickState(){this.lastMousePosition=null,this.setPickingProps({highlightedBatchIndex:null,highlightedObjectIndex:null}),this.hideTooltip()}shouldPick(e,t={}){if(!e)return this.lastMousePosition&&this.clearPickState(),!1;let[n,i]=e;return!t.force&&this.lastMousePosition&&this.lastMousePosition[0]===n&&this.lastMousePosition[1]===i?!1:(this.lastMousePosition=[n,i],!0)}beginRenderPass(){let e=this.getFramebuffer();return e.resize(this.device.getDefaultCanvasContext().getDevicePixelSize()),this.setPickingProps({isActive:!0}),this.mode==="index"?this.device.beginRenderPass({framebuffer:e,clearColors:[new Float32Array([0,0,0,0]),D6],clearDepth:1}):this.device.beginRenderPass({framebuffer:e,clearColor:[0,0,0,0],clearDepth:1})}async updatePickInfo(e){let t=this.getFramebuffer(),n=this.getPickPosition(e),i=await this.readPickInfo(t,n);return i?(this.hasPickInfoChanged(i)&&(this.pickInfo=i,this.props.onObjectPicked(i)),this.updateTooltip(i,e),this.setPickingProps({isActive:!1,highlightedBatchIndex:i.batchIndex,highlightedObjectIndex:i.objectIndex}),this.pickInfo):null}getPickPosition(e){let t=this.device.type!=="webgpu",n=this.device.getDefaultCanvasContext().cssToDevicePixels(e,t),i=n.x+Math.floor(n.width/2),s=n.y+Math.floor(n.height/2);return[i,s]}createIndexFramebuffer(){let e=this.device.createTexture({format:"rgba8unorm",width:1,height:1,usage:S0.Texture.RENDER_ATTACHMENT}),t=this.device.createTexture({format:"rg32sint",width:1,height:1,usage:S0.Texture.RENDER_ATTACHMENT|S0.Texture.COPY_SRC});return this.device.createFramebuffer({colorAttachments:[e,t],depthStencilAttachment:"depth24plus"})}createColorFramebuffer(){let e=this.device.createTexture({format:"rgba8unorm",width:1,height:1,usage:S0.Texture.RENDER_ATTACHMENT|S0.Texture.COPY_SRC});return this.device.createFramebuffer({colorAttachments:[e],depthStencilAttachment:"depth24plus"})}setPickingProps(e){this.props.shaderInputs?.setProps({picking:e})}async readPickInfo(e,t){return this.mode==="index"?this.readIndexPickInfo(e,t):this.readColorPickInfo(e,t)}async readIndexPickInfo(e,[t,n]){if(this.device.type==="webgpu"){let s=e.colorAttachments[H2]?.texture;if(!s)return null;let o=s.computeMemoryLayout({width:1,height:1}),a=this.device.createBuffer({byteLength:o.byteLength,usage:S0.Buffer.COPY_DST|S0.Buffer.MAP_READ});try{s.readBuffer({x:t,y:n,width:1,height:1},a);let c=await a.readAsync(0,o.byteLength);return Y2(new Int32Array(c.buffer,c.byteOffset,2))}finally{a.destroy()}}let i=this.device.readPixelsToArrayWebGL(e,{sourceX:t,sourceY:n,sourceWidth:1,sourceHeight:1,sourceAttachment:H2});return i?Y2(new Int32Array(i.buffer,i.byteOffset,2)):null}async readColorPickInfo(e,[t,n]){if(this.device.type==="webgpu"){let s=e.colorAttachments[0]?.texture;if(!s)return null;let o=s.computeMemoryLayout({width:1,height:1}),a=this.device.createBuffer({byteLength:o.byteLength,usage:S0.Buffer.COPY_DST|S0.Buffer.MAP_READ});try{s.readBuffer({x:t,y:n,width:1,height:1},a);let c=await a.readAsync(0,o.byteLength);return K2(new Uint8Array(c.buffer,c.byteOffset,4))}finally{a.destroy()}}let i=this.device.readPixelsToArrayWebGL(e,{sourceX:t,sourceY:n,sourceWidth:1,sourceHeight:1,sourceAttachment:0});return i?K2(new Uint8Array(i.buffer,i.byteOffset,4)):null}hasPickInfoChanged(e){return e.objectIndex!==this.pickInfo.objectIndex||e.batchIndex!==this.pickInfo.batchIndex}updateTooltip(e,t){let n=this.props.getTooltip(e);if(!n){this.hideTooltip();return}let i=this.getOrCreateTooltipElement();i&&(i.textContent=n,i.style.display="block",this.positionTooltip(i,t))}hideTooltip(){this.tooltipElement&&(this.tooltipElement.style.display="none")}getOrCreateTooltipElement(){if(this.tooltipElement)return this.tooltipElement;if(typeof document>"u"||typeof window>"u"||typeof HTMLCanvasElement>"u"||typeof this.device.getDefaultCanvasContext!="function")return null;let e=this.device.getDefaultCanvasContext().canvas;if(!(e instanceof HTMLCanvasElement)||!e.parentElement)return null;let t=document.createElement("div");t.style.position="absolute",t.style.zIndex="12",t.style.display="none",t.style.maxWidth="220px",t.style.padding="8px 10px",t.style.borderRadius="6px",t.style.background="rgba(15, 23, 42, 0.92)",t.style.color="#f8fafc",t.style.font="600 13px/1.35 system-ui, sans-serif",t.style.pointerEvents="none",t.style.whiteSpace="nowrap",t.style.boxShadow="0 10px 24px rgba(15, 23, 42, 0.22)";let n=e.parentElement;return window.getComputedStyle(n).position==="static"&&(n.style.position="relative"),n.appendChild(t),this.tooltipElement=t,t}positionTooltip(e,t){if(typeof HTMLCanvasElement>"u"||typeof this.device.getDefaultCanvasContext!="function")return;let n=this.device.getDefaultCanvasContext().canvas;if(!(n instanceof HTMLCanvasElement))return;let i=Math.max(at,n.clientWidth-e.offsetWidth-at),s=Math.max(at,n.clientHeight-e.offsetHeight-at),o=Math.min(t[0]+X2,i),a=Math.min(t[1]+X2,s);e.style.left=`${Math.max(at,o)}px`,e.style.top=`${Math.max(at,a)}px`}};var O6=`${ot}
|
|
409
416
|
|
|
410
|
-
const COLOR_PICKING_INVALID_INDEX = ${
|
|
417
|
+
const COLOR_PICKING_INVALID_INDEX = ${j};
|
|
411
418
|
const COLOR_PICKING_MAX_OBJECT_INDEX = 16777214;
|
|
412
419
|
const COLOR_PICKING_MAX_BATCH_INDEX = 254;
|
|
413
420
|
|
|
@@ -476,12 +483,12 @@ fn picking_filterPickingColor(color: vec4<f32>, objectIndex: i32) -> vec4<f32> {
|
|
|
476
483
|
|
|
477
484
|
return color;
|
|
478
485
|
}
|
|
479
|
-
`,
|
|
486
|
+
`,N6=`${F0}
|
|
480
487
|
|
|
481
488
|
const int INDEX_PICKING_MODE_INSTANCE = 0;
|
|
482
489
|
const int INDEX_PICKING_MODE_CUSTOM = 1;
|
|
483
490
|
|
|
484
|
-
const int COLOR_PICKING_INVALID_INDEX = ${
|
|
491
|
+
const int COLOR_PICKING_INVALID_INDEX = ${j};
|
|
485
492
|
|
|
486
493
|
flat out int picking_objectIndex;
|
|
487
494
|
|
|
@@ -495,9 +502,9 @@ void picking_setObjectIndex(int objectIndex) {
|
|
|
495
502
|
break;
|
|
496
503
|
}
|
|
497
504
|
}
|
|
498
|
-
`,
|
|
505
|
+
`,k6=`${F0}
|
|
499
506
|
|
|
500
|
-
const int COLOR_PICKING_INVALID_INDEX = ${
|
|
507
|
+
const int COLOR_PICKING_INVALID_INDEX = ${j};
|
|
501
508
|
const int COLOR_PICKING_MAX_OBJECT_INDEX = 16777214;
|
|
502
509
|
const int COLOR_PICKING_MAX_BATCH_INDEX = 254;
|
|
503
510
|
|
|
@@ -568,9 +575,9 @@ vec4 picking_filterColor(vec4 color) {
|
|
|
568
575
|
outColor = picking_filterPickingColor(outColor);
|
|
569
576
|
return outColor;
|
|
570
577
|
}
|
|
571
|
-
`,Wt={...J0,name:"picking",source:
|
|
578
|
+
`,Wt={...J0,name:"picking",source:O6,vs:N6,fs:k6};var F6=`${ot}
|
|
572
579
|
|
|
573
|
-
const COLOR_PICKING_INVALID_INDEX = ${
|
|
580
|
+
const COLOR_PICKING_INVALID_INDEX = ${j};
|
|
574
581
|
const COLOR_PICKING_MAX_OBJECT_INDEX = 16777214;
|
|
575
582
|
const COLOR_PICKING_MAX_BATCH_INDEX = 254;
|
|
576
583
|
|
|
@@ -658,7 +665,7 @@ fn picking_filterColor(color: vec4<f32>, objectIndex: i32) -> vec4<f32> {
|
|
|
658
665
|
outColor = picking_filterPickingColor(outColor, objectIndex);
|
|
659
666
|
return outColor;
|
|
660
667
|
}
|
|
661
|
-
`,
|
|
668
|
+
`,G6=`${F0}
|
|
662
669
|
|
|
663
670
|
const int INDEX_PICKING_MODE_INSTANCE = 0;
|
|
664
671
|
const int INDEX_PICKING_MODE_ATTRIBUTE = 1;
|
|
@@ -679,9 +686,9 @@ void picking_setObjectIndex(int objectIndex) {
|
|
|
679
686
|
break;
|
|
680
687
|
}
|
|
681
688
|
}
|
|
682
|
-
`,
|
|
689
|
+
`,z6=`${F0}
|
|
683
690
|
|
|
684
|
-
const int COLOR_PICKING_INVALID_INDEX = ${
|
|
691
|
+
const int COLOR_PICKING_INVALID_INDEX = ${j};
|
|
685
692
|
const int COLOR_PICKING_MAX_OBJECT_INDEX = 16777214;
|
|
686
693
|
const int COLOR_PICKING_MAX_BATCH_INDEX = 254;
|
|
687
694
|
|
|
@@ -752,12 +759,12 @@ vec4 picking_filterColor(vec4 color) {
|
|
|
752
759
|
outColor = picking_filterPickingColor(outColor);
|
|
753
760
|
return outColor;
|
|
754
761
|
}
|
|
755
|
-
`,
|
|
762
|
+
`,jn={...J0,name:"picking",source:F6,vs:G6,fs:z6};var $6=`${ot}
|
|
756
763
|
|
|
757
764
|
const INDEX_PICKING_MODE_INSTANCE = 0;
|
|
758
765
|
const INDEX_PICKING_MODE_ATTRIBUTE = 1;
|
|
759
766
|
const INDEX_PICKING_MODE_VERTEX = 2;
|
|
760
|
-
const INDEX_PICKING_INVALID_INDEX = ${
|
|
767
|
+
const INDEX_PICKING_INVALID_INDEX = ${j}; // 2^32 - 1
|
|
761
768
|
|
|
762
769
|
/**
|
|
763
770
|
* WGSL shaders need to carry the returned object index through their own stage outputs.
|
|
@@ -812,13 +819,13 @@ fn picking_getPickingColor(objectIndex: i32) -> vec2<i32> {
|
|
|
812
819
|
return vec2<i32>(objectIndex, picking.batchIndex);
|
|
813
820
|
}
|
|
814
821
|
|
|
815
|
-
`,
|
|
822
|
+
`,V6=`${F0}
|
|
816
823
|
|
|
817
824
|
const int INDEX_PICKING_MODE_INSTANCE = 0;
|
|
818
825
|
const int INDEX_PICKING_MODE_ATTRIBUTE = 1;
|
|
819
826
|
const int INDEX_PICKING_MODE_VERTEX = 2;
|
|
820
827
|
|
|
821
|
-
const int INDEX_PICKING_INVALID_INDEX = ${
|
|
828
|
+
const int INDEX_PICKING_INVALID_INDEX = ${j}; // 2^32 - 1
|
|
822
829
|
|
|
823
830
|
flat out int picking_objectIndex;
|
|
824
831
|
|
|
@@ -839,9 +846,9 @@ void picking_setObjectIndex(int objectIndex) {
|
|
|
839
846
|
break;
|
|
840
847
|
}
|
|
841
848
|
}
|
|
842
|
-
`,
|
|
849
|
+
`,U6=`${F0}
|
|
843
850
|
|
|
844
|
-
const int INDEX_PICKING_INVALID_INDEX = ${
|
|
851
|
+
const int INDEX_PICKING_INVALID_INDEX = ${j}; // 2^32 - 1
|
|
845
852
|
|
|
846
853
|
flat in int picking_objectIndex;
|
|
847
854
|
|
|
@@ -907,10 +914,10 @@ vec4 picking_filterColor(vec4 color) {
|
|
|
907
914
|
outColor = picking_filterPickingColor(outColor);
|
|
908
915
|
return outColor;
|
|
909
916
|
}
|
|
910
|
-
`,Ht={...J0,name:"picking",source:b6,vs:v6,fs:T6};var O2={...J0,name:"picking",source:Ht.source,vs:Wt.vs,fs:Wt.fs};function k2(r){return jt(r)?Ht:kn}var he=O(k(),1);var Nn=class{bindings;scenes;constructor(e){this.scenes=e.scenes,this.bindings=e.bindings,this.update()}update(){if(this.bindings.length===0)return;let e=new Map;for(let t of this.scenes)t.preorderTraversal((n,{worldMatrix:i})=>{n instanceof c0&&e.set(n,new R(i))});for(let t of this.bindings){br({joints:t.joints,meshNode:t.node,worldMatrices:e,inverseBindMatrices:t.inverseBindMatrices,target:t.jointMatrices}),t.skinJointMatrices&&(t.skinJointMatrices instanceof he.Buffer?t.skinJointMatrices.write(t.jointMatrices):t.skinJointMatrices.writeData(t.jointMatrices,{width:t.joints.length*4,height:1}));for(let n of t.models)n.model.shaderInputs.setProps({skin:t.skinJointMatrices?{jointMatrices:[],skinJointMatrices:t.skinJointMatrices}:{jointMatrices:t.jointMatrices}})}}getBinding(e){return this.bindings.find(t=>t.node===e)}destroy(){for(let e of this.bindings)e.skinJointMatrices?.destroy()}};function N2(r,e,t){if(r.type==="webgpu")return r.createBuffer({id:`${e}-skin-joint-matrices`,byteLength:t.byteLength,usage:he.Buffer.STORAGE|he.Buffer.COPY_DST});let n=t.length/4;if(n>r.limits.maxTextureDimension2D)throw new Error("Skin palette exceeds the device texture width limit");return r.createTexture({id:`${e}-skin-joint-matrices`,format:"rgba32float",width:n,height:1,usage:he.Texture.SAMPLE|he.Texture.COPY_DST,sampler:{minFilter:"nearest",magFilter:"nearest",mipmapFilter:"nearest"}})}var Fn=class{variants;names;activeVariant=null;bindings;constructor(e){this.variants=e.variants,this.names=this.variants.map(t=>t.name),this.bindings=e.bindings}selectVariant(e){let t=this.variants.find(n=>n.name===e);if(!t)throw new Error(`Unknown material variant: ${e}`);for(let{modelNode:n,...i}of this.bindings){let s=i.mappings.get(t.index);n.model.setMaterial(s?.material||i.defaultMaterial),n.model.setParameters(s?.parameters||i.defaultParameters)}this.activeVariant=e}resetVariant(){for(let{modelNode:e,...t}of this.bindings)e.model.setMaterial(t.defaultMaterial),e.model.setParameters(t.defaultParameters);this.activeVariant=null}};var Gn=O(k(),1);var zn=class{scenes;bindings=new Map;cameraDepths=new Map;constructor(e){this.scenes=e.scenes;for(let t of e.bindings){let{definition:n}=t,i=new D(n.viewDirection||[0,0,1]),s=new D(n.up||[0,1,0]);(0,Gn.assert)(i.magnitude()>0&&s.magnitude()>0),(0,Gn.assert)(new D(i).normalize().cross(new D(s).normalize()).magnitude()>1e-6),this.bindings.set(t.node,t)}}getDrawEntries(e){let{sceneIndex:t=0,cameraId:n="default"}=e,i=this.scenes[t];(0,Gn.assert)(i);let s=new R(e.viewMatrix),o=new R(s).invert(),a=new D(o.getTranslation()),c=new D(1,0,0).transformAsVector(o).normalize(),u=new D(0,1,0).transformAsVector(o).normalize(),l=this.cameraDepths.get(n);l||(l=new Map,this.cameraDepths.set(n,l));let d=new Set,f=[],h=(p,m,g,b=0)=>{if(!p.display)return;let v=new R(m).multiplyRight(p.matrix),T=this.bindings.get(p),S=g||!!T?.definition.overlay;if(T?.definition.overlay&&(b=new D(v.getTranslation()).distance(a)),T){d.add(p);let y=new D(v.getTranslation()),x=new D(a).subtract(y);x.magnitude()<1e-8&&x.copy([o[8],o[9],o[10]]),T.definition.rotationAxis==="y"&&(x[1]=0,x.magnitude()<1e-8&&x.copy([0,0,1])),x.normalize();let w=T.definition.rotationAxis==="y"?new D(0,1,0):new D(x).cross(c);w.magnitude()<1e-8&&(w=new D(u).subtract(new D(x).scale(u.dot(x)))),w.normalize();let A=F2(x,w),_=T.matrixAuthored?new D(p.matrix.getScale()):new D(p.scale);T.matrixAuthored&&p.matrix.determinant()<0&&(_[0]=-_[0]);let I=new D(T.definition.viewDirection||[0,0,1]).multiply(_),C=new D(T.definition.up||[0,1,0]).multiply(_),M=I.magnitude()>1e-8&&C.magnitude()>1e-8&&new D(I).normalize().cross(new D(C).normalize()).magnitude()>1e-8,B=F2(M?I:new D(T.definition.viewDirection||[0,0,1]),M?C:new D(T.definition.up||[0,1,0]));if(T.definition.scaleWithDistance){let L=Math.abs(new D(y).transformAsPoint(s)[2]);!l.has(p)&&L>1e-8&&l.set(p,L);let E=l.get(p);E!==void 0&&_.scale(L/E)}v=new R().translate(y).multiplyRight(A).multiplyRight(B.transpose()).scale(_)}if(p instanceof c0)for(let y of p.children)h(y,v,S,b);else f.push({node:p,modelMatrix:v,overlay:S,distance:b,depth:-new D(v.getTranslation()).transformAsPoint(s)[2]})};h(i,new R,!1);for(let p of l.keys())d.has(p)||l.delete(p);return f.sort((p,m)=>Number(p.overlay)-Number(m.overlay)||(p.overlay?m.distance-p.distance||m.depth-p.depth:0)),f}resetCamera(e="default"){this.cameraDepths.delete(e)}destroy(){this.bindings.clear(),this.cameraDepths.clear()}};function F2(r,e){r=new D(r).normalize();let t=new D(e).cross(r).normalize();return e=new D(r).cross(t).normalize(),new R([t[0],t[1],t[2],0,e[0],e[1],e[2],0,r[0],r[1],r[2],0,0,0,0,1])}var P0=O(k(),1);var Un=class{scenes;matrixAuthoredNodes=new Set;definitions=new Map;constructor({scenes:e,bindings:t,matrixNodes:n=[]}){this.scenes=e;for(let i of n)this.matrixAuthoredNodes.add(i);for(let{node:i,definition:s,matrixAuthored:o}of t)o&&this.matrixAuthoredNodes.add(i),(0,P0.assert)(s&&(s.type==="rect"||s.type==="disk")),(0,P0.assert)(Number.isFinite(s.height??1)&&(s.height??1)>0),(0,P0.assert)(Number.isFinite(s.intensity??1e3)&&(s.intensity??1e3)>0),(0,P0.assert)(Number.isFinite(s.width??1)&&(s.width??1)>0),(0,P0.assert)((s.color||[1,1,1]).every(a=>Number.isFinite(a)&&a>=0)),this.definitions.set(i,s)}getLights(e=0){let t=this.scenes[e];if(!t)return[];let n=[],i=new Set,s=a=>{let c=this.definitions.has(a);for(let u of a.children)u instanceof c0&&s(u)&&(c=!0);return c&&i.add(a),c};s(t);let o=(a,c,u)=>{if(!a.display||!i.has(a))return;let l=new R(c).multiplyRight(a.matrix),d=this.matrixAuthoredNodes.has(a)?S6(a.matrix):a.rotation.length===4?new R().fromQuaternion(a.rotation):new R().rotateXYZ(a.rotation),f=new R(u).multiplyRight(d),h=this.definitions.get(a);if(h){let p=Math.max(...l.getScale().map(Math.abs)),m=(h.height??1)*p,g=h.type==="rect"?(h.width??1)*p:m;n.push({type:h.type,position:[l[12],l[13],l[14]],halfAxisX:[f[0]*g/2,f[1]*g/2,f[2]*g/2],halfAxisY:[f[4]*m/2,f[5]*m/2,f[6]*m/2],normal:[-f[8],-f[9],-f[10]],color:h.color||[1,1,1],intensity:h.intensity??1e3})}for(let p of a.children)p instanceof c0&&o(p,l,f)};return o(t,new R,new R),n}destroy(){this.scenes=[],this.matrixAuthoredNodes.clear(),this.definitions.clear()}};function S6(r){let e=new D(r[0],r[1],r[2]),t=new D(r[4],r[5],r[6]);(0,P0.assert)(e.magnitude()>0&&t.magnitude()>0),e.normalize(),t.normalize(),t.subtract(new D(e).scale(t.dot(e))),(0,P0.assert)(t.magnitude()>1e-8),t.normalize();let n=new D(e).cross(t).normalize(),i=new D(r[8],r[9],r[10]);return(0,P0.assert)(i.magnitude()>0),i.normalize(),(0,P0.assert)(Math.abs(n.dot(i))>1e-8),n.dot(i)<0&&n.negate(),new R([e[0],e[1],e[2],0,t[0],t[1],t[2],0,n[0],n[1],n[2],0,0,0,0,1])}var w6=new Set(["variable/get","pointer/get","math/and","math/add","math/sub","math/mul","math/div","math/rem","math/min","math/max","math/eq","math/lt","math/le","math/gt","math/ge","math/select","math/switch","math/neg","math/abs","math/clamp","type/intToFloat","type/floatToInt"]),at="KHR_physics_rigid_bodies:",G2=new Set(["rigid_body/applyImpulse","rigid_body/applyPointImpulse","rigid_body/rayCast","event/rigid_body_triggerEntered","event/rigid_body_triggerExited"].map(r=>at+r)),A6=new Set(["event/onStart","event/onTick","event/send","debug/log","flow/sequence","flow/branch","flow/switch","variable/set","pointer/set","flow/setDelay","KHR_node_selectability:event/onSelect"]);function pe(r){return r.slice()}function z2(r){if(!Array.isArray(r))throw new Error("KHR_interactivity: expected component array");return r}function me(r){return r[0]}function X(r){let e=me(r);if(typeof e!="number")throw new Error("KHR_interactivity: expected numeric value");return e}function U2(r){if(r==="bool")return[!1];if(r==="int")return[0];if(r==="ref")return[null];let e=r?.match(/^float(?:([234])(?:x([234]))?)?$/);if(e&&(!e[2]||e[1]===e[2]))return Array(Number(e[1]??1)*Number(e[2]??1)).fill(NaN);throw new Error("KHR_interactivity: unsupported default value type")}var Vn=class{physics;physicsPending=new Set;physicsErrors=[];definition;graph;variables;properties;maxSteps;onEvent;onLog;started=!1;currentTimeSeconds=0;nextDelayIdentifier=0;pendingDelays=[];startTime=0;lastTick;eventOutputs=new Map;constructor(e,t={}){this.physics=t.physics,this.definition=e;let n=t.graph??e.graph??0,i=e.graphs[n];if(!i)throw new Error(`KHR_interactivity: graph ${n} does not exist`);if(this.graph=i,this.properties=t.properties,this.onEvent=t.onEvent,this.onLog=t.onLog,this.maxSteps=t.maxSteps??1e4,!Number.isSafeInteger(this.maxSteps)||this.maxSteps<1)throw new Error("KHR_interactivity: maxSteps must be a positive safe integer");this.variables=(i.variables??[]).map(s=>pe(s.value??[0]));for(let[s,o]of(i.nodes??[]).entries()){let a=this.getOperation(n,s);if(!w6.has(a)&&!A6.has(a)&&!(this.physics&&G2.has(a)))throw new Error(`KHR_interactivity: unsupported operation ${a}`);if(a.startsWith(at+"event/")){let c=X(this.config(o,"nodeIndex"));if(!this.physics?.isTriggerNode(c)||(i.nodes??[]).slice(0,s).some((u,l)=>this.getOperation(n,l)===a&&u.configuration?.nodeIndex?.value[0]===c))throw new Error("Invalid or duplicate physics trigger event")}if(a==="event/send"){let c=X(this.config(o,"event"));if(!Number.isInteger(c)||!i.events?.[c])throw new Error("KHR_interactivity: invalid custom event index")}for(let c of Object.values(o.flows??{}))if(!Number.isInteger(c.node)||!(i.nodes??[])[c.node])throw new Error(`KHR_interactivity: invalid flow target ${c.node}`)}}get graphCount(){return this.definition.graphs.length}getGraph(e){let t=this.definition.graphs[e];if(!t)throw new Error(`KHR_interactivity: graph index ${e} is out of range`);return t}getOperation(e,t){let n=this.getGraph(e),i=n.nodes?.[t];if(!i)throw new Error(`KHR_interactivity: node index ${t} is out of range`);let s=n.declarations?.[i.declaration];if(!s)throw new Error(`KHR_interactivity: declaration index ${i.declaration} is out of range`);return s.extension?`${s.extension}:${s.op}`:s.op}op(e){let t=this.graph.nodes?.[e],n=t&&this.graph.declarations?.[t.declaration];if(!n)throw new Error(`KHR_interactivity: invalid declaration for node ${e}`);return n.extension?`${n.extension}:${n.op}`:n.op}config(e,t){let n=e.configuration?.[t]?.value;if(!n)throw new Error(`KHR_interactivity: missing configuration ${t}`);return z2(n)}getSwitchCases(e){let t=e.configuration?.cases?.value;return Array.isArray(t)&&t.every(n=>typeof n=="number"&&Number.isInteger(n)&&n>=-2147483648&&n<=2147483647)?t:[]}input(e,t,n){let i=this.graph.nodes?.[e]?.values?.[t];if(!i)throw new Error(`KHR_interactivity: missing input ${t} on node ${e}`);if(i.node!==void 0){if(!i.socket)throw new Error("KHR_interactivity: connected input missing socket");return this.evaluate(i.node,i.socket,n)}return i.value?pe(z2(i.value)):U2(i.type===void 0?void 0:this.graph.types?.[i.type]?.signature)}pointer(e,t){let n=this.graph.nodes[e],i=me(this.config(n,"pointer"));if(typeof i!="string"||!i.startsWith("/"))throw new Error("KHR_interactivity: invalid pointer template");return i.replace(/\[([^\]]+)\]|\{([^}]+)\}/g,(s,o,a)=>{let c=o??a,u=me(this.input(e,c,t));if(a&&typeof u=="string"&&/^\/(?:[^/~]|~[01])+(?:\/(?:[^/~]|~[01])+)*$/.test(u))return u.split("/").at(-1);if(!Number.isSafeInteger(u)||u<0)throw new Error("KHR_interactivity: invalid pointer parameter");return String(u)})}evaluate(e,t="value",n=new Set){let i=this.graph.nodes?.[e];if(!i)throw new Error(`KHR_interactivity: invalid node ${e}`);if(n.has(e))throw new Error("KHR_interactivity: cyclic value dependency");n.add(e);try{let s=this.op(e),o=this.eventOutputs.get(e)?.[t];if(o)return pe(o);if(s==="flow/setDelay"&&t==="lastDelay")return[null];if(s==="variable/get"){let l=X(this.config(i,"variable")),d=this.variables[l];if(!d)throw new Error("KHR_interactivity: invalid variable index");return pe(d)}if(s==="pointer/get"){let l=this.properties?.get(this.pointer(e,n));return t==="isValid"?[l!==void 0]:pe(l??[0])}if(t!=="value")throw new Error(`KHR_interactivity: unsupported output socket ${t}`);let a=()=>this.input(e,"a",n),c=()=>this.input(e,"b",n),u=l=>{let d=a().map(Number),f=c().map(Number);if(d.length!==f.length)throw new Error("KHR_interactivity: mismatched component lengths");return d.map((h,p)=>l(h,f[p]))};switch(s){case"type/intToFloat":return a().map(Number);case"type/floatToInt":return a().map(l=>Number(l)|0);case"math/clamp":{let l=c().map(Number),d=this.input(e,"c",n).map(Number);return a().map((f,h)=>Math.min(d[h],Math.max(l[h],Number(f))))}case"math/and":{let l=me(a()),d=me(c());if(typeof l=="boolean"&&typeof d=="boolean")return[l&&d];if(typeof l=="number"&&typeof d=="number")return[l&d];throw new Error("KHR_interactivity: incompatible AND arguments")}case"math/add":return u((l,d)=>l+d);case"math/sub":return u((l,d)=>l-d);case"math/mul":return u((l,d)=>l*d);case"math/div":return u((l,d)=>l/d);case"math/rem":return u((l,d)=>l%d);case"math/min":return u(Math.min);case"math/max":return u(Math.max);case"math/neg":return a().map(l=>-Number(l));case"math/abs":return a().map(l=>Math.abs(Number(l)));case"math/eq":return[JSON.stringify(a())===JSON.stringify(c())];case"math/lt":return[X(a())<X(c())];case"math/le":return[X(a())<=X(c())];case"math/gt":return[X(a())>X(c())];case"math/ge":return[X(a())>=X(c())];case"math/select":return this.input(e,me(this.input(e,"condition",n))?"a":"b",n);case"math/switch":{let l=X(this.input(e,"selection",n)),d=this.getSwitchCases(i);return this.input(e,d.includes(l)?String(l):"default",n)}default:throw new Error(`KHR_interactivity: ${s} is not a value operation`)}}finally{n.delete(e)}}dispatch(e,t,n){let i=0,s=(a,c)=>{if(++i>this.maxSteps)throw new Error("KHR_interactivity: flow step limit exceeded");let u=this.graph.nodes[a],l=this.op(a);if(l==="flow/setDelay"&&c==="cancel"){this.pendingDelays=this.pendingDelays.filter(h=>h.nodeIndex!==a),this.eventOutputs.set(a,{lastDelay:[null]});return}if(c!=="in")throw new Error(`KHR_interactivity: unsupported input flow ${c}`);let d=new Set,f=h=>{let p=u.flows?.[h];p&&s(p.node,p.socket??"in")};if(G2.has(l)&&this.physics){let h=(m,g)=>u.values?.[m]?this.input(a,m,d):g??this.input(a,m,d),p=(m,g)=>{let b=h(m,g);if(b.length!==3||!b.every(v=>typeof v=="number"&&Number.isFinite(v)))throw new Error("Invalid physics vector");return b};if(l===at+"rigid_body/applyImpulse")this.physics.applyImpulse(X(h("nodeIndex")),p("linearImpulse",[0,0,0]),p("angularImpulse",[0,0,0])),f("out");else if(l===at+"rigid_body/applyPointImpulse")this.physics.applyPointImpulse(X(h("nodeIndex")),p("impulse"),p("position")),f("out");else if(l===at+"rigid_body/rayCast"){let m=new Map(this.eventOutputs),g=this.physics.rayCast(p("rayStart"),p("rayEnd"),X(h("collisionFilterIndex",[-1]))).then(b=>{let v=this.eventOutputs;this.eventOutputs=m;try{i=0,this.eventOutputs.delete(a),b&&this.eventOutputs.set(a,{hitNodeIndex:[b.node],hitFraction:[b.fraction],hitNormal:[...b.normal]}),f(b?"hit":"miss")}finally{this.eventOutputs=v}}).catch(b=>{this.physicsErrors.push(b)}).finally(()=>{this.physicsPending.delete(g)});this.physicsPending.add(g)}else throw new Error("Physics event is not an input flow");return}switch(l){case"flow/setDelay":{let h=X(this.input(a,"duration",d)),p=this.currentTimeSeconds+h;if(!Number.isFinite(p)||!Number.isFinite(h)||h<0||this.pendingDelays.length>=1024){f("err");break}let m=`delay:${++this.nextDelayIdentifier}`;this.eventOutputs.set(a,{lastDelay:[m]}),this.pendingDelays.push({nodeIndex:a,reference:m,timeSeconds:p,activate:()=>{i=0,f("done")}}),f("out");break}case"flow/sequence":for(let h of Object.keys(u.flows??{}).sort())f(h);break;case"flow/branch":f(me(this.input(a,"condition",d))?"true":"false");break;case"flow/switch":{let h=X(this.input(a,"selection",d)),p=this.getSwitchCases(u);f(p.includes(h)?String(h):"default");break}case"variable/set":{let h=this.config(u,"variables").map(Number),p=h.map(m=>this.input(a,String(m),d));h.forEach((m,g)=>{if(!this.variables[m])throw new Error("KHR_interactivity: invalid variable index");this.variables[m]=pe(p[g])}),f("out");break}case"event/send":{let h=X(this.config(u,"event")),p=this.graph.events[h],m=Object.fromEntries(Object.entries(p.values??{}).map(([g,b])=>[g,u.values?.[g]?this.input(a,g,d):b.value?pe(b.value):U2(this.graph.types?.[b.type]?.signature)]));this.onEvent?.(p.id,m),f("out");break}case"debug/log":{let h=u.configuration?.severity?.value[0],p=u.configuration?.message?.value[0],m=typeof p=="string"?p.match(/\{\{|\}\}|\{[^{}]+\}|[^{}]+/g):null,b=typeof p=="string"&&(m??[]).join("")===p?(m??[]).map(v=>v==="{{"?"{":v==="}}"?"}":v.startsWith("{")?JSON.stringify(this.input(a,v.slice(1,-1),d)):v).join(""):"";this.onLog?.(b,typeof h=="number"&&h===(h|0)?h:0),f("out");break}case"pointer/set":{let h=this.pointer(a,d),p=this.input(a,"value",d);f(this.properties?.set(h,p)?"out":"err");break}default:throw new Error(`KHR_interactivity: ${l} is not an executable flow operation`)}},o=this.graph.nodes??[];for(let a=0;a<o.length;a++)if(this.op(a)===e&&(n===void 0||o[a].configuration?.nodeIndex?.value[0]===n)){this.eventOutputs.set(a,t);let c=o[a].flows?.out;c&&s(c.node,c.socket??"in")}}async flushPhysics(){let e=0;for(;this.physicsPending.size;){if(++e>this.maxSteps)throw new Error("Physics continuation limit exceeded");await Promise.all(this.physicsPending)}if(this.physicsErrors.length)throw this.physicsErrors.shift()}notifyPhysicsTrigger(e,t,n,i){if(!this.physics?.isTriggerNode(t))throw new Error("Invalid physics trigger node");this.dispatch(at+(e==="enter"?"event/rigid_body_triggerEntered":"event/rigid_body_triggerExited"),{colliderNodeIndex:[n],motionNodeIndex:[i]},t)}start(){this.started||(this.started=!0,this.dispatch("event/onStart",{event:[null]}))}selectNode(e){this.start(),this.dispatch("KHR_node_selectability:event/onSelect",{selectedNode:[`/nodes/${e}`],selectionRayOrigin:[0,0,0],selectionPoint:[0,0,0],controllerIndex:[0],event:[null]},e)}tick(e){if(!Number.isFinite(e))throw new Error("KHR_interactivity: invalid tick time");if(this.lastTick!==void 0&&e<this.lastTick)throw new Error("KHR_interactivity: tick time must be monotonic");if(this.lastTick===void 0){this.startTime=e;let i=e-this.currentTimeSeconds;for(let s of this.pendingDelays)s.timeSeconds+=i}let t=this.lastTick===void 0?NaN:e-this.lastTick;this.lastTick=e,this.currentTimeSeconds=e,this.start();let n=this.pendingDelays.filter(i=>i.timeSeconds<=e).sort((i,s)=>i.timeSeconds-s.timeSeconds);for(let i of n)this.pendingDelays.includes(i)&&(this.pendingDelays=this.pendingDelays.filter(s=>s!==i),i.activate());this.dispatch("event/onTick",{timeSinceStart:[e-this.startTime],timeSinceLastTick:[t],event:[null]})}};var G0=O(k(),1),ct=class{definition;nodes=[];constructor(e,t,n,i){this.definition=e;for(let u of e.nodes)(0,G0.assert)(!u.bypass||u.kind!=="splitter"&&u.kind!=="channelmerger");let s=(u,l=0)=>{(0,G0.assert)(Number.isInteger(u)&&!!e.nodes[u]),(0,G0.assert)(Number.isInteger(l)&&l>=0)};for(let u of e.connections)s(u.from.node,u.from.output),s(u.to.node,u.to.input);for(let u of e.inputs||[])s(u.node,u.input),(0,G0.assert)(Number.isInteger(u.source)&&u.source>=0);for(let u of e.outputs||[])s(u.node,u.output),(0,G0.assert)(Number.isInteger(u.emitter)&&u.emitter>=0);let o=new Set,a=new Set,c=u=>{if((0,G0.assert)(e.nodes[u]&&!o.has(u)),!a.has(u)){o.add(u);for(let l of e.connections)l.from.node===u&&c(l.to.node);o.delete(u),a.add(u)}};e.nodes.forEach((u,l)=>c(l));try{e.nodes.forEach((u,l)=>this.nodes.push(_6(t,u,Math.max(1,...e.connections.filter(d=>d.from.node===l).map(d=>(d.from.output??0)+1),...(e.outputs||[]).filter(d=>d.node===l).map(d=>(d.output??0)+1)),Math.max(1,...e.connections.filter(d=>d.to.node===l).map(d=>(d.to.input??0)+1),...(e.inputs||[]).filter(d=>d.node===l).map(d=>(d.input??0)+1)))));for(let u of e.connections)this.nodes[u.from.node].connect(this.nodes[u.to.node],u.from.output??0,this.getInputPort(u.to.node,u.to.input??0));if(e.outputs)for(let u of e.outputs)for(let l of i(u.emitter))this.nodes[u.node].connect(l,u.output??0);else e.nodes.forEach((u,l)=>{e.connections.some(d=>d.from.node===l)||this.nodes[l].connect(n)})}catch(u){throw this.destroy(),u}}connectSource(e,t){for(let n of this.definition.inputs||[])n.source===e&&t.connect(this.nodes[n.node],0,this.getInputPort(n.node,n.input??0))}setGain(e,t,n=this.nodes[e].context.currentTime){let i=this.definition.nodes[e];(0,G0.assert)(i.kind==="gain"&&!i.bypass&&t>=0);let s=this.nodes[e].gain,o=i.params.duration??0,a=s.value;if(s.cancelAndHoldAtTime(n),s.setValueAtTime(a,n),o<=0)s.setValueAtTime(t,n);else if(i.params.interpolation==="custom"){let c=i.params.curve;(0,G0.assert)(c&&c.length>=2&&c.every(u=>u>=0&&u<=1)),s.setValueCurveAtTime(Float32Array.from(c,u=>u*t),n,o)}else s.linearRampToValueAtTime(t,n+o)}destroy(){for(let e of this.nodes)e.disconnect();this.nodes.length=0}getInputPort(e,t){return this.definition.nodes[e].kind==="audiomixer"?0:t}};function _6(r,e,t,n){let i=e.params;if(e.bypass)return r.createGain();switch(e.kind){case"gain":{let s=r.createGain();return s.gain.value=i.gain??1,s}case"delay":{let s=r.createDelay(i.maxDelayTime??1);return s.delayTime.value=i.delayTime??0,s}case"compressor":{let s=r.createDynamicsCompressor();return s.threshold.value=i.threshold??-24,s.knee.value=i.knee??30,s.ratio.value=i.ratio??12,s.attack.value=i.attack??.003,s.release.value=i.release??.25,s}case"waveshaper":{let s=r.createWaveShaper(),o=1+20*(i.amount??0);return s.curve=i.curve?new Float32Array(i.curve):Float32Array.from({length:4097},(a,c)=>Math.tanh((c/2048-1)*o)/Math.tanh(o)),s.oversample=i.oversample??"none",s}case"splitter":{let s=r.createChannelSplitter(t);return s.channelInterpretation=i.channelInterpretation??"discrete",s}case"channelmerger":{let s=r.createChannelMerger(n);return s.channelInterpretation=i.channelInterpretation??"discrete",s}case"channelmixer":{let s=r.createGain();return s.channelCountMode="explicit",s.channelCount=i.outputChannels,s.channelInterpretation=i.channelInterpretation??"speakers",s}case"audiomixer":{let s=r.createGain();return s.channelInterpretation=i.channelInterpretation??"speakers",s}default:{let s=r.createBiquadFilter();return s.type=e.kind,s.frequency.value=i.frequency,s.Q.value=i.qualityFactor??1,s.gain.value=i.gain??0,s}}}var $n=O(k(),1);function qt(r,e){let t;for(let s of r){let o=s.worldMatrix.getScale(),a,c,u;if(s.shape.type==="sphere"){let l=s.worldMatrix.getTranslation(),d=s.shape.radius*Math.max(...o);a=d-Math.hypot(...l.map((p,m)=>p-e[m])),c=4/3*Math.PI*d**3;let f=l.map((p,m)=>e[m]-p),h=Math.hypot(...f);u=Array.from(l).map((p,m)=>p+(h?f[m]/h:+(m===0))*(d+1e-5))}else{let l=new R(s.worldMatrix).invert().transformAsPoint(Array.from(e)),d=s.shape.size.map((h,p)=>(h/2-Math.abs(l[p]))*o[p]);a=Math.min(...d);let f=d.indexOf(a);l[f]=(Math.sign(l[f])||1)*(s.shape.size[f]/2+1e-5/o[f]),u=Array.from(s.worldMatrix.transformAsPoint(l)),c=s.shape.size.reduce((h,p,m)=>h*p*o[m],1)}a<0||(!t||(s.priority??0)>(t.zone.priority??0)||(s.priority??0)===(t.zone.priority??0)&&c<t.volume)&&(t={zone:s,volume:c,distance:a,boundary:u})}if(!t)return;let n=t.zone.blendDistance?Math.min(1,t.distance/t.zone.blendDistance):1,i=n<1?qt(r.filter(s=>s!==t.zone),t.boundary):void 0;return{environment:t.zone.environment,weight:n,...i?{outsideEnvironment:i.environment}:{}}}var ut=class{input;convolver;output;sends=[];constructor(e,t,n,i={}){this.input=e.createGain(),this.convolver=e.createConvolver(),this.output=e.createGain(),this.convolver.normalize=i.normalize??!0,this.convolver.buffer=t,this.output.gain.value=i.mix??.5,this.input.connect(this.convolver),this.convolver.connect(this.output),this.output.connect(n)}connectSend(e,t){let n=e.context.createGain();return n.gain.value=t,e.connect(n),n.connect(this.input),this.sends.push(n),n}reset(){let e=this.convolver;this.input.disconnect(e),e.disconnect(),this.convolver=e.context.createConvolver(),this.convolver.normalize=e.normalize,this.convolver.buffer=e.buffer,this.input.connect(this.convolver),this.convolver.connect(this.output)}destroy(){for(let e of this.sends)e.disconnect();this.sends.length=0,this.input.disconnect(),this.convolver.disconnect(),this.output.disconnect()}};function jn(r,e){(0,$n.assert)((e.density??1)===1&&(e.diffusion??1)===1);let t={generic:[1.49,.83,.007,.011],smallRoom:[.4,.83,.002,.003],mediumRoom:[1.1,.83,.01,.011],largeRoom:[4.32,.59,.02,.03],bathroom:[1.49,.54,.007,.011],concertHall:[3.92,.7,.02,.029],cathedral:[5.5,.6,.025,.04],cave:[2.91,1.3,.015,.022],arena:[7.24,.33,.02,.03],hangar:[10.05,.23,.02,.03],corridor:[1.79,.59,.007,.011],forest:[1.49,.54,.162,.088],underwater:[1.49,.1,.007,.011]},n=e.preset?t[e.preset]:void 0;(0,$n.assert)(!e.preset||n);let i=e.decayTime??n?.[0]??1.5,s=i*(e.decayHFRatio??n?.[1]??.83),o=e.reflectionsDelay??n?.[2]??.02,a=o+(e.reverbDelay??n?.[3]??.04);(0,$n.assert)(i>0&&s>0&&o>=0&&a>=o);let c=r.createBuffer(2,Math.ceil((a+Math.max(i,s))*r.sampleRate),r.sampleRate);for(let u=0;u<2;u++){let l=c.getChannelData(u),d=12345+u*98765,f=0,h=1/Math.sqrt(r.sampleRate*i);for(let p=Math.ceil(a*r.sampleRate);p<l.length;p++){d=Math.imul(d,1664525)+1013904223|0;let m=d/2147483648;f+=.15*(m-f);let g=p/r.sampleRate-a;l[p]=(e.reverbGain??1)*h*(f*Math.exp(-Math.log(1e3)*g/i)+(m-f)*Math.exp(-Math.log(1e3)*g/s))}l[Math.round(o*r.sampleRate)]+=e.reflectionsGain??1}return c}var m0=O(k(),1);var Wn=class{gain;definition;options;scene;nodeBindings=new Map;listenerGain;emitters=[];graphs=new Map;reverbBuses=new Map;directGains=[];environmentSends=[];graphSources=new Set;graphEmitters=new Set;playing=new Map;buffers=new Map;initialization;abortController=new AbortController;destroyed=!1;playbackGeneration=0;audioClockStart;constructor(e){this.options=e;let{audioContext:t}=e;this.scene=e.scene,this.definition=e.definition;let n=e.graphs;this.gain=t.createGain(),this.listenerGain=t.createGain(),this.gain.connect(this.listenerGain),this.listenerGain.connect(t.destination);let i=new Set;this.scene.preorderTraversal(a=>i.add(a));let s=new Set(e.emitterIndices);for(let a of e.nodes||[])if(i.has(a.node))for(let c of a.emitterIndices||[])s.add(c);let o=new Map;n?.forEach((a,c)=>{if(a.outputs?.some(u=>s.has(u.emitter))){o.set(c,a);for(let u of a.inputs||[])this.graphSources.add(u.source);for(let u of a.outputs||[])this.graphEmitters.add(u.emitter)}});try{for(let a of e.nodes||[])if(i.has(a.node)){this.nodeBindings.set(a.node,a);for(let c of a.emitterIndices||[])this.addEmitter(c,a.node)}for(let a of e.emitterIndices||[])this.addEmitter(a);for(let[a,c]of o)this.graphs.set(a,new ct(c,t,this.gain,u=>this.emitters.filter(l=>l.index===u).map(l=>l.panner||l.gain)))}catch(a){throw this.destroy(),a}}initialize(){return this.destroyed?Promise.reject(new Error("Audio controller destroyed")):(this.initialization||=this.loadBuffers().catch(e=>{throw this.initialization=void 0,e}),this.initialization)}async play(e={}){e.restart!==!1&&this.stop();let t=this.playbackGeneration;if(await this.initialize(),this.destroyed||t!==this.playbackGeneration)return;let n=this.options.audioContext.currentTime;(e.restart!==!1||this.audioClockStart===void 0)&&(this.audioClockStart=n);for(let i of this.emitters)if(!this.graphEmitters.has(i.index))for(let s of i.definition.sources||[])e.sourceIndices&&!e.sourceIndices.includes(s)||this.startSource(s,n,e.autoplayOnly,o=>o.connect(i.panner||i.gain));for(let i of this.graphSources)e.sourceIndices&&!e.sourceIndices.includes(i)||this.startSource(i,n,e.autoplayOnly,s=>{for(let o of this.graphs.values())o.connectSource(i,s)})}setGraphGain(e,t,n){let i=this.graphs.get(e);(0,m0.assert)(!this.destroyed&&i),i.setGain(t,n)}startSource(e,t,n,i){let s=this.definition.sources[e];if((0,m0.assert)(s),n&&!s.autoPlay)return;let o=this.options.audioContext,a=s.graph,c=a?.oscillator;(0,m0.assert)(!(s.audio!==void 0&&c));let u;if(c){let f=o.createOscillator();f.frequency.value=c.frequency??440,f.detune.value=c.detune??0,(0,m0.assert)(c.pulseWidth===void 0||c.pulseWidth===.5),c.type==="custom"?((0,m0.assert)(c.periodicWave),f.setPeriodicWave(o.createPeriodicWave(new Float32Array(c.periodicWave.real),new Float32Array(c.periodicWave.imag)))):f.type=c.type,u=f}else{let f=o.createBufferSource();(0,m0.assert)(s.audio!==void 0),f.buffer=this.buffers.get(s.audio),f.loop=s.loop??!1,f.loopStart=a?.loopStart??0,f.loopEnd=a?.loopEnd??0,f.playbackRate.value=s.playbackRate??1,u=f}a?.channelInterpretation&&(u.channelInterpretation=a.channelInterpretation);let l=this.options.audioContext.createGain();l.gain.value=s.gain??1,u.connect(l),i(l),u.onended=()=>{u.disconnect(),l.disconnect(),this.playing.delete(u)},this.playing.set(u,l);let d=a?.when===void 0?t:Math.max(t,this.audioClockStart+a.when);u instanceof AudioBufferSourceNode?a?.duration===void 0?u.start(d,a?.offset??0):u.start(d,a.offset??0,a.duration):(u.start(d),a?.duration!==void 0&&u.stop(d+a.duration))}stop(){this.playbackGeneration++;for(let[e,t]of this.playing)e.onended=null,e.stop(),e.disconnect(),t.disconnect();this.playing.clear();for(let e of this.reverbBuses.values())e.reset()}update(e){if(this.destroyed)return;let t=this.options.environment;if(t){let l=[];this.scene.preorderTraversal((h,{worldMatrix:p})=>{let m=this.nodeBindings.get(h);m?.listener!==void 0&&l.push({index:m.listener,node:m.node,matrix:new R(p)})});let d=l.find(h=>h.index===this.options.activeListener)??l.find(h=>h.node===this.options.activeCameraNode)??l[0],f=d?t.listeners?.[d.index]:void 0;d&&f&&this.options.listenerPose!=="viewer"&&(e=d.matrix),this.listenerGain.gain.value=f?.gain??1;for(let h of this.emitters)h.panner&&(h.panner.panningModel=f?.spatializationModel==="HRTF"?"HRTF":"equalpower")}let n=e.getTranslation(),i=[];this.scene.preorderTraversal((l,{worldMatrix:d})=>{let f=this.nodeBindings.get(l)?.zone;f?.shape&&i.push({...f,worldMatrix:new R(d)})});let s=qt(i,n),o=this.options.defaultEnvironment;for(let l of this.environmentSends){let d=l.forced??s?.environment??o,f=l.forced!==void 0?1:s?.weight??1,h=s?.outsideEnvironment??o;l.gain.gain.value=l.level*((l.environment===d?f:0)+(l.forced===void 0&&l.environment===h?1-f:0))}let a=new D(0,0,-1).transformAsVector(e).normalize(),c=new D(0,1,0).transformAsVector(e).normalize(),u=this.options.audioContext.listener;u.positionX.value=n[0],u.positionY.value=n[1],u.positionZ.value=n[2],u.forwardX.value=a[0],u.forwardY.value=a[1],u.forwardZ.value=a[2],u.upX.value=c[0],u.upY.value=c[1],u.upZ.value=c[2],this.scene.preorderTraversal((l,{worldMatrix:d})=>{for(let f of this.emitters){if(f.node!==l||!f.panner)continue;let h=d.getTranslation(),p=new D(0,0,-1).transformAsVector(d).normalize(),m=f.panner;m.positionX.value=h[0],m.positionY.value=h[1],m.positionZ.value=h[2],m.orientationX.value=p[0],m.orientationY.value=p[1],m.orientationZ.value=p[2];let g=Math.hypot(...h.map((b,v)=>b-n[v]));if(f.airFilter){let b=f.definition.positional,v=Math.min(1,Math.max(0,(g-(b.refDistance??1))/(b.maxDistance-(b.refDistance??1)))),T=b.airAbsorption?.cutoffAtMaxDistance??5e3;f.airFilter.frequency.value=Math.exp(Math.log(2e4)+v*(Math.log(Math.max(1,T))-Math.log(2e4)))}f.gain.gain.value=(f.definition.gain??1)*M6(f.definition.positional,g)}})}destroy(){if(!this.destroyed){this.destroyed=!0,this.abortController.abort(),this.stop();for(let e of this.emitters)e.panner?.disconnect(),e.airFilter?.disconnect(),e.gain.disconnect();for(let e of this.graphs.values())e.destroy();for(let e of this.reverbBuses.values())e.destroy();this.reverbBuses.clear();for(let e of this.directGains)e.disconnect();this.gain.disconnect(),this.listenerGain.disconnect(),this.buffers.clear()}}addEmitter(e,t){let n=this.definition.emitters[e];(0,m0.assert)(n&&(n.type==="global"||n.type==="positional"&&t)),(0,m0.assert)(!n.positional?.shapeType||["cone","omnidirectional"].includes(n.positional.shapeType));for(let a of this.graphEmitters.has(e)?[]:n.sources||[]){let c=this.definition.sources[a];(0,m0.assert)(c&&(c.audio!==void 0?this.definition.audio[c.audio]:c.graph?.oscillator))}let i=this.options.audioContext.createGain();i.gain.value=n.gain??1;let s=this.options.audioContext.createGain();s.gain.value=n.environment?.directLevel??1,i.connect(s),s.connect(this.gain),this.directGains.push(s);let o={index:e,definition:n,node:t,gain:i};if(this.emitters.push(o),n.type==="positional"){let a=this.options.audioContext.createPanner();o.panner=a,a.panningModel="HRTF",a.rolloffFactor=0;let c=n.positional;if(c?.shapeType==="cone"&&(a.coneInnerAngle=(c.coneInnerAngle??Math.PI*2)*180/Math.PI,a.coneOuterAngle=(c.coneOuterAngle??Math.PI*2)*180/Math.PI,a.coneOuterGain=c.coneOuterGain??0),c?.airAbsorption?.enabled&&(c?.maxDistance??0)>(c?.refDistance??1)){let l=this.options.audioContext.createBiquadFilter();l.type="lowpass",l.Q.value=Math.SQRT1_2,l.frequency.value=2e4,o.airFilter=l,a.connect(l),l.connect(i)}else a.connect(i)}}async loadBuffers(){let{audioContext:e,baseUrl:t}=this.options,n=new Set([...this.graphSources,...this.emitters.filter(a=>!this.graphEmitters.has(a.index)).flatMap(a=>a.definition.sources||[])]),i=new Set([...n].map(a=>{let c=this.definition.sources[a];return(0,m0.assert)(c&&(c.audio!==void 0?this.definition.audio[c.audio]:c.graph?.oscillator)),c.audio})),s=this.options.environment?.environments;for(let a of s||[])a.reverb?.type==="impulseResponse"&&a.reverb.audio!==void 0&&i.add(a.reverb.audio);let o=await Promise.all([...i].filter(a=>a!==void 0).map(async a=>{let c=this.definition.audio[a],u;if(c.data!==void 0){let l=c.data;u=ArrayBuffer.isView(l)?new Uint8Array(l.buffer,l.byteOffset,l.byteLength).slice().buffer:l.slice(0)}else{let l=await(this.options.fetch||fetch)(new URL(c.uri,t),{signal:this.abortController.signal});if(!l.ok)throw new Error(`Audio fetch failed: ${l.status}`);u=await l.arrayBuffer()}return[a,await e.decodeAudioData(u)]}));this.destroyed||(this.buffers=new Map(o),s?.forEach((a,c)=>{let u=a.reverb;if(!u)return;let l=u.type==="impulseResponse"?this.buffers.get(u.audio):jn(e,u);(0,m0.assert)(l);let d=new ut(e,l,this.gain,{...u,normalize:u.type==="impulseResponse"?u.normalize:!1});this.reverbBuses.set(c,d);let f=this.options.defaultEnvironment;for(let h of this.emitters){let p=h.definition.environment,m=p?.reverbLevel??(h.definition.type==="positional"?1:0),g=d.connectSend(h.gain,(p?.environment??f)===c?m:0);this.environmentSends.push({gain:g,environment:c,forced:p?.environment,level:m})}}))}};function M6(r={},e){let t=r.refDistance??1,n=r.maxDistance||1/0,i=Math.max(t,Math.min(e,n)),s=r.rolloffFactor??1;switch(r.distanceModel){case"linear":return n<=t?e<=t?1:0:Math.max(0,1-s*(i-t)/(n-t));case"exponential":return(i/t)**-s;default:return t/(t+s*(i-t))}}var Hn=class{device;framebuffer=null;shaderInputs;constructor(e,t){this.device=e,this.shaderInputs=t}destroy(){this.framebuffer?.destroy()}getFramebuffer(){return this.framebuffer||(this.framebuffer=this.device.createFramebuffer({colorAttachments:["rgba8unorm"],depthStencilAttachment:"depth24plus"})),this.framebuffer}clearPickState(){this.shaderInputs.setProps({picking:{highlightedObjectColor:null}})}beginRenderPass(){let e=this.getFramebuffer();return e.resize(this.device.getCanvasContext().getDevicePixelSize()),this.shaderInputs.setProps({picking:{isActive:!0}}),this.device.beginRenderPass({framebuffer:e,clearColor:[0,0,0,0],clearDepth:1})}updatePickState(e){let t=this.getFramebuffer(),[n,i]=this.getPickPosition(e),o=[...this.device.readPixelsToArrayWebGL(t,{sourceX:n,sourceY:i,sourceWidth:1,sourceHeight:1})].map(c=>c/255);o[0]+o[1]+o[2]>0||(o=null),this.shaderInputs.setProps({picking:{isActive:!1,highlightedObjectColor:o}})}getPickPosition(e){let t=this.device.getCanvasContext().cssToDevicePixels(e),n=t.x+Math.floor(t.width/2),i=t.y+Math.floor(t.height/2);return[n,i]}};var V2=O(S0(),1),$2=V2.picking;var j2=O(k(),1);var qn=class extends G{constructor(e={}){let{innerRadius:t=.5,outerRadius:n=1,height:i=.2,segments:s=48,startAngle:o=0,angle:a=Math.PI*2}=e;(0,j2.assert)(Number.isFinite(t)&&t>=0&&Number.isFinite(n)&&n>t&&Number.isFinite(i)&&i>0&&Number.isFinite(o)&&Number.isFinite(a)&&a>0&&a<=Math.PI*2&&Number.isInteger(s)&&s>=3);let c=i/2,u=[[[n,-c],[n,c]],[[n,c],[t,c]],[[t,-c],[n,-c]]];t>0&&u.push([[t,c],[t,-c]]);let l=u.map(m=>new Ie({points:m,segments:s,phiStart:o,phiLength:a}));if(a<Math.PI*2)for(let[m,g]of[o,o+a].entries()){let b=new ee({sizeX:n-t,sizeZ:i}),v=b.attributes.POSITION.value,T=b.attributes.NORMAL.value,S=Math.cos(g),y=Math.sin(g),x=m===0?1:-1;for(let w=0;w<v.length;w+=3){let A=Number(v[w])+(t+n)/2,_=-x*Number(v[w+2]);v[w]=A*S,v[w+1]=_,v[w+2]=-A*y,T[w]=x*y,T[w+1]=0,T[w+2]=x*S}l.push(b)}let d=[],f=[],h=[],p=[];for(let m of l){let g=d.length/3;for(let b of m.attributes.POSITION.value)d.push(b);for(let b of m.attributes.NORMAL.value)f.push(b);for(let b of m.attributes.TEXCOORD_0.value)h.push(b);for(let b of m.indices.value)p.push(Number(b)+g)}super({id:e.id,topology:"triangle-list",indices:new Uint32Array(p),attributes:{POSITION:{size:3,value:new Float32Array(d)},NORMAL:{size:3,value:new Float32Array(f)},TEXCOORD_0:{size:2,value:new Float32Array(h)},...e.attributes}})}};function W2(r,e){if(r===void 0)return[...e];if(!Array.isArray(r)||r.length!==3||!r.every(Number.isFinite))throw new Error("Expected a finite three-component vector");return[r[0],r[1],r[2]]}function H2(r){if(r===void 0)return[0,0,0,1];if(!Array.isArray(r)||r.length!==4||!r.every(Number.isFinite))throw new Error("Expected a finite quaternion");let e=Math.hypot(...r);if(e===0)throw new Error("Quaternion must be nonzero");return[r[0]/e,r[1]/e,r[2]/e,r[3]/e]}function q2(r,e,t=!1){let n=t?r.transformAsPoint(e):r.transformAsVector(e);return[n[0],n[1],n[2]]}function Xt(r){if(!r.every(Number.isFinite)||Math.abs(r[3])+Math.abs(r[7])+Math.abs(r[11])>1e-7||Math.abs(r[15]-1)>1e-7)throw new Error("Expected an affine transform");let e=[Math.hypot(r[0],r[1],r[2]),Math.hypot(r[4],r[5],r[6]),Math.hypot(r[8],r[9],r[10])];if(e.every(i=>i===0))return{position:[r[12],r[13],r[14]],rotation:[0,0,0,1],scale:e};if(e.some(i=>i<1e-10))throw new Error("Singular collider transforms are unsupported");r.determinant()<0&&(e[0]=-e[0]);let t=[r[0]/e[0],r[1]/e[0],r[2]/e[0],r[4]/e[1],r[5]/e[1],r[6]/e[1],r[8]/e[2],r[9]/e[2],r[10]/e[2]];for(let[i,s]of[[0,1],[0,2],[1,2]]){let o=t[i*3]*t[s*3]+t[i*3+1]*t[s*3+1]+t[i*3+2]*t[s*3+2];if(Math.abs(o)>1e-5)throw new Error("Sheared collider transforms are unsupported")}let n=new ht().fromMatrix3(t).normalize();return{position:[r[12],r[13],r[14]],rotation:[n[0],n[1],n[2],n[3]],scale:e}}var Xn=class{joints;constructor(e){this.joints=e}resolve(e,t){let n=new Map,i=new Map,s=(a,c,u)=>{if(n.has(a))throw new Error("Joint scene must be a tree");let l=new R(c).multiplyRight(a.matrix),d=t.has(a)?a:u;if(n.set(a,l),i.set(a,d),a instanceof c0)for(let f of a.children)s(f,l,d)};for(let a of e)s(a,new R,null);let o=a=>{let c=n.get(a);if(!c)throw new Error("Joint attachment is outside the scene");let u=i.get(a)??null,l=new R(c);if(u){let f=Xt(n.get(u));l=new R().translate(f.position).multiplyRight(new R().fromQuaternion(f.rotation)).invert().multiplyRight(l)}let d=Xt(l);return{body:u,position:d.position,orientation:d.rotation}};return this.joints.map(a=>({joint:a,first:o(a.first),second:o(a.second)}))}};var X2={name:"publishedTransforms",uniformTypes:{bodyIndex:"i32",viewProjection:"mat4x4<f32>"},defaultUniforms:{bodyIndex:-1},source:`
|
|
917
|
+
`,qt={...J0,name:"picking",source:$6,vs:V6,fs:U6};var Q2={...J0,name:"picking",source:qt.source,vs:Wt.vs,fs:Wt.fs};function J2(r){return jt(r)?qt:jn}var fe=D(k(),1);var Wn=class{bindings;scenes;constructor(e){this.scenes=e.scenes,this.bindings=e.bindings,this.update()}update(){if(this.bindings.length===0)return;let e=new Map;for(let t of this.scenes)t.preorderTraversal((n,{worldMatrix:i})=>{n instanceof u0&&e.set(n,new L(i))});for(let t of this.bindings){br({joints:t.joints,meshNode:t.node,worldMatrices:e,inverseBindMatrices:t.inverseBindMatrices,target:t.jointMatrices}),t.skinJointMatrices&&(t.skinJointMatrices instanceof fe.Buffer?t.skinJointMatrices.write(t.jointMatrices):t.skinJointMatrices.writeData(t.jointMatrices,{width:t.joints.length*4,height:1}));for(let n of t.models)n.model.shaderInputs.setProps({skin:t.skinJointMatrices?{jointMatrices:[],skinJointMatrices:t.skinJointMatrices}:{jointMatrices:t.jointMatrices}})}}getBinding(e){return this.bindings.find(t=>t.node===e)}destroy(){for(let e of this.bindings)e.skinJointMatrices?.destroy()}};function ea(r,e,t){if(r.type==="webgpu")return r.createBuffer({id:`${e}-skin-joint-matrices`,byteLength:t.byteLength,usage:fe.Buffer.STORAGE|fe.Buffer.COPY_DST});let n=t.length/4;if(n>r.limits.maxTextureDimension2D)throw new Error("Skin palette exceeds the device texture width limit");return r.createTexture({id:`${e}-skin-joint-matrices`,format:"rgba32float",width:n,height:1,usage:fe.Texture.SAMPLE|fe.Texture.COPY_DST,sampler:{minFilter:"nearest",magFilter:"nearest",mipmapFilter:"nearest"}})}var qn=class{variants;names;activeVariant=null;bindings;constructor(e){this.variants=e.variants,this.names=this.variants.map(t=>t.name),this.bindings=e.bindings}selectVariant(e){let t=this.variants.find(n=>n.name===e);if(!t)throw new Error(`Unknown material variant: ${e}`);for(let{modelNode:n,...i}of this.bindings){let s=i.mappings.get(t.index);n.model.setMaterial(s?.material||i.defaultMaterial),n.model.setParameters(s?.parameters||i.defaultParameters)}this.activeVariant=e}resetVariant(){for(let{modelNode:e,...t}of this.bindings)e.model.setMaterial(t.defaultMaterial),e.model.setParameters(t.defaultParameters);this.activeVariant=null}};var Hn=D(k(),1);var Xn=class{scenes;bindings=new Map;cameraDepths=new Map;constructor(e){this.scenes=e.scenes;for(let t of e.bindings){let{definition:n}=t,i=new B(n.viewDirection||[0,0,1]),s=new B(n.up||[0,1,0]);(0,Hn.assert)(i.magnitude()>0&&s.magnitude()>0),(0,Hn.assert)(new B(i).normalize().cross(new B(s).normalize()).magnitude()>1e-6),this.bindings.set(t.node,t)}}getDrawEntries(e){let{sceneIndex:t=0,cameraId:n="default"}=e,i=this.scenes[t];(0,Hn.assert)(i);let s=new L(e.viewMatrix),o=new L(s).invert(),a=new B(o.getTranslation()),c=new B(1,0,0).transformAsVector(o).normalize(),u=new B(0,1,0).transformAsVector(o).normalize(),l=this.cameraDepths.get(n);l||(l=new Map,this.cameraDepths.set(n,l));let d=new Set,f=[],h=(p,m,g,b=0)=>{if(!p.display)return;let v=new L(m).multiplyRight(p.matrix),T=this.bindings.get(p),S=g||!!T?.definition.overlay;if(T?.definition.overlay&&(b=new B(v.getTranslation()).distance(a)),T){d.add(p);let y=new B(v.getTranslation()),x=new B(a).subtract(y);x.magnitude()<1e-8&&x.copy([o[8],o[9],o[10]]),T.definition.rotationAxis==="y"&&(x[1]=0,x.magnitude()<1e-8&&x.copy([0,0,1])),x.normalize();let w=T.definition.rotationAxis==="y"?new B(0,1,0):new B(x).cross(c);w.magnitude()<1e-8&&(w=new B(u).subtract(new B(x).scale(u.dot(x)))),w.normalize();let I=ta(x,w),A=T.matrixAuthored?new B(p.matrix.getScale()):new B(p.scale);T.matrixAuthored&&p.matrix.determinant()<0&&(A[0]=-A[0]);let M=new B(T.definition.viewDirection||[0,0,1]).multiply(A),R=new B(T.definition.up||[0,1,0]).multiply(A),_=M.magnitude()>1e-8&&R.magnitude()>1e-8&&new B(M).normalize().cross(new B(R).normalize()).magnitude()>1e-8,C=ta(_?M:new B(T.definition.viewDirection||[0,0,1]),_?R:new B(T.definition.up||[0,1,0]));if(T.definition.scaleWithDistance){let P=Math.abs(new B(y).transformAsPoint(s)[2]);!l.has(p)&&P>1e-8&&l.set(p,P);let O=l.get(p);O!==void 0&&A.scale(P/O)}v=new L().translate(y).multiplyRight(I).multiplyRight(C.transpose()).scale(A)}if(p instanceof u0)for(let y of p.children)h(y,v,S,b);else f.push({node:p,modelMatrix:v,overlay:S,distance:b,depth:-new B(v.getTranslation()).transformAsPoint(s)[2]})};h(i,new L,!1);for(let p of l.keys())d.has(p)||l.delete(p);return f.sort((p,m)=>Number(p.overlay)-Number(m.overlay)||(p.overlay?m.distance-p.distance||m.depth-p.depth:0)),f}resetCamera(e="default"){this.cameraDepths.delete(e)}destroy(){this.bindings.clear(),this.cameraDepths.clear()}};function ta(r,e){r=new B(r).normalize();let t=new B(e).cross(r).normalize();return e=new B(r).cross(t).normalize(),new L([t[0],t[1],t[2],0,e[0],e[1],e[2],0,r[0],r[1],r[2],0,0,0,0,1])}var ra=D(b0(),1),Yn=class{bindings;useByteColors;lights=[];constructor(e,t=!0){this.bindings=e,this.useByteColors=t,this.update()}update(){this.lights.length=0;for(let{path:e,definition:t}of this.bindings){if(!e.length||e.some(s=>!s.display))continue;let n=new L;for(let s of e)n.multiplyRight(s.matrix);let i=j6(t,n,this.useByteColors);i&&this.lights.push(i)}}};function j6(r,e,t){let n=W6(r.color||[1,1,1],t),i=r.intensity??1;switch(r.type){case"directional":return H6(e,n,i);case"point":return q6(e,n,i,r.range);case"spot":return X6(e,n,i,r.range,r.spot);default:return}}function W6(r,e){return e?r.map(t=>t*255):(0,ra.normalizeByteColor3)(r,!1)}function q6(r,e,t,n){let i=na(r),s=[1,0,0];return n!==void 0&&n>0&&(s=[1,0,1/(n*n)]),{type:"point",position:i,color:e,intensity:t,attenuation:s}}function H6(r,e,t){return{type:"directional",direction:ia(r),color:e,intensity:t}}function X6(r,e,t,n,i={}){let s=na(r),o=ia(r),a=[1,0,0];return n!==void 0&&n>0&&(a=[1,0,1/(n*n)]),{type:"spot",position:s,direction:o,color:e,intensity:t,attenuation:a,innerConeAngle:i.innerConeAngle??0,outerConeAngle:i.outerConeAngle??Math.PI/4}}function na(r){return r.transformAsPoint([0,0,0])}function ia(r){return r.transformAsVector([0,0,-1])}var L0=D(k(),1);var Kn=class{scenes;matrixAuthoredNodes=new Set;definitions=new Map;constructor({scenes:e,bindings:t,matrixNodes:n=[]}){this.scenes=e;for(let i of n)this.matrixAuthoredNodes.add(i);for(let{node:i,definition:s,matrixAuthored:o}of t)o&&this.matrixAuthoredNodes.add(i),(0,L0.assert)(s&&(s.type==="rect"||s.type==="disk")),(0,L0.assert)(Number.isFinite(s.height??1)&&(s.height??1)>0),(0,L0.assert)(Number.isFinite(s.intensity??1e3)&&(s.intensity??1e3)>0),(0,L0.assert)(Number.isFinite(s.width??1)&&(s.width??1)>0),(0,L0.assert)((s.color||[1,1,1]).every(a=>Number.isFinite(a)&&a>=0)),this.definitions.set(i,s)}getLights(e=0){let t=this.scenes[e];if(!t)return[];let n=[],i=new Set,s=a=>{let c=this.definitions.has(a);for(let u of a.children)u instanceof u0&&s(u)&&(c=!0);return c&&i.add(a),c};s(t);let o=(a,c,u)=>{if(!a.display||!i.has(a))return;let l=new L(c).multiplyRight(a.matrix),d=this.matrixAuthoredNodes.has(a)?Y6(a.matrix):a.rotation.length===4?new L().fromQuaternion(a.rotation):new L().rotateXYZ(a.rotation),f=new L(u).multiplyRight(d),h=this.definitions.get(a);if(h){let p=Math.max(...l.getScale().map(Math.abs)),m=(h.height??1)*p,g=h.type==="rect"?(h.width??1)*p:m;n.push({type:h.type,position:[l[12],l[13],l[14]],halfAxisX:[f[0]*g/2,f[1]*g/2,f[2]*g/2],halfAxisY:[f[4]*m/2,f[5]*m/2,f[6]*m/2],normal:[-f[8],-f[9],-f[10]],color:h.color||[1,1,1],intensity:h.intensity??1e3})}for(let p of a.children)p instanceof u0&&o(p,l,f)};return o(t,new L,new L),n}destroy(){this.scenes=[],this.matrixAuthoredNodes.clear(),this.definitions.clear()}};function Y6(r){let e=new B(r[0],r[1],r[2]),t=new B(r[4],r[5],r[6]);(0,L0.assert)(e.magnitude()>0&&t.magnitude()>0),e.normalize(),t.normalize(),t.subtract(new B(e).scale(t.dot(e))),(0,L0.assert)(t.magnitude()>1e-8),t.normalize();let n=new B(e).cross(t).normalize(),i=new B(r[8],r[9],r[10]);return(0,L0.assert)(i.magnitude()>0),i.normalize(),(0,L0.assert)(Math.abs(n.dot(i))>1e-8),n.dot(i)<0&&n.negate(),new L([e[0],e[1],e[2],0,t[0],t[1],t[2],0,n[0],n[1],n[2],0,0,0,0,1])}var K6=new Set(["variable/get","pointer/get","math/and","math/add","math/sub","math/mul","math/div","math/rem","math/min","math/max","math/eq","math/lt","math/le","math/gt","math/ge","math/select","math/switch","math/neg","math/abs","math/clamp","type/intToFloat","type/floatToInt"]),ct="KHR_physics_rigid_bodies:",sa=new Set(["rigid_body/applyImpulse","rigid_body/applyPointImpulse","rigid_body/rayCast","event/rigid_body_triggerEntered","event/rigid_body_triggerExited"].map(r=>ct+r)),Z6=new Set(["event/onStart","event/onTick","event/send","debug/log","flow/sequence","flow/branch","flow/switch","variable/set","pointer/set","flow/setDelay","KHR_node_selectability:event/onSelect"]);function he(r){return r.slice()}function oa(r){if(!Array.isArray(r))throw new Error("KHR_interactivity: expected component array");return r}function pe(r){return r[0]}function X(r){let e=pe(r);if(typeof e!="number")throw new Error("KHR_interactivity: expected numeric value");return e}function aa(r){if(r==="bool")return[!1];if(r==="int")return[0];if(r==="ref")return[null];let e=r?.match(/^float(?:([234])(?:x([234]))?)?$/);if(e&&(!e[2]||e[1]===e[2]))return Array(Number(e[1]??1)*Number(e[2]??1)).fill(NaN);throw new Error("KHR_interactivity: unsupported default value type")}var Zn=class{physics;physicsPending=new Set;physicsErrors=[];definition;graph;variables;properties;maxSteps;onEvent;onLog;started=!1;currentTimeSeconds=0;nextDelayIdentifier=0;pendingDelays=[];startTime=0;lastTick;eventOutputs=new Map;constructor(e,t={}){this.physics=t.physics,this.definition=e;let n=t.graph??e.graph??0,i=e.graphs[n];if(!i)throw new Error(`KHR_interactivity: graph ${n} does not exist`);if(this.graph=i,this.properties=t.properties,this.onEvent=t.onEvent,this.onLog=t.onLog,this.maxSteps=t.maxSteps??1e4,!Number.isSafeInteger(this.maxSteps)||this.maxSteps<1)throw new Error("KHR_interactivity: maxSteps must be a positive safe integer");this.variables=(i.variables??[]).map(s=>he(s.value??[0]));for(let[s,o]of(i.nodes??[]).entries()){let a=this.getOperation(n,s);if(!K6.has(a)&&!Z6.has(a)&&!(this.physics&&sa.has(a)))throw new Error(`KHR_interactivity: unsupported operation ${a}`);if(a.startsWith(ct+"event/")){let c=X(this.config(o,"nodeIndex"));if(!this.physics?.isTriggerNode(c)||(i.nodes??[]).slice(0,s).some((u,l)=>this.getOperation(n,l)===a&&u.configuration?.nodeIndex?.value[0]===c))throw new Error("Invalid or duplicate physics trigger event")}if(a==="event/send"){let c=X(this.config(o,"event"));if(!Number.isInteger(c)||!i.events?.[c])throw new Error("KHR_interactivity: invalid custom event index")}for(let c of Object.values(o.flows??{}))if(!Number.isInteger(c.node)||!(i.nodes??[])[c.node])throw new Error(`KHR_interactivity: invalid flow target ${c.node}`)}}get graphCount(){return this.definition.graphs.length}getGraph(e){let t=this.definition.graphs[e];if(!t)throw new Error(`KHR_interactivity: graph index ${e} is out of range`);return t}getOperation(e,t){let n=this.getGraph(e),i=n.nodes?.[t];if(!i)throw new Error(`KHR_interactivity: node index ${t} is out of range`);let s=n.declarations?.[i.declaration];if(!s)throw new Error(`KHR_interactivity: declaration index ${i.declaration} is out of range`);return s.extension?`${s.extension}:${s.op}`:s.op}op(e){let t=this.graph.nodes?.[e],n=t&&this.graph.declarations?.[t.declaration];if(!n)throw new Error(`KHR_interactivity: invalid declaration for node ${e}`);return n.extension?`${n.extension}:${n.op}`:n.op}config(e,t){let n=e.configuration?.[t]?.value;if(!n)throw new Error(`KHR_interactivity: missing configuration ${t}`);return oa(n)}getSwitchCases(e){let t=e.configuration?.cases?.value;return Array.isArray(t)&&t.every(n=>typeof n=="number"&&Number.isInteger(n)&&n>=-2147483648&&n<=2147483647)?t:[]}input(e,t,n){let i=this.graph.nodes?.[e]?.values?.[t];if(!i)throw new Error(`KHR_interactivity: missing input ${t} on node ${e}`);if(i.node!==void 0){if(!i.socket)throw new Error("KHR_interactivity: connected input missing socket");return this.evaluate(i.node,i.socket,n)}return i.value?he(oa(i.value)):aa(i.type===void 0?void 0:this.graph.types?.[i.type]?.signature)}pointer(e,t){let n=this.graph.nodes[e],i=pe(this.config(n,"pointer"));if(typeof i!="string"||!i.startsWith("/"))throw new Error("KHR_interactivity: invalid pointer template");return i.replace(/\[([^\]]+)\]|\{([^}]+)\}/g,(s,o,a)=>{let c=o??a,u=pe(this.input(e,c,t));if(a&&typeof u=="string"&&/^\/(?:[^/~]|~[01])+(?:\/(?:[^/~]|~[01])+)*$/.test(u))return u.split("/").at(-1);if(!Number.isSafeInteger(u)||u<0)throw new Error("KHR_interactivity: invalid pointer parameter");return String(u)})}evaluate(e,t="value",n=new Set){let i=this.graph.nodes?.[e];if(!i)throw new Error(`KHR_interactivity: invalid node ${e}`);if(n.has(e))throw new Error("KHR_interactivity: cyclic value dependency");n.add(e);try{let s=this.op(e),o=this.eventOutputs.get(e)?.[t];if(o)return he(o);if(s==="flow/setDelay"&&t==="lastDelay")return[null];if(s==="variable/get"){let l=X(this.config(i,"variable")),d=this.variables[l];if(!d)throw new Error("KHR_interactivity: invalid variable index");return he(d)}if(s==="pointer/get"){let l=this.properties?.get(this.pointer(e,n));return t==="isValid"?[l!==void 0]:he(l??[0])}if(t!=="value")throw new Error(`KHR_interactivity: unsupported output socket ${t}`);let a=()=>this.input(e,"a",n),c=()=>this.input(e,"b",n),u=l=>{let d=a().map(Number),f=c().map(Number);if(d.length!==f.length)throw new Error("KHR_interactivity: mismatched component lengths");return d.map((h,p)=>l(h,f[p]))};switch(s){case"type/intToFloat":return a().map(Number);case"type/floatToInt":return a().map(l=>Number(l)|0);case"math/clamp":{let l=c().map(Number),d=this.input(e,"c",n).map(Number);return a().map((f,h)=>Math.min(d[h],Math.max(l[h],Number(f))))}case"math/and":{let l=pe(a()),d=pe(c());if(typeof l=="boolean"&&typeof d=="boolean")return[l&&d];if(typeof l=="number"&&typeof d=="number")return[l&d];throw new Error("KHR_interactivity: incompatible AND arguments")}case"math/add":return u((l,d)=>l+d);case"math/sub":return u((l,d)=>l-d);case"math/mul":return u((l,d)=>l*d);case"math/div":return u((l,d)=>l/d);case"math/rem":return u((l,d)=>l%d);case"math/min":return u(Math.min);case"math/max":return u(Math.max);case"math/neg":return a().map(l=>-Number(l));case"math/abs":return a().map(l=>Math.abs(Number(l)));case"math/eq":return[JSON.stringify(a())===JSON.stringify(c())];case"math/lt":return[X(a())<X(c())];case"math/le":return[X(a())<=X(c())];case"math/gt":return[X(a())>X(c())];case"math/ge":return[X(a())>=X(c())];case"math/select":return this.input(e,pe(this.input(e,"condition",n))?"a":"b",n);case"math/switch":{let l=X(this.input(e,"selection",n)),d=this.getSwitchCases(i);return this.input(e,d.includes(l)?String(l):"default",n)}default:throw new Error(`KHR_interactivity: ${s} is not a value operation`)}}finally{n.delete(e)}}dispatch(e,t,n){let i=0,s=(a,c)=>{if(++i>this.maxSteps)throw new Error("KHR_interactivity: flow step limit exceeded");let u=this.graph.nodes[a],l=this.op(a);if(l==="flow/setDelay"&&c==="cancel"){this.pendingDelays=this.pendingDelays.filter(h=>h.nodeIndex!==a),this.eventOutputs.set(a,{lastDelay:[null]});return}if(c!=="in")throw new Error(`KHR_interactivity: unsupported input flow ${c}`);let d=new Set,f=h=>{let p=u.flows?.[h];p&&s(p.node,p.socket??"in")};if(sa.has(l)&&this.physics){let h=(m,g)=>u.values?.[m]?this.input(a,m,d):g??this.input(a,m,d),p=(m,g)=>{let b=h(m,g);if(b.length!==3||!b.every(v=>typeof v=="number"&&Number.isFinite(v)))throw new Error("Invalid physics vector");return b};if(l===ct+"rigid_body/applyImpulse")this.physics.applyImpulse(X(h("nodeIndex")),p("linearImpulse",[0,0,0]),p("angularImpulse",[0,0,0])),f("out");else if(l===ct+"rigid_body/applyPointImpulse")this.physics.applyPointImpulse(X(h("nodeIndex")),p("impulse"),p("position")),f("out");else if(l===ct+"rigid_body/rayCast"){let m=new Map(this.eventOutputs),g=this.physics.rayCast(p("rayStart"),p("rayEnd"),X(h("collisionFilterIndex",[-1]))).then(b=>{let v=this.eventOutputs;this.eventOutputs=m;try{i=0,this.eventOutputs.delete(a),b&&this.eventOutputs.set(a,{hitNodeIndex:[b.node],hitFraction:[b.fraction],hitNormal:[...b.normal]}),f(b?"hit":"miss")}finally{this.eventOutputs=v}}).catch(b=>{this.physicsErrors.push(b)}).finally(()=>{this.physicsPending.delete(g)});this.physicsPending.add(g)}else throw new Error("Physics event is not an input flow");return}switch(l){case"flow/setDelay":{let h=X(this.input(a,"duration",d)),p=this.currentTimeSeconds+h;if(!Number.isFinite(p)||!Number.isFinite(h)||h<0||this.pendingDelays.length>=1024){f("err");break}let m=`delay:${++this.nextDelayIdentifier}`;this.eventOutputs.set(a,{lastDelay:[m]}),this.pendingDelays.push({nodeIndex:a,reference:m,timeSeconds:p,activate:()=>{i=0,f("done")}}),f("out");break}case"flow/sequence":for(let h of Object.keys(u.flows??{}).sort())f(h);break;case"flow/branch":f(pe(this.input(a,"condition",d))?"true":"false");break;case"flow/switch":{let h=X(this.input(a,"selection",d)),p=this.getSwitchCases(u);f(p.includes(h)?String(h):"default");break}case"variable/set":{let h=this.config(u,"variables").map(Number),p=h.map(m=>this.input(a,String(m),d));h.forEach((m,g)=>{if(!this.variables[m])throw new Error("KHR_interactivity: invalid variable index");this.variables[m]=he(p[g])}),f("out");break}case"event/send":{let h=X(this.config(u,"event")),p=this.graph.events[h],m=Object.fromEntries(Object.entries(p.values??{}).map(([g,b])=>[g,u.values?.[g]?this.input(a,g,d):b.value?he(b.value):aa(this.graph.types?.[b.type]?.signature)]));this.onEvent?.(p.id,m),f("out");break}case"debug/log":{let h=u.configuration?.severity?.value[0],p=u.configuration?.message?.value[0],m=typeof p=="string"?p.match(/\{\{|\}\}|\{[^{}]+\}|[^{}]+/g):null,b=typeof p=="string"&&(m??[]).join("")===p?(m??[]).map(v=>v==="{{"?"{":v==="}}"?"}":v.startsWith("{")?JSON.stringify(this.input(a,v.slice(1,-1),d)):v).join(""):"";this.onLog?.(b,typeof h=="number"&&h===(h|0)?h:0),f("out");break}case"pointer/set":{let h=this.pointer(a,d),p=this.input(a,"value",d);f(this.properties?.set(h,p)?"out":"err");break}default:throw new Error(`KHR_interactivity: ${l} is not an executable flow operation`)}},o=this.graph.nodes??[];for(let a=0;a<o.length;a++)if(this.op(a)===e&&(n===void 0||o[a].configuration?.nodeIndex?.value[0]===n)){this.eventOutputs.set(a,t);let c=o[a].flows?.out;c&&s(c.node,c.socket??"in")}}async flushPhysics(){let e=0;for(;this.physicsPending.size;){if(++e>this.maxSteps)throw new Error("Physics continuation limit exceeded");await Promise.all(this.physicsPending)}if(this.physicsErrors.length)throw this.physicsErrors.shift()}notifyPhysicsTrigger(e,t,n,i){if(!this.physics?.isTriggerNode(t))throw new Error("Invalid physics trigger node");this.dispatch(ct+(e==="enter"?"event/rigid_body_triggerEntered":"event/rigid_body_triggerExited"),{colliderNodeIndex:[n],motionNodeIndex:[i]},t)}start(){this.started||(this.started=!0,this.dispatch("event/onStart",{event:[null]}))}selectNode(e){this.start(),this.dispatch("KHR_node_selectability:event/onSelect",{selectedNode:[`/nodes/${e}`],selectionRayOrigin:[0,0,0],selectionPoint:[0,0,0],controllerIndex:[0],event:[null]},e)}tick(e){if(!Number.isFinite(e))throw new Error("KHR_interactivity: invalid tick time");if(this.lastTick!==void 0&&e<this.lastTick)throw new Error("KHR_interactivity: tick time must be monotonic");if(this.lastTick===void 0){this.startTime=e;let i=e-this.currentTimeSeconds;for(let s of this.pendingDelays)s.timeSeconds+=i}let t=this.lastTick===void 0?NaN:e-this.lastTick;this.lastTick=e,this.currentTimeSeconds=e,this.start();let n=this.pendingDelays.filter(i=>i.timeSeconds<=e).sort((i,s)=>i.timeSeconds-s.timeSeconds);for(let i of n)this.pendingDelays.includes(i)&&(this.pendingDelays=this.pendingDelays.filter(s=>s!==i),i.activate());this.dispatch("event/onTick",{timeSinceStart:[e-this.startTime],timeSinceLastTick:[t],event:[null]})}};var G0=D(k(),1),ut=class{definition;nodes=[];constructor(e,t,n,i){this.definition=e;for(let u of e.nodes)(0,G0.assert)(!u.bypass||u.kind!=="splitter"&&u.kind!=="channelmerger");let s=(u,l=0)=>{(0,G0.assert)(Number.isInteger(u)&&!!e.nodes[u]),(0,G0.assert)(Number.isInteger(l)&&l>=0)};for(let u of e.connections)s(u.from.node,u.from.output),s(u.to.node,u.to.input);for(let u of e.inputs||[])s(u.node,u.input),(0,G0.assert)(Number.isInteger(u.source)&&u.source>=0);for(let u of e.outputs||[])s(u.node,u.output),(0,G0.assert)(Number.isInteger(u.emitter)&&u.emitter>=0);let o=new Set,a=new Set,c=u=>{if((0,G0.assert)(e.nodes[u]&&!o.has(u)),!a.has(u)){o.add(u);for(let l of e.connections)l.from.node===u&&c(l.to.node);o.delete(u),a.add(u)}};e.nodes.forEach((u,l)=>c(l));try{e.nodes.forEach((u,l)=>this.nodes.push(Q6(t,u,Math.max(1,...e.connections.filter(d=>d.from.node===l).map(d=>(d.from.output??0)+1),...(e.outputs||[]).filter(d=>d.node===l).map(d=>(d.output??0)+1)),Math.max(1,...e.connections.filter(d=>d.to.node===l).map(d=>(d.to.input??0)+1),...(e.inputs||[]).filter(d=>d.node===l).map(d=>(d.input??0)+1)))));for(let u of e.connections)this.nodes[u.from.node].connect(this.nodes[u.to.node],u.from.output??0,this.getInputPort(u.to.node,u.to.input??0));if(e.outputs)for(let u of e.outputs)for(let l of i(u.emitter))this.nodes[u.node].connect(l,u.output??0);else e.nodes.forEach((u,l)=>{e.connections.some(d=>d.from.node===l)||this.nodes[l].connect(n)})}catch(u){throw this.destroy(),u}}connectSource(e,t){for(let n of this.definition.inputs||[])n.source===e&&t.connect(this.nodes[n.node],0,this.getInputPort(n.node,n.input??0))}setGain(e,t,n=this.nodes[e].context.currentTime){let i=this.definition.nodes[e];(0,G0.assert)(i.kind==="gain"&&!i.bypass&&t>=0);let s=this.nodes[e].gain,o=i.params.duration??0,a=s.value;if(s.cancelAndHoldAtTime(n),s.setValueAtTime(a,n),o<=0)s.setValueAtTime(t,n);else if(i.params.interpolation==="custom"){let c=i.params.curve;(0,G0.assert)(c&&c.length>=2&&c.every(u=>u>=0&&u<=1)),s.setValueCurveAtTime(Float32Array.from(c,u=>u*t),n,o)}else s.linearRampToValueAtTime(t,n+o)}destroy(){for(let e of this.nodes)e.disconnect();this.nodes.length=0}getInputPort(e,t){return this.definition.nodes[e].kind==="audiomixer"?0:t}};function Q6(r,e,t,n){let i=e.params;if(e.bypass)return r.createGain();switch(e.kind){case"gain":{let s=r.createGain();return s.gain.value=i.gain??1,s}case"delay":{let s=r.createDelay(i.maxDelayTime??1);return s.delayTime.value=i.delayTime??0,s}case"compressor":{let s=r.createDynamicsCompressor();return s.threshold.value=i.threshold??-24,s.knee.value=i.knee??30,s.ratio.value=i.ratio??12,s.attack.value=i.attack??.003,s.release.value=i.release??.25,s}case"waveshaper":{let s=r.createWaveShaper(),o=1+20*(i.amount??0);return s.curve=i.curve?new Float32Array(i.curve):Float32Array.from({length:4097},(a,c)=>Math.tanh((c/2048-1)*o)/Math.tanh(o)),s.oversample=i.oversample??"none",s}case"splitter":{let s=r.createChannelSplitter(t);return s.channelInterpretation=i.channelInterpretation??"discrete",s}case"channelmerger":{let s=r.createChannelMerger(n);return s.channelInterpretation=i.channelInterpretation??"discrete",s}case"channelmixer":{let s=r.createGain();return s.channelCountMode="explicit",s.channelCount=i.outputChannels,s.channelInterpretation=i.channelInterpretation??"speakers",s}case"audiomixer":{let s=r.createGain();return s.channelInterpretation=i.channelInterpretation??"speakers",s}default:{let s=r.createBiquadFilter();return s.type=e.kind,s.frequency.value=i.frequency,s.Q.value=i.qualityFactor??1,s.gain.value=i.gain??0,s}}}var Qn=D(k(),1);function Ht(r,e){let t;for(let s of r){let o=s.worldMatrix.getScale(),a,c,u;if(s.shape.type==="sphere"){let l=s.worldMatrix.getTranslation(),d=s.shape.radius*Math.max(...o);a=d-Math.hypot(...l.map((p,m)=>p-e[m])),c=4/3*Math.PI*d**3;let f=l.map((p,m)=>e[m]-p),h=Math.hypot(...f);u=Array.from(l).map((p,m)=>p+(h?f[m]/h:+(m===0))*(d+1e-5))}else{let l=new L(s.worldMatrix).invert().transformAsPoint(Array.from(e)),d=s.shape.size.map((h,p)=>(h/2-Math.abs(l[p]))*o[p]);a=Math.min(...d);let f=d.indexOf(a);l[f]=(Math.sign(l[f])||1)*(s.shape.size[f]/2+1e-5/o[f]),u=Array.from(s.worldMatrix.transformAsPoint(l)),c=s.shape.size.reduce((h,p,m)=>h*p*o[m],1)}a<0||(!t||(s.priority??0)>(t.zone.priority??0)||(s.priority??0)===(t.zone.priority??0)&&c<t.volume)&&(t={zone:s,volume:c,distance:a,boundary:u})}if(!t)return;let n=t.zone.blendDistance?Math.min(1,t.distance/t.zone.blendDistance):1,i=n<1?Ht(r.filter(s=>s!==t.zone),t.boundary):void 0;return{environment:t.zone.environment,weight:n,...i?{outsideEnvironment:i.environment}:{}}}var lt=class{input;convolver;output;sends=[];constructor(e,t,n,i={}){this.input=e.createGain(),this.convolver=e.createConvolver(),this.output=e.createGain(),this.convolver.normalize=i.normalize??!0,this.convolver.buffer=t,this.output.gain.value=i.mix??.5,this.input.connect(this.convolver),this.convolver.connect(this.output),this.output.connect(n)}connectSend(e,t){let n=e.context.createGain();return n.gain.value=t,e.connect(n),n.connect(this.input),this.sends.push(n),n}reset(){let e=this.convolver;this.input.disconnect(e),e.disconnect(),this.convolver=e.context.createConvolver(),this.convolver.normalize=e.normalize,this.convolver.buffer=e.buffer,this.input.connect(this.convolver),this.convolver.connect(this.output)}destroy(){for(let e of this.sends)e.disconnect();this.sends.length=0,this.input.disconnect(),this.convolver.disconnect(),this.output.disconnect()}};function Jn(r,e){(0,Qn.assert)((e.density??1)===1&&(e.diffusion??1)===1);let t={generic:[1.49,.83,.007,.011],smallRoom:[.4,.83,.002,.003],mediumRoom:[1.1,.83,.01,.011],largeRoom:[4.32,.59,.02,.03],bathroom:[1.49,.54,.007,.011],concertHall:[3.92,.7,.02,.029],cathedral:[5.5,.6,.025,.04],cave:[2.91,1.3,.015,.022],arena:[7.24,.33,.02,.03],hangar:[10.05,.23,.02,.03],corridor:[1.79,.59,.007,.011],forest:[1.49,.54,.162,.088],underwater:[1.49,.1,.007,.011]},n=e.preset?t[e.preset]:void 0;(0,Qn.assert)(!e.preset||n);let i=e.decayTime??n?.[0]??1.5,s=i*(e.decayHFRatio??n?.[1]??.83),o=e.reflectionsDelay??n?.[2]??.02,a=o+(e.reverbDelay??n?.[3]??.04);(0,Qn.assert)(i>0&&s>0&&o>=0&&a>=o);let c=r.createBuffer(2,Math.ceil((a+Math.max(i,s))*r.sampleRate),r.sampleRate);for(let u=0;u<2;u++){let l=c.getChannelData(u),d=12345+u*98765,f=0,h=1/Math.sqrt(r.sampleRate*i);for(let p=Math.ceil(a*r.sampleRate);p<l.length;p++){d=Math.imul(d,1664525)+1013904223|0;let m=d/2147483648;f+=.15*(m-f);let g=p/r.sampleRate-a;l[p]=(e.reverbGain??1)*h*(f*Math.exp(-Math.log(1e3)*g/i)+(m-f)*Math.exp(-Math.log(1e3)*g/s))}l[Math.round(o*r.sampleRate)]+=e.reflectionsGain??1}return c}var y0=D(k(),1);var ei=class{gain;definition;options;scene;nodeBindings=new Map;listenerGain;emitters=[];graphs=new Map;reverbBuses=new Map;directGains=[];environmentSends=[];graphSources=new Set;graphEmitters=new Set;playing=new Map;buffers=new Map;initialization;abortController=new AbortController;destroyed=!1;playbackGeneration=0;audioClockStart;constructor(e){this.options=e;let{audioContext:t}=e;this.scene=e.scene,this.definition=e.definition;let n=e.graphs;this.gain=t.createGain(),this.listenerGain=t.createGain(),this.gain.connect(this.listenerGain),this.listenerGain.connect(t.destination);let i=new Set;this.scene.preorderTraversal(a=>i.add(a));let s=new Set(e.emitterIndices);for(let a of e.nodes||[])if(i.has(a.node))for(let c of a.emitterIndices||[])s.add(c);let o=new Map;n?.forEach((a,c)=>{if(a.outputs?.some(u=>s.has(u.emitter))){o.set(c,a);for(let u of a.inputs||[])this.graphSources.add(u.source);for(let u of a.outputs||[])this.graphEmitters.add(u.emitter)}});try{for(let a of e.nodes||[])if(i.has(a.node)){this.nodeBindings.set(a.node,a);for(let c of a.emitterIndices||[])this.addEmitter(c,a.node)}for(let a of e.emitterIndices||[])this.addEmitter(a);for(let[a,c]of o)this.graphs.set(a,new ut(c,t,this.gain,u=>this.emitters.filter(l=>l.index===u).map(l=>l.panner||l.gain)))}catch(a){throw this.destroy(),a}}initialize(){return this.destroyed?Promise.reject(new Error("Audio controller destroyed")):(this.initialization||=this.loadBuffers().catch(e=>{throw this.initialization=void 0,e}),this.initialization)}async play(e={}){e.restart!==!1&&this.stop();let t=this.playbackGeneration;if(await this.initialize(),this.destroyed||t!==this.playbackGeneration)return;let n=this.options.audioContext.currentTime;(e.restart!==!1||this.audioClockStart===void 0)&&(this.audioClockStart=n);for(let i of this.emitters)if(!this.graphEmitters.has(i.index))for(let s of i.definition.sources||[])e.sourceIndices&&!e.sourceIndices.includes(s)||this.startSource(s,n,e.autoplayOnly,o=>o.connect(i.panner||i.gain));for(let i of this.graphSources)e.sourceIndices&&!e.sourceIndices.includes(i)||this.startSource(i,n,e.autoplayOnly,s=>{for(let o of this.graphs.values())o.connectSource(i,s)})}setGraphGain(e,t,n){let i=this.graphs.get(e);(0,y0.assert)(!this.destroyed&&i),i.setGain(t,n)}startSource(e,t,n,i){let s=this.definition.sources[e];if((0,y0.assert)(s),n&&!s.autoPlay)return;let o=this.options.audioContext,a=s.graph,c=a?.oscillator;(0,y0.assert)(!(s.audio!==void 0&&c));let u;if(c){let f=o.createOscillator();f.frequency.value=c.frequency??440,f.detune.value=c.detune??0,(0,y0.assert)(c.pulseWidth===void 0||c.pulseWidth===.5),c.type==="custom"?((0,y0.assert)(c.periodicWave),f.setPeriodicWave(o.createPeriodicWave(new Float32Array(c.periodicWave.real),new Float32Array(c.periodicWave.imag)))):f.type=c.type,u=f}else{let f=o.createBufferSource();(0,y0.assert)(s.audio!==void 0),f.buffer=this.buffers.get(s.audio),f.loop=s.loop??!1,f.loopStart=a?.loopStart??0,f.loopEnd=a?.loopEnd??0,f.playbackRate.value=s.playbackRate??1,u=f}a?.channelInterpretation&&(u.channelInterpretation=a.channelInterpretation);let l=this.options.audioContext.createGain();l.gain.value=s.gain??1,u.connect(l),i(l),u.onended=()=>{u.disconnect(),l.disconnect(),this.playing.delete(u)},this.playing.set(u,l);let d=a?.when===void 0?t:Math.max(t,this.audioClockStart+a.when);u instanceof AudioBufferSourceNode?a?.duration===void 0?u.start(d,a?.offset??0):u.start(d,a.offset??0,a.duration):(u.start(d),a?.duration!==void 0&&u.stop(d+a.duration))}stop(){this.playbackGeneration++;for(let[e,t]of this.playing)e.onended=null,e.stop(),e.disconnect(),t.disconnect();this.playing.clear();for(let e of this.reverbBuses.values())e.reset()}update(e){if(this.destroyed)return;let t=this.options.environment;if(t){let l=[];this.scene.preorderTraversal((h,{worldMatrix:p})=>{let m=this.nodeBindings.get(h);m?.listener!==void 0&&l.push({index:m.listener,node:m.node,matrix:new L(p)})});let d=l.find(h=>h.index===this.options.activeListener)??l.find(h=>h.node===this.options.activeCameraNode)??l[0],f=d?t.listeners?.[d.index]:void 0;d&&f&&this.options.listenerPose!=="viewer"&&(e=d.matrix),this.listenerGain.gain.value=f?.gain??1;for(let h of this.emitters)h.panner&&(h.panner.panningModel=f?.spatializationModel==="HRTF"?"HRTF":"equalpower")}let n=e.getTranslation(),i=[];this.scene.preorderTraversal((l,{worldMatrix:d})=>{let f=this.nodeBindings.get(l)?.zone;f?.shape&&i.push({...f,worldMatrix:new L(d)})});let s=Ht(i,n),o=this.options.defaultEnvironment;for(let l of this.environmentSends){let d=l.forced??s?.environment??o,f=l.forced!==void 0?1:s?.weight??1,h=s?.outsideEnvironment??o;l.gain.gain.value=l.level*((l.environment===d?f:0)+(l.forced===void 0&&l.environment===h?1-f:0))}let a=new B(0,0,-1).transformAsVector(e).normalize(),c=new B(0,1,0).transformAsVector(e).normalize(),u=this.options.audioContext.listener;u.positionX.value=n[0],u.positionY.value=n[1],u.positionZ.value=n[2],u.forwardX.value=a[0],u.forwardY.value=a[1],u.forwardZ.value=a[2],u.upX.value=c[0],u.upY.value=c[1],u.upZ.value=c[2],this.scene.preorderTraversal((l,{worldMatrix:d})=>{for(let f of this.emitters){if(f.node!==l||!f.panner)continue;let h=d.getTranslation(),p=new B(0,0,-1).transformAsVector(d).normalize(),m=f.panner;m.positionX.value=h[0],m.positionY.value=h[1],m.positionZ.value=h[2],m.orientationX.value=p[0],m.orientationY.value=p[1],m.orientationZ.value=p[2];let g=Math.hypot(...h.map((b,v)=>b-n[v]));if(f.airFilter){let b=f.definition.positional,v=Math.min(1,Math.max(0,(g-(b.refDistance??1))/(b.maxDistance-(b.refDistance??1)))),T=b.airAbsorption?.cutoffAtMaxDistance??5e3;f.airFilter.frequency.value=Math.exp(Math.log(2e4)+v*(Math.log(Math.max(1,T))-Math.log(2e4)))}f.gain.gain.value=(f.definition.gain??1)*J6(f.definition.positional,g)}})}destroy(){if(!this.destroyed){this.destroyed=!0,this.abortController.abort(),this.stop();for(let e of this.emitters)e.panner?.disconnect(),e.airFilter?.disconnect(),e.gain.disconnect();for(let e of this.graphs.values())e.destroy();for(let e of this.reverbBuses.values())e.destroy();this.reverbBuses.clear();for(let e of this.directGains)e.disconnect();this.gain.disconnect(),this.listenerGain.disconnect(),this.buffers.clear()}}addEmitter(e,t){let n=this.definition.emitters[e];(0,y0.assert)(n&&(n.type==="global"||n.type==="positional"&&t)),(0,y0.assert)(!n.positional?.shapeType||["cone","omnidirectional"].includes(n.positional.shapeType));for(let a of this.graphEmitters.has(e)?[]:n.sources||[]){let c=this.definition.sources[a];(0,y0.assert)(c&&(c.audio!==void 0?this.definition.audio[c.audio]:c.graph?.oscillator))}let i=this.options.audioContext.createGain();i.gain.value=n.gain??1;let s=this.options.audioContext.createGain();s.gain.value=n.environment?.directLevel??1,i.connect(s),s.connect(this.gain),this.directGains.push(s);let o={index:e,definition:n,node:t,gain:i};if(this.emitters.push(o),n.type==="positional"){let a=this.options.audioContext.createPanner();o.panner=a,a.panningModel="HRTF",a.rolloffFactor=0;let c=n.positional;if(c?.shapeType==="cone"&&(a.coneInnerAngle=(c.coneInnerAngle??Math.PI*2)*180/Math.PI,a.coneOuterAngle=(c.coneOuterAngle??Math.PI*2)*180/Math.PI,a.coneOuterGain=c.coneOuterGain??0),c?.airAbsorption?.enabled&&(c?.maxDistance??0)>(c?.refDistance??1)){let l=this.options.audioContext.createBiquadFilter();l.type="lowpass",l.Q.value=Math.SQRT1_2,l.frequency.value=2e4,o.airFilter=l,a.connect(l),l.connect(i)}else a.connect(i)}}async loadBuffers(){let{audioContext:e,baseUrl:t}=this.options,n=new Set([...this.graphSources,...this.emitters.filter(a=>!this.graphEmitters.has(a.index)).flatMap(a=>a.definition.sources||[])]),i=new Set([...n].map(a=>{let c=this.definition.sources[a];return(0,y0.assert)(c&&(c.audio!==void 0?this.definition.audio[c.audio]:c.graph?.oscillator)),c.audio})),s=this.options.environment?.environments;for(let a of s||[])a.reverb?.type==="impulseResponse"&&a.reverb.audio!==void 0&&i.add(a.reverb.audio);let o=await Promise.all([...i].filter(a=>a!==void 0).map(async a=>{let c=this.definition.audio[a],u;if(c.data!==void 0){let l=c.data;u=ArrayBuffer.isView(l)?new Uint8Array(l.buffer,l.byteOffset,l.byteLength).slice().buffer:l.slice(0)}else{let l=await(this.options.fetch||fetch)(new URL(c.uri,t),{signal:this.abortController.signal});if(!l.ok)throw new Error(`Audio fetch failed: ${l.status}`);u=await l.arrayBuffer()}return[a,await e.decodeAudioData(u)]}));this.destroyed||(this.buffers=new Map(o),s?.forEach((a,c)=>{let u=a.reverb;if(!u)return;let l=u.type==="impulseResponse"?this.buffers.get(u.audio):Jn(e,u);(0,y0.assert)(l);let d=new lt(e,l,this.gain,{...u,normalize:u.type==="impulseResponse"?u.normalize:!1});this.reverbBuses.set(c,d);let f=this.options.defaultEnvironment;for(let h of this.emitters){let p=h.definition.environment,m=p?.reverbLevel??(h.definition.type==="positional"?1:0),g=d.connectSend(h.gain,(p?.environment??f)===c?m:0);this.environmentSends.push({gain:g,environment:c,forced:p?.environment,level:m})}}))}};function J6(r={},e){let t=r.refDistance??1,n=r.maxDistance||1/0,i=Math.max(t,Math.min(e,n)),s=r.rolloffFactor??1;switch(r.distanceModel){case"linear":return n<=t?e<=t?1:0:Math.max(0,1-s*(i-t)/(n-t));case"exponential":return(i/t)**-s;default:return t/(t+s*(i-t))}}var ti=class{device;framebuffer=null;shaderInputs;constructor(e,t){this.device=e,this.shaderInputs=t}destroy(){this.framebuffer?.destroy()}getFramebuffer(){return this.framebuffer||(this.framebuffer=this.device.createFramebuffer({colorAttachments:["rgba8unorm"],depthStencilAttachment:"depth24plus"})),this.framebuffer}clearPickState(){this.shaderInputs.setProps({picking:{highlightedObjectColor:null}})}beginRenderPass(){let e=this.getFramebuffer();return e.resize(this.device.getCanvasContext().getDevicePixelSize()),this.shaderInputs.setProps({picking:{isActive:!0}}),this.device.beginRenderPass({framebuffer:e,clearColor:[0,0,0,0],clearDepth:1})}updatePickState(e){let t=this.getFramebuffer(),[n,i]=this.getPickPosition(e),o=[...this.device.readPixelsToArrayWebGL(t,{sourceX:n,sourceY:i,sourceWidth:1,sourceHeight:1})].map(c=>c/255);o[0]+o[1]+o[2]>0||(o=null),this.shaderInputs.setProps({picking:{isActive:!1,highlightedObjectColor:o}})}getPickPosition(e){let t=this.device.getCanvasContext().cssToDevicePixels(e),n=t.x+Math.floor(t.width/2),i=t.y+Math.floor(t.height/2);return[n,i]}};var ca=D(b0(),1),ua=ca.picking;var la=D(k(),1);var ri=class extends z{constructor(e={}){let{innerRadius:t=.5,outerRadius:n=1,height:i=.2,segments:s=48,startAngle:o=0,angle:a=Math.PI*2}=e;(0,la.assert)(Number.isFinite(t)&&t>=0&&Number.isFinite(n)&&n>t&&Number.isFinite(i)&&i>0&&Number.isFinite(o)&&Number.isFinite(a)&&a>0&&a<=Math.PI*2&&Number.isInteger(s)&&s>=3);let c=i/2,u=[[[n,-c],[n,c]],[[n,c],[t,c]],[[t,-c],[n,-c]]];t>0&&u.push([[t,c],[t,-c]]);let l=u.map(m=>new _e({points:m,segments:s,phiStart:o,phiLength:a}));if(a<Math.PI*2)for(let[m,g]of[o,o+a].entries()){let b=new ee({sizeX:n-t,sizeZ:i}),v=b.attributes.POSITION.value,T=b.attributes.NORMAL.value,S=Math.cos(g),y=Math.sin(g),x=m===0?1:-1;for(let w=0;w<v.length;w+=3){let I=Number(v[w])+(t+n)/2,A=-x*Number(v[w+2]);v[w]=I*S,v[w+1]=A,v[w+2]=-I*y,T[w]=x*y,T[w+1]=0,T[w+2]=x*S}l.push(b)}let d=[],f=[],h=[],p=[];for(let m of l){let g=d.length/3;for(let b of m.attributes.POSITION.value)d.push(b);for(let b of m.attributes.NORMAL.value)f.push(b);for(let b of m.attributes.TEXCOORD_0.value)h.push(b);for(let b of m.indices.value)p.push(Number(b)+g)}super({id:e.id,topology:"triangle-list",indices:new Uint32Array(p),attributes:{POSITION:{size:3,value:new Float32Array(d)},NORMAL:{size:3,value:new Float32Array(f)},TEXCOORD_0:{size:2,value:new Float32Array(h)},...e.attributes}})}};function da(r,e){if(r===void 0)return[...e];if(!Array.isArray(r)||r.length!==3||!r.every(Number.isFinite))throw new Error("Expected a finite three-component vector");return[r[0],r[1],r[2]]}function fa(r){if(r===void 0)return[0,0,0,1];if(!Array.isArray(r)||r.length!==4||!r.every(Number.isFinite))throw new Error("Expected a finite quaternion");let e=Math.hypot(...r);if(e===0)throw new Error("Quaternion must be nonzero");return[r[0]/e,r[1]/e,r[2]/e,r[3]/e]}function ha(r,e,t=!1){let n=t?r.transformAsPoint(e):r.transformAsVector(e);return[n[0],n[1],n[2]]}function Xt(r){if(!r.every(Number.isFinite)||Math.abs(r[3])+Math.abs(r[7])+Math.abs(r[11])>1e-7||Math.abs(r[15]-1)>1e-7)throw new Error("Expected an affine transform");let e=[Math.hypot(r[0],r[1],r[2]),Math.hypot(r[4],r[5],r[6]),Math.hypot(r[8],r[9],r[10])];if(e.every(i=>i===0))return{position:[r[12],r[13],r[14]],rotation:[0,0,0,1],scale:e};if(e.some(i=>i<1e-10))throw new Error("Singular collider transforms are unsupported");r.determinant()<0&&(e[0]=-e[0]);let t=[r[0]/e[0],r[1]/e[0],r[2]/e[0],r[4]/e[1],r[5]/e[1],r[6]/e[1],r[8]/e[2],r[9]/e[2],r[10]/e[2]];for(let[i,s]of[[0,1],[0,2],[1,2]]){let o=t[i*3]*t[s*3]+t[i*3+1]*t[s*3+1]+t[i*3+2]*t[s*3+2];if(Math.abs(o)>1e-5)throw new Error("Sheared collider transforms are unsupported")}let n=new pt().fromMatrix3(t).normalize();return{position:[r[12],r[13],r[14]],rotation:[n[0],n[1],n[2],n[3]],scale:e}}var ni=class{joints;constructor(e){this.joints=e}resolve(e,t){let n=new Map,i=new Map,s=(a,c,u)=>{if(n.has(a))throw new Error("Joint scene must be a tree");let l=new L(c).multiplyRight(a.matrix),d=t.has(a)?a:u;if(n.set(a,l),i.set(a,d),a instanceof u0)for(let f of a.children)s(f,l,d)};for(let a of e)s(a,new L,null);let o=a=>{let c=n.get(a);if(!c)throw new Error("Joint attachment is outside the scene");let u=i.get(a)??null,l=new L(c);if(u){let f=Xt(n.get(u));l=new L().translate(f.position).multiplyRight(new L().fromQuaternion(f.rotation)).invert().multiplyRight(l)}let d=Xt(l);return{body:u,position:d.position,orientation:d.rotation}};return this.joints.map(a=>({joint:a,first:o(a.first),second:o(a.second)}))}};var pa={name:"publishedTransforms",uniformTypes:{bodyIndex:"i32",viewProjection:"mat4x4<f32>"},defaultUniforms:{bodyIndex:-1},source:`
|
|
911
918
|
struct PublishedTransforms {bodyIndex:i32,viewProjection:mat4x4f}
|
|
912
919
|
@group(0) @binding(auto) var<uniform> publishedTransforms:PublishedTransforms;
|
|
913
920
|
@group(0) @binding(auto) var<storage,read> publishedBodyMatrices:array<mat4x4f>;
|
|
914
|
-
`,bindingLayout:[{name:"publishedBodyMatrices",group:0}]};var Y2=O(k(),1);function Yn(r,e){r.userData.morphWeights=[...e];let t=r.userData.morphMeshes||[];for(let n of t)n.preorderTraversal(i=>{if(!(i instanceof tt))return;let s=i.userData.morphTargets;if(!s)return;let o=i.userData.morphWeightTransport;if(o){I6(o,e),i.userData.morphWeights=[...e];return}xr(i.model,s.geometry,s.targets,e),i.userData.morphWeights=[...e]})}function I6(r,e){r.values.fill(0),r.values.set(e.slice(0,r.values.length)),r.data instanceof Y2.Buffer?r.data.write(r.values):r.data.writeData(r.values,{width:r.packedTargetCount,height:1})}function K2(r,e,t={}){return{id:t.id,getValue:()=>{switch(e){case"translation":return Array.from(r.position);case"rotation":return Array.from(r.rotation);case"scale":return Array.from(r.scale);case"weights":return Array.from(r.userData.morphWeights??[]);case"visibility":return[r.display?1:0]}},setValue:n=>{switch(e){case"translation":r.setPosition(n).updateMatrix();break;case"rotation":r.setRotation(n).updateMatrix();break;case"scale":r.setScale(n).updateMatrix();break;case"weights":Yn(r,n);break;case"visibility":r.setProps({display:n[0]!==0}),t.onVisibilityChange?.();break}}}}var Kn=class extends xe{mixer;activeClip;onUpdate;previousTimeSeconds;constructor(e,t,n={}){if(super(e),this.mixer=t,this.onUpdate=n.onUpdate,this.activeClip=e[0]?.name,n.autoplay===!1)for(let i of e)i.playing=!1,i.action.stop();else n.autoplay==="first"&&this.activeClip&&this.selectClip(this.activeClip)}setUpdateHandler(e){return this.onUpdate=e,this}setTime(e){let t=e/1e3,n=this.previousTimeSeconds===void 0?0:t-this.previousTimeSeconds;this.previousTimeSeconds=t;let i=n*this.mixer.timeScale;this.clips.forEach(s=>{if(!s.playing){s.action.stop();return}if(s.action.paused)return;s.action.resume();let o=Math.max(0,t-s.startTime)*s.speed;s.action.setTime(o-i*s.action.timeScale)}),this.mixer.update(n),this.onUpdate?.()}update(e){this.mixer.update(e),this.onUpdate?.()}selectClip(e,t={}){let n=this.clips.find(o=>o.name===e);if(!n)throw new Error(`Unknown animation clip: ${e}`);let i=this.clips.find(o=>o.name===this.activeClip),s=t.crossFadeDuration||0;for(let o of this.clips)o!==n&&!(s>0&&o===i)&&(o.playing=!1,o.action.stop());return n.playing=!0,s>0&&i&&i!==n?(i.playing=!0,i.action.crossFadeTo(n.action,s)):n.action.reset().setEffectiveWeight(1).play(),this.activeClip=e,n}},Zn=class extends ye{clip;mixer;action;constructor(e,t=new ve){super({name:e.name}),this.clip=e,this.mixer=t,this.action=t.clipAction(e).play()}applyTime(e){this.action.setTime(e),this.mixer.update(0)}};function Qn(r){let e=new u0().set(1,0,0,0,1,0,r.offset[0],r.offset[1],1),t=new u0().set(Math.cos(r.rotation),Math.sin(r.rotation),0,-Math.sin(r.rotation),Math.cos(r.rotation),0,0,0,1),n=new u0().set(r.scale[0],0,0,0,r.scale[1],0,0,0,1);return Array.from(e.multiplyRight(t).multiplyRight(n))}function Jn(r,e){let t=new u0(Qn(r)),n=new u0(Qn(e)),i=new u0(t).invert();return Array.from(n.multiplyRight(i))}function Z2(r,e,t){return{id:t,getValue:()=>P6(r[0],e),setValue:n=>{for(let i of r)L6(i,e,n)}}}function Q2(r,e,t=new Map,n){return{id:n,setValue:i=>{for(let s of r)C6(s,e,i,t)}}}function J2(r,e,t={}){return{id:t.id,getValue:()=>{let n=r[e];return Array.isArray(n)?t.component===void 0?[...n]:[n[t.component]]:typeof n=="number"?[n]:[]},setValue:n=>{if(t.component!==void 0){let i=[...r[e]||[1,1,1]];i[t.component]=n[0],r[e]=i}else r[e]=n.length===1?n[0]:[...n];t.onChange?.()}}}function P6(r,e){let n=r.shaderInputs.getUniformValues().pbrMaterial?.[e.property];return Array.isArray(n)?e.component===void 0?[...n]:[n[e.component]]:typeof n=="number"?[n]:[]}function L6(r,e,t){let n=e.component!==void 0?{[e.property]:R6(E6(r,e.property),e.component,t[0])}:{[e.property]:t.length===1?t[0]:t};r.setProps({pbrMaterial:n})}function E6(r,e){let n=r.shaderInputs.getUniformValues().pbrMaterial?.[e];return Array.isArray(n)?[...n]:[]}function R6(r,e,t){let n=[...r];return n[e]=t,n}function C6(r,e,t,n){let i=B6(n,r,e);switch(e.path){case"offset":e.component!==void 0?i.offset[e.component]=t[0]:i.offset=[t[0],t[1]];break;case"rotation":i.rotation=t[0];break;case"scale":e.component!==void 0?i.scale[e.component]=t[0]:i.scale=[t[0],t[1]];break}r.setProps({pbrMaterial:{[e.uniform]:Jn(e.baseTransform,i)}})}function B6(r,e,t){let n=r.get(e)||{},i=n[t.textureSlot];return i||(i={offset:[...t.baseTransform.offset],rotation:t.baseTransform.rotation,scale:[...t.baseTransform.scale]},n[t.textureSlot]=i,r.set(e,n)),i}function e3(r,e){let t=()=>{let i=r.get(e);if(!i||!i.every(s=>typeof s=="number"||typeof s=="boolean"))throw new Error("Missing numeric animation property");return i},n=typeof t()[0]=="boolean";return{id:e,getValue:()=>t().map(Number),setValue:i=>{if(!r.set(e,n?[i[0]!==0]:[...i]))throw new Error("Animation property is not writable")}}}function t3(r){let{positions:e,targets:t=[],weights:n=[],jointMatrices:i,influences:s=[]}=r;if(e.length%3||t.some(a=>a.length!==e.length)||!n.every(Number.isFinite))throw new Error("Invalid position deformation");let o=xt({POSITION:e},t.map(a=>({POSITION:a})),n).POSITION;if(!i){if(!o.every(Number.isFinite))throw new Error("Nonfinite deformation");return o}if(!s.length||s.some(a=>a.joints.length!==e.length/3*4||a.weights.length!==a.joints.length))throw new Error("Invalid skin influences");for(let a=0;a<o.length/3;a++){let c=Array.from(o.subarray(a*3,a*3+3)),u=[0,0,0],l=0;for(let d of s)for(let f=0;f<4;f++){let h=a*4+f,p=d.weights[h];if(!Number.isFinite(p)||p<0)throw new Error("Invalid skin weight");if(!p)continue;let m=d.joints[h],g=i[m];if(!Number.isInteger(m)||!g)throw new Error("Invalid skin joint");let b=g.transformAsPoint(c);for(let v=0;v<3;v++)u[v]+=p*b[v];l+=p}if(!(l>0))throw new Error("Empty skin weights");for(let d=0;d<3;d++)o[a*3+d]=u[d]/l}if(!o.every(Number.isFinite))throw new Error("Nonfinite deformation");return o}var i3=O(S0(),1);var r3=[1,0,0,2e-5,1,0,0,503905e-9,1,0,0,.00201562,1,0,0,.00453516,1,0,0,.00806253,1,0,0,.0125978,1,0,0,.018141,1,0,0,.0246924,1,0,0,.0322525,1,0,0,.0408213,1,0,0,.0503999,1,0,0,.0609894,1,0,0,.0725906,1,0,0,.0852058,1,0,0,.0988363,1,0,0,.113484,1,0,0,.129153,1,0,0,.145839,1,0,0,.163548,1,0,0,.182266,1,0,0,.201942,1,0,0,.222314,1,0,0,.241906,1,0,0,.262314,1,0,0,.285754,1,0,0,.310159,1,0,0,.335426,1,0,0,.361341,1,0,0,.387445,1,0,0,.412784,1,0,0,.438197,1,0,0,.466966,1,0,0,.49559,1,0,0,.523448,1,0,0,.549938,1,0,0,.57979,1,0,0,.608746,1,0,0,.636185,1,0,0,.664748,1,0,0,.69313,1,0,0,.71966,1,0,0,.747662,1,0,0,.774023,1,0,0,.799775,1,0,0,.825274,1,0,0,.849156,1,0,0,.873248,1,0,0,.89532,1,0,0,.917565,1,0,0,.937863,1,0,0,.958139,1,0,0,.976563,1,0,0,.994658,1,0,0,1.0112,1,0,0,1.02712,1,0,0,1.04189,1,0,0,1.05568,1,0,0,1.06877,1,0,0,1.08058,1,0,0,1.09194,1,0,0,1.10191,1,0,0,1.11161,1,0,0,1.1199,1,0,0,1.12813,.999547,-448815e-12,.0224417,199902e-10,.999495,-113079e-10,.0224406,503651e-9,.999496,-452317e-10,.0224406,.00201461,.999496,-101772e-9,.0224406,.00453287,.999495,-180928e-9,.0224406,.00805845,.999497,-282702e-9,.0224406,.0125914,.999496,-407096e-9,.0224406,.0181319,.999498,-554114e-9,.0224406,.02468,.999499,-723768e-9,.0224406,.0322363,.999495,-916058e-9,.0224405,.0408009,.999499,-.00113101,.0224408,.050375,.999494,-.00136863,.0224405,.0609586,.999489,-.00162896,.0224401,.0725537,.999489,-.00191201,.0224414,.0851619,.999498,-.00221787,.0224413,.0987867,.999492,-.00254642,.0224409,.113426,.999507,-.00289779,.0224417,.129088,.999494,-.0032716,.0224386,.145767,.999546,-.0036673,.0224424,.163472,.999543,-.00408166,.0224387,.182182,.999499,-.00450056,.0224338,.201843,.999503,-.00483661,.0224203,.222198,.999546,-.00452928,.022315,.241714,.999508,-.00587403,.0224329,.262184,.999509,-.00638806,.0224271,.285609,.999501,-.00691028,.0224166,.309998,.999539,-.00741979,.0223989,.335262,.999454,-.00786282,.0223675,.361154,.999529,-.00811928,.0222828,.387224,.999503,-.00799941,.0221063,.41252,.999561,-.00952753,.0223057,.438006,.999557,-.0099134,.0222065,.466735,.999541,-.0100935,.0220402,.495332,.999562,-.00996821,.0218067,.523197,.999556,-.0105031,.0217096,.550223,.999561,-.0114191,.0217215,.579498,.999588,-.0111818,.0213357,.608416,.999633,-.0107725,.0208689,.635965,.999527,-.0121671,.0210149,.664476,.999508,-.0116005,.020431,.692786,.999568,-.0115604,.0199791,.719709,.999671,-.0121117,.0197415,.74737,.999688,-.0110769,.0188846,.773692,.99962,-.0122368,.0188452,.799534,.999823,-.0110325,.0178001,.825046,.999599,-.0114923,.0174221,.849075,.999619,-.0105923,.0164345,.872999,.999613,-.0105988,.0158227,.895371,.99964,-.00979861,.0148131,.917364,.99977,-.00967238,.0140721,.938002,.999726,-.00869175,.0129543,.957917,.99973,-.00866872,.0122329,.976557,.999773,-.00731956,.0108958,.994459,.999811,-.00756027,.0102715,1.01118,.999862,-.00583732,.00878781,1.02701,.999835,-.00631438,.00827529,1.04186,.999871,-.00450785,.00674583,1.05569,.999867,-.00486079,.00621041,1.06861,.999939,-.00322072,.00478301,1.08064,.999918,-.00318199,.00406395,1.09181,1.00003,-.00193348,.00280682,1.10207,.999928,-.00153729,.00198741,1.11152,.999933,-623666e-9,917714e-9,1.12009,1,-102387e-11,907581e-12,1.12813,.997866,-896716e-12,.0448334,199584e-10,.997987,-225945e-10,.0448389,502891e-9,.997987,-903781e-10,.0448388,.00201156,.997985,-203351e-9,.0448388,.00452602,.997986,-361514e-9,.0448388,.00804629,.997987,-56487e-8,.0448389,.0125724,.997988,-813423e-9,.0448389,.0181045,.997984,-.00110718,.0448387,.0246427,.997985,-.00144616,.0448388,.0321875,.997987,-.00183038,.044839,.0407392,.997983,-.00225987,.0448387,.0502986,.997991,-.00273467,.0448389,.0608667,.997984,-.00325481,.0448384,.0724444,.998002,-.00382043,.044839,.0850348,.997997,-.00443145,.0448396,.0986372,.998007,-.00508796,.0448397,.113255,.998008,-.00578985,.04484,.128891,.998003,-.00653683,.0448384,.145548,.997983,-.00732713,.0448358,.163221,.997985,-.00815454,.0448358,.181899,.998005,-.00898985,.0448286,.201533,.998026,-.00964404,.0447934,.221821,.998055,-.00922677,.044611,.241282,.99804,-.0117361,.0448245,.261791,.998048,-.0127628,.0448159,.285181,.998088,-.0138055,.0447996,.30954,.998058,-.0148206,.0447669,.334751,.998099,-.0156998,.044697,.36061,.998116,-.0161976,.0445122,.386603,.998195,-.015945,.0441711,.411844,.998168,-.0183947,.0444255,.43773,.998184,-.0197913,.0443809,.466009,.998251,-.0201426,.0440689,.494574,.998305,-.0198847,.0435632,.522405,.998273,-.0210577,.043414,.549967,.998254,-.0227901,.0433943,.578655,.998349,-.0223108,.0426529,.60758,.99843,-.0223088,.042,.635524,.998373,-.0241141,.0418987,.663621,.998425,-.0231446,.0408118,.691906,.998504,-.0233684,.0400565,.719339,.998443,-.0241652,.0394634,.74643,.99848,-.0228715,.0380002,.773086,.998569,-.023519,.0372322,.798988,.998619,-.0223108,.0356468,.824249,.998594,-.0223105,.034523,.848808,.998622,-.0213426,.0328887,.87227,.998669,-.0207912,.0314374,.895157,.998705,-.0198416,.0296925,.916769,.998786,-.0189168,.0279634,.937773,.998888,-.0178811,.0261597,.957431,.99906,-.0166845,.0242159,.976495,.999038,-.0155464,.0222638,.994169,.999237,-.0141349,.0201967,1.01112,.999378,-.0129324,.0181744,1.02692,.999433,-.0113192,.0159898,1.04174,.999439,-.0101244,.0140385,1.05559,.999614,-.00837456,.0117826,1.06852,.999722,-.00721769,.00983745,1.08069,.999817,-.00554067,.00769002,1.09176,.99983,-.00426961,.005782,1.10211,.999964,-.00273904,.00374503,1.11152,1.00001,-.00136739,.00187176,1.12031,.999946,393227e-10,-28919e-9,1.12804,.995847,-13435e-10,.0671785,19916e-9,.995464,-338387e-10,.0671527,501622e-9,.99547,-135355e-9,.0671531,.00200649,.995471,-30455e-8,.0671532,.00451461,.99547,-541423e-9,.0671531,.008026,.995471,-84598e-8,.0671531,.0125407,.99547,-.00121823,.0671531,.0180589,.99547,-.00165817,.0671531,.0245806,.995463,-.00216583,.0671526,.0321062,.995468,-.00274127,.0671527,.0406366,.995474,-.00338447,.0671534,.0501717,.995473,-.00409554,.0671533,.0607131,.995478,-.00487451,.0671531,.0722618,.995476,-.00572148,.0671532,.0848191,.995477,-.00663658,.0671539,.0983882,.995498,-.00761986,.0671541,.112972,.995509,-.00867094,.0671542,.128568,.995509,-.00978951,.0671531,.145183,.995503,-.0109725,.0671491,.162808,.995501,-.012211,.0671465,.181441,.99553,-.0134565,.0671371,.201015,.99555,-.014391,.0670831,.221206,.99558,-.014351,.0668883,.240813,.995577,-.0173997,.0671055,.261257,.995602,-.0191111,.0671178,.284467,.995623,-.0206705,.0670946,.308765,.995658,-.022184,.0670472,.333905,.995705,-.0234832,.0669417,.359677,.995719,-.0241933,.0666714,.385554,.995786,-.0243539,.066266,.410951,.995887,-.0271866,.0664367,.437163,.995944,-.0296012,.0664931,.464842,.996004,-.0301045,.0660105,.49332,.996128,-.0298311,.0652694,.521131,.996253,-.0316426,.0650739,.549167,.996244,-.0339043,.0649433,.57737,.996309,-.033329,.0638926,.606073,.996417,-.0338935,.0630849,.634527,.996372,-.0353104,.0625083,.66256,.996542,-.0348942,.0611986,.690516,.996568,-.0351614,.060069,.718317,.996711,-.0354317,.0588522,.74528,.996671,-.0349513,.0571902,.772061,.996865,-.0345622,.0555321,.798089,.996802,-.0342566,.0537816,.823178,.996992,-.0330862,.0516095,.847949,.996944,-.0324666,.0495537,.871431,.997146,-.0309544,.0470302,.894357,.997189,-.0299372,.0446043,.916142,.997471,-.0281389,.0418812,.937193,.997515,-.0268702,.0391823,.957,.997812,-.0247166,.0361338,.975936,.998027,-.0233525,.0333945,.99391,.998233,-.0209839,.0301917,1.01075,.998481,-.0194309,.027271,1.02669,.998859,-.0169728,.0240162,1.04173,.99894,-.0152322,.0210517,1.05551,.999132,-.0127497,.0178632,1.06856,.999369,-.0108282,.014787,1.08054,.999549,-.00845886,.0116185,1.09185,.999805,-.0063937,.00867209,1.10207,.99985,-.00414582,.00566823,1.1117,.999912,-.00207443,.00277562,1.12022,1.00001,870226e-10,-53766e-9,1.12832,.991943,-178672e-11,.0893382,198384e-10,.991952,-450183e-10,.089339,499849e-9,.991956,-180074e-9,.0893394,.0019994,.991955,-405167e-9,.0893393,.00449867,.991953,-720298e-9,.0893391,.00799764,.991955,-.00112548,.0893393,.0124964,.991957,-.0016207,.0893395,.0179951,.991958,-.00220601,.0893396,.0244939,.991947,-.00288137,.0893385,.0319929,.991962,-.00364693,.0893399,.0404933,.991965,-.00450264,.0893399,.049995,.99198,-.00544862,.0893411,.0604995,.99197,-.00648491,.0893397,.0720074,.991976,-.00761164,.089341,.0845207,.99198,-.00882891,.0893405,.0980413,.991982,-.0101367,.0893396,.112571,.992008,-.011535,.0893415,.128115,.992026,-.0130228,.0893414,.144672,.992064,-.0145966,.0893418,.162241,.992041,-.0162421,.0893359,.180801,.992086,-.0178888,.0893214,.200302,.992157,-.0190368,.0892401,.220332,.992181,-.0195584,.0890525,.240144,.992175,-.0227257,.0892153,.260728,.99221,-.0254195,.089304,.283473,.99222,-.0274883,.0892703,.307673,.992317,-.0294905,.0892027,.332729,.992374,-.0311861,.0890577,.358387,.992505,-.0320656,.0886994,.384102,.992568,-.0329715,.0883198,.409767,.992675,-.036006,.0883602,.436145,.992746,-.0392897,.0884591,.463217,.992873,-.0399337,.0878287,.491557,.992934,-.040231,.0870108,.519516,.993091,-.0422013,.0865857,.547741,.993259,-.0443503,.0861937,.575792,.993455,-.0446368,.0851187,.604233,.993497,-.0454299,.0840576,.632925,.993694,-.0463296,.0829671,.660985,.993718,-.0470619,.0817185,.688714,.993973,-.0468838,.0800294,.716743,.994207,-.046705,.0781286,.74377,.994168,-.0469698,.0763337,.77042,.9945,-.0456816,.0738184,.796659,.994356,-.0455518,.0715545,.821868,.994747,-.0439488,.0686085,.846572,.994937,-.0430056,.065869,.870435,.995142,-.0413414,.0626446,.893272,.995451,-.0396521,.05929,.915376,.995445,-.0378453,.0558503,.936196,.995967,-.0355219,.0520949,.956376,.996094,-.0335146,.048377,.975327,.996622,-.030682,.0442575,.993471,.996938,-.0285504,.0404693,1.01052,.997383,-.0253399,.0360903,1.02637,.997714,-.0231651,.0322176,1.04139,.998249,-.0198138,.0278433,1.05542,.998596,-.0174337,.0238759,1.06846,.998946,-.0141349,.0195944,1.08056,.99928,-.0115603,.0156279,1.09181,.999507,-.00839065,.0114607,1.10213,.999697,-.005666,.00763325,1.11169,.999869,-.00269902,.00364946,1.12042,1.00001,623836e-10,-319288e-10,1.12832,.987221,-222675e-11,.111332,197456e-10,.98739,-561116e-10,.111351,497563e-9,.987448,-224453e-9,.111357,.00199031,.987441,-505019e-9,.111357,.0044782,.987442,-897816e-9,.111357,.00796129,.987442,-.00140284,.111357,.0124396,.987444,-.00202012,.111357,.0179132,.987442,-.00274964,.111357,.0243824,.987446,-.00359147,.111357,.0318474,.987435,-.00454562,.111356,.0403086,.987461,-.00561225,.111358,.0497678,.987458,-.00679125,.111358,.0602239,.987443,-.0080828,.111356,.0716792,.987476,-.0094872,.111358,.0841364,.98749,-.0110044,.111361,.097597,.987508,-.0126344,.111362,.112062,.987494,-.0143767,.111357,.127533,.987526,-.0162307,.111359,.144015,.987558,-.0181912,.111361,.161502,.987602,-.0202393,.111355,.179979,.987692,-.022273,.111346,.199386,.987702,-.0235306,.111215,.219183,.987789,-.0247628,.111061,.239202,.987776,-.0280668,.111171,.259957,.987856,-.0316751,.111327,.282198,.987912,-.0342468,.111282,.306294,.988,-.0367205,.111198,.331219,.988055,-.0387766,.110994,.356708,.988241,-.0397722,.110547,.382234,.988399,-.0416076,.110198,.408227,.988539,-.0448192,.110137,.434662,.988661,-.0483793,.110143,.461442,.988967,-.0495895,.109453,.489318,.989073,-.0506797,.108628,.517516,.989274,-.0526953,.108003,.545844,.989528,-.054578,.107255,.573823,.989709,-.0561503,.106294,.601944,.989991,-.056866,.104896,.630855,.990392,-.0572914,.103336,.658925,.990374,-.0586224,.10189,.686661,.990747,-.0584764,.099783,.714548,.991041,-.0582662,.0974309,.74186,.991236,-.0584118,.0951678,.768422,.991585,-.0573055,.0921581,.794817,.991984,-.0564241,.0891167,.820336,.9921,-.0553608,.085805,.84493,.992749,-.0533816,.0820354,.868961,.99288,-.0518661,.0782181,.891931,.993511,-.0492492,.0738935,.914186,.993617,-.0471956,.0696402,.93532,.99411,-.044216,.0649659,.95543,.994595,-.0416654,.0603177,.974685,.994976,-.0384314,.0553493,.992807,.995579,-.0353491,.0503942,1.00996,.996069,-.0319787,.0452123,1.02606,.996718,-.028472,.0400112,1.04114,.997173,-.0250789,.0349456,1.05517,.997818,-.0213326,.029653,1.0683,.998318,-.0178509,.024549,1.0805,.998853,-.0141118,.0194197,1.09177,.999218,-.0105914,.0143869,1.1022,.999594,-.00693474,.00943517,1.11175,.99975,-.00340478,.00464051,1.12056,1.00001,109172e-9,-112821e-9,1.12853,.983383,-266524e-11,.133358,196534e-10,.981942,-671009e-10,.133162,494804e-9,.981946,-268405e-9,.133163,.00197923,.981944,-603912e-9,.133163,.00445326,.981941,-.00107362,.133162,.00791693,.981946,-.00167755,.133163,.0123703,.981944,-.00241569,.133162,.0178135,.981945,-.00328807,.133163,.0242466,.981945,-.00429472,.133162,.03167,.981955,-.00543573,.133164,.0400846,.981951,-.00671105,.133163,.0494901,.981968,-.00812092,.133165,.0598886,.981979,-.00966541,.133166,.0712811,.981996,-.0113446,.133168,.083669,.982014,-.0131585,.133169,.0970533,.982011,-.0151073,.133167,.111438,.982062,-.0171906,.133172,.126826,.9821,-.0194067,.133175,.143215,.982149,-.0217502,.133176,.160609,.982163,-.0241945,.133173,.178981,.982247,-.0265907,.133148,.198249,.982291,-.027916,.132974,.217795,.982396,-.0299663,.132868,.238042,.982456,-.0334544,.132934,.258901,.982499,-.0378636,.133137,.280639,.982617,-.0409274,.133085,.304604,.98274,-.0438523,.132985,.329376,.982944,-.0462288,.132728,.354697,.98308,-.0475995,.132228,.380102,.983391,-.0501901,.131924,.406256,.983514,-.0535899,.131737,.432735,.98373,-.0571858,.131567,.459359,.984056,-.0592353,.130932,.486637,.984234,-.0610488,.130092,.51509,.984748,-.0630758,.12923,.543461,.985073,-.0647398,.128174,.571376,.985195,-.0671941,.127133,.599414,.985734,-.0681345,.125576,.628134,.986241,-.0686089,.123639,.656399,.986356,-.0698511,.121834,.684258,.986894,-.0700931,.119454,.711818,.987382,-.0698321,.116718,.739511,.988109,-.0693975,.113699,.766267,.988363,-.0689584,.110454,.792456,.989112,-.0672353,.106602,.81813,.989241,-.0662034,.10267,.842889,.990333,-.0638938,.0981381,.867204,.990591,-.0618534,.0935388,.89038,.991106,-.0593117,.088553,.912576,.991919,-.0562676,.0832187,.934118,.992111,-.0534085,.0778302,.954254,.992997,-.0495459,.0720453,.973722,.993317,-.0463707,.0663458,.991949,.994133,-.0421245,.0601883,1.00936,.994705,-.0384977,.0542501,1.02559,.995495,-.0340956,.0479862,1.04083,.996206,-.030105,.041887,1.05497,.996971,-.0256095,.0355355,1.06824,.997796,-.0213932,.0293655,1.08056,.998272,-.0169612,.0232926,1.09182,.998857,-.0126756,.0172786,1.10219,.99939,-.00832486,.0113156,1.11192,.999752,-.00410826,.00557892,1.12075,1,150957e-9,-119101e-9,1.12885,.975169,-309397e-11,.154669,195073e-10,.975439,-779608e-10,.154712,491534e-9,.975464,-311847e-9,.154716,.00196617,.975464,-701656e-9,.154716,.00442387,.975462,-.0012474,.154715,.0078647,.975461,-.00194906,.154715,.0122886,.975464,-.00280667,.154715,.0176959,.975468,-.00382025,.154716,.0240867,.975471,-.00498985,.154716,.0314612,.975472,-.00631541,.154717,.0398199,.975486,-.00779719,.154718,.0491639,.975489,-.00943505,.154718,.0594932,.975509,-.0112295,.154721,.0708113,.97554,-.0131802,.154724,.0831176,.975557,-.0152876,.154726,.096415,.975585,-.0175512,.154728,.110705,.975605,-.0199713,.154729,.125992,.975645,-.0225447,.154729,.142272,.975711,-.0252649,.154735,.159549,.975788,-.0280986,.154736,.177805,.975872,-.0308232,.154704,.196911,.975968,-.0324841,.154525,.216324,.976063,-.0351281,.154432,.236628,.976157,-.0388618,.15446,.257539,.976204,-.0437704,.154665,.278975,.976358,-.047514,.154652,.302606,.976571,-.0508638,.154535,.327204,.976725,-.0534995,.154221,.352276,.977013,-.0555547,.153737,.377696,.977294,-.0586728,.153403,.403855,.977602,-.0622715,.15312,.430333,.977932,-.0658166,.152755,.456855,.978241,-.0689877,.152233,.483668,.978602,-.0712805,.15132,.512097,.979234,-.0732775,.150235,.540455,.97977,-.075163,.148978,.568486,.979995,-.0778026,.147755,.596524,.98078,-.0791854,.146019,.624825,.981628,-.0799666,.143906,.653403,.982067,-.0808532,.141561,.681445,.98271,-.0816024,.139025,.708918,.983734,-.0812511,.135764,.736594,.98431,-.0806201,.132152,.763576,.985071,-.0801605,.12846,.789797,.98618,-.0784208,.124084,.815804,.986886,-.0766643,.1193,.840869,.987485,-.0747744,.114236,.864952,.988431,-.0716701,.108654,.888431,.988886,-.0691609,.102994,.910963,.990024,-.0654048,.0967278,.932629,.990401,-.0619765,.090384,.95313,.991093,-.0579296,.0837885,.972587,.992018,-.0536576,.0770171,.991184,.992536,-.0493719,.0701486,1.00863,.993421,-.0444813,.062953,1.02494,.993928,-.040008,.0560455,1.04017,.994994,-.0347982,.04856,1.05463,.995866,-.0301017,.0416152,1.06807,.996916,-.0248225,.0342597,1.08039,.997766,-.0199229,.0271668,1.09177,.998479,-.0147422,.0201387,1.10235,.99921,-.00980173,.0131944,1.11206,.999652,-.0047426,.00640712,1.12104,.999998,891673e-10,-10379e-8,1.12906,.967868,-351885e-11,.175947,193569e-10,.968001,-886733e-10,.175972,487782e-9,.96801,-354697e-9,.175973,.00195115,.968012,-798063e-9,.175974,.00439006,.968011,-.00141879,.175973,.00780461,.968011,-.00221686,.175973,.0121948,.968016,-.00319231,.175974,.0175607,.968019,-.00434515,.175974,.0239027,.968018,-.00567538,.175974,.0312208,.968033,-.00718308,.175977,.0395158,.968049,-.00886836,.175979,.0487885,.968047,-.0107312,.175978,.0590394,.968072,-.0127719,.175981,.0702705,.968108,-.0149905,.175986,.0824836,.968112,-.0173866,.175985,.0956783,.968173,-.0199611,.175993,.109862,.96827,-.0227128,.176008,.125033,.968292,-.025639,.17601,.141193,.968339,-.0287299,.176007,.158336,.968389,-.0319399,.176001,.176441,.968501,-.034941,.175962,.195359,.968646,-.0370812,.175793,.214686,.968789,-.0402329,.175708,.234973,.96886,-.0442601,.1757,.255871,.969013,-.049398,.175876,.277238,.969242,-.0539932,.17594,.300326,.969419,-.0577299,.175781,.324702,.969763,-.0605643,.175432,.349527,.970093,-.0634488,.174992,.374976,.970361,-.0670589,.174611,.401097,.970825,-.0708246,.174226,.427496,.971214,-.0742871,.173684,.453858,.971622,-.0782608,.173186,.480637,.972175,-.0813151,.172288,.508655,.972944,-.0832678,.170979,.536973,.973595,-.0855964,.169573,.565138,.974345,-.0882163,.168152,.593222,.975233,-.0901671,.166314,.621201,.976239,-.0912111,.163931,.649919,.977289,-.0916959,.161106,.678011,.978076,-.0927061,.158272,.705717,.979533,-.0925562,.15475,.733228,.980335,-.0918159,.150638,.760454,.981808,-.0908508,.146201,.786918,.983061,-.0896172,.141386,.812953,.984148,-.0871588,.135837,.838281,.985047,-.0850624,.130135,.862594,.986219,-.0818541,.123882,.88633,.987043,-.0784523,.117126,.908952,.988107,-.0749601,.110341,.930744,.988955,-.0703548,.102885,.951728,.989426,-.0662798,.0954167,.971166,.990421,-.0610834,.0876331,.989984,.991032,-.0562936,.0797785,1.00765,.992041,-.0508154,.0718166,1.02434,.992794,-.0454045,.0637125,1.03976,.993691,-.0398194,.0555338,1.05418,.994778,-.0341482,.0473388,1.06772,.995915,-.028428,.0391016,1.08028,.997109,-.022642,.0309953,1.09185,.998095,-.0168738,.0230288,1.10247,.998985,-.0111274,.0150722,1.11229,.999581,-.00543881,.00740605,1.12131,1.00003,162239e-9,-105549e-9,1.12946,.959505,-393734e-11,.196876,191893e-10,.959599,-992157e-10,.196895,483544e-9,.959641,-396868e-9,.196903,.0019342,.959599,-892948e-9,.196895,.00435193,.959603,-.00158747,.196896,.0077368,.959604,-.00248042,.196896,.0120888,.959605,-.00357184,.196896,.0174082,.959605,-.00486169,.196896,.0236949,.959613,-.00635008,.196897,.0309497,.959619,-.00803696,.196898,.0391725,.959636,-.00992255,.196901,.0483649,.959634,-.0120067,.1969,.0585266,.959675,-.0142898,.196906,.0696609,.959712,-.0167717,.196911,.0817678,.959752,-.0194524,.196918,.0948494,.959807,-.0223321,.196925,.10891,.959828,-.0254091,.196924,.123947,.959906,-.0286815,.196934,.139968,.960005,-.0321371,.196944,.156968,.960071,-.0357114,.196936,.17491,.960237,-.0389064,.196882,.193597,.960367,-.041623,.196731,.21285,.960562,-.0452655,.196654,.233075,.960735,-.0496207,.196643,.253941,.960913,-.0549379,.196774,.275278,.961121,-.0603414,.196893,.297733,.96139,-.0644244,.196717,.321877,.961818,-.067556,.196314,.346476,.962175,-.0712709,.195917,.371907,.96255,-.0752848,.1955,.397916,.963164,-.0792073,.195026,.424229,.963782,-.0828225,.194424,.450637,.964306,-.0873119,.193831,.477288,.964923,-.0911051,.192973,.504716,.966048,-.093251,.19151,.533053,.967024,-.0958983,.190013,.561366,.968038,-.09835,.188253,.589464,.969152,-.100754,.186257,.617433,.970557,-.102239,.183775,.645801,.972104,-.102767,.180645,.674278,.973203,-.103492,.177242,.702004,.975123,-.103793,.17345,.729529,.97641,-.102839,.168886,.756712,.978313,-.101687,.163892,.783801,.980036,-.100314,.158439,.809671,.981339,-.097836,.152211,.835402,.982794,-.0950006,.145679,.860081,.984123,-.0920994,.138949,.883757,.984918,-.0878641,.131283,.90685,.985999,-.083939,.123464,.928786,.987151,-.0791234,.115324,.94983,.987827,-.0739332,.106854,.96962,.988806,-.0688088,.0982691,.98861,.989588,-.0628962,.0893456,1.00667,.990438,-.0573146,.0805392,1.02344,.991506,-.0509433,.0713725,1.03933,.992492,-.0448724,.0623732,1.05378,.993663,-.0383497,.0530838,1.06747,.994956,-.0319593,.0439512,1.08007,.99634,-.025401,.0347803,1.09182,.99761,-.0189687,.0257954,1.1025,.99863,-.0124441,.0169893,1.11247,.99947,-.00614003,.00829498,1.12151,1.00008,216624e-9,-146107e-9,1.12993,.950129,-434955e-11,.217413,190081e-10,.950264,-10957e-8,.217444,47884e-8,.9503,-438299e-9,.217451,.00191543,.950246,-986124e-9,.21744,.00430951,.950246,-.00175311,.21744,.00766137,.950245,-.00273923,.21744,.011971,.950253,-.00394453,.217441,.0172385,.950258,-.00536897,.217442,.0234641,.950267,-.00701262,.217444,.030648,.950277,-.00887551,.217446,.038791,.950284,-.0109576,.217446,.0478931,.950312,-.0132591,.217451,.0579568,.950334,-.01578,.217454,.0689821,.950378,-.0185204,.217462,.0809714,.950417,-.0214803,.217467,.0939265,.950488,-.0246594,.217479,.10785,.950534,-.0280565,.217483,.122743,.950633,-.0316685,.217498,.138611,.950698,-.0354787,.217499,.155442,.950844,-.0394003,.217507,.173208,.950999,-.0426812,.217419,.191605,.951221,-.0461302,.217317,.21084,.951412,-.0502131,.217238,.230945,.951623,-.0549183,.21722,.251745,.951867,-.0604493,.217306,.273001,.952069,-.0665189,.217466,.294874,.952459,-.0709179,.217266,.318732,.952996,-.0746112,.216891,.34318,.953425,-.0789252,.216503,.36849,.953885,-.0833293,.216042,.394373,.954617,-.087371,.215469,.420505,.955429,-.0914054,.214802,.446907,.956068,-.0961671,.214146,.473522,.957094,-.10048,.213286,.50052,.958372,-.103248,.211796,.528715,.959654,-.106033,.21016,.557065,.961305,-.108384,.208149,.585286,.962785,-.111122,.206024,.613334,.964848,-.112981,.203442,.641334,.966498,-.113717,.19996,.669955,.968678,-.114121,.196105,.698094,.970489,-.114524,.191906,.725643,.972903,-.113792,.186963,.752856,.974701,-.112406,.181343,.780013,.976718,-.110685,.175185,.806268,.978905,-.108468,.168535,.832073,.980267,-.105061,.161106,.857149,.981967,-.101675,.153387,.881145,.983063,-.0974492,.145199,.904255,.984432,-.0925815,.136527,.926686,.985734,-.0877983,.127584,.947901,.986228,-.081884,.118125,.968111,.98719,-.0761208,.108594,.98719,.988228,-.0698196,.0989996,1.00559,.989046,-.0632739,.0890074,1.02246,.990242,-.056522,.0790832,1.03841,.991252,-.0495272,.0689182,1.05347,.992542,-.0425373,.0588592,1.06724,.994096,-.0353198,.0486833,1.08009,.995593,-.028235,.0385977,1.09177,.99711,-.0209511,.0286457,1.10274,.998263,-.0139289,.0188497,1.11262,.999254,-.0067359,.009208,1.12191,.999967,141846e-9,-657764e-10,1.13024,.935608,-474692e-11,.236466,187817e-10,.93996,-11971e-8,.237568,473646e-9,.939959,-478845e-9,.237567,.0018946,.939954,-.0010774,.237566,.00426284,.939956,-.00191538,.237566,.00757842,.939954,-.00299277,.237566,.0118413,.93996,-.00430961,.237567,.0170518,.939969,-.00586589,.237569,.02321,.939982,-.00766166,.237572,.0303164,.939987,-.00969686,.237572,.0383711,.939997,-.0119715,.237574,.0473751,.940031,-.0144858,.237581,.0573298,.940073,-.0172399,.237589,.0682366,.94012,-.0202335,.237598,.080097,.940162,-.0234663,.237604,.0929116,.940237,-.0269387,.237615,.106686,.940328,-.0306489,.237632,.121421,.940419,-.0345917,.237645,.137115,.940522,-.0387481,.237654,.153766,.940702,-.0429906,.237661,.17133,.940871,-.0465089,.237561,.189502,.941103,-.050531,.23748,.208616,.941369,-.0550657,.237423,.228595,.941641,-.0601337,.237399,.249287,.941903,-.0658804,.237443,.270467,.942224,-.0722674,.237597,.292024,.942633,-.0771788,.237419,.315272,.943172,-.0815623,.237068,.339579,.943691,-.0863973,.236682,.364717,.944382,-.0911536,.236213,.390435,.945392,-.0952967,.235562,.416425,.946185,-.0998948,.234832,.442772,.947212,-.104796,.234114,.469347,.948778,-.10928,.233222,.496162,.950149,-.113081,.231845,.523978,.951989,-.115893,.230005,.552295,.953921,-.11846,.227862,.580569,.955624,-.12115,.225439,.608698,.958234,-.123373,.222635,.636696,.960593,-.124519,.219093,.665208,.963201,-.124736,.214749,.693557,.965642,-.125012,.210059,.721334,.968765,-.124661,.204935,.748613,.971753,-.122996,.198661,.776224,.973751,-.120998,.191823,.802461,.976709,-.118583,.184359,.828399,.977956,-.115102,.176437,.853693,.979672,-.111077,.167681,.877962,.981816,-.10688,.158872,.901564,.98238,-.101469,.149398,.924057,.983964,-.0960013,.139436,.945751,.984933,-.0899626,.12943,.966272,.985694,-.0832973,.11894,.985741,.986822,-.0767082,.108349,1.00407,.987725,-.0693614,.0976026,1.02154,.98877,-.06211,.086652,1.03757,.990129,-.0544143,.0756182,1.05296,.991337,-.046744,.0645753,1.06683,.992978,-.0387931,.0534683,1.0798,.994676,-.030973,.0424137,1.09181,.99645,-.0230311,.0314035,1.10286,.997967,-.0152065,.0206869,1.11291,.99922,-.00744837,.010155,1.12237,1.00002,240209e-9,-752767e-10,1.13089,.922948,-515351e-11,.255626,186069e-10,.928785,-129623e-9,.257244,468009e-9,.928761,-51849e-8,.257237,.00187202,.928751,-.0011666,.257235,.00421204,.928751,-.00207395,.257234,.0074881,.928754,-.00324055,.257235,.0117002,.92876,-.00466639,.257236,.0168486,.928763,-.00635149,.257237,.0229334,.928774,-.00829584,.257239,.029955,.928791,-.0104995,.257243,.0379139,.928804,-.0129623,.257245,.0468108,.928847,-.0156846,.257255,.0566473,.92889,-.0186661,.257263,.0674246,.928924,-.0219067,.257268,.0791433,.928989,-.0254066,.257282,.0918076,.92909,-.0291651,.257301,.105419,.92918,-.0331801,.257316,.119978,.92929,-.0374469,.257332,.135491,.929453,-.041939,.257357,.151948,.929586,-.0464612,.257347,.169275,.929858,-.0503426,.257269,.187257,.930125,-.0548409,.257199,.206204,.930403,-.0598063,.257149,.22601,.930726,-.0652437,.257122,.246561,.931098,-.0712376,.257153,.267618,.931396,-.0777506,.257237,.288993,.931947,-.0832374,.257124,.311527,.932579,-.0883955,.25683,.335697,.933194,-.0937037,.256444,.360634,.934013,-.0987292,.255939,.386126,.935307,-.103215,.255282,.412018,.936374,-.108234,.254538,.438292,.93776,-.113234,.253728,.464805,.939599,-.118013,.25275,.491464,.941036,-.122661,.251404,.518751,.94337,-.125477,.249435,.547133,.945318,-.128374,.247113,.575456,.947995,-.130996,.244441,.60372,.950818,-.133438,.241352,.63174,.954378,-.135004,.237849,.659971,.957151,-.135313,.233188,.688478,.960743,-.13521,.228001,.716767,.964352,-.135007,.222249,.744349,.967273,-.133523,.21542,.771786,.969767,-.131155,.208039,.798639,.973195,-.128492,.200076,.824774,.975557,-.125094,.191451,.850222,.977692,-.120578,.18184,.874761,.98026,-.115882,.172102,.898497,.981394,-.110372,.161859,.921636,.982386,-.10415,.15108,.943467,.983783,-.0978128,.140407,.964045,.98422,-.0906171,.129058,.98398,.985447,-.0832921,.117614,1.00276,.986682,-.0754412,.10585,1.02047,.987326,-.0673885,.0940943,1.03678,.988707,-.0592565,.0822093,1.05218,.990185,-.050717,.070192,1.06652,.991866,-.0423486,.0582081,1.07965,.993897,-.0336118,.0460985,1.09188,.995841,-.0252178,.0342737,1.10307,.997605,-.0164893,.0224829,1.11324,.999037,-.00817112,.0110647,1.12262,1.00003,291686e-9,-168673e-9,1.13139,.915304,-552675e-11,.275999,183285e-10,.91668,-139285e-9,.276414,461914e-9,.916664,-55713e-8,.276409,.00184763,.916653,-.00125354,.276406,.00415715,.916651,-.00222851,.276405,.00739053,.916655,-.00348205,.276406,.0115478,.916653,-.00501414,.276405,.0166291,.916667,-.00682478,.276409,.0226346,.91668,-.00891398,.276412,.0295648,.91669,-.0112817,.276413,.0374199,.916727,-.013928,.276422,.0462016,.916759,-.0168528,.276429,.0559101,.916793,-.0200558,.276436,.0665466,.916849,-.0235373,.276448,.0781139,.916964,-.0272973,.276474,.0906156,.917047,-.0313344,.276491,.104051,.917152,-.0356465,.276511,.118424,.917286,-.0402271,.276533,.133736,.917469,-.0450408,.276564,.149978,.917686,-.0497872,.276563,.167057,.917953,-.0540937,.276493,.184846,.918228,-.0590709,.276437,.203614,.918572,-.0644277,.276398,.223212,.918918,-.0702326,.276362,.243584,.919356,-.076484,.276383,.264465,.919842,-.0830808,.276434,.285701,.920451,-.0892972,.276407,.307559,.921113,-.095016,.276128,.331501,.921881,-.100771,.275754,.356207,.923027,-.106029,.275254,.381477,.924364,-.111029,.274595,.40722,.925818,-.116345,.273841,.433385,.92746,-.121424,.272913,.459848,.929167,-.12657,.271837,.486493,.931426,-.131581,.270575,.513432,.934001,-.135038,.268512,.541502,.936296,-.138039,.266135,.569658,.939985,-.140687,.263271,.598375,.943516,-.143247,.260058,.626563,.94782,-.145135,.256138,.654711,.951023,-.145733,.251154,.683285,.955338,-.145554,.245562,.711831,.959629,-.145008,.239265,.739573,.963123,-.144003,.232064,.767027,.966742,-.141289,.224036,.794359,.969991,-.138247,.215305,.820361,.973403,-.134786,.206051,.846548,.975317,-.129966,.195914,.871541,.977647,-.12471,.185184,.895313,.980137,-.119086,.174161,.918398,.981031,-.112297,.162792,.940679,.982037,-.105372,.150952,.961991,.983164,-.097821,.138921,.981913,.983757,-.0897245,.126611,1.00109,.985036,-.0815974,.114228,1.01902,.986289,-.0727725,.101389,1.03604,.987329,-.0639323,.0886476,1.05149,.989193,-.0548109,.0756837,1.06619,.990716,-.045687,.0627581,1.07948,.992769,-.0364315,.0498337,1.09172,.99524,-.0271761,.0370305,1.1033,.997154,-.0179609,.0243959,1.11353,.998845,-.00878063,.0119567,1.12319,1.00002,259038e-9,-108146e-9,1.13177,.903945,-591681e-11,.295126,181226e-10,.903668,-148672e-9,.295037,455367e-9,.903677,-594683e-9,.29504,.00182145,.903673,-.00133805,.295039,.00409831,.903666,-.00237872,.295036,.00728584,.903668,-.00371676,.295037,.0113842,.903679,-.00535212,.29504,.0163936,.903684,-.00728479,.295041,.0223141,.903698,-.00951473,.295044,.0291462,.903718,-.0120419,.295049,.0368904,.903754,-.0148664,.295058,.0455477,.903801,-.017988,.29507,.0551194,.903851,-.0214064,.295082,.0656058,.903921,-.0251219,.295097,.0770109,.904002,-.0291337,.295116,.0893354,.904111,-.033441,.29514,.102583,.904246,-.0380415,.295169,.116755,.904408,-.0429258,.295202,.131853,.904637,-.0480468,.295245,.147869,.904821,-.0529208,.295214,.164658,.905163,-.0577748,.295185,.182274,.905469,-.0631763,.295143,.200828,.905851,-.068917,.295112,.2202,.906322,-.0750861,.295104,.240372,.906761,-.0815855,.295086,.261082,.90735,-.0882138,.295095,.282123,.908087,-.095082,.295139,.303563,.908826,-.101488,.29492,.327028,.909832,-.107577,.294577,.351464,.911393,-.113033,.294115,.376497,.912804,-.118629,.293446,.402115,.914081,-.124232,.292581,.428111,.91637,-.129399,.29166,.454442,.91814,-.134892,.290422,.481024,.921179,-.140069,.289194,.507924,.924544,-.144431,.287421,.535557,.927995,-.147498,.284867,.563984,.931556,-.150197,.281722,.5923,.935777,-.152711,.278207,.620832,.940869,-.154836,.274148,.649069,.945994,-.155912,.269057,.677746,.949634,-.155641,.262799,.706293,.955032,-.154809,.256097,.734278,.95917,-.153678,.248618,.761751,.962931,-.151253,.239794,.789032,.966045,-.147625,.230281,.815422,.96971,-.143964,.220382,.841787,.972747,-.139464,.209846,.867446,.975545,-.133459,.198189,.892004,.978381,-.127424,.186362,.915458,.979935,-.120506,.173964,.937948,.980948,-.11282,.161429,.959732,.982234,-.104941,.148557,.980118,.982767,-.0962905,.135508,.999463,.983544,-.0873625,.122338,1.01756,.984965,-.0783447,.108669,1.03492,.986233,-.0684798,.0949911,1.05087,.987796,-.0590867,.0811386,1.0656,.989885,-.0489145,.0673099,1.0794,.991821,-.0391,.0535665,1.09174,.99448,-.029087,.0397529,1.10341,.996769,-.019114,.0261463,1.11383,.998641,-.00947007,.0128731,1.1237,.999978,446316e-9,-169093e-9,1.13253,.888362,-627064e-11,.312578,178215e-10,.889988,-157791e-9,.313148,448451e-9,.889825,-631076e-9,.313092,.00179356,.88984,-.00141994,.313097,.00403554,.889828,-.0025243,.313092,.00717429,.889831,-.00394421,.313093,.0112099,.889831,-.00567962,.313093,.0161425,.889844,-.00773051,.313096,.0219724,.889858,-.0100968,.3131,.0286999,.889882,-.0127786,.313106,.0363256,.889918,-.0157757,.313116,.0448509,.889967,-.0190878,.313129,.0542758,.89003,-.022715,.313145,.0646032,.890108,-.0266566,.313165,.0758339,.890218,-.0309131,.313193,.0879729,.890351,-.0354819,.313226,.101019,.89051,-.0403613,.313263,.114979,.890672,-.0455385,.313294,.129848,.890882,-.0509444,.313333,.145616,.891189,-.0559657,.313324,.162122,.891457,-.0613123,.313281,.179524,.891856,-.0671488,.313281,.197855,.892312,-.0732732,.313268,.216991,.892819,-.0797865,.313263,.236924,.893369,-.0865269,.313247,.257433,.894045,-.0931592,.313205,.278215,.894884,-.100532,.313276,.299467,.895832,-.107716,.313205,.322276,.897043,-.114099,.312873,.34642,.898515,-.119941,.312331,.371187,.900191,-.126044,.311731,.396656,.90188,-.131808,.310859,.422488,.904359,-.137289,.309857,.448744,.906923,-.142991,.308714,.475239,.910634,-.148253,.307465,.501983,.914502,-.153332,.305774,.529254,.919046,-.156646,.303156,.557709,.923194,-.159612,.299928,.586267,.928858,-.162027,.296245,.614925,.934464,-.164203,.291832,.643187,.939824,-.165602,.286565,.671601,.944582,-.165383,.280073,.700213,.949257,-.164439,.272891,.728432,.954389,-.162953,.264771,.756082,.958595,-.161007,.255927,.78369,.962138,-.157243,.245769,.810769,.966979,-.152872,.235127,.836999,.969566,-.148209,.22347,.862684,.972372,-.142211,.211147,.887847,.975916,-.135458,.198606,.911843,.978026,-.128398,.185498,.934795,.979686,-.120313,.17171,.956787,.980748,-.11166,.158159,.978046,.981622,-.103035,.144399,.997693,.982356,-.0930328,.13001,1.01642,.983308,-.0834627,.115778,1.03366,.985037,-.0732249,.101327,1.05014,.986493,-.0628145,.086554,1.06507,.988484,-.0526556,.0720413,1.07907,.991051,-.0415744,.0571151,1.09189,.993523,-.0314275,.0426643,1.10369,.99628,-.0203603,.0279325,1.11423,.998344,-.0102446,.0138182,1.12421,.999997,42612e-8,-193628e-9,1.1333,.871555,-660007e-11,.329176,174749e-10,.875255,-166579e-9,.330571,441051e-9,.875644,-666394e-9,.330718,.00176441,.875159,-.00149903,.330536,.00396899,.87516,-.00266493,.330536,.007056,.875158,-.00416393,.330535,.0110251,.87516,-.00599598,.330535,.0158764,.875163,-.00816108,.330536,.0216101,.875174,-.0106591,.330538,.0282266,.875199,-.0134899,.330545,.0357266,.875257,-.0166538,.330563,.0441117,.875304,-.0201501,.330575,.0533821,.875373,-.0239785,.330595,.0635395,.875464,-.0281389,.330619,.0745872,.875565,-.0326301,.330645,.0865255,.875691,-.0374516,.330676,.0993599,.875897,-.0425993,.330733,.113093,.876091,-.0480576,.330776,.127722,.876353,-.0537216,.330826,.143227,.876649,-.0589807,.330809,.159462,.877034,-.0647865,.330819,.176642,.877443,-.0709789,.330817,.194702,.877956,-.0774782,.330832,.213577,.878499,-.0843175,.330822,.233246,.879144,-.0912714,.330804,.253512,.879982,-.0980824,.330766,.274137,.88097,-.105823,.330864,.295209,.882051,-.113671,.330896,.317226,.883397,-.120303,.330545,.341068,.884987,-.12667,.330068,.365613,.886789,-.133118,.329418,.390807,.889311,-.139024,.328683,.416494,.891995,-.144971,.327729,.442618,.895106,-.150747,.326521,.469131,.899527,-.156283,.325229,.495921,.90504,-.161707,.32378,.523162,.909875,-.165661,.32122,.55092,.91561,-.168755,.317942,.579928,.921225,-.171193,.313983,.608539,.927308,-.17319,.309636,.636854,.933077,-.174819,.304262,.66523,.938766,-.175002,.297563,.693609,.943667,-.173946,.289613,.722157,.949033,-.172221,.281227,.750021,.953765,-.169869,.271545,.777466,.95804,-.166578,.261034,.804853,.962302,-.161761,.249434,.831569,.966544,-.156636,.237484,.857779,.969372,-.150784,.224395,.883051,.972486,-.143672,.210786,.907864,.975853,-.135772,.196556,.931223,.977975,-.127942,.182307,.954061,.979122,-.118347,.167607,.97531,.980719,-.109112,.152739,.995666,.981223,-.0991789,.137932,1.01475,.98216,-.0883553,.122692,1.03253,.983379,-.0780825,.107493,1.04917,.985434,-.0665646,.0917791,1.06464,.987332,-.0557714,.0764949,1.07896,.990004,-.0442805,.060721,1.09199,.992975,-.0331676,.0452284,1.10393,.995811,-.0219547,.0297934,1.11476,.9982,-.0107613,.0146415,1.12484,1.00002,248678e-9,-14555e-8,1.13413,.859519,-693595e-11,.347264,171673e-10,.859843,-17503e-8,.347394,433219e-9,.859656,-700076e-9,.347319,.00173277,.859671,-.00157517,.347325,.00389875,.859669,-.00280028,.347324,.00693112,.85967,-.0043754,.347324,.01083,.859665,-.00630049,.347321,.0155954,.859685,-.0085755,.347328,.0212278,.859694,-.0112003,.347329,.0277273,.859718,-.0141747,.347336,.0350946,.85976,-.0174988,.347348,.0433314,.85982,-.0211722,.347366,.0524384,.859892,-.0251941,.347387,.0624168,.860006,-.0295649,.347422,.0732708,.860122,-.0342825,.347453,.0849999,.860282,-.0393462,.347499,.0976102,.860482,-.0447513,.347554,.111104,.860719,-.0504775,.347614,.125479,.860998,-.0563577,.347666,.140703,.861322,-.0619473,.347662,.156681,.861724,-.0681277,.347684,.173597,.862198,-.0746567,.347709,.191371,.862733,-.0815234,.347727,.209976,.863371,-.0886643,.347744,.229351,.86414,-.0957908,.347734,.24934,.865138,-.102912,.34772,.269797,.866182,-.110924,.3478,.290654,.867436,-.119223,.347911,.312074,.869087,-.126197,.347649,.335438,.870859,-.133145,.347222,.359732,.872997,-.139869,.346645,.38467,.875939,-.146089,.345935,.41019,.879012,-.152334,.345012,.436218,.883353,-.15821,.343924,.462641,.888362,-.164097,.342636,.489449,.895026,-.169528,.341351,.516629,.900753,-.174408,.339115,.544109,.906814,-.17751,.335809,.572857,.912855,-.180101,.331597,.601554,.919438,-.182116,.32698,.630198,.925962,-.183494,.321449,.658404,.931734,-.184159,.314595,.686625,.93762,-.18304,.306462,.71531,.943858,-.181323,.297514,.744272,.948662,-.178683,.287447,.771462,.953299,-.175379,.276166,.798593,.957346,-.170395,.263758,.8256,.962565,-.165042,.251019,.852575,.966075,-.158655,.237011,.878316,.969048,-.151707,.222518,.90329,.972423,-.143271,.207848,.927745,.975833,-.134824,.192463,.950859,.977629,-.125444,.1768,.972947,.978995,-.114949,.161033,.993263,.980533,-.104936,.145523,1.01337,.980745,-.0935577,.129799,1.03128,.981814,-.0822956,.113486,1.04825,.983943,-.0710082,.0972925,1.06405,.986141,-.0587931,.0808138,1.0785,.988878,-.0472755,.0644915,1.09204,.992132,-.0349128,.0478128,1.10413,.9953,-.0232407,.031621,1.11527,.998117,-.0112713,.0154935,1.12551,1.00003,339743e-9,-195763e-9,1.13504,.845441,-729126e-11,.364305,169208e-10,.843588,-183164e-9,.363506,425067e-9,.843412,-73253e-8,.36343,.00169999,.843401,-.00164818,.363426,.00382495,.843399,-.00293008,.363425,.00679993,.843401,-.00457822,.363425,.010625,.843394,-.00659249,.363421,.0153002,.843398,-.00897282,.363421,.0208258,.843415,-.0117191,.363426,.0272024,.843438,-.0148312,.363432,.0344305,.843483,-.018309,.363447,.0425116,.84356,-.0221521,.363472,.0514471,.843646,-.0263597,.363499,.061238,.843743,-.0309315,.363527,.0718873,.84388,-.0358658,.363569,.0833969,.844079,-.0411624,.363631,.0957742,.844279,-.0468128,.363688,.109015,.844549,-.0527923,.363761,.123124,.844858,-.0588204,.363817,.138044,.84522,-.0647573,.36383,.153755,.845669,-.0713181,.363879,.170394,.846155,-.0781697,.363908,.187861,.846789,-.0853913,.363969,.206176,.847502,-.0928086,.363999,.225244,.8484,-.10005,.363997,.244926,.849461,-.107615,.364008,.265188,.850562,-.115814,.364055,.28587,.851962,-.124334,.364179,.306926,.854326,-.131995,.364233,.329605,.856295,-.139338,.363856,.35359,.858857,-.146346,.363347,.37831,.862428,-.152994,.362807,.403722,.866203,-.159463,.361963,.429537,.871629,-.165623,.36112,.456,.877365,-.171649,.359917,.482773,.883744,-.177151,.35848,.509705,.890693,-.182381,.356523,.537215,.897278,-.186076,.3533,.565493,.903958,-.188602,.349095,.594293,.910908,-.190755,.344215,.623165,.918117,-.192063,.338606,.651573,.924644,-.192758,.331544,.679869,.931054,-.192238,.323163,.708668,.937303,-.190035,.313529,.737201,.943387,-.187162,.303152,.764977,.948494,-.183876,.29146,.792683,.952546,-.178901,.277917,.819228,.958077,-.173173,.264753,.846559,.962462,-.16645,.25002,.872962,.966569,-.159452,.234873,.898729,.969108,-.15074,.218752,.923126,.973072,-.141523,.202673,.947278,.975452,-.132075,.186326,.969938,.977784,-.121257,.169396,.991325,.97899,-.110182,.153044,1.01123,.979777,-.0989634,.136485,1.0299,.980865,-.0865894,.119343,1.04727,.982432,-.0746115,.102452,1.06341,.984935,-.0621822,.0852423,1.07834,.987776,-.0495694,.0678546,1.092,.99103,-.0372386,.0506917,1.1043,.99474,-.0244353,.0333316,1.11576,.997768,-.0121448,.0164348,1.12617,1.00003,31774e-8,-169504e-9,1.13598,.825551,-756799e-11,.378425,165099e-10,.82664,-190922e-9,.378923,416504e-9,.826323,-763495e-9,.378779,.0016656,.826359,-.00171789,.378795,.00374768,.82636,-.00305402,.378795,.00666259,.826368,-.00477185,.378798,.0104104,.826364,-.00687131,.378795,.0149912,.826368,-.00935232,.378795,.0204054,.826376,-.0122146,.378797,.0266532,.826399,-.0154581,.378803,.0337355,.82646,-.0190825,.378824,.0416537,.826525,-.0230873,.378846,.0504091,.826614,-.0274719,.378876,.0600032,.82674,-.0322355,.378917,.0704393,.826888,-.0373766,.378964,.0817195,.827078,-.0428936,.379024,.0938492,.827318,-.0487778,.379099,.106828,.82764,-.0549935,.379199,.120659,.827926,-.0611058,.379227,.13526,.828325,-.0675054,.379275,.150713,.828801,-.0743455,.379332,.167034,.8294,-.0815523,.379415,.184209,.830094,-.0890779,.379495,.202203,.8309,-.096736,.379555,.220945,.831943,-.104135,.379577,.240306,.833037,-.112106,.379604,.260317,.834278,-.120554,.379668,.2808,.836192,-.129128,.3799,.301654,.838671,-.137541,.380109,.323502,.840939,-.14523,.379809,.347176,.844575,-.15248,.379593,.371706,.848379,-.159607,.37909,.39688,.853616,-.166267,.378617,.422702,.858921,-.172698,.377746,.448919,.865324,-.178823,.376749,.475661,.872207,-.184542,.375363,.502599,.880018,-.189836,.373657,.529914,.88694,-.194294,.370673,.557683,.894779,-.197022,.36662,.586848,.902242,-.199108,.36138,.615831,.909914,-.200398,.355434,.644478,.917088,-.20094,.348173,.672905,.923888,-.200671,.339482,.701327,.930495,-.198773,.32956,.730101,.937247,-.195394,.318363,.758383,.943108,-.191956,.306323,.786539,.948296,-.187227,.292576,.813637,.953472,-.181165,.278234,.840793,.958485,-.174119,.263054,.867712,.962714,-.166564,.246756,.893635,.966185,-.158181,.229945,.919028,.970146,-.148275,.212633,.943413,.973491,-.138157,.195229,.966627,.975741,-.127574,.178048,.988817,.977238,-.11554,.160312,1.00924,.978411,-.10364,.142857,1.02845,.979811,-.0913122,.125317,1.04648,.98116,-.0782558,.107627,1.06284,.983543,-.0655957,.0895862,1.07798,.986789,-.0520411,.0713756,1.092,.990292,-.0389727,.053228,1.10484,.994187,-.025808,.0351945,1.11642,.997499,-.0126071,.0173198,1.12703,.999999,275604e-9,-148602e-9,1.13674,.81075,-78735e-10,.394456,161829e-10,.808692,-198293e-9,.393453,407564e-9,.80846,-792877e-9,.39334,.00162965,.808595,-.00178416,.393407,.00366711,.808597,-.00317182,.393408,.00651934,.808598,-.00495589,.393408,.0101866,.808591,-.00713627,.393403,.0146689,.808592,-.00971285,.393402,.0199667,.80861,-.0126855,.393407,.0260803,.808633,-.0160538,.393413,.0330107,.80868,-.0198175,.393429,.0407589,.808748,-.0239758,.393453,.0493264,.808854,-.0285286,.39349,.0587161,.808992,-.0334748,.39354,.0689304,.809141,-.0388116,.393588,.0799707,.809352,-.0445375,.39366,.0918432,.809608,-.0506427,.393742,.104549,.809915,-.0570708,.393834,.118085,.810253,-.0633526,.393885,.132377,.810687,-.0700966,.393953,.147537,.811233,-.0772274,.394047,.163543,.811865,-.0847629,.394148,.180394,.812648,-.0925663,.394265,.198051,.813583,-.100416,.394363,.216443,.814683,-.108119,.394402,.235502,.815948,-.11644,.394489,.255242,.817278,-.125036,.394542,.275441,.819605,-.133655,.39486,.296094,.822256,-.142682,.395248,.317309,.825349,-.150756,.395241,.340516,.829605,-.158392,.395285,.364819,.83391,-.165801,.394922,.389736,.839808,-.172677,.394691,.415409,.845708,-.179448,.394006,.441546,.853025,-.185746,.393279,.46832,.859666,-.191684,.391655,.495302,.86789,-.197146,.390068,.52262,.875845,-.201904,.38727,.550336,.882634,-.205023,.382688,.578825,.891076,-.207098,.377543,.608103,.900589,-.208474,.371752,.63723,.90791,-.209068,.364016,.665769,.915971,-.208655,.355593,.694428,.923455,-.20729,.345439,.723224,.931514,-.203821,.334099,.751925,.937885,-.19986,.321069,.780249,.943136,-.194993,.306571,.8077,.948818,-.189132,.291556,.83497,.954433,-.181617,.275745,.86188,.959078,-.173595,.258695,.888562,.962705,-.164855,.240825,.914008,.966753,-.155129,.22268,.939145,.970704,-.144241,.204542,.963393,.973367,-.133188,.185927,.985983,.975984,-.121146,.167743,1.00704,.976994,-.108366,.149218,1.02715,.978485,-.0956746,.13131,1.0455,.980074,-.0820733,.112513,1.06221,.98225,-.0684061,.0938323,1.07782,.98553,-.0549503,.0749508,1.09199,.989529,-.0407857,.055848,1.10508,.993536,-.0271978,.0368581,1.11684,.997247,-.0132716,.0181845,1.12789,1,431817e-9,-198809e-9,1.13792,.785886,-812608e-11,.405036,157669e-10,.790388,-205278e-9,.407355,398297e-9,.790145,-820824e-9,.407231,.00159263,.790135,-.00184681,.407226,.00358336,.790119,-.00328316,.407218,.00637039,.790126,-.00512988,.40722,.0099539,.79013,-.00738684,.407221,.0143339,.790135,-.0100538,.407221,.0195107,.790134,-.0131306,.407217,.0254848,.79016,-.0166169,.407224,.0322572,.790197,-.020512,.407236,.0398284,.790273,-.0248157,.407263,.0482014,.790381,-.029527,.407304,.0573777,.790521,-.0346446,.407355,.0673602,.790704,-.0401665,.40742,.0781522,.790925,-.0460896,.407499,.0897582,.791195,-.0524017,.407589,.10218,.791522,-.0590121,.407691,.11541,.791878,-.0654876,.407748,.12939,.792361,-.0725207,.407849,.144237,.792942,-.0799844,.407963,.159924,.79362,-.0877896,.408087,.176425,.794529,-.0958451,.408259,.193733,.795521,-.103827,.408362,.211756,.796778,-.111937,.408482,.230524,.798027,-.120521,.408547,.249967,.799813,-.129242,.408721,.269926,.802387,-.138048,.409148,.290338,.805279,-.147301,.409641,.311193,.809251,-.155895,.410154,.333611,.813733,-.163942,.410297,.357615,.819081,-.171666,.410373,.382339,.825427,-.178905,.410348,.407828,.83172,-.185812,.409486,.434034,.83877,-.192318,.408776,.460493,.845817,-.198249,.407176,.487346,.854664,-.204034,.405719,.514832,.863495,-.208908,.403282,.542401,.871883,-.212765,.399293,.570683,.88065,-.214911,.393803,.599947,.89004,-.216214,.387536,.62932,.898476,-.216745,.379846,.658319,.906738,-.216387,.370625,.687138,.914844,-.215053,.360139,.71601,.923877,-.212007,.348849,.745124,.931925,-.207481,.335639,.773366,.938054,-.202418,.320798,.801636,.943895,-.196507,.304772,.829055,.949468,-.189009,.288033,.856097,.955152,-.180539,.270532,.88301,.959403,-.171437,.251639,.909296,.963309,-.161661,.232563,.934868,.967399,-.150425,.213231,.959662,.972009,-.138659,.194247,.98302,.97433,-.126595,.174718,1.00517,.975823,-.113205,.155518,1.02566,.976371,-.0996096,.136709,1.04418,.978705,-.0860754,.117571,1.06146,.981477,-.0714438,.0980046,1.07777,.984263,-.0572304,.0782181,1.09214,.988423,-.0428875,.0584052,1.10553,.993,-.0282442,.038522,1.11758,.99704,-.0140183,.0190148,1.12864,.999913,369494e-9,-145203e-9,1.13901,.777662,-84153e-10,.423844,154403e-10,.770458,-211714e-9,.419915,38845e-8,.770716,-846888e-9,.420055,.00155386,.770982,-.00190567,.420202,.00349653,.770981,-.00338782,.420201,.00621606,.77098,-.00529338,.4202,.00971274,.770983,-.00762223,.4202,.0139867,.770985,-.0103741,.420198,.0190381,.770996,-.0135489,.4202,.0248677,.771029,-.0171461,.420212,.0314764,.771052,-.0211647,.420215,.0388648,.771131,-.0256048,.420245,.047036,.771235,-.0304647,.420284,.0559911,.771383,-.0357436,.420341,.0657346,.771591,-.0414392,.420423,.0762694,.771819,-.0475462,.420506,.0875984,.772123,-.0540506,.420617,.099727,.772464,-.060797,.42072,.112637,.772855,-.0675393,.420799,.126313,.773317,-.0748323,.420893,.140824,.773981,-.0825681,.421058,.15617,.774746,-.0906307,.421226,.172322,.77566,-.0988982,.421397,.189253,.776837,-.106994,.421569,.206912,.778097,-.115528,.421704,.225359,.779588,-.124317,.421849,.24447,.781574,-.133139,.422097,.264156,.784451,-.142179,.422615,.284318,.787682,-.15165,.423269,.304902,.792433,-.160771,.424396,.3265,.797359,-.169166,.424772,.35014,.803986,-.177149,.425475,.374768,.809504,-.184745,.424996,.399928,.815885,-.19173,.424247,.425796,.823513,-.198525,.423515,.452287,.832549,-.204709,.422787,.479321,.841653,-.210447,.421187,.506718,.850401,-.215501,.418519,.53432,.859854,-.219752,.414715,.56242,.869364,-.222305,.409462,.591558,.878837,-.223744,.402926,.621074,.888636,-.224065,.395043,.650538,.898132,-.223742,.38564,.679538,.907181,-.222308,.375378,.708674,.915621,-.219837,.363212,.737714,.9239,-.215233,.349313,.767014,.931644,-.209592,.334162,.795133,.938887,-.203644,.317943,.823228,.945282,-.196349,.300581,.850822,.950758,-.18742,.282195,.877594,.956146,-.177879,.262481,.904564,.960355,-.167643,.242487,.930741,.965256,-.156671,.222668,.955868,.968029,-.144123,.201907,.979869,.97251,-.131305,.18202,1.00291,.974925,-.118335,.161909,1.02392,.975402,-.103714,.142129,1.0433,.976987,-.089415,.122447,1.06089,.979677,-.0748858,.102248,1.07713,.983184,-.0596086,.0814851,1.09218,.987466,-.0447671,.0609484,1.10585,.992348,-.0295217,.0401835,1.11829,.996674,-.0143917,.0198163,1.12966,1.00003,321364e-9,-149983e-9,1.1402,.757901,-869074e-11,.436176,151011e-10,.751195,-217848e-9,.432317,378533e-9,.751178,-871373e-9,.432307,.0015141,.751195,-.00196061,.432317,.0034068,.751198,-.00348552,.432318,.00605659,.751195,-.00544599,.432315,.00946353,.751207,-.00784203,.43232,.013628,.751213,-.0106732,.43232,.0185499,.751221,-.0139393,.432319,.0242302,.751244,-.0176398,.432325,.0306694,.7513,-.0217743,.432348,.0378698,.751358,-.0263412,.432367,.0458321,.751458,-.0313396,.432404,.0545587,.751608,-.0367682,.432464,.0640543,.7518,-.0426246,.43254,.0743222,.752065,-.0489031,.432645,.0853668,.752376,-.0555828,.432762,.0971911,.752715,-.0623861,.432859,.109768,.753137,-.069415,.432958,.123126,.753676,-.0770039,.433099,.137308,.754345,-.084971,.433272,.15229,.755235,-.0932681,.433504,.168075,.756186,-.10171,.433693,.184625,.757363,-.110019,.433857,.201897,.75884,-.11887,.434102,.220014,.760467,-.127881,.434306,.238778,.762969,-.136766,.434751,.258172,.765823,-.14612,.43529,.278062,.769676,-.15566,.436236,.298437,.774909,-.165177,.437754,.319532,.77994,-.17402,.438343,.342505,.785757,-.182201,.438609,.366693,.792487,-.190104,.438762,.391668,.80038,-.197438,.438795,.417494,.808494,-.204365,.438226,.443933,.817695,-.210714,.437283,.470929,.828111,-.216651,.436087,.498569,.837901,-.221804,.433717,.526165,.847813,-.226318,.430133,.554155,.858314,-.229297,.425213,.582822,.868891,-.230999,.418576,.612847,.878941,-.231155,.410405,.642445,.888809,-.230935,.400544,.672024,.898089,-.229343,.389613,.701366,.908081,-.226886,.377197,.730763,.916819,-.222676,.363397,.759642,.924968,-.216835,.347437,.788775,.932906,-.210245,.32995,.817135,.940025,-.202992,.312262,.844912,.946101,-.19436,.293313,.872164,.952835,-.184125,.273638,.899443,.957347,-.173657,.252385,.926389,.961434,-.162204,.231038,.951947,.965522,-.14979,.209834,.976751,.969412,-.136307,.188821,1.00022,.973902,-.122527,.168013,1.02229,.974045,-.108213,.147634,1.04199,.975775,-.0927397,.12705,1.06019,.978383,-.0778212,.106309,1.07711,.98211,-.0621216,.0849279,1.09245,.986517,-.0463847,.0633519,1.10651,.991696,-.0309353,.0419698,1.11903,.996349,-.0150914,.0206272,1.13073,1.00003,442449e-9,-231396e-9,1.14146,.727498,-885074e-11,.441528,145832e-10,.730897,-223525e-9,.443589,368298e-9,.730796,-893996e-9,.443528,.00147303,.730805,-.00201149,.443533,.00331433,.730814,-.00357596,.443538,.00589222,.730815,-.00558734,.443538,.00920678,.730822,-.00804544,.44354,.0132582,.730836,-.0109501,.443545,.0180468,.730848,-.0143008,.443546,.0235732,.730871,-.0180969,.443552,.0298382,.730915,-.022338,.443567,.0368438,.730982,-.0270225,.443591,.044591,.731076,-.0321491,.443627,.0530831,.731245,-.0377166,.443699,.0623243,.73144,-.0437216,.443777,.0723181,.7317,-.0501576,.443881,.0830691,.732034,-.0569942,.444014,.0945809,.732388,-.0638756,.444113,.106825,.732853,-.071203,.444247,.119859,.733473,-.0790076,.444442,.13369,.734195,-.0871937,.444645,.148304,.735069,-.095696,.444877,.163702,.736169,-.10426,.445133,.179861,.73747,-.112853,.44537,.196778,.738991,-.12199,.445651,.214496,.740865,-.131153,.445958,.232913,.743637,-.140245,.446548,.251977,.746797,-.149722,.447246,.271551,.751517,-.159341,.448656,.291774,.756156,-.169106,.449866,.312455,.761519,-.178436,.450919,.334552,.768295,-.186904,.451776,.358491,.776613,-.195117,.452832,.383446,.783966,-.202695,.45249,.408945,.793542,-.20985,.452587,.435364,.803192,-.216403,.451852,.462336,.813892,-.22251,.450708,.48987,.824968,-.227676,.4486,.517697,.835859,-.232443,.445156,.545975,.846825,-.235775,.440351,.574483,.858085,-.237897,.433641,.604246,.868825,-.238074,.425354,.634101,.879638,-.237661,.415383,.664201,.889966,-.236186,.404136,.693918,.899479,-.233599,.390917,.723481,.908769,-.229737,.376352,.75258,.917966,-.223836,.360372,.781764,.926304,-.217067,.342551,.811139,.934626,-.209309,.324238,.839585,.941841,-.20071,.304484,.867044,.94789,-.190602,.283607,.894579,.954196,-.179253,.262205,.921743,.958383,-.167646,.239847,.948026,.963119,-.155073,.218078,.973296,.966941,-.141426,.195899,.998135,.970836,-.126849,.174121,1.02021,.973301,-.112296,.153052,1.04085,.97448,-.0964965,.131733,1.05946,.977045,-.080489,.10997,1.07693,.980751,-.064844,.0881657,1.09254,.985475,-.0481938,.0657987,1.10697,.991089,-.0319185,.0435215,1.12004,.996122,-.0158088,.0214779,1.13173,1.00001,372455e-9,-200295e-9,1.14291,.708622,-907597e-11,.45304,141962e-10,.711162,-228911e-9,.454662,358052e-9,.709812,-914446e-9,.453797,.00143034,.709865,-.00205819,.453834,.00321935,.709864,-.00365894,.453833,.00572331,.709855,-.00571692,.453826,.00894278,.709862,-.00823201,.453828,.012878,.709875,-.011204,.453832,.0175295,.709896,-.0146323,.453839,.0228978,.709925,-.0185163,.453847,.0289839,.709974,-.0228551,.453866,.0357894,.710045,-.0276473,.453892,.0433161,.710133,-.032891,.453924,.0515665,.710292,-.0385851,.453992,.0605458,.710485,-.0447254,.45407,.0702574,.710769,-.0513051,.454192,.0807077,.711106,-.0582733,.454329,.091896,.711516,-.0652866,.45446,.103814,.712071,-.0728426,.454653,.116508,.712676,-.0808307,.45484,.129968,.713476,-.0892216,.455096,.144206,.714377,-.0979047,.455346,.159212,.715579,-.106531,.455647,.174973,.716977,-.115492,.455961,.191504,.71862,-.124821,.456315,.208835,.72084,-.134079,.4568,.226869,.723786,-.143427,.457521,.245582,.727464,-.153061,.458475,.264957,.732771,-.162768,.460239,.284948,.736515,-.172627,.460899,.30522,.743519,-.182487,.463225,.326717,.750041,-.191295,.464027,.350113,.758589,-.199746,.465227,.374782,.767703,-.207584,.465877,.400226,.777484,-.214973,.465996,.426442,.788792,-.221796,.466019,.453688,.800194,-.228038,.465083,.481246,.811234,-.233346,.462506,.509086,.822859,-.238073,.459257,.537338,.835082,-.241764,.454863,.566108,.846332,-.244241,.448163,.595126,.858355,-.244736,.439709,.625574,.87034,-.244278,.429837,.65617,.881027,-.24255,.418002,.686029,.891007,-.239912,.404325,.716039,.900874,-.236133,.389222,.745518,.911072,-.230672,.373269,.775026,.920359,-.22356,.355083,.804521,.928604,-.215591,.335533,.834045,.937175,-.206503,.315278,.861612,.942825,-.196684,.293653,.889131,.949805,-.185116,.271503,.916853,.955535,-.172703,.248821,.943541,.959843,-.159978,.225591,.970132,.964393,-.146375,.202719,.994709,.968008,-.131269,.179928,1.0186,.971013,-.11569,.158007,1.03928,.973334,-.1003,.13624,1.05887,.975775,-.0833352,.1138,1.07652,.979579,-.0668981,.0913141,1.09297,.984323,-.0500902,.0683051,1.10734,.990351,-.0332377,.0451771,1.12084,.995823,-.0161491,.0221705,1.13296,1.0001,234083e-9,-108712e-9,1.14441,.683895,-924677e-11,.46015,137429e-10,.68833,-233383e-9,.463134,346865e-9,.688368,-933547e-9,.463159,.00138748,.688367,-.00210049,.463159,.00312187,.688369,-.00373415,.463159,.00555004,.688377,-.00583449,.463163,.00867216,.688386,-.00840128,.463166,.0124884,.688398,-.0114343,.463169,.0169993,.688418,-.0149329,.463175,.0222054,.688453,-.0188964,.463188,.028108,.688515,-.0233239,.463214,.0347085,.68857,-.0282136,.463231,.0420091,.688679,-.033564,.463276,.0500132,.688854,-.0393733,.463356,.0587255,.689038,-.0456354,.46343,.0681476,.689321,-.0523433,.463553,.0782897,.689662,-.059412,.463693,.0891501,.690188,-.0665736,.4639,.100735,.690755,-.0743106,.464107,.113074,.691405,-.0824722,.464329,.126161,.692198,-.0910484,.464585,.140007,.693196,-.0998778,.464893,.154612,.69454,-.108651,.465285,.169984,.695921,-.117855,.465596,.186106,.697749,-.12734,.466056,.203034,.700375,-.136714,.466771,.220703,.703395,-.146386,.467579,.239062,.707904,-.156096,.469067,.258188,.711673,-.165904,.469851,.277759,.717489,-.175812,.471815,.297935,.724051,-.185931,.47389,.318916,.731965,-.195238,.47587,.341591,.741151,-.204021,.477523,.366062,.751416,-.212113,.478881,.391396,.761848,-.21979,.479226,.417599,.771886,-.2267,.478495,.444401,.783998,-.232991,.477622,.472084,.796523,-.238645,.475833,.500193,.808851,-.243396,.472568,.52865,.821191,-.247226,.467857,.557362,.834261,-.250102,.461871,.586768,.846762,-.251056,.453543,.617085,.859867,-.250604,.443494,.647659,.871948,-.248783,.431711,.678119,.882967,-.245855,.417911,.708399,.892826,-.242168,.401993,.738256,.90332,-.237062,.385371,.767999,.913633,-.22997,.366837,.798191,.922774,-.221687,.346372,.827756,.931371,-.212345,.325682,.856425,.938929,-.20206,.303665,.884299,.944821,-.190981,.280786,.912023,.951792,-.178065,.2573,.939669,.957712,-.164634,.233448,.96655,.961912,-.150863,.209504,.992366,.966382,-.13577,.18597,1.01633,.969588,-.119593,.162905,1.03843,.971777,-.103203,.14053,1.05841,.97433,-.0865888,.117909,1.07632,.978686,-.0690829,.0944101,1.09326,.983281,-.0516568,.0705671,1.10796,.989562,-.034558,.0468592,1.12182,.995465,-.0167808,.0229846,1.1342,.999991,373016e-9,-235606e-9,1.1459,.662251,-939016e-11,.468575,132714e-10,.666634,-237624e-9,.471675,335842e-9,.666411,-950385e-9,.471516,.00134321,.666399,-.00213833,.471509,.00302221,.666386,-.0038014,.471499,.00537283,.666405,-.00593958,.471511,.00839533,.666406,-.00855253,.471508,.0120898,.666428,-.0116401,.471519,.0164569,.666444,-.0152015,.471522,.0214971,.66649,-.0192362,.471543,.027212,.666537,-.0237428,.471558,.033603,.666617,-.0287198,.471591,.0406728,.666718,-.0341647,.471631,.0484238,.666889,-.0400759,.47171,.0568621,.667104,-.0464479,.471805,.0659915,.667374,-.0532677,.471923,.0758178,.667772,-.0603805,.472098,.0863425,.668371,-.0677392,.472363,.0975917,.668971,-.0756028,.472596,.109567,.669696,-.0839293,.472869,.122272,.670481,-.0926683,.473126,.135718,.6715,-.1016,.473442,.149914,.672911,-.110566,.47389,.164882,.674512,-.119984,.474354,.180602,.67651,-.129574,.474922,.19711,.679292,-.139106,.475764,.214371,.682798,-.148993,.476886,.232405,.686955,-.158737,.478179,.251153,.691406,-.168754,.479432,.270436,.697438,-.178703,.481481,.290374,.704761,-.188955,.484143,.311044,.713599,-.198814,.487007,.333003,.723194,-.207869,.488962,.357144,.732601,-.216189,.489815,.382169,.744193,-.22398,.490888,.408227,.754907,-.231156,.490355,.434928,.767403,-.23747,.489548,.462599,.78107,-.243503,.488274,.490908,.793893,-.248114,.484843,.519421,.807296,-.25222,.4803,.548561,.820529,-.255265,.474097,.577772,.833716,-.256741,.466041,.607782,.848403,-.25637,.456547,.638807,.860755,-.254804,.443946,.670058,.874012,-.251834,.430852,.700749,.885619,-.247867,.414903,.731446,.896069,-.242634,.397276,.761191,.906266,-.236093,.378535,.791053,.916759,-.227543,.358038,.821298,.92523,-.21783,.335705,.850747,.93436,-.207534,.313797,.879258,.941631,-.195983,.289671,.907734,.947564,-.183567,.265319,.935206,.953681,-.169345,.240815,.962739,.960008,-.154909,.216119,.989227,.964145,-.140161,.192096,1.01465,.968171,-.123411,.167855,1.03737,.969859,-.106525,.144817,1.05767,.972666,-.0891023,.12149,1.0761,.977055,-.0718094,.0975306,1.09336,.982527,-.0534213,.0730217,1.10878,.989001,-.0355579,.0483366,1.12285,.99512,-.0176383,.023938,1.13548,1.00007,368831e-9,-211581e-9,1.14744,.651047,-960845e-11,.484101,12922e-9,.644145,-241347e-9,.478968,324578e-9,.64396,-965142e-9,.478831,.00129798,.64396,-.00217154,.47883,.00292046,.643968,-.00386049,.478835,.00519202,.643974,-.00603186,.478838,.0081128,.643977,-.0086854,.478836,.011683,.643982,-.0118207,.478834,.0159031,.644024,-.0154374,.478856,.0207743,.644059,-.0195343,.478868,.0262975,.644122,-.0241103,.478896,.0324747,.644207,-.0291638,.478933,.039309,.64432,-.0346919,.478981,.0468029,.644481,-.0406919,.479053,.0549614,.644722,-.047159,.479169,.0637909,.645013,-.0540748,.479302,.0732974,.645503,-.0612001,.479541,.0834898,.646117,-.0687303,.479829,.0943873,.646707,-.0767846,.480061,.105991,.647431,-.0852465,.480343,.11831,.64831,-.0940719,.48066,.131348,.649486,-.103056,.481083,.14514,.650864,-.112261,.481528,.159676,.652604,-.121852,.482102,.174979,.654825,-.131505,.482813,.191079,.657876,-.141189,.483876,.207927,.661339,-.151239,.48499,.225586,.665463,-.161091,.486279,.243947,.670542,-.171235,.487968,.262957,.677361,-.181347,.49053,.282781,.685672,-.191679,.493862,.303311,.694551,-.201781,.49699,.324607,.703753,-.211164,.498884,.347916,.713703,-.219675,.500086,.372628,.725911,-.227836,.501554,.398694,.73862,-.23533,.502193,.425529,.752118,-.241786,.501811,.453209,.76579,-.247865,.500185,.481381,.779568,-.252696,.497159,.51011,.793991,-.256802,.492765,.539322,.808182,-.259942,.486827,.569078,.821698,-.261703,.478386,.598818,.836009,-.262006,.468772,.629762,.849824,-.260333,.456352,.661366,.863888,-.257398,.442533,.69295,.876585,-.253264,.426573,.723608,.888665,-.248026,.408964,.754378,.899537,-.241487,.389677,.784761,.9094,-.233463,.368516,.814688,.920166,-.223397,.346624,.845009,.928899,-.21255,.322717,.874431,.937156,-.200869,.298698,.902922,.943861,-.188387,.273491,.931356,.949557,-.174341,.247866,.958854,.955862,-.158994,.222496,.986098,.961721,-.143664,.197522,1.01229,.965976,-.127412,.17302,1.03571,.968652,-.109798,.148954,1.05699,.971084,-.0916787,.125044,1.07587,.975584,-.0739634,.100577,1.09372,.98122,-.055322,.0753666,1.10948,.988253,-.0366825,.0498899,1.12394,.99482,-.0180389,.024611,1.13694,1.00001,229839e-9,-188283e-9,1.14919,.613867,-964198e-11,.479449,123452e-10,.621485,-244534e-9,.485399,313091e-9,.621429,-978202e-9,.485353,.00125245,.62112,-.00220004,.485114,.00281687,.621119,-.0039111,.485112,.00500783,.621122,-.00611091,.485112,.00782498,.621133,-.00879922,.485117,.0112687,.621152,-.0119756,.485125,.0153394,.621183,-.0156396,.485139,.0200382,.621227,-.0197898,.485158,.0253663,.621298,-.0244253,.485192,.0313261,.621388,-.0295441,.485233,.0379204,.621507,-.0351432,.485286,.0451523,.621693,-.0412198,.485378,.0530277,.621933,-.0477673,.485495,.0615522,.622232,-.0547574,.485635,.0707316,.622809,-.0619417,.485943,.0805883,.623407,-.069625,.486232,.0911267,.62406,-.077796,.486516,.102354,.624835,-.0863731,.486838,.114279,.625758,-.095251,.487188,.126902,.627043,-.104299,.487695,.140285,.628438,-.113724,.488163,.154397,.630325,-.123417,.488858,.169267,.632801,-.133137,.489754,.184941,.635784,-.143052,.490815,.20136,.639406,-.153132,.492048,.218643,.643872,-.163143,.49363,.236615,.6499,-.17333,.496009,.255449,.657201,-.183622,.498994,.275006,.666221,-.194019,.502888,.295354,.674419,-.204192,.505459,.316244,.683729,-.21406,.507771,.33849,.695584,-.222854,.510245,.363166,.708583,-.231315,.512293,.389071,.721233,-.238911,.512747,.415737,.735134,-.245657,.512482,.443331,.750179,-.251879,.511526,.471891,.765073,-.256911,.508935,.500892,.779794,-.261144,.504341,.530294,.794801,-.264316,.498515,.560144,.810339,-.266276,.491015,.590213,.824818,-.266981,.481126,.620865,.839375,-.265778,.468685,.652687,.853043,-.262748,.453925,.684759,.867335,-.258474,.437912,.716209,.88037,-.253187,.419648,.747508,.891711,-.246476,.39982,.77797,.902896,-.238735,.37879,.808586,.913601,-.22885,.355891,.838843,.923019,-.217656,.331773,.869014,.933432,-.205539,.307356,.898512,.939691,-.192595,.281321,.9269,.946938,-.178945,.255441,.955297,.952372,-.163587,.229013,.983231,.95909,-.147214,.203179,1.00971,.963675,-.13064,.17792,1.03438,.968247,-.113121,.152898,1.05625,.97001,-.0945824,.128712,1.07598,.974458,-.0755648,.103349,1.094,.980168,-.0571998,.0776731,1.1104,.987295,-.0377994,.0514445,1.12491,.994432,-.0186417,.025429,1.13851,.999975,542714e-9,-282356e-9,1.15108,.592656,-980249e-11,.486018,119532e-10,.598467,-247275e-9,.490781,301531e-9,.597934,-988317e-9,.490343,.00120517,.597903,-.00222366,.490319,.0027116,.597913,-.00395315,.490327,.00482077,.597919,-.00617653,.490329,.00753264,.597936,-.00889375,.490339,.0108478,.597956,-.0121043,.490347,.0147668,.597992,-.0158073,.490365,.0192905,.598032,-.0200017,.490382,.0244204,.598109,-.0246865,.49042,.0301593,.598215,-.0298594,.490474,.03651,.59833,-.0355167,.490524,.0434757,.598525,-.0416559,.490624,.0510629,.598778,-.0482692,.490753,.0592781,.599135,-.0553114,.49094,.0681304,.599802,-.062542,.491328,.0776467,.600361,-.0703638,.491598,.0878184,.60101,-.0786256,.491882,.0986573,.601811,-.0872962,.492232,.11018,.602861,-.0962284,.492684,.1224,.604167,-.10538,.493213,.135354,.605693,-.114896,.493799,.149034,.607682,-.124654,.494576,.163469,.610672,-.13456,.4959,.178747,.613313,-.144581,.496713,.194723,.617603,-.154703,.498499,.211617,.622174,-.16489,.500188,.229183,.628855,-.175164,.503072,.247786,.636963,-.185565,.506798,.267116,.644866,-.195911,.509719,.28702,.653741,-.206104,.512776,.307763,.664942,-.216447,.516812,.329631,.67633,-.22552,.519181,.353515,.690012,-.234316,.521681,.379226,.704243,-.242032,.523129,.405901,.719396,-.249172,.523768,.433585,.734471,-.255543,.522541,.462085,.750539,-.260697,.520217,.491233,.766365,-.26501,.516293,.521094,.781677,-.268409,.509708,.551014,.797132,-.270399,.501944,.581463,.812655,-.271247,.492025,.612402,.828592,-.270708,.480424,.643798,.844044,-.268085,.465955,.67682,.857305,-.263459,.448425,.708496,.87114,-.258151,.430243,.74046,.884936,-.251171,.410578,.771583,.895772,-.243305,.38862,.802234,.906961,-.234037,.365214,.833179,.917775,-.222714,.34116,.86353,.927883,-.210175,.31572,.893557,.936617,-.196925,.289159,.922976,.943384,-.182788,.261996,.951606,.949713,-.167965,.235324,.979958,.955818,-.151109,.208408,1.00765,.961344,-.133834,.182591,1.03329,.965469,-.115987,.156958,1.0557,.968693,-.09746,.132239,1.07583,.973165,-.0778514,.106195,1.09451,.979387,-.0585067,.0797669,1.11137,.98671,-.0390409,.0530263,1.12643,.994093,-.019408,.0263163,1.14016,1.00002,540029e-9,-194487e-9,1.15299,.574483,-989066e-11,.494533,114896e-10,.574478,-249127e-9,.494528,289403e-9,.574607,-996811e-9,.494637,.00115797,.574396,-.00224241,.494458,.00260498,.574377,-.00398632,.49444,.00463102,.574386,-.00622836,.494445,.00723623,.574401,-.0089683,.494453,.010421,.574419,-.0122056,.49446,.0141859,.574459,-.0159396,.494481,.0185322,.574525,-.0201692,.49452,.0234617,.574587,-.0248924,.494547,.0289762,.574697,-.0301074,.494604,.0350797,.574853,-.0358114,.494688,.0417767,.575027,-.041999,.494772,.0490718,.575294,-.0486618,.494915,.0569728,.575733,-.0557148,.495173,.0654955,.576356,-.0630489,.495537,.0746612,.576944,-.0709285,.495836,.0844615,.57765,-.0792723,.496177,.0949142,.578491,-.0880167,.496563,.10603,.579639,-.0969462,.497096,.117841,.580989,-.10622,.497684,.130367,.582587,-.115861,.498337,.143609,.584951,-.125605,.499414,.157625,.587602,-.135608,.500518,.172413,.59076,-.145742,.501767,.187999,.594992,-.155934,.503542,.20445,.600656,-.166303,.506135,.221764,.607816,-.176681,.509542,.24002,.61522,-.187071,.51263,.258992,.623702,-.197465,.516021,.278773,.634192,-.207816,.520422,.299377,.644936,-.218183,.524073,.320802,.657888,-.2278,.528049,.34384,.670666,-.236747,.52986,.36916,.685626,-.24484,.531892,.395867,.701304,-.252071,.532727,.423488,.717727,-.258714,.532146,.452201,.733914,-.264211,.529883,.481579,.750529,-.26859,.5259,.511558,.76747,-.272046,.51999,.542042,.785189,-.274225,.513083,.572799,.800954,-.275189,.502936,.603816,.816962,-.274946,.490921,.635461,.83336,-.272695,.47684,.6676,.848143,-.268223,.459405,.70051,.861818,-.262768,.440319,.732902,.876828,-.255872,.420123,.765084,.889312,-.247703,.398379,.796391,.900412,-.238381,.374496,.827333,.912251,-.227783,.349874,.858385,.921792,-.214832,.323181,.888652,.931273,-.200949,.296624,.917763,.940295,-.186537,.269211,.947878,.946812,-.171538,.241447,.977016,.953588,-.155254,.213829,1.00501,.958841,-.137156,.186807,1.03179,.963746,-.118699,.160706,1.05502,.966468,-.0998358,.135504,1.07568,.971178,-.0805186,.109131,1.09479,.97831,-.0599348,.0818293,1.1123,.985886,-.0399661,.0545872,1.12771,.994021,-.0198682,.0269405,1.14186,1.00009,271022e-9,-12989e-8,1.15514,.538716,-990918e-11,.486732,109675e-10,.550656,-250642e-9,.497518,277412e-9,.55057,-.00100265,.497441,.00110974,.550903,-.00225672,.497733,.00249779,.550568,-.00401046,.497438,.00443906,.550574,-.00626613,.49744,.00693637,.550591,-.0090226,.497449,.00998921,.550623,-.0122795,.497469,.0135984,.550667,-.0160361,.497495,.0177654,.550724,-.0202908,.497526,.0224915,.550792,-.0250421,.497557,.0277795,.550918,-.0302878,.49763,.0336334,.551058,-.0360241,.497701,.0400573,.551276,-.0422473,.497824,.0470585,.551551,-.0489441,.497977,.0546433,.552074,-.0559596,.498312,.0628367,.552681,-.0633978,.498679,.071646,.553324,-.0713176,.499031,.0810746,.554011,-.0797268,.499365,.091129,.55488,-.0885238,.499779,.101837,.556171,-.0974417,.500444,.113239,.557498,-.106841,.501025,.125316,.559299,-.116533,.501864,.138128,.561647,-.126298,.502967,.151695,.564347,-.136388,.504129,.16604,.567863,-.146576,.505713,.181207,.572569,-.156832,.507953,.197259,.578919,-.167323,.511186,.214258,.585387,-.177712,.514042,.232038,.593134,-.188184,.517484,.250733,.603295,-.198717,.522345,.270454,.613854,-.209177,.526751,.290807,.626092,-.219644,.531595,.312202,.637868,-.229494,.534721,.334435,.652458,-.238718,.538304,.359184,.666985,-.247061,.539875,.385637,.683301,-.254652,.541042,.41328,.69998,-.261376,.540735,.441903,.717824,-.267085,.539139,.471609,.734617,-.271465,.534958,.501446,.753663,-.27528,.53032,.532571,.770512,-.277617,.522134,.563641,.787356,-.278525,.51206,.595067,.806252,-.278512,.50119,.627226,.822061,-.277023,.486791,.659402,.838959,-.273175,.470467,.692874,.85379,-.267238,.450688,.725702,.868268,-.260327,.429741,.75832,.881994,-.251946,.407223,.790189,.893885,-.242432,.383214,.821625,.905118,-.231904,.357297,.853011,.916045,-.219545,.330733,.883773,.927614,-.205378,.303916,.914435,.936005,-.190388,.275941,.944502,.944533,-.1749,.247493,.974439,.950758,-.158588,.218996,1.00286,.957078,-.141027,.191559,1.0304,.962448,-.121507,.164457,1.05466,.964993,-.102068,.138636,1.0761,.970017,-.0822598,.111861,1.09541,.97661,-.062033,.0843438,1.11317,.985073,-.0409832,.0558496,1.12911,.993515,-.020146,.0275331,1.1438,1.00006,27329e-8,-107883e-9,1.15736,.525324,-999341e-11,.498153,105385e-10,.526513,-251605e-9,.499277,265329e-9,.526517,-.00100641,.499282,.0010613,.526588,-.00226466,.499337,.00238823,.526539,-.0040255,.499302,.00424535,.526547,-.00628954,.499306,.00663364,.526561,-.00905628,.499313,.00955337,.526593,-.0123253,.499334,.0130054,.526642,-.0160957,.499365,.0169911,.5267,-.0203661,.499396,.0215122,.526792,-.0251347,.499451,.0265718,.526904,-.0303985,.499511,.0321732,.527079,-.0361554,.499617,.0383231,.527285,-.0423982,.499731,.045026,.527602,-.0491121,.499924,.0522936,.528166,-.0561127,.500306,.0601528,.52879,-.0635988,.5007,.0686059,.529421,-.071581,.501048,.0776518,.530144,-.0799854,.501421,.0873148,.531062,-.0888032,.501884,.0976084,.532374,-.0977643,.50259,.108588,.533828,-.107197,.50329,.120234,.53581,-.116887,.504312,.132602,.538063,-.126755,.505365,.145721,.5409,-.136819,.506668,.159617,.544882,-.147117,.508731,.174369,.550238,-.157446,.511601,.190028,.556038,-.167988,.514431,.206587,.563031,-.178364,.517808,.224046,.571543,-.189007,.521937,.242503,.582255,-.199546,.527415,.261977,.59272,-.210084,.531682,.282162,.605648,-.220448,.537123,.303426,.61785,-.230593,.540664,.325323,.632223,-.240238,.544467,.348993,.648819,-.24887,.547594,.375462,.665825,-.256657,.54912,.403024,.683389,-.263711,.549294,.431773,.701495,-.269666,.547649,.461494,.719197,-.274169,.543786,.491623,.737906,-.278124,.538644,.522994,.756652,-.280632,.531057,.554775,.775279,-.281741,.521972,.586441,.792688,-.281652,.509613,.618596,.811894,-.280345,.496497,.651462,.827938,-.277128,.47968,.684023,.844837,-.271646,.460688,.718024,.859239,-.264397,.438872,.751207,.874088,-.256144,.41577,.784232,.887693,-.246311,.391369,.816191,.899402,-.235497,.365872,.847828,.910973,-.223631,.338618,.87934,.92204,-.209874,.310803,.910325,.930987,-.194265,.281802,.940695,.94,-.178125,.252836,.970958,.948018,-.161479,.224239,1.00078,.955141,-.144038,.195857,1.0288,.960513,-.124915,.168487,1.05371,.963964,-.104284,.141495,1.07596,.968713,-.0838732,.114437,1.09628,.975524,-.0635579,.0863105,1.11448,.98431,-.042291,.0574774,1.13069,.992916,-.0209131,.0284343,1.14568,.999926,743097e-9,-379265e-9,1.15955,.501042,-998428e-11,.498726,100306e-10,.502992,-252112e-9,.500665,253283e-9,.502417,-.00100791,.500092,.00101259,.502965,-.00226919,.500621,.00227978,.502318,-.00403109,.499994,.00405011,.502333,-.00629832,.500005,.00632868,.502362,-.00906907,.500027,.00911446,.502369,-.0123423,.500023,.0124078,.50243,-.0161178,.500066,.016211,.502493,-.0203937,.500103,.0205256,.502592,-.0251684,.500166,.0253548,.502707,-.0304389,.50023,.0307029,.502881,-.0362015,.500335,.0365753,.503124,-.0424507,.500488,.0429798,.503443,-.0491582,.500686,.0499268,.504083,-.0561476,.501155,.0574541,.504668,-.0636846,.501524,.0655408,.505319,-.0716834,.501904,.0742072,.50609,-.0800925,.502321,.0834699,.507122,-.0888425,.502896,.0933603,.508414,-.097855,.503603,.10391,.509955,-.107304,.504416,.115113,.512061,-.116921,.505565,.127054,.514419,-.12689,.506732,.139709,.517529,-.136934,.508338,.153173,.522085,-.147327,.510987,.167528,.526986,-.157612,.513527,.182708,.533122,-.168213,.516717,.198881,.540807,-.178688,.520832,.215986,.550687,-.189511,.52632,.234335,.560567,-.199998,.531009,.253375,.571698,-.210652,.535839,.273499,.584364,-.220917,.541091,.294355,.599066,-.23137,.546875,.316525,.614148,-.241206,.551306,.339671,.631157,-.250379,.555187,.36531,.647919,-.258397,.556595,.392767,.666112,-.265528,.556949,.421397,.686158,-.271827,.556617,.451433,.704838,-.27674,.552975,.482131,.723957,-.280733,.547814,.513458,.74262,-.283359,.53997,.545446,.762009,-.284541,.530422,.57775,.781314,-.284507,.518546,.610434,.799116,-.283309,.504178,.643178,.817604,-.280378,.48843,.676248,.83459,-.275619,.469457,.709698,.850974,-.26856,.447698,.744245,.866747,-.260094,.424791,.777695,.881412,-.249929,.399913,.810392,.8936,-.239137,.37308,.842872,.905943,-.226818,.345705,.874677,.916408,-.213699,.31706,.906257,.927215,-.198428,.288444,.936881,.935625,-.181643,.258329,.96795,.944076,-.164386,.228488,.998216,.951229,-.146339,.199763,1.02689,.958793,-.127709,.172153,1.0535,.963219,-.107244,.144989,1.07646,.967562,-.0857764,.11685,1.09675,.974866,-.0645377,.0880571,1.11576,.983353,-.0431732,.0587352,1.13227,.992503,-.0218356,.0294181,1.1478,1.00003,605203e-9,-231013e-9,1.16207,.482935,-101177e-10,.504695,968142e-11,.477554,-251521e-9,.499071,240676e-9,.477904,-.00100683,.499436,96342e-8,.478368,-.00226636,.499899,.0021687,.477977,-.00402719,.499513,.00385384,.477993,-.00629226,.499525,.0060221,.478011,-.00906011,.499536,.00867289,.478051,-.0123305,.499566,.0118074,.478089,-.016102,.499587,.0154269,.478171,-.0203736,.499645,.0195341,.478254,-.025143,.499692,.0241318,.47839,-.0304071,.499779,.0292247,.478588,-.0361631,.499911,.0348196,.478812,-.0424023,.500046,.0409231,.479208,-.0490724,.500326,.047552,.479841,-.0560722,.500805,.0547377,.480392,-.0636125,.501152,.0624607,.481068,-.0716134,.501561,.0707473,.481898,-.0800062,.502054,.0796118,.483022,-.0886568,.502728,.0890974,.484332,-.0977553,.503479,.0992099,.486126,-.107173,.504546,.10999,.488066,-.11677,.50557,.121476,.490521,-.126725,.506849,.133672,.494232,-.136793,.50911,.146731,.498302,-.147116,.511345,.160577,.503565,-.157446,.514344,.175335,.510902,-.168121,.518824,.191207,.519263,-.178799,.523666,.208058,.528204,-.189407,.528296,.225875,.538854,-.200145,.533724,.244782,.551278,-.210701,.539833,.264753,.565222,-.221303,.546131,.285745,.579403,-.231688,.551496,.307592,.595469,-.241718,.556809,.330582,.610929,-.250992,.559641,.354995,.629433,-.259602,.562379,.382471,.648504,-.267038,.563676,.411126,.66756,-.273388,.562092,.440924,.689143,-.278788,.560807,.472118,.709056,-.282783,.555701,.503774,.729855,-.285836,.548698,.536364,.748954,-.287078,.538544,.56895,.768373,-.287133,.526711,.601991,.78827,-.285839,.512511,.635403,.807465,-.283238,.496323,.668797,.825194,-.27906,.477638,.702584,.842203,-.272286,.456253,.736393,.857749,-.263854,.432412,.77096,.874799,-.253943,.407806,.80489,.887497,-.24237,.38033,.83771,.89966,-.230278,.352446,.870376,.911753,-.21646,.323268,.902256,.923011,-.202071,.294314,.933306,.932375,-.185519,.264104,.965177,.940537,-.167604,.234035,.996303,.948904,-.149068,.20412,1.0261,.955263,-.129539,.175431,1.05304,.960303,-.109932,.148116,1.07617,.965512,-.0880572,.119693,1.09742,.973466,-.0660548,.0901619,1.11721,.98284,-.0439228,.0599875,1.13436,.992216,-.0219588,.0298975,1.15006,.999946,119402e-9,-208547e-10,1.16471,.447827,-100414e-10,.491543,914833e-11,.454778,-251257e-9,.499172,22891e-8,.453519,-.00100342,.497787,914184e-9,.45357,-.00225776,.497847,.00205701,.453578,-.00401371,.497855,.00365705,.45357,-.00627107,.497841,.00571453,.453598,-.00902968,.497864,.00823019,.453627,-.0122888,.497882,.0112049,.453684,-.0160475,.497923,.0146405,.453764,-.0203044,.49798,.0185394,.453866,-.0250576,.498049,.0229054,.453996,-.0303028,.49813,.0277424,.454196,-.0360379,.498267,.0330587,.454457,-.0422521,.498445,.0388613,.454926,-.0488393,.498812,.0451767,.455525,-.0558653,.499272,.0520153,.456074,-.0633772,.499625,.0593754,.456752,-.0713606,.500049,.0672751,.457648,-.07971,.500615,.0757447,.458849,-.0883032,.501399,.0848231,.46029,-.0974095,.502293,.0945135,.462,-.106729,.503301,.104848,.464121,-.116354,.504533,.115884,.466889,-.126214,.506172,.127652,.470744,-.136324,.508667,.14024,.47488,-.146595,.510995,.153673,.480845,-.157027,.514832,.168053,.488262,-.167658,.519506,.183508,.496547,-.178343,.524347,.199948,.506254,-.188916,.52983,.217503,.517961,-.199975,.536357,.236272,.531484,-.210624,.543641,.256096,.545496,-.221227,.550048,.277085,.559497,-.231568,.555076,.298615,.575752,-.241698,.560541,.321547,.591999,-.251172,.564156,.345602,.610654,-.260178,.567607,.371851,.630484,-.268094,.56923,.40076,.651807,-.274661,.569779,.430801,.67239,-.280331,.566791,.461939,.693024,-.284501,.562007,.493854,.715473,-.287852,.555791,.526992,.736323,-.28929,.546345,.560102,.755771,-.289405,.534,.593543,.775424,-.2881,.519114,.627256,.795447,-.285562,.502543,.661464,.815319,-.281416,.484773,.695206,.831769,-.275523,.463445,.729044,.849464,-.267516,.440269,.764069,.866775,-.257584,.415049,.799089,.881252,-.245817,.388049,.831948,.894209,-.233127,.35889,.865526,.906922,-.219579,.329915,.89818,.919686,-.204491,.300441,.930013,.929044,-.188962,.269445,.962061,.938393,-.171079,.238402,.994214,.94661,-.15199,.208204,1.02533,.953095,-.131953,.178653,1.0529,.958644,-.111233,.150684,1.0771,.963925,-.0903098,.122359,1.09855,.971995,-.0680505,.0923342,1.11874,.981658,-.0448512,.0614195,1.13635,.991649,-.0221931,.0303582,1.15238,.999985,393403e-9,-111086e-9,1.16772,.396806,-971563e-11,.457671,842355e-11,.429186,-249421e-9,.495017,21625e-8,.429324,-998052e-9,.495173,865322e-9,.429175,-.00224487,.494999,.00194637,.429129,-.00399041,.494952,.00346004,.429153,-.00623476,.494974,.00540684,.429168,-.0089773,.494983,.00778714,.429207,-.0122175,.495012,.0106022,.429257,-.0159542,.495047,.0138535,.429338,-.0201864,.495106,.0175443,.429431,-.0249104,.495165,.0216774,.429587,-.0301252,.495279,.0262594,.429796,-.0358249,.495432,.0312968,.430065,-.0419972,.495621,.0367985,.430588,-.0485144,.496061,.042798,.43113,-.0555028,.496472,.0492914,.431743,-.0629852,.496904,.0562907,.432448,-.0709256,.497369,.0638056,.433414,-.0791942,.498032,.071885,.434638,-.0877346,.498854,.0805517,.43611,-.0968056,.499812,.0898047,.437859,-.106002,.500891,.0997142,.440017,-.115648,.502198,.110289,.443236,-.125427,.504389,.121644,.44697,-.135492,.506809,.133769,.451689,-.145746,.509858,.146787,.45811,-.156219,.514247,.160793,.465305,-.166834,.518816,.175791,.474085,-.177546,.524331,.191906,.484808,-.188262,.53104,.209199,.49732,-.199346,.538511,.227825,.509693,-.209951,.544554,.247269,.524367,-.220533,.551616,.267978,.539228,-.231082,.557368,.289672,.55644,-.241342,.563782,.31268,.574204,-.250964,.568851,.33651,.593388,-.260306,.57312,.362219,.613358,-.268667,.574916,.390322,.634512,-.275591,.575053,.420478,.65563,-.281328,.572404,.451614,.678265,-.285948,.568893,.484112,.70011,-.289408,.561878,.517348,.723005,-.291328,.55359,.551355,.743744,-.291418,.541099,.585109,.763949,-.290252,.526489,.619487,.784186,-.287648,.509496,.65404,.804304,-.283782,.491484,.688649,.823629,-.278067,.470517,.723133,.84094,-.270588,.44705,.757163,.857852,-.261188,.421252,.792816,.874934,-.249313,.394191,.827248,.888709,-.236492,.365359,.861074,.902589,-.222185,.336016,.894417,.914201,-.207314,.30527,.926825,.925978,-.191146,.274532,.9595,.93512,-.174135,.243393,.991583,.943656,-.155231,.212414,1.02356,.951719,-.134403,.182005,1.05239,.957164,-.113023,.153043,1.07754,.962656,-.0914493,.124186,1.09984,.970695,-.0694179,.0941654,1.12,.980749,-.0466199,.0629671,1.13849,.991205,-.0227032,.0311146,1.15494,.999884,632388e-9,-254483e-9,1.1706,.379821,-957289e-11,.460637,789337e-11,.405188,-247483e-9,.491396,204064e-9,.404796,-989434e-9,.490914,815853e-9,.40483,-.00222607,.490949,.00183559,.40473,-.00395723,.49084,.00326332,.404731,-.00618287,.490836,.00509945,.404768,-.00890258,.490871,.00734463,.404791,-.0121156,.490883,.00999992,.404857,-.0158214,.490938,.0130676,.404943,-.0200178,.491004,.0165503,.405059,-.0247027,.491093,.0204521,.405213,-.0298729,.491205,.0247788,.405399,-.0355226,.491333,.0295373,.405731,-.0416352,.491604,.034741,.406303,-.0480807,.492116,.0404255,.406814,-.0550458,.492506,.0465732,.407404,-.0624652,.492926,.0532058,.408149,-.0702958,.493442,.0603442,.409128,-.0784623,.494136,.0680297,.410408,-.087007,.495054,.0762786,.411813,-.0959639,.495962,.0851046,.413735,-.105075,.497257,.0945878,.416137,-.114646,.498882,.104725,.41934,-.124394,.501132,.11563,.423326,-.134328,.503883,.127325,.428419,-.14458,.50747,.139911,.43484,-.154979,.511964,.153481,.442641,-.165628,.517328,.168114,.452511,-.176365,.524258,.183995,.463473,-.187298,.531248,.200953,.475564,-.198244,.538367,.219176,.488664,-.208938,.545175,.238514,.504073,-.219599,.553227,.259129,.520832,-.230378,.560653,.280997,.538455,-.240703,.567523,.303821,.55709,-.250548,.573287,.327948,.576646,-.259964,.577795,.353362,.596705,-.268721,.580077,.380336,.618053,-.276054,.58018,.4101,.640303,-.282176,.578747,.44161,.662365,-.286931,.574294,.474106,.684542,-.290521,.567035,.507549,.707984,-.292672,.558687,.541853,.730913,-.293189,.547606,.576581,.752948,-.292199,.533471,.61172,.773452,-.289508,.516395,.646339,.794715,-.285716,.497873,.682131,.814251,-.280051,.476845,.716396,.833057,-.272873,.453449,.751503,.84959,-.263982,.427857,.786085,.867022,-.252745,.400335,.821355,.882277,-.239655,.371304,.85646,.895375,-.225386,.340397,.890828,.909347,-.209587,.310005,.923532,.921885,-.193433,.2796,.956419,.932127,-.176135,.247276,.989445,.941869,-.157872,.216186,1.02221,.949735,-.137577,.185602,1.05195,.956617,-.115285,.155767,1.07822,.961974,-.0928418,.126103,1.10149,.96972,-.0700592,.0956758,1.12207,.98012,-.0474671,.0643269,1.1408,.990825,-.0238113,.0320863,1.1577,.999876,381574e-9,-812203e-10,1.17403,.367636,-961342e-11,.469176,753287e-11,.380377,-244772e-9,.485434,191797e-9,.380416,-978857e-9,.485475,767015e-9,.380376,-.00220165,.485435,.00172522,.380419,-.00391408,.485487,.00306734,.380438,-.00611549,.485505,.00479332,.380462,-.00880558,.485525,.00690391,.380496,-.0119837,.485551,.00940039,.38056,-.0156487,.485605,.0122848,.38064,-.0197988,.485666,.0155601,.380767,-.0244324,.48577,.0192313,.380909,-.0295444,.485871,.0233032,.381142,-.0351321,.48606,.0277861,.381472,-.0411535,.486336,.0326939,.382015,-.0475408,.486833,.0380565,.382523,-.0544395,.487231,.0438615,.383129,-.061784,.487683,.0501332,.383952,-.0695085,.488313,.0568996,.38498,-.0775819,.489077,.0641952,.386331,-.0860443,.490113,.0720324,.387788,-.0948406,.491099,.0804379,.389808,-.103899,.492566,.0894899,.39252,-.113313,.494601,.0992098,.395493,-.123007,.496619,.109641,.399826,-.132859,.499912,.120919,.405341,-.143077,.504061,.133107,.411932,-.153465,.508905,.146263,.420591,-.164108,.515482,.160544,.43101,-.174893,.523191,.176123,.441881,-.185839,.53026,.192757,.453919,-.196633,.537295,.210535,.468715,-.207611,.546156,.229886,.485182,-.218517,.555173,.250543,.501926,-.229249,.562728,.27221,.51785,-.239481,.567494,.294892,.536947,-.249395,.573889,.318987,.557115,-.259,.578831,.344348,.577966,-.268075,.582055,.371223,.599489,-.276115,.583307,.399834,.62479,-.282523,.583902,.431415,.647504,-.287663,.57953,.464301,.670601,-.291538,.573103,.498123,.693539,-.293842,.563731,.532662,.717385,-.294681,.553169,.567925,.741533,-.293717,.539908,.603502,.762142,-.291156,.521902,.639074,.783014,-.28719,.502815,.674439,.805158,-.281773,.482598,.710497,.823646,-.274682,.458949,.7456,.841879,-.266184,.433129,.781085,.859515,-.255682,.406064,.816,.875335,-.242849,.376509,.851074,.890147,-.228329,.345502,.886473,.903144,-.212491,.31428,.920751,.916618,-.195695,.282994,.954606,.927953,-.178267,.251091,.988402,.937414,-.159549,.219107,1.02141,.946823,-.140022,.18896,1.05167,.954651,-.118154,.158667,1.07819,.959955,-.0946636,.128808,1.1025,.96858,-.0711792,.0973787,1.12391,.97938,-.0475046,.0650965,1.14322,.990498,-.024059,.0326267,1.16077,.999844,-512408e-10,112444e-9,1.17727,.316912,-934977e-11,.425996,695559e-11,.356423,-241372e-9,.479108,179562e-9,.356272,-965292e-9,.478897,71811e-8,.356262,-.00217182,.478894,.00161574,.356265,-.00386092,.478895,.00287261,.356278,-.0060324,.478905,.00448907,.356293,-.00868565,.478914,.00646572,.356346,-.0118207,.478965,.00880438,.356395,-.0154355,.479001,.0115066,.356484,-.019529,.479075,.0145762,.356609,-.0240991,.47918,.018018,.356766,-.0291413,.479305,.0218379,.357009,-.0346498,.479512,.0260454,.357424,-.0405462,.479909,.0306657,.357899,-.0468825,.480337,.0357054,.358424,-.0536887,.480771,.0411728,.359041,-.0609416,.481242,.0470841,.359903,-.0685239,.481943,.0534831,.360932,-.0764883,.482741,.0603795,.362196,-.0848364,.483688,.0678028,.363847,-.0935002,.484947,.0758086,.365972,-.102471,.486588,.0844173,.368741,-.111751,.488787,.0937199,.372146,-.121334,.491405,.103732,.377114,-.131147,.495604,.114608,.38226,-.141213,.499436,.126345,.389609,-.151632,.505334,.139116,.397925,-.162073,.51168,.152995,.407824,-.172819,.518876,.168071,.420014,-.183929,.527639,.184495,.434266,-.195032,.537588,.20232,.447352,-.205792,.544379,.221189,.463726,-.216704,.553422,.241616,.481406,-.227531,.562074,.263298,.498707,-.238017,.568227,.286116,.518039,-.247936,.574473,.3101,.538277,-.257437,.579191,.335401,.561166,-.266829,.584807,.362246,.583189,-.275329,.586476,.390609,.606024,-.28234,.585578,.420998,.632419,-.287924,.584496,.454357,.656128,-.291972,.577766,.488233,.679953,-.29456,.56875,.523248,.704654,-.295816,.558388,.559168,.729016,-.295157,.544826,.595326,.752062,-.292779,.528273,.631864,.773138,-.288681,.508482,.667793,.794869,-.283358,.487341,.704035,.815101,-.27608,.46354,.739925,.834212,-.26767,.438672,.775539,.852368,-.257397,.411239,.810895,.870207,-.245689,.3829,.846472,.884063,-.231452,.351496,.881788,.898284,-.215561,.31895,.917438,.912964,-.198208,.287367,.952422,.924666,-.180426,.254487,.987551,.934429,-.161525,.222226,1.02142,.943485,-.141197,.191143,1.05218,.9521,-.120085,.161112,1.07937,.957876,-.0975881,.130982,1.10403,.966943,-.0726842,.0990553,1.12616,.978313,-.0483705,.0662818,1.14619,.990048,-.0239072,.0329243,1.16413,.999984,461885e-9,-772859e-10,1.18099,.321287,-935049e-11,.455413,659662e-11,.332595,-237513e-9,.471437,167562e-9,.332729,-949964e-9,.471618,670192e-9,.332305,-.00213618,.471028,.00150712,.332326,-.00379765,.471055,.00267959,.332344,-.00593353,.471072,.00418751,.332356,-.00854349,.471077,.00603172,.332403,-.0116268,.471121,.00821362,.332461,-.0151824,.47117,.0107357,.332552,-.0192088,.471251,.0136014,.332657,-.0237024,.47133,.0168152,.332835,-.0286615,.471487,.0203853,.333083,-.0340765,.471708,.0243212,.333547,-.0398563,.47219,.0286518,.333989,-.0460916,.472587,.0333763,.334532,-.0527897,.473054,.0385084,.335167,-.0599284,.473568,.0440638,.33608,-.0673514,.474362,.0500962,.337146,-.0752237,.475231,.0566022,.338462,-.083418,.476282,.0636272,.34014,-.0919382,.477615,.0712153,.342341,-.100741,.479404,.079417,.345088,-.109905,.481618,.0882631,.349049,-.119369,.485081,.0978851,.353939,-.129033,.489317,.108336,.359893,-.139038,.494309,.119698,.366945,-.149411,.499983,.132024,.375814,-.159843,.507185,.145558,.387112,-.170664,.516392,.160433,.40023,-.181897,.526519,.176648,.412555,-.192785,.53423,.193922,.427023,-.203663,.542741,.212662,.443685,-.214695,.552066,.232944,.461499,-.225561,.560762,.254495,.480975,-.236257,.569421,.277531,.501,-.24639,.576101,.301724,.521691,-.256101,.581493,.327112,.543478,-.265289,.585221,.353917,.566094,-.273938,.587614,.381941,.589578,-.281679,.587991,.41172,.614583,-.287655,.585928,.444148,.641813,-.292228,.582092,.478617,.666189,-.295172,.57398,.51397,.690475,-.29648,.561676,.550118,.715543,-.296203,.548758,.586933,.740405,-.293999,.532792,.62384,.762183,-.28998,.512735,.660723,.786069,-.28478,.492402,.69807,.806812,-.277568,.469058,.734422,.826987,-.268951,.443017,.770946,.844588,-.259049,.415501,.80699,.863725,-.2471,.387328,.842107,.879137,-.234157,.356108,.878078,.894634,-.218719,.324315,.914058,.909162,-.201293,.291813,.949922,.92072,-.18267,.258474,.985337,.93158,-.163212,.225593,1.0205,.941238,-.142771,.193986,1.05273,.949293,-.120956,.163392,1.08075,.956226,-.0985743,.132934,1.10559,.96546,-.075118,.101255,1.12823,.977403,-.0497921,.0675441,1.149,.989648,-.0241574,.0334681,1.16765,1.00001,5762e-7,-184807e-9,1.18519,.303474,-916603e-11,.4542,61243e-10,.308894,-232869e-9,.462306,155592e-9,.309426,-931661e-9,.463093,622499e-9,.308643,-.0020949,.461933,.00139979,.308651,-.0037242,.461941,.00248874,.308662,-.00581873,.46195,.00388933,.308687,-.00837818,.461974,.00560247,.308728,-.0114016,.462011,.00762948,.308789,-.0148884,.462067,.00997326,.308882,-.0188369,.462151,.0126375,.309007,-.0232436,.462263,.0156271,.30918,-.0281054,.462417,.0189498,.309442,-.0334065,.462667,.0226167,.309901,-.0390589,.463162,.0266614,.310331,-.0452042,.463555,.0310715,.310858,-.0517735,.464019,.0358698,.311576,-.0587359,.464669,.0410848,.312436,-.0660383,.465406,.0467453,.313526,-.0737266,.466339,.0528718,.314903,-.0817574,.467504,.0595039,.316814,-.090167,.469226,.0666888,.318965,-.0987555,.470981,.0744658,.322077,-.107792,.473814,.082912,.325947,-.117098,.477241,.0920846,.331008,-.126602,.48184,.102137,.337893,-.136619,.488334,.113135,.345106,-.146838,.494415,.12511,.355111,-.157357,.503275,.138356,.365095,-.167955,.510966,.152686,.378344,-.179157,.521508,.16856,.391599,-.190143,.530455,.18561,.407786,-.20123,.541275,.204308,.425294,-.212456,.551784,.224623,.444021,-.223568,.561493,.246172,.463418,-.234154,.569886,.268979,.484077,-.244546,.577116,.293411,.505513,-.254301,.582914,.318936,.527672,-.263564,.587208,.345856,.550565,-.272332,.589277,.374054,.573656,-.280011,.588426,.403276,.59827,-.286924,.587504,.43474,.624731,-.291994,.583401,.468767,.652396,-.295159,.576997,.504411,.67732,-.296954,.565863,.54114,.703147,-.296877,.552316,.57816,.728715,-.295147,.536773,.616124,.752448,-.291275,.51771,.653885,.775169,-.285905,.496087,.691537,.799307,-.279064,.474232,.729251,.819482,-.270294,.447676,.766267,.837659,-.260032,.419656,.802616,.856903,-.248497,.391328,.838583,.873325,-.235252,.360285,.874711,.889788,-.221126,.329215,.91077,.904486,-.204304,.296392,.94653,.917711,-.185562,.262159,.983828,.928969,-.165635,.229142,1.01955,.939707,-.14442,.19673,1.05317,.948167,-.122147,.165095,1.0823,.955222,-.099098,.13451,1.10791,.964401,-.0755332,.102476,1.1312,.976605,-.0513817,.0689667,1.15218,.989085,-.0258499,.034506,1.17129,.999908,617773e-9,-271268e-9,1.18961,.285803,-905752e-11,.452348,572272e-11,.284689,-22732e-8,.450581,143626e-9,.285263,-910214e-9,.451482,575099e-9,.285302,-.00204784,.451553,.00129395,.285318,-.00364057,.451574,.0023006,.28533,-.00568813,.451585,.00359547,.285361,-.00819001,.451618,.00517934,.285397,-.0111458,.45165,.007054,.285447,-.0145536,.451688,.00922167,.285527,-.0184127,.451758,.0116869,.285688,-.0227207,.451929,.0144555,.28584,-.0274712,.452055,.0175341,.286136,-.0326278,.452369,.0209406,.286574,-.0381792,.452853,.0246965,.287012,-.0441879,.453272,.0287996,.287542,-.0506096,.453752,.033268,.288299,-.0573634,.454488,.0381504,.289186,-.0645458,.455294,.0434447,.290302,-.0720405,.456301,.0491973,.291776,-.0799046,.457648,.0554453,.29372,-.088117,.459483,.0622311,.296052,-.0965328,.461571,.0695992,.299563,-.105409,.465085,.077658,.30335,-.114553,.468506,.0864176,.309167,-.123917,.474423,.0961078,.31529,-.13381,.47995,.106643,.324163,-.144021,.488592,.118322,.333272,-.154382,.496461,.131133,.344224,-.165015,.50562,.145208,.357733,-.176168,.516719,.16073,.373046,-.187468,.528513,.177807,.38788,-.198488,.537713,.196072,.405133,-.209545,.547999,.21605,.423845,-.220724,.55759,.237484,.443777,-.231518,.566246,.26039,.464824,-.242035,.574326,.284835,.486635,-.251898,.58037,.310518,.51012,-.261304,.58568,.337678,.535301,-.270384,.590197,.366242,.559193,-.27841,.590569,.395873,.583544,-.285325,.588161,.426857,.608834,-.291113,.584249,.459477,.635753,-.294882,.57763,.494734,.664367,-.297088,.569479,.532023,.689688,-.297364,.555064,.569629,.715732,-.295949,.539522,.608124,.741307,-.292259,.521613,.646231,.764949,-.287063,.49969,.684938,.788599,-.28012,.476747,.723548,.81048,-.27153,.45116,.761135,.831372,-.261289,.424101,.798916,.850092,-.249559,.39443,.835952,.867777,-.236348,.363849,.871606,.884632,-.221569,.332477,.907843,.90047,-.20618,.300667,.944187,.914524,-.188771,.266552,.981371,.926892,-.168362,.232349,1.01841,.937951,-.146761,.199359,1.05308,.947236,-.123813,.1675,1.0839,.954367,-.099984,.136166,1.11047,.963907,-.0759278,.103808,1.13414,.976218,-.0511367,.0697061,1.15575,.988772,-.0267415,.0352529,1.17531,.999888,-520778e-9,289926e-9,1.19389,.263546,-883274e-11,.441896,526783e-11,.262352,-221849e-9,.439889,132311e-9,.262325,-886683e-9,.439848,528824e-9,.26228,-.00199476,.439765,.00118975,.262372,-.00354671,.439922,.00211568,.26239,-.00554141,.439941,.00330652,.262412,-.00797888,.439961,.00476346,.262453,-.0108584,.440002,.00648818,.262528,-.0141788,.440085,.0084835,.262615,-.017938,.440166,.0107533,.262744,-.0221346,.440291,.0133044,.262939,-.026762,.440493,.0161445,.263277,-.0317573,.440889,.0192974,.26368,-.0371832,.441338,.0227699,.264106,-.0430371,.441753,.0265698,.264624,-.0493035,.442227,.0307178,.265378,-.0558669,.442985,.0352616,.266253,-.0628718,.443795,.0401968,.267478,-.0701569,.445008,.04559,.269062,-.077845,.446599,.0514539,.270926,-.0857941,.448349,.0578382,.273693,-.0940773,.451221,.0648363,.276746,-.102704,.454097,.0724389,.281693,-.111735,.459517,.0808744,.287335,-.121004,.46531,.0901551,.29448,-.130734,.472605,.100371,.30257,-.140777,.480251,.111644,.312465,-.15111,.489444,.124111,.324856,-.16189,.500919,.137979,.33774,-.172946,.511317,.153163,.35255,-.184152,.522684,.169817,.367786,-.19522,.53248,.187886,.385474,-.20632,.543326,.207634,.404976,-.217744,.554109,.229165,.425203,-.228691,.563395,.252068,.446704,-.239299,.571565,.276471,.468951,-.249348,.577935,.302323,.493487,-.258933,.584309,.329882,.517861,-.268009,.58773,.358525,.543309,-.276238,.589612,.388585,.569704,-.28356,.589294,.419787,.594871,-.289497,.585137,.452114,.622555,-.294452,.580356,.486466,.651167,-.296918,.57185,.523079,.677332,-.297647,.558428,.5611,.703718,-.296321,.542232,.599592,.730262,-.293339,.524541,.639138,.754304,-.288036,.502691,.677978,.778051,-.281018,.479212,.716537,.801557,-.272414,.454071,.75586,.822559,-.262419,.425952,.794477,.843051,-.250702,.397313,.832664,.86232,-.237264,.366534,.869876,.879044,-.222716,.334816,.906973,.896362,-.206827,.303143,.943558,.910342,-.189659,.269699,.979759,.924119,-.171108,.236411,1.01718,.935374,-.149579,.202224,1.05289,.944295,-.126295,.16989,1.08496,.952227,-.101511,.138089,1.11256,.962041,-.0766392,.105053,1.1375,.97528,-.0511967,.070329,1.15983,.988476,-.025463,.0351268,1.17987,.999962,286808e-10,145564e-10,1.19901,.227089,-841413e-11,.404216,472707e-11,.239725,-215083e-9,.426708,120833e-9,.239904,-860718e-9,.427028,483555e-9,.239911,-.00193661,.427039,.00108806,.239914,-.00344276,.42704,.00193457,.239933,-.00537907,.427064,.00302363,.239944,-.00774482,.427065,.00435604,.239993,-.01054,.427122,.00593398,.240052,-.0137626,.427179,.00775987,.240148,-.0174115,.427279,.00983854,.240278,-.021484,.42741,.0121763,.240472,-.0259729,.427618,.0147827,.240839,-.0308131,.428086,.0176837,.241201,-.0360893,.428482,.0208775,.241626,-.0417723,.428907,.0243821,.242207,-.0478337,.42952,.0282228,.24298,-.0542199,.430332,.0324333,.243881,-.0610015,.431222,.0370252,.245123,-.0680874,.432512,.0420535,.24667,-.0755482,.434088,.0475414,.248779,-.0832873,.436323,.0535542,.251665,-.0913546,.439509,.0601716,.255305,-.0998489,.443478,.0674282,.260049,-.108576,.448713,.0754673,.266192,-.117754,.455524,.084339,.273158,-.127294,.4627,.0941683,.282131,-.137311,.472068,.10515,.293332,-.147736,.483565,.117402,.304667,-.158357,.493702,.130824,.317785,-.169274,.504708,.145724,.333245,-.180595,.517107,.16215,.349843,-.191892,.528849,.180149,.367944,-.203168,.540301,.199746,.387579,-.214443,.551514,.221047,.408247,-.225624,.560906,.243981,.43014,-.236422,.56959,.268513,.452669,-.24654,.576098,.294409,.476196,-.256157,.580925,.322002,.501157,-.265289,.584839,.351052,.527632,-.273671,.587614,.3812,.555754,-.281254,.589119,.412994,.581682,-.287448,.585204,.445498,.608196,-.292614,.579006,.479505,.635661,-.296068,.571297,.514643,.664999,-.297395,.560855,.552213,.691039,-.296645,.544525,.591365,.7179,-.293785,.526535,.630883,.744059,-.289089,.50545,.670932,.76863,-.282239,.482514,.710904,.793273,-.273688,.457246,.750259,.814731,-.26328,.428872,.78948,.835603,-.251526,.399384,.828597,.85489,-.238339,.368811,.866892,.872828,-.223607,.336617,.90563,.889462,-.207538,.303997,.943538,.904929,-.190297,.270812,.980591,.919101,-.172034,.237453,1.01935,.930536,-.152058,.204431,1.05498,.941223,-.129515,.172495,1.08717,.94982,-.104263,.140175,1.11551,.960592,-.0781944,.106465,1.14098,.974629,-.051688,.0711592,1.16418,.98811,-.0253929,.0354432,1.18465,1.00004,804378e-9,-330876e-9,1.20462,.214668,-821282e-11,.406619,433582e-11,.218053,-208144e-9,.413025,109887e-9,.217987,-832212e-9,.412901,439362e-9,.217971,-.00187246,.412876,988623e-9,.217968,-.00332855,.41286,.00175772,.217985,-.00520055,.412882,.00274729,.218014,-.00748814,.412916,.00395842,.218054,-.0101901,.412957,.00539274,.218106,-.0133057,.413005,.00705348,.218217,-.0168342,.413139,.00894581,.218338,-.0207707,.413258,.0110754,.21855,-.0251001,.413509,.0134551,.218913,-.0297861,.413992,.0161081,.219265,-.0348956,.414383,.0190307,.219696,-.0403909,.414839,.0222458,.220329,-.0462003,.415567,.025792,.220989,-.0524208,.41621,.0296637,.222027,-.058948,.417385,.0339323,.223301,-.0658208,.418779,.0386055,.224988,-.0730347,.420665,.0437355,.227211,-.0805274,.423198,.0493844,.230131,-.088395,.426566,.0556135,.233908,-.0966208,.43091,.0624829,.239092,-.105223,.437148,.0701636,.245315,-.11424,.444302,.0786949,.253166,-.12368,.453262,.0882382,.262374,-.133569,.463211,.0988682,.273145,-.143836,.474271,.110727,.285512,-.154577,.4863,.123945,.299512,-.165501,.498817,.138581,.314287,-.176698,.510341,.154676,.331083,-.188066,.522583,.172459,.349615,-.199597,.534879,.191979,.369318,-.210843,.546083,.21309,.390377,-.222068,.5562,.235998,.412411,-.233059,.564704,.260518,.435715,-.24357,.572314,.286795,.461196,-.253356,.579395,.314559,.485587,-.262362,.581985,.343581,.511908,-.270895,.584347,.374367,.539798,-.278452,.58505,.406015,.567974,-.284877,.583344,.439168,.594303,-.290124,.577348,.473005,.622951,-.294183,.570751,.508534,.652404,-.296389,.561541,.544764,.679291,-.296605,.546426,.582927,.706437,-.294095,.528599,.622681,.734485,-.28978,.508676,.663567,.758841,-.283363,.484768,.704092,.78537,-.275015,.460434,.745101,.807315,-.264689,.432166,.784712,.8271,-.252597,.401807,.824241,.849191,-.239154,.371458,.863803,.867046,-.224451,.338873,.903063,.8852,-.208342,.306175,.942763,.901771,-.190684,.272759,.981559,.915958,-.172105,.239306,1.02048,.928046,-.152214,.206071,1.05765,.939961,-.130247,.17367,1.08999,.948711,-.10672,.142201,1.11829,.959305,-.0808688,.108454,1.14467,.973009,-.0539145,.0728109,1.16839,.987631,-.0262947,.0360625,1.19004,.999978,.00132758,-559424e-9,1.21058,.193925,-793421e-11,.391974,392537e-11,.196746,-200315e-9,.397675,991033e-10,.19667,-801099e-9,.397521,396342e-9,.196633,-.00180246,.397445,891829e-9,.196654,-.00320443,.397482,.00158582,.196659,-.00500647,.39748,.00247867,.196683,-.0072086,.397506,.00357167,.196728,-.00981001,.397562,.00486675,.196792,-.0128096,.397633,.00636707,.19689,-.0162055,.397746,.00807752,.197017,-.0199943,.397884,.0100052,.19729,-.024139,.39827,.0121691,.197583,-.0286671,.398639,.0145755,.197927,-.0335858,.399034,.0172355,.198383,-.0388806,.399554,.0201718,.199002,-.0444736,.400289,.0234194,.199739,-.0504583,.401111,.026984,.200784,-.056729,.402349,.0309217,.202075,-.0633643,.403841,.0352496,.203898,-.0703247,.406076,.0400313,.206199,-.0775565,.408841,.0453282,.209252,-.085184,.41259,.0511794,.213638,-.0931994,.418288,.0577459,.21881,-.101617,.424681,.0650508,.225642,-.11052,.433429,.0732759,.233717,-.119772,.442897,.0824683,.242823,-.129505,.452888,.0927484,.254772,-.139906,.466407,.104417,.266603,-.150402,.477413,.117211,.28073,-.161395,.490519,.131598,.295399,-.172465,.50201,.147407,.312705,-.183982,.515311,.165031,.331335,-.195532,.52786,.184336,.351037,-.206971,.5392,.205361,.372175,-.218117,.54941,.228043,.394548,-.229327,.558642,.25267,.419598,-.240052,.567861,.279071,.443922,-.249937,.573332,.306882,.471495,-.259407,.58013,.33661,.496769,-.267749,.580564,.367328,.524951,-.275524,.581696,.399753,.55318,-.282148,.579885,.433134,.581577,-.287533,.575471,.467534,.609231,-.291612,.567445,.502943,.637478,-.293911,.557657,.53871,.667795,-.295096,.546535,.576568,.694272,-.294073,.529561,.614929,.722937,-.290386,.510561,.655909,.749682,-.284481,.487846,.697663,.774754,-.276188,.462487,.738515,.799301,-.266215,.43481,.779802,.820762,-.254116,.404879,.820045,.843231,-.240393,.374559,.860294,.861857,-.225503,.341582,.900965,.880815,-.209382,.308778,.941727,.89766,-.19155,.275232,.980916,.912926,-.172346,.240938,1.02162,.926391,-.151799,.207223,1.0597,.938429,-.129968,.17484,1.09291,.947834,-.10651,.142984,1.12248,.958432,-.0824098,.109902,1.149,.972402,-.0565242,.0744454,1.1733,.987191,-.028427,.0373794,1.19538,.999975,385685e-10,-4203e-8,1.21676,.178114,-766075e-11,.385418,354027e-11,.176074,-191966e-9,.381002,887135e-10,.17601,-767549e-9,.380861,354715e-9,.17598,-.00172696,.380798,798168e-9,.175994,-.00307012,.380824,.00141928,.176017,-.00479684,.380858,.00221859,.176019,-.00690648,.380839,.00319714,.176072,-.00939888,.380913,.0043572,.176131,-.0122726,.380979,.005702,.176239,-.0155264,.38112,.00723689,.176371,-.0191551,.381272,.00896907,.176638,-.023117,.381669,.0109194,.176912,-.0274633,.382015,.0130903,.177279,-.032173,.382476,.0154949,.17774,-.0372219,.383041,.0181669,.178344,-.0426132,.38378,.0211209,.179153,-.0483309,.384773,.0243899,.180197,-.0543447,.386076,.0280062,.181581,-.0607122,.387809,.032004,.18344,-.0673855,.390205,.036453,.186139,-.0743989,.393944,.0414162,.189432,-.0817731,.39832,.0469394,.193795,-.0895464,.404188,.0531442,.199641,-.0978264,.4121,.0601374,.206679,-.106499,.421425,.0680078,.214865,-.115654,.431504,.076919,.224406,-.125268,.442526,.0868835,.235876,-.135475,.455465,.0981875,.248335,-.146023,.4681,.110759,.262868,-.157016,.482069,.124885,.278962,-.168245,.496182,.140645,.295082,-.17958,.507401,.157838,.313738,-.191227,.520252,.17695,.333573,-.202718,.531708,.197817,.356433,-.214424,.544509,.220785,.378853,-.225492,.55373,.245306,.402717,-.236236,.561348,.271593,.428375,-.246568,.568538,.299776,.454724,-.255941,.573462,.329433,.482291,-.264511,.576356,.360598,.509706,-.272129,.576446,.393204,.538805,-.278979,.575298,.427227,.568919,-.284528,.572154,.462157,.596804,-.288801,.564691,.497997,.625987,-.291334,.555134,.534467,.656414,-.292722,.545051,.571736,.683916,-.292185,.528813,.610158,.711809,-.290043,.51106,.649061,.739547,-.285246,.490103,.690081,.766914,-.277647,.465523,.732554,.791375,-.267603,.437718,.773982,.814772,-.256109,.40882,.81609,.836691,-.242281,.377823,.856849,.856984,-.227155,.34496,.898363,.876332,-.210395,.311335,.939471,.894988,-.192612,.277703,.980799,.911113,-.173236,.243019,1.02215,.924092,-.152258,.209037,1.06139,.936828,-.129575,.175909,1.09635,.946869,-.10594,.143852,1.12707,.958284,-.081318,.110289,1.15419,.972325,-.0556133,.0747232,1.17909,.986878,-.0297899,.0383149,1.20163,.999936,-.00197169,912402e-9,1.22338,.151174,-720365e-11,.351531,309789e-11,.155594,-18279e-8,.361806,78608e-9,.156099,-731569e-9,.362982,314615e-9,.156053,-.00164578,.362869,707845e-9,.156093,-.0029261,.362961,.00125884,.156099,-.00457155,.362959,.00196783,.15612,-.00658224,.362982,.00283622,.156168,-.00895774,.363048,.00386625,.156221,-.0116962,.363101,.00506109,.156324,-.0147973,.363241,.00642675,.156476,-.0182503,.363448,.00797175,.156731,-.0220266,.36384,.00971484,.156994,-.026176,.364179,.0116575,.157341,-.0306701,.36462,.0138207,.157867,-.0354591,.365364,.0162356,.15846,-.0406141,.366111,.0189092,.159308,-.0460519,.367248,.021885,.160426,-.0518096,.368767,.0252004,.161877,-.0578906,.370745,.0288825,.163995,-.0642812,.373831,.0330139,.16655,-.0710067,.377366,.0376283,.170237,-.0781522,.382799,.0428493,.175096,-.0857172,.389915,.0487324,.181069,-.0938025,.398487,.0554214,.188487,-.102363,.408799,.0630189,.197029,-.111343,.419991,.071634,.206684,-.120812,.431455,.0812797,.218698,-.131033,.445746,.0923651,.230726,-.141373,.457471,.104545,.245516,-.152387,.472388,.118449,.261551,-.163628,.486671,.133923,.277437,-.174814,.49762,.150849,.296662,-.186713,.51162,.169924,.31795,-.198513,.525435,.190848,.339422,-.210119,.536267,.213504,.362143,-.221354,.545982,.237947,.387198,-.23224,.555364,.264427,.412349,-.24257,.561489,.292519,.439274,-.252284,.566903,.322561,.466779,-.261023,.569614,.353952,.496011,-.26899,.571589,.387278,.524964,-.275498,.570325,.421356,.556518,-.281449,.568792,.457314,.584363,-.285526,.560268,.493199,.614214,-.28844,.55205,.530276,.645684,-.289777,.541906,.56855,.673446,-.289722,.526464,.606927,.701924,-.287792,.509872,.645945,.73037,-.284315,.490649,.685564,.757405,-.278804,.467964,.726511,.784025,-.269543,.441468,.768601,.808255,-.258117,.41216,.811321,.830739,-.244728,.380606,.853496,.851914,-.229428,.348111,.895374,.872586,-.212508,.314732,.937674,.891581,-.194025,.280338,.979869,.907641,-.174711,.245203,1.02253,.922233,-.153509,.21077,1.06371,.935878,-.130418,.177399,1.09972,.946338,-.105558,.144507,1.13124,.957265,-.080059,.110508,1.15973,.971668,-.0539766,.0742311,1.18515,.9866,-.0277101,.0375224,1.20858,1.00021,-515531e-9,135226e-9,1.23135,.137468,-686011e-11,.345041,273315e-11,.13703,-173378e-9,.343936,690761e-10,.136986,-693048e-9,.34383,276126e-9,.136964,-.00155931,.343761,621337e-9,.137003,-.00277211,.343863,.00110494,.137012,-.00433103,.343868,.00172744,.137043,-.00623606,.343916,.00249022,.13709,-.0084868,.343986,.00339559,.137145,-.0110814,.344045,.00444687,.137242,-.0140187,.344177,.00565007,.137431,-.0172713,.344491,.00701868,.137644,-.0208605,.344805,.00856042,.13791,-.024792,.345172,.0102863,.138295,-.0290461,.345734,.0122185,.138764,-.0335957,.346371,.0143771,.139415,-.038467,.347298,.0167894,.140272,-.0436176,.348527,.0194895,.141457,-.0491016,.350276,.0225043,.14303,-.0548764,.352646,.0258962,.145289,-.0610096,.356206,.0297168,.148502,-.0674777,.361488,.0340562,.152188,-.074345,.367103,.0389534,.157359,-.0817442,.375247,.0445541,.16379,-.0896334,.385064,.0509535,.171376,-.098005,.396082,.0582611,.179901,-.106817,.407418,.06654,.189892,-.116239,.420031,.075994,.201838,-.12627,.434321,.0867239,.214311,-.136701,.447631,.0987517,.228902,-.147616,.462046,.112353,.245107,-.158871,.476942,.127605,.262292,-.170261,.490285,.144469,.281215,-.182017,.503783,.163282,.301058,-.193729,.515505,.183873,.322752,-.205512,.52682,.206466,.347547,-.217214,.539473,.231194,.370969,-.227966,.546625,.257288,.397533,-.238555,.55472,.285789,.42398,-.248278,.559468,.315746,.452928,-.257422,.564095,.347724,.482121,-.265306,.565426,.380922,.510438,-.272043,.563205,.415639,.541188,-.277614,.561087,.451702,.571667,-.281927,.554922,.48845,.602432,-.285015,.546838,.526442,.634126,-.286512,.537415,.564896,.662816,-.286388,.522906,.604037,.692411,-.284734,.507003,.643795,.720946,-.281297,.488398,.68298,.748293,-.276262,.466353,.723466,.776931,-.269978,.443573,.764565,.801065,-.260305,.415279,.805838,.825843,-.247426,.384773,.849985,.84807,-.232437,.352555,.893174,.869122,-.215806,.318642,.936564,.888963,-.197307,.28381,.980253,.905547,-.177203,.247888,1.02463,.918554,-.155542,.212904,1.06714,.931395,-.131948,.1787,1.10451,.941749,-.106723,.145902,1.13694,.954551,-.0804939,.111193,1.1666,.970279,-.0534239,.0744697,1.19249,.986117,-.0257452,.0368788,1.21665,.999938,.00190634,-.0010291,1.23981,.118493,-647439e-11,.32272,23772e-10,.118765,-163023e-9,.323456,598573e-10,.118772,-65212e-8,.323477,239447e-9,.118843,-.00146741,.323657,538881e-9,.118804,-.00260846,.323553,95826e-8,.118826,-.00407576,.323595,.00149845,.118846,-.00586826,.323617,.00216047,.118886,-.00798578,.32367,.00294679,.118947,-.0104273,.323753,.00386124,.119055,-.0131909,.323922,.00490999,.119241,-.0162444,.324251,.00610804,.11944,-.0196339,.324544,.00745805,.119739,-.0233378,.325026,.00897805,.12011,-.0273179,.325586,.0106895,.120571,-.0316143,.326231,.0126073,.12124,-.0361939,.327264,.0147654,.122162,-.0410511,.328733,.0172001,.123378,-.0462233,.330659,.0199375,.125183,-.0517109,.333754,.0230498,.127832,-.0575652,.338507,.026597,.130909,-.0637441,.343666,.0306345,.135221,-.0704302,.351063,.035273,.14082,-.0776364,.360604,.0406137,.146781,-.0852293,.369638,.0466788,.155121,-.0935351,.3827,.0537628,.16398,-.102234,.39522,.0617985,.173926,-.111465,.40793,.07097,.185137,-.121296,.42105,.0813426,.19826,-.13169,.435735,.0931596,.212938,-.142614,.450932,.106547,.229046,-.153884,.465726,.121575,.246246,-.165382,.479461,.138286,.264637,-.176806,.492106,.15666,.284959,-.188793,.504774,.17728,.308157,-.200763,.518805,.19988,.330951,-.21239,.528231,.224293,.3549,-.223521,.536376,.250541,.381502,-.234169,.544846,.278902,.409529,-.244077,.551717,.309227,.437523,-.253363,.55517,.341426,.467624,-.261659,.557772,.37518,.497268,-.268498,.556442,.41007,.528294,-.274018,.553915,.446445,.559053,-.278169,.549153,.483779,.589329,-.281229,.539878,.522249,.622503,-.282902,.53162,.561754,.652382,-.282815,.518119,.601544,.681847,-.281247,.502187,.641574,.712285,-.277986,.484824,.682633,.740094,-.273017,.463483,.723426,.768478,-.266692,.441299,.763747,.794556,-.258358,.415238,.805565,.819408,-.248807,.386912,.847254,.843411,-.236214,.356165,.891091,.862397,-.219794,.320562,.936174,.883113,-.201768,.285322,.982562,.90023,-.181672,.249713,1.02862,.915192,-.159279,.214546,1.07163,.928458,-.134725,.180285,1.10995,.94069,-.10913,.147119,1.14354,.953409,-.0821315,.112492,1.17372,.969537,-.0542677,.0752014,1.20043,.985612,-.0259096,.0370361,1.22528,.999835,.00298198,-.00151801,1.24959,.10097,-602574e-11,.300277,202619e-11,.101577,-152164e-9,.302077,511662e-10,.101572,-608889e-9,.302066,204751e-9,.101566,-.00136997,.302047,460753e-9,.101592,-.00243557,.302114,819497e-9,.101608,-.0038053,.30214,.00128154,.101627,-.00547906,.30216,.0018483,.101669,-.00745647,.302224,.00252223,.101732,-.00973615,.302318,.00330716,.101844,-.0123097,.302513,.00421061,.102025,-.0151681,.30285,.00524481,.102224,-.0183334,.303166,.0064154,.102515,-.0217819,.303654,.00774063,.102886,-.0255067,.304243,.0092398,.103395,-.029514,.305089,.0109339,.104109,-.0337912,.306301,.0128561,.105074,-.0383565,.30798,.0150338,.10654,-.0432132,.310726,.0175228,.108478,-.0484244,.314351,.0203648,.111015,-.0539339,.319032,.0236325,.114682,-.0598885,.32605,.0274188,.11911,-.0663375,.334109,.0317905,.124736,-.0733011,.344013,.0368502,.131479,-.0807744,.355358,.0427104,.139283,-.0888204,.367614,.0494788,.148054,-.0973394,.380072,.0572367,.159037,-.10665,.395678,.0662704,.169794,-.116221,.40795,.0763192,.18314,-.126632,.423546,.087956,.197515,-.137383,.438213,.101042,.213514,-.148641,.453248,.115827,.23065,-.160117,.46688,.132283,.249148,-.171807,.479962,.150644,.270219,-.183695,.494618,.171073,.292338,-.195574,.506937,.193378,.314999,-.207205,.516463,.217585,.340991,-.218955,.528123,.24428,.367982,-.229917,.537025,.272784,.39432,-.239737,.541627,.302742,.423364,-.249048,.546466,.335112,.453751,-.257329,.549466,.369032,.48416,-.264623,.549503,.404577,.515262,-.270411,.547008,.441337,.547036,-.274581,.542249,.479162,.576614,-.277266,.533015,.517904,.611143,-.279144,.525512,.558508,.640989,-.279001,.51154,.598995,.671182,-.277324,.495641,.639935,.700848,-.273908,.477526,.681017,.729862,-.269063,.457955,.722764,.758273,-.262282,.434846,.764349,.784121,-.254281,.409203,.806206,.809798,-.24505,.382694,.848617,.834953,-.233861,.354034,.892445,.856817,-.221308,.321764,.936263,.877609,-.205996,.288118,.982401,.897489,-.186702,.253277,1.02975,.913792,-.164618,.217963,1.07488,.92785,-.140023,.183221,1.11487,.940378,-.11328,.149385,1.14947,.95273,-.0853958,.114152,1.1807,.969059,-.0568698,.0769845,1.20912,.985574,-.0276502,.0381186,1.23498,.999943,.00239052,-.00126861,1.25987,.0852715,-560067e-11,.279021,171162e-11,.0854143,-140871e-9,.279483,430516e-10,.0854191,-563385e-9,.2795,172184e-9,.0854188,-.00126753,.279493,387464e-9,.0854229,-.00225337,.279501,68918e-8,.0854443,-.00352086,.279549,.00107803,.0854697,-.00506962,.279591,.00155536,.0855093,-.00689873,.279652,.00212354,.0855724,-.00900821,.279752,.00278703,.0856991,-.0113799,.280011,.0035551,.085855,-.0140314,.280297,.00443449,.0860682,-.016963,.280682,.00543636,.086344,-.0201438,.281159,.0065788,.0867426,-.0235999,.281886,.00787977,.087239,-.0273069,.282745,.0093606,.0879815,-.031269,.284139,.011056,.0891258,-.035531,.28647,.0130065,.0906909,-.0400947,.289708,.0152495,.0927624,-.0449638,.293904,.0178454,.0958376,-.0502427,.300471,.0208915,.0995827,-.0559514,.30806,.0244247,.104526,-.0622152,.317874,.0285721,.110532,-.0690046,.329332,.0334227,.117385,-.0763068,.341217,.0390466,.12522,-.084184,.353968,.0455786,.134037,-.0925248,.366797,.0530773,.144014,-.101487,.380209,.0617424,.156013,-.111273,.395956,.071777,.168872,-.121431,.41053,.0830905,.183089,-.132105,.425073,.0959341,.198763,-.143286,.439833,.110448,.216159,-.154841,.454507,.126769,.234859,-.166588,.468368,.14495,.255879,-.178626,.482846,.165233,.27677,-.190218,.493489,.187217,.301184,-.202227,.506549,.211659,.325852,-.213764,.5158,.237922,.352824,-.22487,.525442,.26632,.380882,-.235246,.532487,.296691,.410137,-.244847,.537703,.329179,.439787,-.253122,.540361,.363135,.472291,-.260517,.542734,.399222,.501856,-.266519,.538826,.436352,.534816,-.270905,.535152,.474505,.565069,-.273826,.525979,.513988,.597154,-.275333,.516394,.554852,.630473,-.275314,.506206,.596592,.660574,-.273323,.489769,.638117,.692015,-.270008,.472578,.680457,.720647,-.265001,.452134,.723008,.750528,-.258311,.430344,.765954,.777568,-.250046,.405624,.809012,.80387,-.240114,.378339,.852425,.828439,-.228737,.349877,.895346,.851472,-.216632,.318968,.940695,.873906,-.202782,.287489,.987235,.89467,-.187059,.254394,1.03348,.912281,-.168818,.221294,1.07812,.927358,-.146494,.18675,1.11928,.940385,-.120009,.152322,1.15609,.952672,-.0917183,.117514,1.18875,.968496,-.0620321,.0797405,1.21821,.985236,-.0314945,.0402383,1.24523,.99998,-575153e-9,110644e-9,1.27133,.0702429,-512222e-11,.255273,140947e-11,.0702981,-128826e-9,.255469,354488e-10,.0703691,-515562e-9,.255727,141874e-9,.0703805,-.00116,.255754,31929e-8,.0703961,-.00206224,.255813,567999e-9,.0704102,-.00322223,.255839,88871e-8,.0704298,-.00463928,.255863,.00128272,.0704759,-.00631375,.255953,.00175283,.0705434,-.00824317,.256079,.00230342,.0706693,-.010412,.25636,.0029443,.0708189,-.0128439,.256647,.00368031,.0710364,-.0155177,.257084,.00452614,.0713223,-.0184374,.257637,.00549706,.0717182,-.0216002,.258416,.00661246,.072321,-.0249966,.259699,.00790147,.0731446,-.0286566,.261475,.0093884,.0743352,-.0325888,.264132,.0111186,.0760676,-.036843,.26815,.013145,.078454,-.0414292,.273636,.0155251,.0818618,-.0464634,.281653,.0183525,.0857382,-.0519478,.289992,.0216642,.0908131,-.0579836,.30066,.0255956,.0967512,-.0645124,.312204,.0301954,.103717,-.0716505,.325001,.0356017,.111596,-.0793232,.338129,.041896,.120933,-.087645,.352853,.0492447,.130787,-.096492,.366192,.0576749,.142311,-.105973,.380864,.0673969,.155344,-.116182,.396575,.0785899,.169535,-.126815,.411443,.0912377,.185173,-.138015,.426256,.105607,.201755,-.149325,.439607,.121551,.221334,-.161207,.455467,.139608,.241461,-.173162,.469096,.159591,.26294,-.18504,.481014,.18156,.286776,-.196881,.493291,.205781,.311596,-.208311,.503556,.231819,.338667,-.219671,.513268,.260274,.366021,-.230451,.519414,.290862,.395875,-.240131,.526766,.323196,.425564,-.248566,.52905,.357071,.457094,-.256195,.530796,.393262,.488286,-.262331,.528703,.430797,.522291,-.267141,.52727,.470231,.554172,-.270411,.519848,.510477,.586427,-.271986,.510307,.551594,.619638,-.27192,.499158,.593849,.650656,-.269817,.483852,.636314,.68284,-.266267,.467515,.679679,.714356,-.26113,.44931,.723884,.742717,-.254067,.425789,.767245,.770894,-.245652,.401144,.811819,.797358,-.235554,.374224,.856315,.823377,-.223896,.346167,.901077,.847456,-.210865,.316056,.946502,.870697,-.196574,.284503,.993711,.891068,-.180814,.251628,1.04134,.909267,-.163314,.219065,1.08609,.925653,-.143304,.186446,1.12702,.940017,-.121322,.153416,1.16371,.952398,-.0973872,.120334,1.19712,.967568,-.0698785,.08352,1.22791,.984772,-.0390031,.0439209,1.25672,1.00026,-.0070087,.00315668,1.28428,.0556653,-459654e-11,.227325,112556e-11,.0565238,-116382e-9,.230826,284985e-10,.0565717,-465666e-9,.231026,114036e-9,.0565859,-.00104773,.231079,256656e-9,.0565761,-.00186255,.231025,45663e-8,.0565913,-.00291002,.231058,714664e-9,.0566108,-.00418998,.231085,.00103224,.0566532,-.00570206,.231169,.00141202,.0567473,-.00743666,.231417,.00186018,.0568567,-.00940298,.231661,.00238264,.0569859,-.0115991,.231895,.00298699,.0572221,-.0140096,.232456,.00368957,.057519,-.0166508,.233096,.00450303,.0579534,-.01951,.234094,.00544945,.0585922,-.0225991,.235629,.00655564,.0595647,-.0259416,.238106,.00785724,.0609109,-.0295661,.241557,.00939127,.0628751,-.0335126,.246652,.0112198,.0656908,-.0378604,.254091,.0134168,.0691347,-.0426543,.262666,.0160374,.0732165,-.0478967,.272029,.0191514,.0782863,-.0536716,.283007,.0228597,.0843973,-.0600683,.295732,.0272829,.0913598,-.0670095,.308779,.032484,.0994407,-.0745516,.322886,.0385886,.108189,-.082712,.336408,.0457133,.118574,-.0914927,.351692,.0539832,.129989,-.100854,.366502,.0635162,.142722,-.110837,.381675,.0744386,.156654,-.121353,.3963,.0868483,.172151,-.132414,.411477,.100963,.188712,-.143809,.42508,.116795,.208093,-.155765,.441328,.134715,.227936,-.167608,.454328,.154396,.249495,-.179579,.467235,.176179,.27362,-.191488,.480248,.200193,.296371,-.202618,.487886,.225775,.324234,-.214133,.499632,.25441,.353049,-.225212,.509532,.285077,.381785,-.234875,.514265,.317047,.414038,-.244205,.521282,.351874,.445251,-.252145,.522931,.388279,.476819,-.258433,.520947,.425825,.509209,-.263411,.517669,.465104,.542759,-.266732,.512841,.505741,.574822,-.268263,.503317,.547611,.609324,-.268489,.493035,.590953,.641772,-.266941,.478816,.63488,.674049,-.263297,.462863,.679072,.705071,-.257618,.442931,.723487,.734709,-.250625,.421299,.768708,.763704,-.24179,.397085,.814375,.791818,-.231115,.370577,.859907,.817439,-.21922,.34232,.906715,.843202,-.205658,.312627,.953943,.866639,-.190563,.280933,1.00185,.888129,-.173978,.248393,1.05105,.907239,-.155485,.216007,1.09704,.923893,-.134782,.183233,1.13857,.938882,-.11249,.150376,1.17539,.952464,-.0890706,.117177,1.20924,.968529,-.0646523,.0813095,1.24055,.984763,-.038606,.0439378,1.27018,1.00053,-.01238,.00598668,1.29873,.0437928,-409594e-11,.204012,879224e-12,.0440166,-103395e-9,.205049,221946e-10,.0440529,-413633e-9,.205225,887981e-10,.0440493,-930594e-9,.2052,199858e-9,.0439884,-.00165352,.204901,355495e-9,.0440716,-.0025849,.205255,556983e-9,.0440968,-.00372222,.205311,805326e-9,.0441359,-.00506478,.205391,.00110333,.0442231,-.00660384,.205638,.00145768,.0443254,-.00835246,.205877,.00187275,.0444832,-.0102992,.20627,.00235938,.0447001,-.0124449,.206796,.0029299,.0450168,-.0147935,.207593,.0036005,.0454816,-.017336,.208819,.00439246,.0462446,-.0201156,.211036,.00533864,.0473694,-.0231568,.214388,.00646984,.0490191,-.0264941,.219357,.00783856,.0512776,-.030184,.226061,.00950182,.0541279,-.0342661,.234094,.0115156,.0578989,-.0388539,.244297,.0139687,.0620835,-.0438735,.254457,.0169015,.0673497,-.04951,.266706,.0204554,.0731759,-.0556263,.278753,.0246606,.0803937,-.0624585,.29309,.0297126,.0879287,-.0697556,.305856,.0355868,.0970669,-.0778795,.321059,.0425768,.106508,-.0863541,.333873,.05056,.11776,-.0955935,.349008,.0598972,.130081,-.105438,.363776,.0706314,.144454,-.115899,.380112,.0828822,.1596,-.126827,.394843,.0967611,.176097,-.138161,.409033,.112381,.194726,-.149904,.424257,.129952,.213944,-.161675,.436945,.149333,.235516,-.173659,.450176,.170892,.260564,-.185963,.466305,.194984,.285183,-.197582,.477328,.220805,.311095,-.208697,.486566,.248694,.338924,-.219519,.494811,.279015,.369757,-.229766,.504065,.311725,.3996,-.238879,.507909,.345844,.430484,-.246802,.509805,.381749,.46413,-.253924,.511436,.420251,.497077,-.259319,.508787,.459957,.530434,-.263297,.50394,.501356,.565725,-.265619,.49804,.544252,.599254,-.265842,.487346,.587856,.631251,-.263978,.472975,.631969,.663972,-.26043,.457135,.677471,.697724,-.255358,.439844,.723744,.727725,-.248308,.417872,.770653,.756417,-.239181,.39273,.817357,.785419,-.22814,.367839,.864221,.81266,-.215681,.339449,.912701,.839391,-.201623,.309279,.962419,.86366,-.185624,.278029,1.0122,.885028,-.16797,.245294,1.06186,.904639,-.148336,.212689,1.10934,.922048,-.12637,.179616,1.15063,.936952,-.102928,.146749,1.18885,.951895,-.0785268,.112733,1.22352,.967198,-.0530153,.0760056,1.25681,.984405,-.02649,.0383183,1.28762,1.00021,70019e-8,-20039e-8,1.31656,.0325964,-355447e-11,.176706,655682e-12,.0329333,-899174e-10,.178527,165869e-10,.0329181,-359637e-9,.178453,663498e-10,.0329085,-808991e-9,.178383,149332e-9,.0329181,-.00143826,.178394,265873e-9,.0329425,-.00224678,.178517,416597e-9,.0329511,-.00323575,.17849,603299e-9,.033011,-.00439875,.178695,829422e-9,.0330733,-.00574059,.178843,.00109908,.0331857,-.00725896,.179176,.00141933,.0333445,-.00895289,.179618,.0017999,.0335674,-.0108219,.180238,.00225316,.033939,-.0128687,.181417,.00279765,.0345239,-.015114,.183395,.0034564,.0354458,-.017596,.186616,.00425864,.0368313,-.0203524,.191547,.00524936,.0386115,-.0234105,.197508,.00647033,.0410303,-.0268509,.205395,.00798121,.0442245,-.0307481,.215365,.0098557,.0478659,-.0350863,.225595,.0121417,.0522416,-.0399506,.236946,.0149385,.0574513,-.045357,.249442,.0183189,.0631208,-.0512863,.261222,.0223644,.0701124,-.0579273,.275418,.0272418,.0777331,-.0650652,.288989,.0329458,.0862709,-.0728813,.302546,.0396819,.096103,-.081363,.317164,.04757,.106976,-.0904463,.331733,.0567012,.119175,-.100105,.34661,.067202,.132919,-.110375,.362249,.0792588,.147727,-.121115,.376978,.0928672,.163618,-.132299,.390681,.108228,.182234,-.143887,.406571,.125502,.201809,-.155827,.42042,.144836,.225041,-.168357,.438411,.166706,.247621,-.18004,.450368,.189909,.27097,-.191536,.460083,.215251,.296658,-.203024,.469765,.243164,.325892,-.214056,.481837,.273388,.35406,-.224104,.487474,.305344,.384372,-.233489,.492773,.339741,.41749,-.241874,.498451,.376287,.45013,-.248834,.499632,.414195,.481285,-.254658,.495233,.454077,.519183,-.259367,.496401,.496352,.551544,-.261818,.487686,.538798,.587349,-.262964,.479453,.583626,.621679,-.262128,.467709,.629451,.654991,-.258998,.452123,.67566,.686873,-.254119,.433495,.723248,.719801,-.246946,.413657,.771156,.750355,-.237709,.390366,.81989,.780033,-.226549,.364947,.868601,.809254,-.214186,.337256,.920034,.836576,-.199639,.307395,.971706,.861774,-.183169,.275431,1.02479,.885707,-.165111,.243431,1.07837,.904742,-.144363,.210921,1.12783,.915604,-.121305,.17647,1.17254,.930959,-.0962119,.143106,1.21012,.948404,-.069969,.108112,1.24474,.967012,-.0427586,.0708478,1.27718,.984183,-.0147043,.032335,1.3083,.999577,.0142165,-.00726867,1.3382,.0229227,-299799e-11,.148623,462391e-12,.0232194,-758796e-10,.15054,117033e-10,.0232315,-303636e-9,.15063,468397e-10,.0232354,-683189e-9,.150624,105472e-9,.0232092,-.0012136,.150445,187744e-9,.0232523,-.00189765,.150679,294847e-9,.0232828,-.00273247,.150789,428013e-9,.0233371,-.00371287,.150995,591134e-9,.0234015,-.00484794,.15118,787642e-9,.023514,-.00612877,.151562,.00102547,.023679,-.00756125,.152116,.00131351,.0239559,-.00914651,.153162,.00166594,.0244334,-.010904,.155133,.00210182,.025139,-.0128615,.158035,.00264406,.0262598,-.0150628,.162751,.00332923,.0277875,-.0175532,.168944,.00419773,.0298472,-.0203981,.176835,.00530034,.0325444,-.023655,.186686,.00669777,.0355581,-.0272982,.196248,.00842661,.0392841,-.0314457,.207352,.0105854,.0436815,-.0361157,.219279,.0132458,.0485272,-.0412932,.230728,.0164736,.0541574,-.0470337,.242994,.0203715,.0609479,-.0535002,.257042,.0250953,.0685228,-.0605409,.27102,.0306856,.0768042,-.0680553,.28406,.037193,.0864844,-.0765011,.299186,.0449795,.0969415,-.0852674,.3132,.0538316,.108478,-.0947333,.327138,.0641149,.121705,-.10481,.342345,.0759185,.136743,-.115474,.358472,.0894116,.152986,-.126536,.374067,.104562,.170397,-.138061,.388267,.121632,.191392,-.150203,.406467,.140996,.211566,-.161751,.418641,.161696,.233567,-.173407,.430418,.184557,.257769,-.185397,.44277,.210092,.28531,-.197048,.457191,.237827,.311726,-.20784,.464712,.267253,.340537,-.218345,.472539,.299332,.372921,-.228306,.482331,.333988,.402924,-.236665,.484378,.369722,.434475,-.244097,.484717,.407836,.469736,-.250547,.487093,.448465,.505045,-.25511,.485575,.490263,.540262,-.258444,.481225,.534495,.576347,-.259903,.473481,.579451,.608656,-.259572,.4603,.625604,.646679,-.257908,.450341,.674511,.679902,-.253663,.431561,.723269,.714159,-.247419,.412684,.773263,.745345,-.239122,.389388,.824182,.778248,-.228837,.365361,.876634,.807208,-.216197,.337667,.92945,.835019,-.201772,.307197,.985261,.860261,-.185291,.274205,1.04299,.877601,-.165809,.240178,1.09816,.898211,-.143897,.207571,1.14694,.915789,-.119513,.174904,1.19008,.931831,-.0932919,.141423,1.2297,.949244,-.0656528,.105603,1.26553,.967527,-.0370262,.0679551,1.29986,.984139,-.00730117,.0283133,1.33252,.999713,.0234648,-.0121785,1.36397,.0152135,-245447e-11,.122795,304092e-12,.0151652,-615778e-10,.122399,76292e-10,.0151181,-245948e-9,.122023,304802e-10,.0151203,-553394e-9,.12203,686634e-10,.015125,-983841e-9,.122037,122463e-9,.0151427,-.00153774,.12214,192706e-9,.0151708,-.0022103,.122237,281219e-9,.0152115,-.00300741,.12238,390804e-9,.0152877,-.00392494,.1227,526317e-9,.015412,-.00496597,.123244,69443e-8,.0156201,-.00613314,.124228,90547e-8,.0159658,-.00744113,.125945,.0011732,.0165674,-.00892546,.129098,.00151888,.017487,-.010627,.133865,.00197007,.018839,-.0126043,.140682,.0025637,.020554,-.0148814,.148534,.00333637,.0226727,-.0175123,.157381,.00433738,.0251879,-.0205266,.166685,.00561664,.0283635,-.0240319,.177796,.00725563,.0318694,-.0279432,.188251,.00928811,.0361044,-.0324313,.200038,.011835,.0406656,-.0373527,.210685,.0149146,.0463846,-.0430132,.224182,.0187254,.0525696,-.0491013,.23634,.0232283,.0598083,-.0559175,.250013,.0286521,.0679437,-.0633657,.263981,.0350634,.0771181,-.0714602,.278072,.0425882,.0881273,-.0803502,.29511,.0514487,.0996628,-.0896903,.309976,.0615766,.112702,-.099644,.325611,.0732139,.126488,-.109829,.339321,.0862324,.142625,-.120859,.35574,.101275,.15953,-.131956,.369845,.117892,.176991,-.143145,.38146,.136205,.199715,-.155292,.40052,.157252,.220787,-.167066,.412055,.179966,.243697,-.178396,.423133,.204418,.272106,-.190433,.439524,.232141,.297637,-.201265,.447041,.261109,.325273,-.211834,.454488,.292627,.357219,-.221889,.465004,.326669,.387362,-.230729,.468527,.362426,.423131,-.23924,.475836,.401533,.45543,-.246067,.475017,.441902,.493393,-.251557,.478017,.484239,.526253,-.255571,.4709,.528586,.560554,-.257752,.463167,.574346,.599306,-.258076,.456452,.621655,.634541,-.256471,.443725,.670492,.668907,-.253283,.428719,.721943,.705619,-.247562,.411348,.772477,.739034,-.240626,.388939,.8264,.771408,-.231493,.36425,.881702,.803312,-.220125,.337321,.9385,.828457,-.206645,.305364,.997437,.854819,-.190664,.273715,1.05693,.878666,-.171429,.242218,1.11251,.898404,-.149235,.209556,1.16398,.917416,-.12435,.176863,1.21014,.933133,-.0972703,.142775,1.25178,.95066,-.0683607,.106735,1.29028,.968589,-.0378724,.0681609,1.32703,.984776,-.00605712,.0273966,1.36158,.99994,.0263276,-.0138124,1.3943,.00867437,-186005e-11,.0928979,173682e-12,.00864003,-466389e-10,.0925237,435505e-11,.00864593,-186594e-9,.0925806,174322e-10,.00864095,-419639e-9,.0924903,392862e-10,.00863851,-746272e-9,.0924589,702598e-10,.00868531,-.00116456,.0929,111188e-9,.00869667,-.00167711,.0928529,163867e-9,.00874332,-.00228051,.0930914,23104e-8,.00882709,-.00297864,.0935679,31741e-8,.00898874,-.00377557,.0946165,430186e-9,.00929346,-.00469247,.0967406,580383e-9,.00978271,-.00575491,.100084,783529e-9,.0105746,-.00701514,.105447,.00106304,.0116949,-.00851797,.112494,.00144685,.0130419,-.0102757,.119876,.00196439,.0148375,-.012381,.129034,.00266433,.0168725,-.01482,.137812,.00358364,.0193689,-.0176563,.147696,.00478132,.0222691,-.0209211,.157795,.00631721,.0256891,-.0246655,.168431,.00826346,.0294686,-.0288597,.178587,.0106714,.0340412,-.0336441,.190251,.0136629,.0393918,-.039033,.202999,.0173272,.0453947,-.0450087,.215655,.0217448,.0521936,-.0515461,.228686,.0269941,.0600279,-.058817,.242838,.033272,.0692398,-.0667228,.258145,.0406457,.0793832,-.0752401,.273565,.0492239,.0902297,-.0841851,.287735,.0590105,.102014,-.0936479,.301161,.0702021,.116054,-.103967,.317438,.0832001,.13191,-.114622,.334166,.0977951,.148239,-.125452,.348192,.113985,.165809,-.136453,.361094,.131928,.184616,-.147648,.373534,.151811,.207491,-.159607,.39101,.174476,.230106,-.171119,.402504,.198798,.257036,-.182906,.418032,.225796,.281172,-.193605,.425468,.254027,.312034,-.204771,.440379,.285713,.340402,-.214988,.445406,.319196,.370231,-.224711,.44968,.35537,.407105,-.233516,.460747,.393838,.439037,-.240801,.460624,.433747,.47781,-.24762,.465957,.477234,.510655,-.251823,.460054,.52044,.550584,-.255552,.459172,.567853,.585872,-.257036,.450311,.615943,.620466,-.257535,.437763,.667693,.660496,-.255248,.426639,.718988,.695578,-.251141,.409185,.772503,.732176,-.244718,.39015,.827023,.760782,-.236782,.362594,.885651,.79422,-.225923,.33711,.943756,.824521,-.213855,.308272,1.00874,.854964,-.197723,.278529,1.06764,.878065,-.179209,.246208,1.12836,.899834,-.157569,.21329,1.18318,.918815,-.133206,.181038,1.23161,.934934,-.106545,.146993,1.27644,.952115,-.0780574,.111175,1.31842,.96906,-.0478279,.0728553,1.35839,.985178,-.0160014,.032579,1.39697,1.00039,.0173126,-.0095256,1.43312,.00384146,-124311e-11,.0613583,778271e-13,.00390023,-314043e-10,.0622919,196626e-11,.00389971,-125622e-9,.0622632,787379e-11,.00389491,-282352e-9,.0620659,1778e-8,.00391618,-502512e-9,.0624687,320918e-10,.00392662,-784458e-9,.0625113,515573e-10,.00396053,-.00112907,.0628175,778668e-10,.00401911,-.00153821,.0633286,113811e-9,.00414994,-.0020208,.0646443,16445e-8,.00441223,-.00260007,.0673886,237734e-9,.00484427,-.0033097,.0716528,345929e-9,.00549109,-.00418966,.0774998,505987e-9,.00636293,-.00527331,.0844758,739208e-9,.00746566,-.00660428,.0921325,.00107347,.00876625,-.00818826,.0997067,.00153691,.0103125,-.0100811,.107433,.00217153,.0123309,-.0123643,.117088,.00303427,.0146274,-.0150007,.126438,.00416018,.0172295,-.0180531,.135672,.00561513,.0204248,-.0215962,.146244,.007478,.0241597,-.0256234,.157481,.00981046,.0284693,-.0302209,.169125,.0127148,.033445,-.0353333,.181659,.0162453,.0391251,-.0410845,.1944,.0205417,.0454721,-.0473451,.207082,.0256333,.0530983,-.0542858,.221656,.0317036,.0615356,-.0618384,.236036,.0388319,.0703363,-.0697631,.248398,.046974,.0810391,-.0784757,.263611,.0565246,.0920144,-.0873488,.275857,.0671724,.105584,-.0973652,.292555,.0798105,.119506,-.107271,.306333,.0935945,.134434,-.117608,.318888,.109106,.153399,-.128938,.337552,.127074,.171258,-.139944,.349955,.14643,.191059,-.151288,.361545,.168,.215069,-.163018,.378421,.192082,.237838,-.174226,.38879,.217838,.266965,-.186063,.405857,.246931,.292827,-.196909,.414146,.277505,.324352,-.207473,.426955,.310711,.354427,-.217713,.433429,.346794,.389854,-.227183,.443966,.385237,.420749,-.235131,.44471,.424955,.459597,-.242786,.451729,.468446,.495316,-.248767,.45072,.513422,.534903,-.253351,.450924,.560618,.572369,-.256277,.445266,.609677,.612383,-.2576,.438798,.660995,.644037,-.256931,.421693,.713807,.686749,-.254036,.4109,.767616,.719814,-.249785,.390151,.82533,.754719,-.244283,.367847,.888311,.792022,-.235076,.345013,.948177,.822404,-.225061,.316193,1.01661,.853084,-.211113,.287013,1.08075,.879871,-.19449,.255424,1.14501,.901655,-.174023,.222879,1.20203,.919957,-.1509,.18989,1.25698,.938412,-.124923,.15606,1.30588,.953471,-.0968139,.120512,1.3529,.970451,-.066734,.0828515,1.3986,.985522,-.034734,.0424458,1.44148,1.00099,-.00102222,678929e-9,1.48398,965494e-9,-627338e-12,.0306409,197672e-13,99168e-8,-158573e-10,.0314638,499803e-12,991068e-9,-634012e-10,.031363,200682e-11,974567e-9,-14144e-8,.03036,457312e-11,998079e-9,-252812e-9,.031496,860131e-11,.00102243,-396506e-9,.0319955,148288e-10,.00107877,-577593e-9,.0331376,249141e-10,.00121622,-816816e-9,.0359396,423011e-10,.0014455,-.00113761,.0399652,724613e-10,.00178791,-.00156959,.0450556,123929e-9,.00225668,-.00214064,.0508025,208531e-9,.00285627,-.00287655,.0568443,341969e-9,.0035991,-.00380271,.0630892,544158e-9,.00455524,-.00496264,.0702204,842423e-9,.00569143,-.0063793,.0773426,.00126704,.00716928,-.00813531,.0860839,.00186642,.00885307,-.0101946,.0944079,.00267014,.0109316,-.0126386,.103951,.00374033,.0133704,-.0154876,.113786,.0051304,.0161525,-.0187317,.123477,.00688858,.0194267,-.0224652,.133986,.00910557,.0230967,-.0265976,.143979,.0118074,.0273627,-.0312848,.154645,.0151266,.0323898,-.0365949,.166765,.0191791,.0379225,-.0422914,.177932,.0239236,.0447501,-.0487469,.19167,.0296568,.0519391,-.0556398,.203224,.0362924,.0599464,-.0631646,.215652,.0440585,.0702427,-.0714308,.232089,.0531619,.0806902,-.0800605,.245258,.0634564,.0923194,-.0892815,.258609,.0752481,.106938,-.09931,.276654,.0888914,.121238,-.109575,.289847,.104055,.138817,-.120461,.307566,.121266,.15595,-.131209,.320117,.139944,.178418,-.143049,.339677,.161591,.197875,-.154074,.349886,.184303,.224368,-.166307,.369352,.210669,.252213,-.178051,.386242,.238895,.277321,-.189335,.395294,.269182,.310332,-.200683,.412148,.302508,.338809,-.210856,.418266,.337264,.372678,-.220655,.428723,.374881,.405632,-.230053,.433887,.415656,.442293,-.237993,.439911,.457982,.477256,-.244897,.440175,.502831,.515592,-.250657,.441079,.550277,.550969,-.255459,.435219,.601102,.592883,-.257696,.432882,.651785,.629092,-.259894,.421054,.708961,.672033,-.258592,.41177,.763806,.709147,-.256525,.395267,.824249,.745367,-.254677,.375013,.8951,.784715,-.247892,.353906,.959317,.818107,-.240162,.327801,1.03153,.847895,-.229741,.298821,1.10601,.879603,-.213084,.269115,1.164,.902605,-.195242,.236606,1.22854,.922788,-.174505,.203442,1.29017,.944831,-.150169,.169594,1.34157,.959656,-.124099,.135909,1.3956,.972399,-.0960626,.0990563,1.45128,.986549,-.0657097,.0602348,1.50312,1.00013,-.0333558,.0186694,1.55364,619747e-11,-1e-7,.00778326,796756e-16,237499e-13,-999999e-13,282592e-10,114596e-15,100292e-11,-166369e-11,250354e-9,677492e-14,350752e-11,-637769e-11,357289e-9,631655e-13,826445e-11,-174689e-10,516179e-9,31851e-11,242481e-10,-450868e-10,.0010223,130577e-11,455631e-10,-89044e-9,.00144302,374587e-11,971222e-10,-178311e-9,.00241912,102584e-10,171403e-9,-313976e-9,.00354938,236481e-10,292747e-9,-520026e-9,.00513765,496014e-10,789827e-9,-.00118187,.0238621,139056e-9,.00114093,-.00171827,.0286691,244093e-9,.00176119,-.00249667,.0368565,420623e-9,.0022233,-.00333742,.0400469,65673e-8,.00343382,-.00481976,.0535751,.00109323,.00427602,-.00600755,.057099,.00155268,.00461435,-.00737637,.0551084,.00215031,.00695698,-.00971401,.0715767,.00316529,.00867619,-.0120943,.0793314,.00436995,.0106694,-.0148202,.0869391,.0058959,.0140351,-.0183501,.101572,.00798757,.0168939,-.022006,.11018,.0104233,.020197,-.0261568,.119041,.0134167,.0254702,-.0312778,.135404,.0173009,.0298384,-.0362469,.1437,.0215428,.035159,-.042237,.15512,.0268882,.0427685,-.0488711,.17128,.033235,.0494848,-.0557997,.181813,.0404443,.0592394,-.0635578,.198745,.0490043,.0681463,-.071838,.210497,.0588239,.0804753,-.0809297,.228864,.0702835,.0942205,-.0906488,.247008,.0834012,.106777,-.100216,.258812,.0975952,.124471,-.110827,.278617,.114162,.138389,-.121193,.287049,.131983,.159543,-.13253,.307151,.152541,.176432,-.143611,.31564,.174673,.201723,-.15548,.33538,.199842,.229721,-.167166,.355256,.227097,.250206,-.178238,.360047,.256014,.282118,-.189905,.378761,.28855,.312821,-.201033,.39181,.323348,.341482,-.211584,.397716,.360564,.377368,-.221314,.410141,.400004,.418229,-.230474,.423485,.442371,.444881,-.239443,.418874,.488796,.488899,-.245987,.427545,.535012,.520317,-.253948,.422147,.589678,.568566,-.256616,.42719,.637683,.599607,-.26376,.415114,.703363,.64222,-.268687,.408715,.771363,.685698,-.2694,.399722,.83574,.732327,-.266642,.388651,.897764,.769873,-.267712,.369198,.983312,.806733,-.263479,.346802,1.06222,.843466,-.254575,.321368,1.13477,.873008,-.242749,.29211,1.20712,.908438,-.22725,.262143,1.27465,.936321,-.207621,.228876,1.33203,.950353,-.187932,.19484,1.40439,.96442,-.165154,.163178,1.4732,.979856,-.139302,.127531,1.53574,.982561,-.11134,.0903457,1.59982,.996389,-.0808124,.0489007,1.6577],n3=[1,0,0,0,1,791421e-36,0,0,1,104392e-29,0,0,1,349405e-26,0,0,1,109923e-23,0,0,1,947414e-22,0,0,1,359627e-20,0,0,1,772053e-19,0,0,1,108799e-17,0,0,1,110655e-16,0,0,1,865818e-16,0,0,.999998,545037e-15,0,0,.999994,285095e-14,0,0,.999989,126931e-13,0,0,.999973,489938e-13,0,0,.999947,166347e-12,0,0,.999894,502694e-12,0,0,.999798,136532e-11,0,0,.999617,335898e-11,0,0,.999234,752126e-11,0,0,.998258,152586e-10,0,0,.99504,266207e-10,0,0,.980816,236802e-10,0,0,.967553,207684e-11,0,0,.966877,403733e-11,0,0,.965752,741174e-11,0,0,.96382,127746e-10,0,0,.960306,202792e-10,0,0,.953619,280232e-10,0,0,.941103,278816e-10,0,0,.926619,160221e-10,0,0,.920983,235164e-10,0,0,.912293,311924e-10,0,.0158731,.899277,348118e-10,0,.0476191,.880884,26041e-9,0,.0793651,.870399,338726e-10,0,.111111,.856138,392906e-10,0,.142857,.837436,372874e-10,0,.174603,.820973,392558e-10,0,.206349,.803583,434658e-10,0,.238095,.782168,40256e-9,0,.269841,.764107,448159e-10,0,.301587,.743092,457627e-10,0,.333333,.721626,455314e-10,0,.365079,.700375,477335e-10,0,.396825,.677334,461072e-10,0,.428571,.655702,484393e-10,0,.460317,.632059,464583e-10,0,.492064,.610125,483923e-10,0,.52381,.58653,464342e-10,0,.555556,.564508,477033e-10,0,.587302,.541405,459263e-10,0,.619048,.519556,46412e-9,0,.650794,.497292,448913e-10,0,.68254,.475898,445789e-10,0,.714286,.454722,433496e-10,0,.746032,.434042,423054e-10,0,.777778,.414126,413737e-10,0,.809524,.394387,397265e-10,0,.84127,.375841,390709e-10,0,.873016,.357219,369938e-10,0,.904762,.340084,365618e-10,0,.936508,.322714,342533e-10,0,.968254,.306974,339596e-10,0,1,1,101524e-23,0,0,1,10292e-22,0,0,1,130908e-23,0,0,1,473331e-23,0,0,1,625319e-22,0,0,1,107932e-20,0,0,1,163779e-19,0,0,1,203198e-18,0,0,1,204717e-17,0,0,.999999,168995e-16,0,0,.999998,115855e-15,0,0,.999996,66947e-14,0,0,.999991,330863e-14,0,0,.999983,141737e-13,0,0,.999968,532626e-13,0,0,.99994,177431e-12,0,0,.999891,528835e-12,0,0,.999797,142169e-11,0,0,.999617,347057e-11,0,0,.999227,77231e-10,0,0,.998239,155753e-10,0,0,.994937,268495e-10,0,0,.980225,213742e-10,0,0,.967549,21631e-10,0,0,.966865,417989e-11,0,0,.965739,763341e-11,0,0,.963794,130892e-10,0,0,.960244,206456e-10,0,0,.953495,282016e-10,0,148105e-9,.940876,271581e-10,0,.002454,.926569,164159e-10,0,.00867491,.920905,239521e-10,0,.01956,.912169,315127e-10,0,.035433,.899095,346626e-10,0,.056294,.882209,290223e-10,0,.0818191,.870272,342992e-10,0,.111259,.855977,394164e-10,0,.142857,.837431,372343e-10,0,.174603,.820826,396691e-10,0,.206349,.803408,435395e-10,0,.238095,.782838,419579e-10,0,.269841,.763941,450953e-10,0,.301587,.742904,455847e-10,0,.333333,.721463,458833e-10,0,.365079,.700197,477159e-10,0,.396825,.677501,470641e-10,0,.428571,.655527,484732e-10,0,.460317,.6324,476834e-10,0,.492064,.609964,484213e-10,0,.52381,.586839,475541e-10,0,.555556,.564353,476951e-10,0,.587302,.541589,467611e-10,0,.619048,.519413,463493e-10,0,.650794,.497337,453994e-10,0,.68254,.475797,445308e-10,0,.714286,.454659,435787e-10,0,.746032,.434065,424839e-10,0,.777778,.414018,41436e-9,0,.809524,.39455,401902e-10,0,.84127,.375742,390813e-10,0,.873016,.357501,377116e-10,0,.904762,.339996,36535e-9,0,.936508,.323069,351265e-10,0,.968254,.306897,339112e-10,0,1,1,10396e-19,0,0,1,104326e-20,0,0,1,110153e-20,0,0,1,144668e-20,0,0,1,34528e-19,0,0,1,175958e-19,0,0,1,12627e-17,0,0,1,936074e-18,0,0,1,645742e-17,0,0,.999998,401228e-16,0,0,.999997,222338e-15,0,0,.999995,10967e-13,0,0,.999991,482132e-14,0,0,.999981,189434e-13,0,0,.999967,667716e-13,0,0,.999938,212066e-12,0,0,.999886,60977e-11,0,0,.999792,159504e-11,0,0,.999608,381191e-11,0,0,.999209,833727e-11,0,0,.998179,165288e-10,0,0,.994605,274387e-10,0,0,.979468,167316e-10,0,0,.967529,242877e-11,0,0,.966836,461696e-11,0,0,.96569,830977e-11,0,0,.963706,140427e-10,0,244659e-11,.960063,217353e-10,0,760774e-9,.953113,286606e-10,0,.00367261,.940192,247691e-10,0,.00940263,.927731,195814e-10,0,.018333,.920669,252531e-10,0,.0306825,.911799,324277e-10,0,.0465556,.89857,340982e-10,0,.0659521,.883283,319622e-10,0,.0887677,.86989,35548e-9,0,.114784,.855483,397143e-10,0,.143618,.837987,391665e-10,0,.174606,.820546,411306e-10,0,.206349,.802878,436753e-10,0,.238095,.783402,444e-7,0,.269841,.763439,458726e-10,0,.301587,.742925,467097e-10,0,.333333,.721633,478887e-10,0,.365079,.69985,481251e-10,0,.396825,.67783,491811e-10,0,.428571,.655126,488199e-10,0,.460318,.632697,496025e-10,0,.492064,.609613,48829e-9,0,.52381,.587098,492754e-10,0,.555556,.564119,482625e-10,0,.587302,.541813,482807e-10,0,.619048,.519342,471552e-10,0,.650794,.497514,466765e-10,0,.68254,.475879,455582e-10,0,.714286,.454789,446007e-10,0,.746032,.434217,435382e-10,0,.777778,.414086,421753e-10,0,.809524,.394744,412093e-10,0,.84127,.375782,396634e-10,0,.873016,.357707,386419e-10,0,.904762,.340038,370345e-10,0,.936508,.323284,359725e-10,0,.968254,.306954,3436e-8,0,1,1,599567e-19,0,0,1,600497e-19,0,0,1,614839e-19,0,0,1,686641e-19,0,0,1,972658e-19,0,0,1,221271e-18,0,0,1,833195e-18,0,0,1,403601e-17,0,0,.999999,206001e-16,0,0,.999998,101739e-15,0,0,.999997,470132e-15,0,0,.999993,200436e-14,0,0,.999988,783682e-14,0,0,.999979,280338e-13,0,0,.999962,917033e-13,0,0,.999933,274514e-12,0,0,.999881,753201e-12,0,0,.999783,189826e-11,0,0,.999594,440279e-11,0,0,.999178,93898e-10,0,0,.998073,181265e-10,0,0,.993993,280487e-10,0,0,.979982,149422e-10,0,0,.968145,378481e-11,0,0,.966786,53771e-10,0,0,.965611,947508e-11,0,388934e-10,.963557,156616e-10,0,9693e-7,.959752,235144e-10,0,.00370329,.952461,291568e-10,0,.00868428,.940193,240102e-10,0,.0161889,.929042,231235e-10,0,.0263948,.920266,273968e-10,0,.0394088,.911178,337915e-10,0,.0552818,.897873,333629e-10,0,.0740138,.884053,351405e-10,0,.0955539,.869455,378034e-10,0,.119795,.854655,399378e-10,0,.14656,.838347,419108e-10,0,.175573,.820693,440831e-10,0,.206388,.802277,445599e-10,0,.238095,.783634,472691e-10,0,.269841,.763159,476984e-10,0,.301587,.742914,491487e-10,0,.333333,.721662,502312e-10,0,.365079,.699668,502817e-10,0,.396825,.677839,51406e-9,0,.428571,.655091,511095e-10,0,.460317,.632665,516067e-10,0,.492064,.609734,512255e-10,0,.52381,.587043,510263e-10,0,.555556,.564298,50565e-9,0,.587302,.541769,497951e-10,0,.619048,.519529,492698e-10,0,.650794,.497574,482066e-10,0,.68254,.476028,473689e-10,0,.714286,.454961,461941e-10,0,.746032,.434341,450618e-10,0,.777778,.414364,438355e-10,0,.809524,.394832,424196e-10,0,.84127,.376109,412563e-10,0,.873016,.35779,396226e-10,0,.904762,.340379,384886e-10,0,.936508,.323385,368214e-10,0,.968254,.307295,356636e-10,0,1,1,106465e-17,0,0,1,106555e-17,0,0,1,107966e-17,0,0,1,114601e-17,0,0,1,137123e-17,0,0,1,21243e-16,0,0,.999999,489653e-17,0,0,.999999,160283e-16,0,0,.999998,62269e-15,0,0,.999997,251859e-15,0,0,.999996,996192e-15,0,0,.999992,374531e-14,0,0,.999986,132022e-13,0,0,.999975,433315e-13,0,0,.999959,131956e-12,0,0,.999927,372249e-12,0,0,.999871,972461e-12,0,0,.999771,235343e-11,0,0,.999572,52768e-10,0,0,.999133,109237e-10,0,0,.997912,203675e-10,0,0,.993008,279396e-10,0,0,.980645,139604e-10,0,0,.970057,646596e-11,0,0,.966717,65089e-10,0,474145e-10,.965497,111863e-10,0,89544e-8,.96334,179857e-10,0,.0032647,.959294,259045e-10,0,.0075144,.951519,292327e-10,0,.0138734,.940517,249769e-10,0,.0224952,.93014,26803e-9,0,.0334828,.91972,303656e-10,0,.0468973,.910294,353323e-10,0,.0627703,.897701,351002e-10,0,.0811019,.884522,388104e-10,0,.10186,.869489,412932e-10,0,.124985,.853983,415781e-10,0,.150372,.838425,454066e-10,0,.177868,.820656,471624e-10,0,.207245,.801875,475243e-10,0,.238143,.783521,505621e-10,0,.269841,.763131,50721e-9,0,.301587,.74261,523293e-10,0,.333333,.72148,528699e-10,0,.365079,.699696,538677e-10,0,.396825,.677592,539255e-10,0,.428571,.65525,546367e-10,0,.460317,.632452,541348e-10,0,.492064,.609903,544976e-10,0,.52381,.586928,536201e-10,0,.555556,.564464,535185e-10,0,.587302,.541801,524949e-10,0,.619048,.519681,51812e-9,0,.650794,.497685,507687e-10,0,.68254,.47622,496243e-10,0,.714286,.455135,485714e-10,0,.746032,.4346,471847e-10,0,.777778,.414564,459294e-10,0,.809524,.395165,444705e-10,0,.84127,.376333,430772e-10,0,.873016,.358197,416229e-10,0,.904762,.34064,401019e-10,0,.936508,.323816,386623e-10,0,.968254,.307581,370933e-10,0,1,1,991541e-17,0,0,1,992077e-17,0,0,1,100041e-16,0,0,1,10385e-15,0,0,1,115777e-16,0,0,1,150215e-16,0,0,.999999,254738e-16,0,0,.999999,598822e-16,0,0,.999998,179597e-15,0,0,.999997,602367e-15,0,0,.999994,206835e-14,0,0,.99999,694952e-14,0,0,.999984,223363e-13,0,0,.999972,678578e-13,0,0,.999952,193571e-12,0,0,.999919,516594e-12,0,0,.99986,128739e-11,0,0,.999753,299298e-11,0,0,.999546,648258e-11,0,0,.999074,129985e-10,0,0,.997671,232176e-10,0,0,.991504,256701e-10,0,0,.981148,131141e-10,0,0,.971965,869048e-11,0,280182e-10,.966624,808301e-11,0,695475e-9,.965344,135235e-10,0,.00265522,.963048,210592e-10,0,.00622975,.958673,287473e-10,0,.0116234,.950262,281379e-10,0,.018976,.940836,271089e-10,0,.0283844,.930996,30926e-9,0,.0399151,.919848,348359e-10,0,.0536063,.909136,366092e-10,0,.0694793,.897554,384162e-10,0,.0875342,.884691,430971e-10,0,.107749,.869414,447803e-10,0,.130087,.853462,452858e-10,0,.154481,.838187,495769e-10,0,.180833,.820381,502709e-10,0,.209005,.801844,522713e-10,0,.238791,.783061,541505e-10,0,.269869,.763205,553712e-10,0,.301587,.742362,564909e-10,0,.333333,.721393,572646e-10,0,.365079,.699676,581012e-10,0,.396825,.677395,58096e-9,0,.428571,.655208,585766e-10,0,.460317,.632451,583602e-10,0,.492064,.609839,580234e-10,0,.52381,.587093,577161e-10,0,.555556,.564467,568447e-10,0,.587302,.542043,563166e-10,0,.619048,.519826,55156e-9,0,.650794,.497952,541682e-10,0,.68254,.476477,528971e-10,0,.714286,.455412,514952e-10,0,.746032,.434926,502222e-10,0,.777778,.4149,485779e-10,0,.809524,.395552,472242e-10,0,.84127,.376712,454891e-10,0,.873016,.358622,440924e-10,0,.904762,.341048,422984e-10,0,.936508,.324262,408582e-10,0,.968254,.308013,390839e-10,0,1,1,613913e-16,0,0,1,614145e-16,0,0,1,617708e-16,0,0,1,633717e-16,0,0,1,681648e-16,0,0,1,808291e-16,0,0,1,114608e-15,0,0,.999998,210507e-15,0,0,.999997,499595e-15,0,0,.999995,139897e-14,0,0,.999994,419818e-14,0,0,.999988,127042e-13,0,0,.999979,375153e-13,0,0,.999965,106206e-12,0,0,.999945,285381e-12,0,0,.999908,723611e-12,0,0,.999846,17255e-10,0,0,.999733,386104e-11,0,0,.999511,808493e-11,0,0,.998993,156884e-10,0,0,.997326,265538e-10,0,0,.989706,206466e-10,0,0,.981713,130756e-10,0,70005e-10,.973636,106473e-10,0,464797e-9,.966509,10194e-9,0,.00201743,.965149,165881e-10,0,.00497549,.962669,249147e-10,0,.00953262,.95786,317449e-10,0,.0158211,.949334,281045e-10,0,.0239343,.941041,303263e-10,0,.0339372,.931575,356754e-10,0,.0458738,.920102,397075e-10,0,.059772,.908002,384886e-10,0,.075645,.897269,43027e-9,0,.0934929,.884559,479925e-10,0,.113302,.869161,48246e-9,0,.135045,.853342,509505e-10,0,.158678,.837633,542846e-10,0,.184136,.820252,554139e-10,0,.211325,.801872,581412e-10,0,.240113,.782418,585535e-10,0,.270306,.7631,610923e-10,0,.301594,.742183,613678e-10,0,.333333,.721098,627275e-10,0,.365079,.699512,629413e-10,0,.396825,.677372,636351e-10,0,.428571,.655059,633555e-10,0,.460317,.632567,636513e-10,0,.492064,.609784,628965e-10,0,.52381,.587237,625546e-10,0,.555556,.564525,615825e-10,0,.587302,.542181,605048e-10,0,.619048,.520017,596329e-10,0,.650794,.498204,581516e-10,0,.68254,.476742,569186e-10,0,.714286,.455803,553833e-10,0,.746032,.435251,537807e-10,0,.777778,.415374,522025e-10,0,.809524,.395921,503421e-10,0,.84127,.377253,488211e-10,0,.873016,.359021,468234e-10,0,.904762,.341637,453269e-10,0,.936508,.3247,433014e-10,0,.968254,.308625,418007e-10,0,1,1,286798e-15,0,0,1,286877e-15,0,0,1,288094e-15,0,0,1,293506e-15,0,0,1,309262e-15,0,0,.999999,348593e-15,0,0,.999999,444582e-15,0,0,.999998,688591e-15,0,0,.999996,134391e-14,0,0,.999993,317438e-14,0,0,.999989,835609e-14,0,0,.999983,228677e-13,0,0,.999974,623361e-13,0,0,.999959,165225e-12,0,0,.999936,419983e-12,0,0,.999896,101546e-11,0,0,.99983,232376e-11,0,0,.999709,50156e-10,0,0,.999469,10167e-9,0,0,.998886,190775e-10,0,0,.996819,300511e-10,0,0,.988837,185092e-10,0,168222e-12,.982178,134622e-10,0,259622e-9,.975017,125961e-10,0,.00142595,.967101,13507e-9,0,.00382273,.964905,205003e-10,0,.00764164,.96218,29546e-9,0,.0130121,.956821,343738e-10,0,.0200253,.948829,305063e-10,0,.0287452,.941092,346487e-10,0,.039218,.931883,412061e-10,0,.0514748,.920211,444651e-10,0,.0655351,.907307,431252e-10,0,.0814082,.89684,490382e-10,0,.0990939,.884119,53334e-9,0,.118583,.869148,54114e-9,0,.139856,.853377,578536e-10,0,.162882,.836753,592285e-10,0,.187615,.820063,622787e-10,0,.213991,.801694,645492e-10,0,.241918,.782116,65353e-9,0,.271267,.762673,674344e-10,0,.301847,.742133,682788e-10,0,.333333,.720779,691959e-10,0,.365079,.699386,696817e-10,0,.396826,.67732,699583e-10,0,.428572,.654888,698447e-10,0,.460318,.632499,694063e-10,0,.492064,.609825,691612e-10,0,.52381,.587287,681576e-10,0,.555556,.564743,674138e-10,0,.587302,.542409,661617e-10,0,.619048,.520282,647785e-10,0,.650794,.498506,633836e-10,0,.68254,.477102,615905e-10,0,.714286,.456167,601013e-10,0,.746032,.435728,581457e-10,0,.777778,.415809,564215e-10,0,.809524,.396517,544997e-10,0,.84127,.377737,525061e-10,0,.873016,.359698,506831e-10,0,.904762,.342164,48568e-9,0,.936508,.325417,467826e-10,0,.968254,.309186,446736e-10,0,1,1,109018e-14,0,0,1,10904e-13,0,0,1,109393e-14,0,0,1,11095e-13,0,0,1,1154e-12,0,0,1,126089e-14,0,0,.999999,15059e-13,0,0,.999997,207899e-14,0,0,.999994,348164e-14,0,0,.999993,705728e-14,0,0,.999987,163692e-13,0,0,.999981,406033e-13,0,0,.999969,10245e-11,0,0,.999953,255023e-12,0,0,.999925,61511e-11,0,0,.999881,142218e-11,0,0,.99981,313086e-11,0,0,.99968,653119e-11,0,0,.999418,12832e-9,0,0,.998748,232497e-10,0,0,.996066,329522e-10,0,0,.988379,179613e-10,0,108799e-9,.982567,143715e-10,0,921302e-9,.976097,148096e-10,0,.00280738,.968475,178905e-10,0,.00596622,.964606,253921e-10,0,.0105284,.961564,348623e-10,0,.0165848,.955517,357612e-10,0,.0242,.948381,343493e-10,0,.03342,.941095,405849e-10,0,.0442777,.931923,475394e-10,0,.0567958,.91996,484328e-10,0,.0709879,.907419,502146e-10,0,.086861,.89618,561654e-10,0,.104415,.88337,587612e-10,0,.123643,.869046,618057e-10,0,.144531,.853278,657392e-10,0,.167057,.836091,66303e-9,0,.191188,.819644,704445e-10,0,.216878,.801246,714071e-10,0,.244062,.782031,740093e-10,0,.272649,.762066,74685e-9,0,.302509,.741964,766647e-10,0,.333442,.720554,766328e-10,0,.365079,.699098,777857e-10,0,.396826,.677189,774633e-10,0,.428572,.65484,776235e-10,0,.460318,.632496,770316e-10,0,.492064,.609908,762669e-10,0,.52381,.587312,753972e-10,0,.555556,.564938,739994e-10,0,.587302,.542577,728382e-10,0,.619048,.52062,71112e-9,0,.650794,.498819,694004e-10,0,.68254,.477555,675575e-10,0,.714286,.456568,653449e-10,0,.746032,.436278,636068e-10,0,.777778,.41637,613466e-10,0,.809524,.397144,594177e-10,0,.84127,.378412,570987e-10,0,.873016,.360376,550419e-10,0,.904762,.342906,527422e-10,0,.936508,.326136,506544e-10,0,.968254,.30997,484307e-10,0,1,1,354014e-14,0,0,1,354073e-14,0,0,1,354972e-14,0,0,1,358929e-14,0,0,1,370093e-14,0,0,.999999,396194e-14,0,0,.999998,453352e-14,0,0,.999997,578828e-14,0,0,.999994,863812e-14,0,0,.999991,153622e-13,0,0,.999985,316356e-13,0,0,.999977,712781e-13,0,0,.999964,166725e-12,0,0,.999945,390501e-12,0,0,.999912,895622e-12,0,0,.999866,198428e-11,0,0,.999786,421038e-11,0,0,.999647,850239e-11,0,0,.999356,162059e-10,0,0,.998563,282652e-10,0,0,.994928,336309e-10,0,244244e-10,.987999,178458e-10,0,523891e-9,.982893,159162e-10,0,.00194729,.977044,178056e-10,0,.00451099,.969972,230624e-10,0,.00835132,.964237,313922e-10,0,.013561,.960791,406145e-10,0,.0202056,.954292,372796e-10,0,.0283321,.948052,403199e-10,0,.0379739,.940938,479537e-10,0,.0491551,.931689,545292e-10,0,.0618918,.91987,54038e-9,0,.0761941,.907665,589909e-10,0,.0920672,.895281,642651e-10,0,.109511,.882621,659707e-10,0,.12852,.86873,709973e-10,0,.149085,.853008,742221e-10,0,.171189,.835944,761754e-10,0,.194809,.818949,797052e-10,0,.21991,.800951,812434e-10,0,.246447,.781847,838075e-10,0,.274352,.761649,84501e-9,0,.303535,.74152,860258e-10,0,.333857,.720495,866233e-10,0,.365104,.698742,868326e-10,0,.396826,.677096,87133e-9,0,.428572,.654782,863497e-10,0,.460318,.632335,860206e-10,0,.492064,.610031,849337e-10,0,.52381,.587457,838279e-10,0,.555556,.56513,82309e-9,0,.587302,.542877,803542e-10,0,.619048,.5209,786928e-10,0,.650794,.499291,765171e-10,0,.68254,.477971,744753e-10,0,.714286,.457221,72209e-9,0,.746032,.436803,697448e-10,0,.777778,.417083,675333e-10,0,.809524,.397749,648058e-10,0,.84127,.379177,625759e-10,0,.873016,.361061,598584e-10,0,.904762,.343713,575797e-10,0,.936508,.326894,549999e-10,0,.968254,.310816,527482e-10,0,1,1,10153e-12,0,0,1,101544e-13,0,0,1,101751e-13,0,0,1,102662e-13,0,0,1,10521e-12,0,0,.999999,111049e-13,0,0,.999999,123408e-13,0,0,.999996,14924e-12,0,0,.999992,204471e-13,0,0,.999989,326539e-13,0,0,.99998,603559e-13,0,0,.999971,123936e-12,0,0,.999955,269058e-12,0,0,.999933,593604e-12,0,0,.999901,129633e-11,0,0,.999847,275621e-11,0,0,.999761,564494e-11,0,0,.999607,110485e-10,0,0,.999282,204388e-10,0,0,.99831,341084e-10,0,22038e-11,.993288,294949e-10,0,242388e-9,.987855,192736e-10,0,.0012503,.983167,182383e-10,0,.0032745,.977908,218633e-10,0,.00646321,.971194,290662e-10,0,.0109133,.963867,386401e-10,0,.0166927,.95982,462827e-10,0,.0238494,.953497,420705e-10,0,.0324178,.947621,477743e-10,0,.0424225,.940611,568258e-10,0,.0538808,.931174,618061e-10,0,.0668047,.919919,627098e-10,0,.0812014,.907856,694714e-10,0,.0970745,.894509,735008e-10,0,.114424,.881954,763369e-10,0,.133246,.868309,821896e-10,0,.153534,.852511,83769e-9,0,.175275,.835821,881615e-10,0,.198453,.817981,896368e-10,0,.223042,.800504,930906e-10,0,.249009,.78141,945056e-10,0,.276304,.761427,963605e-10,0,.304862,.74094,968088e-10,0,.334584,.720233,981481e-10,0,.365322,.698592,979122e-10,0,.396826,.676763,981057e-10,0,.428571,.654808,973956e-10,0,.460318,.632326,962619e-10,0,.492064,.610049,952996e-10,0,.52381,.58763,933334e-10,0,.555556,.565261,917573e-10,0,.587302,.543244,896636e-10,0,.619048,.521273,873304e-10,0,.650794,.499818,852648e-10,0,.68254,.478536,823961e-10,0,.714286,.457826,79939e-9,0,.746032,.437549,77126e-9,0,.777778,.41776,743043e-10,0,.809524,.39863,716426e-10,0,.84127,.379954,686456e-10,0,.873016,.362025,660514e-10,0,.904762,.344581,630755e-10,0,.936508,.327909,605439e-10,0,.968254,.311736,576345e-10,0,1,1,263344e-13,0,0,1,263373e-13,0,0,1,263815e-13,0,0,1,265753e-13,0,0,1,271132e-13,0,0,.999999,283279e-13,0,0,.999997,30833e-12,0,0,.999995,358711e-13,0,0,.999992,461266e-13,0,0,.999985,67574e-12,0,0,.999977,11358e-11,0,0,.999966,213657e-12,0,0,.999948,431151e-12,0,0,.999923,896656e-12,0,0,.999884,186603e-11,0,0,.999826,381115e-11,0,0,.999732,754184e-11,0,0,.999561,143192e-10,0,0,.999191,257061e-10,0,0,.997955,405724e-10,0,744132e-10,.992228,276537e-10,0,716477e-9,.987638,208885e-10,0,.0022524,.983395,215226e-10,0,.00484816,.978614,270795e-10,0,.00860962,.972389,365282e-10,0,.0136083,.964392,474747e-10,0,.0198941,.95861,509141e-10,0,.0275023,.952806,48963e-9,0,.0364584,.94712,571119e-10,0,.04678,.940104,671704e-10,0,.0584799,.930398,687586e-10,0,.0715665,.919866,738161e-10,0,.086045,.907853,813235e-10,0,.101918,.894078,834582e-10,0,.119186,.881177,892093e-10,0,.137845,.867575,944548e-10,0,.157891,.852107,969607e-10,0,.179316,.835502,101456e-9,0,.202106,.81756,103256e-9,0,.226243,.79984,106954e-9,0,.251704,.780998,108066e-9,0,.278451,.761132,110111e-9,0,.306436,.740429,110459e-9,0,.335586,.719836,111219e-9,0,.365796,.698467,11145e-8,0,.3969,.676446,110393e-9,0,.428571,.654635,110035e-9,0,.460318,.632411,108548e-9,0,.492064,.609986,106963e-9,0,.52381,.587872,105238e-9,0,.555556,.565528,102665e-9,0,.587302,.543563,100543e-9,0,.619048,.52176,976182e-10,0,.650794,.500188,947099e-10,0,.68254,.479204,919929e-10,0,.714286,.458413,886139e-10,0,.746032,.438314,857839e-10,0,.777778,.418573,82411e-9,0,.809524,.39947,792211e-10,0,.84127,.380892,759546e-10,0,.873016,.362953,727571e-10,0,.904762,.345601,695738e-10,0,.936508,.328895,664907e-10,0,.968254,.312808,634277e-10,0,1,1,628647e-13,0,0,1,628705e-13,0,0,1,629587e-13,0,0,1,633441e-13,0,0,.999999,644087e-13,0,0,.999998,667856e-13,0,0,.999997,715889e-13,0,0,.999995,809577e-13,0,0,.999989,992764e-13,0,0,.999983,135834e-12,0,0,.999974,210482e-12,0,0,.999959,365215e-12,0,0,.999939,686693e-12,0,0,.999911,13472e-10,0,0,.999868,26731e-10,0,0,.999804,524756e-11,0,0,.9997,100403e-10,0,0,.99951,185019e-10,0,0,.999078,322036e-10,0,620676e-11,.997428,470002e-10,0,341552e-9,.99162,287123e-10,0,.00143727,.987479,234706e-10,0,.00349201,.983582,260083e-10,0,.0066242,.979186,337927e-10,0,.0109113,.97325,454689e-10,0,.0164064,.965221,573759e-10,0,.0231463,.957262,544114e-10,0,.0311571,.952211,587006e-10,0,.0404572,.946631,692256e-10,0,.0510592,.939391,787819e-10,0,.0629723,.929795,792368e-10,0,.0762025,.91965,875075e-10,0,.090753,.907737,950903e-10,0,.106626,.893899,972963e-10,0,.123822,.880239,10459e-8,0,.142337,.866562,107689e-9,0,.16217,.85164,113081e-9,0,.183314,.835021,116636e-9,0,.20576,.817311,120074e-9,0,.229496,.798845,121921e-9,0,.254502,.780479,12475e-8,0,.280753,.760694,125255e-9,0,.308212,.740142,126719e-9,0,.336825,.719248,12636e-8,0,.366517,.698209,126712e-9,0,.397167,.676398,125769e-9,0,.428578,.654378,124432e-9,0,.460318,.632484,123272e-9,0,.492064,.610113,12085e-8,0,.52381,.587931,118411e-9,0,.555556,.565872,11569e-8,0,.587302,.543814,112521e-9,0,.619048,.522265,109737e-9,0,.650794,.500835,106228e-9,0,.68254,.479818,102591e-9,0,.714286,.459258,991288e-10,0,.746032,.439061,952325e-10,0,.777778,.419552,91895e-9,0,.809524,.400399,879051e-10,0,.84127,.381976,844775e-10,0,.873016,.364009,806316e-10,0,.904762,.346761,771848e-10,0,.936508,.330049,735429e-10,0,.968254,.314018,702103e-10,0,1,1,139968e-12,0,0,1,139979e-12,0,0,1,140145e-12,0,0,1,14087e-11,0,0,.999999,142865e-12,0,0,.999998,147279e-12,0,0,.999997,156057e-12,0,0,.999992,17276e-11,0,0,.999989,204352e-12,0,0,.99998,26494e-11,0,0,.999969,383435e-12,0,0,.999953,618641e-12,0,0,.999929,108755e-11,0,0,.999898,201497e-11,0,0,.999849,381346e-11,0,0,.999778,719815e-11,0,0,.999661,133215e-10,0,0,.999451,238313e-10,0,0,.998936,401343e-10,0,113724e-9,.99662,517346e-10,0,820171e-9,.991094,304323e-10,0,.00238143,.987487,281757e-10,0,.00493527,.983731,320048e-10,0,.00856859,.979647,423905e-10,0,.0133393,.973837,562935e-10,0,.0192863,.96584,677442e-10,0,.0264369,.956309,623073e-10,0,.03481,.951523,704131e-10,0,.0444184,.946003,836594e-10,0,.0552713,.938454,911736e-10,0,.0673749,.929279,938264e-10,0,.0807329,.919239,103754e-9,0,.0953479,.907293,109928e-9,0,.111221,.893936,115257e-9,0,.128352,.879674,122265e-9,0,.14674,.865668,125733e-9,0,.166382,.850998,132305e-9,0,.187276,.834498,134844e-9,0,.209413,.816903,139276e-9,0,.232786,.798235,140984e-9,0,.257382,.779724,14378e-8,0,.283181,.760251,144623e-9,0,.310156,.739808,145228e-9,0,.338269,.718762,14539e-8,0,.367461,.697815,144432e-9,0,.397646,.67631,143893e-9,0,.428685,.654278,141846e-9,0,.460318,.632347,13935e-8,0,.492064,.610296,137138e-9,0,.52381,.588039,133806e-9,0,.555556,.566218,130755e-9,0,.587302,.544346,127128e-9,0,.619048,.522701,123002e-9,0,.650794,.501542,119443e-9,0,.68254,.480508,115055e-9,0,.714286,.460092,111032e-9,0,.746032,.440021,106635e-9,0,.777778,.420446,102162e-9,0,.809524,.401512,98184e-9,0,.84127,.38299,936497e-10,0,.873016,.365232,89813e-9,0,.904762,.347865,853073e-10,0,.936508,.331342,817068e-10,0,.968254,.315202,773818e-10,0,1,1,29368e-11,0,0,1,2937e-10,0,0,1,293998e-12,0,0,1,295298e-12,0,0,.999999,298865e-12,0,0,.999998,3067e-10,0,0,.999995,322082e-12,0,0,.999992,350767e-12,0,0,.999986,403538e-12,0,0,.999976,501372e-12,0,0,.999964,68562e-11,0,0,.999945,10374e-10,0,0,.999919,171269e-11,0,0,.999882,300175e-11,0,0,.999829,542144e-11,0,0,.999749,984182e-11,0,0,.99962,176213e-10,0,0,.999382,305995e-10,0,138418e-10,.998751,496686e-10,0,389844e-9,.995344,510733e-10,0,.00150343,.990768,345829e-10,0,.00352451,.987464,342841e-10,0,.00655379,.983846,399072e-10,0,.0106554,.980007,533219e-10,0,.0158723,.974494,696992e-10,0,.0222333,.96622,776754e-10,0,.029758,.956273,747718e-10,0,.0384596,.950952,864611e-10,0,.0483473,.945215,100464e-9,0,.0594266,.937287,103729e-9,0,.0717019,.928649,111665e-9,0,.0851752,.918791,12353e-8,0,.0998479,.906685,127115e-9,0,.115721,.893706,13628e-8,0,.132794,.879248,142427e-9,0,.151067,.864685,148091e-9,0,.170538,.850032,153517e-9,0,.191204,.833853,157322e-9,0,.213063,.816353,161086e-9,0,.236107,.797834,164111e-9,0,.260329,.778831,165446e-9,0,.285714,.759756,167492e-9,0,.312243,.739419,166928e-9,0,.339887,.718491,167e-6,0,.368604,.697392,165674e-9,0,.398329,.676102,163815e-9,0,.428961,.654243,162003e-9,0,.460331,.632176,158831e-9,0,.492064,.610407,155463e-9,0,.52381,.588394,152062e-9,0,.555556,.56645,147665e-9,0,.587302,.5449,14375e-8,0,.619048,.523276,138905e-9,0,.650794,.502179,134189e-9,0,.68254,.481359,129392e-9,0,.714286,.46092,124556e-9,0,.746032,.441084,11957e-8,0,.777778,.421517,114652e-9,0,.809524,.402721,109688e-9,0,.84127,.384222,104667e-9,0,.873016,.366534,999633e-10,0,.904762,.349205,950177e-10,0,.936508,.332702,907301e-10,0,.968254,.316599,859769e-10,0,1,1,585473e-12,0,0,1,585507e-12,0,0,1,58602e-11,0,0,.999999,588259e-12,0,0,.999999,594381e-12,0,0,.999998,607754e-12,0,0,.999995,633729e-12,0,0,.99999,68137e-11,0,0,.999984,767003e-12,0,0,.999973,921212e-12,0,0,.999959,120218e-11,0,0,.999936,172024e-11,0,0,.999907,268088e-11,0,0,.999866,445512e-11,0,0,.999806,768481e-11,0,0,.999716,1342e-8,0,0,.999576,232473e-10,0,0,.9993,391694e-10,0,129917e-9,.998498,608429e-10,0,845035e-9,.994132,489743e-10,0,.00237616,.99031,384644e-10,0,.00484456,.987409,421768e-10,0,.00832472,.983981,504854e-10,0,.0128643,.980268,671028e-10,0,.0184947,.974875,852749e-10,0,.025237,.966063,85531e-9,0,.0331046,.956779,900588e-10,0,.0421067,.950259,10577e-8,0,.0522487,.944239,119458e-9,0,.0635343,.936341,122164e-9,0,.0759654,.928047,134929e-9,0,.0895434,.918065,145544e-9,0,.104269,.906267,150531e-9,0,.120142,.893419,161652e-9,0,.137163,.878758,16593e-8,0,.15533,.863699,174014e-9,0,.174645,.848876,177877e-9,0,.195106,.833032,184049e-9,0,.21671,.815557,186088e-9,0,.239454,.797323,19054e-8,0,.263332,.778124,191765e-9,0,.288336,.758929,192535e-9,0,.314451,.738979,192688e-9,0,.341658,.718213,191522e-9,0,.369924,.696947,190491e-9,0,.399202,.675807,187913e-9,0,.429416,.654147,184451e-9,0,.460447,.63229,181442e-9,0,.492064,.610499,177139e-9,0,.523809,.588747,172596e-9,0,.555555,.566783,167457e-9,0,.587301,.545359,162518e-9,0,.619048,.523984,156818e-9,0,.650794,.502917,151884e-9,0,.68254,.482294,145514e-9,0,.714286,.461945,140199e-9,0,.746032,.442133,134101e-9,0,.777778,.422705,128374e-9,0,.809524,.403916,122996e-9,0,.84127,.38554,116808e-9,0,.873016,.367909,111973e-9,0,.904762,.350651,105938e-9,0,.936508,.334208,101355e-9,0,.968254,.318123,957629e-10,0,1,1,111633e-11,0,0,1,111639e-11,0,0,1,111725e-11,0,0,1,112096e-11,0,0,.999999,11311e-10,0,0,.999997,115315e-11,0,0,.999995,11956e-10,0,0,.999989,127239e-11,0,0,.999981,140772e-11,0,0,.999969,164541e-11,0,0,.999952,206607e-11,0,0,.999928,281783e-11,0,0,.999895,416835e-11,0,0,.999848,658728e-11,0,0,.999781,108648e-10,0,0,.999682,182579e-10,0,0,.999523,306003e-10,0,159122e-10,.999205,499862e-10,0,391184e-9,.998131,73306e-9,0,.00147534,.993334,513229e-10,0,.0034227,.99016,467783e-10,0,.00632232,.987321,523413e-10,0,.0102295,.984099,64267e-9,0,.0151794,.980432,843042e-10,0,.0211947,.974976,102819e-9,0,.0282899,.966429,996234e-10,0,.0364739,.957633,111074e-9,0,.0457522,.949422,128644e-9,0,.0561278,.943045,140076e-9,0,.0676023,.935448,146349e-9,0,.0801762,.927225,161854e-9,0,.0938499,.917033,169135e-9,0,.108623,.905762,179987e-9,0,.124496,.892879,189832e-9,0,.141469,.878435,195881e-9,0,.159541,.863114,20466e-8,0,.178713,.84776,209473e-9,0,.198985,.832084,214861e-9,0,.220355,.814915,217695e-9,0,.242823,.796711,220313e-9,0,.266385,.777603,22313e-8,0,.291036,.757991,222471e-9,0,.316767,.738371,222869e-9,0,.343563,.717872,221243e-9,0,.371402,.696619,218089e-9,0,.400248,.675379,21562e-8,0,.430047,.65411,21169e-8,0,.460709,.63241,206947e-9,0,.492079,.61046,201709e-9,0,.52381,.58903,196753e-9,0,.555556,.567267,189637e-9,0,.587302,.545886,184735e-9,0,.619048,.524714,177257e-9,0,.650794,.503789,171424e-9,0,.68254,.483204,164688e-9,0,.714286,.462976,157172e-9,0,.746032,.443294,151341e-9,0,.777778,.423988,143737e-9,0,.809524,.405325,138098e-9,0,.84127,.386981,130698e-9,0,.873016,.369436,125276e-9,0,.904762,.35219,118349e-9,0,.936508,.335804,11312e-8,0,.968254,.319749,106687e-9,0,1,1,204685e-11,0,0,1,204694e-11,0,0,1,204831e-11,0,0,.999999,205428e-11,0,0,.999999,207056e-11,0,0,.999997,210581e-11,0,0,.999993,21732e-10,0,0,.999987,229365e-11,0,0,.999979,250243e-11,0,0,.999965,286127e-11,0,0,.999947,348028e-11,0,0,.999918,455588e-11,0,0,.999881,643303e-11,0,0,.999828,970064e-11,0,0,.999753,153233e-10,0,0,.999642,24793e-9,0,0,.999464,402032e-10,0,122947e-9,.999089,635852e-10,0,807414e-9,.997567,857026e-10,0,.00227206,.992903,594912e-10,0,.00462812,.990011,578515e-10,0,.00794162,.987192,65399e-9,0,.0122534,.98418,819675e-10,0,.0175888,.980491,105514e-9,0,.0239635,.974779,121532e-9,0,.031387,.96675,119144e-9,0,.0398644,.958248,136125e-9,0,.0493982,.948884,155408e-9,0,.0599896,.941673,162281e-9,0,.0716382,.934521,176754e-9,0,.0843437,.926205,192873e-9,0,.0981056,.916089,200038e-9,0,.112923,.904963,213624e-9,0,.128796,.892089,221834e-9,0,.145725,.878028,232619e-9,0,.163709,.86249,238632e-9,0,.182749,.846587,247002e-9,0,.202847,.830988,250702e-9,0,.224001,.814165,255562e-9,0,.246214,.796135,257505e-9,0,.269482,.777052,258625e-9,0,.293805,.757201,258398e-9,0,.319176,.737655,256714e-9,0,.345587,.717477,255187e-9,0,.373021,.696433,251792e-9,0,.401454,.675084,247223e-9,0,.430844,.653907,242213e-9,0,.461125,.632561,237397e-9,0,.492187,.610658,229313e-9,0,.52381,.589322,224402e-9,0,.555556,.567857,216116e-9,0,.587302,.54652,209124e-9,0,.619048,.525433,201601e-9,0,.650794,.504679,192957e-9,0,.68254,.484203,186052e-9,0,.714286,.464203,177672e-9,0,.746032,.444549,170005e-9,0,.777778,.425346,162401e-9,0,.809524,.406706,1544e-7,0,.84127,.388576,147437e-9,0,.873016,.37094,139493e-9,0,.904762,.353996,133219e-9,0,.936508,.337391,125573e-9,0,.968254,.321648,119867e-9,0,1,1,362511e-11,0,0,1,362525e-11,0,0,1,362739e-11,0,0,.999999,363673e-11,0,0,.999998,366214e-11,0,0,.999996,371698e-11,0,0,.999992,382116e-11,0,0,.999986,400554e-11,0,0,.999976,432058e-11,0,0,.999961,485194e-11,0,0,.999938,574808e-11,0,0,.999908,726643e-11,0,0,.999865,984707e-11,0,0,.999807,142217e-10,0,0,.999723,215581e-10,0,0,.999602,336114e-10,0,119113e-10,.999398,527353e-10,0,355813e-9,.998946,805809e-10,0,.00137768,.996647,942908e-10,0,.00322469,.992298,668733e-10,0,.00597897,.989802,716564e-10,0,.00968903,.987019,821355e-10,0,.0143845,.984219,104555e-9,0,.0200831,.980425,131245e-9,0,.0267948,.974241,139613e-9,0,.034525,.967006,145931e-9,0,.0432757,.95893,167153e-9,0,.0530471,.949157,188146e-9,0,.0638386,.94062,194625e-9,0,.0756487,.933509,213721e-9,0,.0884762,.925088,229616e-9,0,.10232,.915178,239638e-9,0,.117178,.904093,254814e-9,0,.133051,.891337,263685e-9,0,.149939,.877326,274789e-9,0,.167841,.861794,280534e-9,0,.18676,.845758,289534e-9,0,.206696,.829792,294446e-9,0,.22765,.813037,296877e-9,0,.249625,.795285,300217e-9,0,.27262,.776323,299826e-9,0,.296636,.756673,299787e-9,0,.321671,.736856,297867e-9,0,.347718,.716883,294052e-9,0,.374768,.696089,289462e-9,0,.402804,.67505,285212e-9,0,.431796,.653509,27653e-8,0,.461695,.63258,271759e-9,0,.49242,.61104,262811e-9,0,.523822,.589567,255151e-9,0,.555556,.568322,246434e-9,0,.587302,.547235,237061e-9,0,.619048,.52616,228343e-9,0,.650794,.505716,219236e-9,0,.68254,.485274,209595e-9,0,.714286,.465411,201011e-9,0,.746032,.445854,19109e-8,0,.777778,.426911,182897e-9,0,.809524,.408222,173569e-9,0,.84127,.390307,165496e-9,0,.873016,.372624,156799e-9,0,.904762,.355804,14917e-8,0,.936508,.33924,140907e-9,0,.968254,.323534,134062e-9,0,1,1,622487e-11,0,0,1,62251e-10,0,0,1,622837e-11,0,0,.999999,624259e-11,0,0,.999998,628127e-11,0,0,.999996,636451e-11,0,0,.999991,65218e-10,0,0,.999984,679782e-11,0,0,.999973,726361e-11,0,0,.999955,803644e-11,0,0,.999931,931397e-11,0,0,.999896,114299e-10,0,0,.999847,149402e-10,0,0,.999784,207461e-10,0,0,.999692,302493e-10,0,0,.999554,454957e-10,0,997275e-10,.999326,690762e-10,0,724813e-9,.998757,101605e-9,0,.0020972,.995367,958745e-10,0,.00432324,.99209,832808e-10,0,.00746347,.989517,887601e-10,0,.0115534,.987008,10564e-8,0,.0166134,.98421,133179e-9,0,.0226552,.98021,161746e-9,0,.0296838,.973676,161821e-9,0,.0377016,.967052,178635e-9,0,.0467079,.959385,206765e-9,0,.0567013,.949461,22476e-8,0,.0676796,.939578,23574e-8,0,.0796403,.932416,25893e-8,0,.0925812,.923759,271228e-9,0,.106501,.914223,289165e-9,0,.121397,.902942,301156e-9,0,.13727,.890419,313852e-9,0,.15412,.876639,324408e-9,0,.171946,.861316,33249e-8,0,.190751,.84496,338497e-9,0,.210537,.828427,345861e-9,0,.231305,.811871,347863e-9,0,.253057,.794397,350225e-9,0,.275797,.775726,349915e-9,0,.299525,.75617,347297e-9,0,.324242,.736091,344232e-9,0,.349947,.716213,340835e-9,0,.376633,.695736,332369e-9,0,.404289,.674961,327943e-9,0,.432895,.653518,318533e-9,0,.462415,.632574,310391e-9,0,.492788,.61134,300755e-9,0,.523909,.590017,290506e-9,0,.555556,.568752,280446e-9,0,.587302,.548061,269902e-9,0,.619048,.52711,258815e-9,0,.650794,.506682,248481e-9,0,.68254,.486524,237141e-9,0,.714286,.466812,226872e-9,0,.746032,.44732,216037e-9,0,.777778,.428473,205629e-9,0,.809524,.409921,195691e-9,0,.84127,.392028,185457e-9,0,.873016,.374606,176436e-9,0,.904762,.357601,166508e-9,0,.936508,.341348,158385e-9,0,.968254,.32542,149203e-9,0,1,1,103967e-10,0,0,1,10397e-9,0,0,1,104019e-10,0,0,.999999,104231e-10,0,0,.999998,104806e-10,0,0,.999995,106042e-10,0,0,.999991,108366e-10,0,0,.999982,112415e-10,0,0,.999968,119174e-10,0,0,.99995,130227e-10,0,0,.999922,148176e-10,0,0,.999884,177303e-10,0,0,.99983,224564e-10,0,0,.999758,300966e-10,0,0,.999654,423193e-10,0,549083e-11,.999503,614848e-10,0,296087e-9,.999237,903576e-10,0,.00123144,.998491,1271e-7,0,.00295954,.994594,107754e-9,0,.00555829,.99178,103025e-9,0,.00907209,.989265,11154e-8,0,.0135257,.986998,136296e-9,0,.0189327,.984137,169154e-9,0,.0252993,.979798,196671e-9,0,.0326272,.97337,196678e-9,0,.0409157,.967239,223121e-9,0,.0501623,.959543,253809e-9,0,.0603638,.949466,265972e-9,0,.0715171,.939074,288372e-9,0,.0836187,.931118,310983e-9,0,.0966657,.922525,325561e-9,0,.110656,.912983,345725e-9,0,.125588,.901617,3556e-7,0,.141461,.889487,374012e-9,0,.158275,.875787,383445e-9,0,.176031,.860654,393972e-9,0,.19473,.844417,400311e-9,0,.214374,.82741,405004e-9,0,.234967,.810545,407378e-9,0,.256512,.793312,407351e-9,0,.279011,.774847,406563e-9,0,.302468,.755621,404903e-9,0,.326887,.735511,397486e-9,0,.352266,.715435,39357e-8,0,.378605,.695403,384739e-9,0,.405897,.674681,376108e-9,0,.43413,.65359,365997e-9,0,.463277,.632471,354957e-9,0,.493295,.61151,343593e-9,0,.524106,.59064,331841e-9,0,.555561,.569386,318891e-9,0,.587302,.548785,3072e-7,0,.619048,.528146,29361e-8,0,.650794,.507872,281709e-9,0,.68254,.487805,268627e-9,0,.714286,.468196,255887e-9,0,.746032,.448922,243997e-9,0,.777778,.430093,231662e-9,0,.809524,.411845,220339e-9,0,.84127,.393808,208694e-9,0,.873016,.376615,198045e-9,0,.904762,.359655,187375e-9,0,.936508,.343452,177371e-9,0,.968254,.32765,167525e-9,0,1,1,169351e-10,0,0,1,169356e-10,0,0,1,169427e-10,0,0,.999999,169736e-10,0,0,.999998,170575e-10,0,0,.999995,172372e-10,0,0,.99999,175739e-10,0,0,.999979,181568e-10,0,0,.999966,191206e-10,0,0,.999944,20677e-9,0,0,.999912,231644e-10,0,0,.999869,271268e-10,0,0,.999811,334272e-10,0,0,.99973,433979e-10,0,0,.999617,590083e-10,0,680315e-10,.999445,829497e-10,0,612796e-9,.999138,118019e-9,0,.00187408,.998095,156712e-9,0,.00395791,.993919,125054e-9,0,.00692144,.991333,126091e-9,0,.0107962,.989226,144912e-9,0,.0155986,.986954,175737e-9,0,.0213364,.983982,213883e-9,0,.0280114,.979128,234526e-9,0,.0356226,.973327,243725e-9,0,.0441668,.967416,2773e-7,0,.0536399,.959729,308799e-9,0,.0640376,.949758,322447e-9,0,.0753554,.939173,350021e-9,0,.0875893,.9296,370089e-9,0,.100736,.921181,391365e-9,0,.114793,.91164,413636e-9,0,.129759,.900435,427068e-9,0,.145632,.888183,441046e-9,0,.162412,.874772,454968e-9,0,.180101,.859566,461882e-9,0,.1987,.843579,471556e-9,0,.218213,.826453,474335e-9,0,.238641,.809164,477078e-9,0,.259989,.792179,47755e-8,0,.282262,.773866,472573e-9,0,.305464,.754944,469765e-9,0,.329599,.735133,462371e-9,0,.35467,.714858,453674e-9,0,.380678,.694829,443888e-9,0,.407622,.674453,432052e-9,0,.435493,.653685,420315e-9,0,.464275,.632666,406829e-9,0,.493938,.611676,392234e-9,0,.524422,.591193,379208e-9,0,.555624,.570145,36319e-8,0,.587302,.549566,349111e-9,0,.619048,.529278,334166e-9,0,.650794,.509026,318456e-9,0,.68254,.489186,30449e-8,0,.714286,.469662,289051e-9,0,.746032,.450691,275494e-9,0,.777778,.431841,261437e-9,0,.809524,.413752,247846e-9,0,.84127,.395951,235085e-9,0,.873016,.378633,222245e-9,0,.904762,.36194,210533e-9,0,.936508,.345599,198494e-9,0,.968254,.329999,188133e-9,0,1,1,269663e-10,0,0,1,26967e-9,0,0,1,269772e-10,0,0,.999999,270214e-10,0,0,.999998,271415e-10,0,0,.999994,27398e-9,0,0,.999988,278771e-10,0,0,.999977,287019e-10,0,0,.999961,300544e-10,0,0,.999937,322138e-10,0,0,.999904,356163e-10,0,0,.999854,409465e-10,0,0,.99979,492651e-10,0,0,.999699,621722e-10,0,88288e-11,.999572,819715e-10,0,223369e-9,.999381,111689e-9,0,.00105414,.999016,153862e-9,0,.0026493,.997437,187667e-9,0,.00508608,.993545,155672e-9,0,.00840554,.991135,161455e-9,0,.012629,.989157,188241e-9,0,.0177661,.986874,226229e-9,0,.0238198,.983714,268668e-9,0,.0307887,.978301,277109e-9,0,.0386688,.973227,303446e-9,0,.0474554,.967317,341851e-9,0,.0571428,.959477,370885e-9,0,.0677256,.950012,392753e-9,0,.0791988,.939484,42781e-8,0,.0915576,.928135,443866e-9,0,.104798,.919819,472959e-9,0,.118918,.910049,491551e-9,0,.133915,.899181,512616e-9,0,.149788,.886881,523563e-9,0,.166537,.87359,540183e-9,0,.184164,.858613,547386e-9,0,.202669,.842809,554809e-9,0,.222056,.825727,558316e-9,0,.242329,.808086,557824e-9,0,.263492,.790728,556346e-9,0,.285551,.772987,552672e-9,0,.30851,.7541,543738e-9,0,.332376,.734669,536107e-9,0,.357153,.714411,523342e-9,0,.382845,.694196,512238e-9,0,.409454,.674252,497465e-9,0,.436977,.65357,481096e-9,0,.465404,.632999,467054e-9,0,.494713,.611994,448771e-9,0,.524864,.591604,431889e-9,0,.555779,.571134,415238e-9,0,.587302,.550528,396369e-9,0,.619048,.530292,379477e-9,0,.650794,.510364,361488e-9,0,.68254,.490749,343787e-9,0,.714286,.471266,327822e-9,0,.746032,.452462,310626e-9,0,.777778,.433907,295352e-9,0,.809524,.415659,279179e-9,0,.84127,.398138,264685e-9,0,.873016,.380833,249905e-9,0,.904762,.364247,236282e-9,0,.936508,.348041,222905e-9,0,.968254,.332389,210522e-9,0,1,1,420604e-10,0,0,1,420614e-10,0,0,1,420757e-10,0,0,.999999,42138e-9,0,0,.999997,423067e-10,0,0,.999993,426668e-10,0,0,.999986,433372e-10,0,0,.999974,444857e-10,0,0,.999956,463554e-10,0,0,.99993,493105e-10,0,0,.999892,539077e-10,0,0,.999838,610005e-10,0,0,.999767,718822e-10,0,0,.999666,884581e-10,0,365471e-10,.999525,113398e-9,0,485623e-9,.999311,150043e-9,0,.00162096,.998865,200063e-9,0,.00355319,.996278,211014e-9,0,.00633818,.992956,189672e-9,0,.0100043,.991017,210262e-9,0,.0145648,.989055,244292e-9,0,.0200237,.986741,290481e-9,0,.0263798,.983288,334303e-9,0,.033629,.977784,340307e-9,0,.0417652,.973037,377864e-9,0,.0507821,.967181,4239e-7,0,.060673,.958971,443854e-9,0,.0714314,.950093,483039e-9,0,.0830518,.939552,517934e-9,0,.0955288,.927678,539449e-9,0,.108859,.918278,568604e-9,0,.123038,.908449,588505e-9,0,.138065,.897713,612473e-9,0,.153938,.885533,625575e-9,0,.170657,.872131,63854e-8,0,.188224,.857517,647034e-9,0,.20664,.841796,65209e-8,0,.225909,.824726,6544e-7,0,.246035,.807297,655744e-9,0,.267022,.789058,646716e-9,0,.288878,.77189,643898e-9,0,.311607,.753082,629973e-9,0,.335216,.7341,621564e-9,0,.359713,.714094,605171e-9,0,.385103,.693839,588752e-9,0,.41139,.673891,573294e-9,0,.438576,.653565,552682e-9,0,.466656,.633326,533446e-9,0,.495617,.612582,514635e-9,0,.525431,.59205,49303e-8,0,.556041,.571918,471842e-9,0,.587338,.551572,451713e-9,0,.619048,.531553,430049e-9,0,.650794,.51175,410445e-9,0,.68254,.49238,390098e-9,0,.714286,.473143,370033e-9,0,.746032,.45423,351205e-9,0,.777778,.435963,332049e-9,0,.809524,.41787,315021e-9,0,.84127,.400387,297315e-9,0,.873016,.383332,281385e-9,0,.904762,.366665,265397e-9,0,.936508,.350633,250601e-9,0,.968254,.334964,23589e-8,0,1,1,643736e-10,0,0,1,64375e-9,0,0,1,643947e-10,0,0,.999999,64481e-9,0,0,.999997,647143e-10,0,0,.999994,652119e-10,0,0,.999985,661359e-10,0,0,.999972,677116e-10,0,0,.999952,702599e-10,0,0,.999922,742517e-10,0,0,.99988,803906e-10,0,0,.99982,897315e-10,0,0,.999741,103838e-9,0,0,.999629,12496e-8,0,149024e-9,.999474,156161e-9,0,861027e-9,.999229,201034e-9,0,.00231198,.998662,259069e-9,0,.00458147,.995299,245439e-9,0,.00770895,.992732,24498e-8,0,.0117126,.990847,273211e-9,0,.0165989,.988911,316492e-9,0,.0223674,.98654,37161e-8,0,.0290135,.982636,410352e-9,0,.0365309,.977346,421756e-9,0,.0449117,.972909,475578e-9,0,.0541481,.966821,522482e-9,0,.0642326,.958686,545008e-9,0,.075158,.949754,589286e-9,0,.0869181,.939184,619995e-9,0,.0995074,.927505,654266e-9,0,.112922,.916606,682362e-9,0,.127157,.906707,704286e-9,0,.142212,.895937,725909e-9,0,.158085,.883913,743939e-9,0,.174776,.870642,755157e-9,0,.192287,.856241,764387e-9,0,.210619,.84069,771032e-9,0,.229775,.823728,765906e-9,0,.249761,.806481,767604e-9,0,.270582,.787924,754385e-9,0,.292243,.770588,749668e-9,0,.314753,.751991,731613e-9,0,.338118,.733407,717655e-9,0,.362347,.713688,700604e-9,0,.387447,.693595,678765e-9,0,.413424,.673426,657042e-9,0,.440284,.65359,635892e-9,0,.468027,.633576,611569e-9,0,.496645,.613144,586011e-9,0,.526122,.592711,563111e-9,0,.556417,.572722,537699e-9,0,.587451,.552762,512556e-9,0,.619048,.532985,489757e-9,0,.650794,.513219,464139e-9,0,.68254,.493992,442193e-9,0,.714286,.47509,418629e-9,0,.746032,.456287,397045e-9,0,.777778,.438152,375504e-9,0,.809524,.420294,35492e-8,0,.84127,.402749,335327e-9,0,.873016,.385879,316422e-9,0,.904762,.369352,298333e-9,0,.936508,.353301,281417e-9,0,.968254,.337781,265203e-9,0,1,1,968267e-10,0,0,1,968284e-10,0,0,1,968556e-10,0,0,.999999,969733e-10,0,0,.999997,972913e-10,0,0,.999993,979688e-10,0,0,.999984,992239e-10,0,0,.999969,101356e-9,0,0,.999946,104784e-9,0,0,.999913,110111e-9,0,0,.999868,118217e-9,0,0,.999801,130396e-9,0,0,.999712,148523e-9,0,124907e-10,.999589,175233e-9,0,355405e-9,.999416,213999e-9,0,.0013528,.999136,268529e-9,0,.00312557,.998367,333088e-9,0,.00573045,.994701,304757e-9,0,.00919397,.992497,318031e-9,0,.0135261,.990608,353863e-9,0,.0187278,.988715,409044e-9,0,.0247947,.986241,472967e-9,0,.0317196,.981696,495104e-9,0,.039494,.977097,532873e-9,0,.0481087,.972583,594447e-9,0,.0575549,.966142,636867e-9,0,.0678242,.95823,669899e-9,0,.0789089,.949677,719499e-9,0,.0908023,.939226,750584e-9,0,.103499,.927501,793183e-9,0,.116993,.915199,81995e-8,0,.131282,.90498,847654e-9,0,.146364,.894243,868929e-9,0,.162237,.882154,884278e-9,0,.178902,.869161,898108e-9,0,.196358,.854751,901254e-9,0,.21461,.839368,90679e-8,0,.23366,.822874,901541e-9,0,.253512,.805514,897297e-9,0,.274174,.78716,881856e-9,0,.29565,.769061,870032e-9,0,.31795,.751,851719e-9,0,.341081,.732614,830671e-9,0,.365053,.713171,806569e-9,0,.389874,.693472,78338e-8,0,.415553,.673528,756404e-9,0,.442098,.653397,726872e-9,0,.469512,.633781,700494e-9,0,.497794,.613877,67105e-8,0,.526935,.593506,640361e-9,0,.556908,.573667,613502e-9,0,.587657,.553932,583177e-9,0,.61906,.534345,554375e-9,0,.650794,.515042,527811e-9,0,.68254,.495674,499367e-9,0,.714286,.477132,47429e-8,0,.746032,.458609,447726e-9,0,.777778,.440354,424205e-9,0,.809524,.422765,399549e-9,0,.84127,.405472,378315e-9,0,.873016,.388482,355327e-9,0,.904762,.372191,336122e-9,0,.936508,.356099,315247e-9,0,.968254,.340737,29794e-8,0,1,1,143327e-9,0,0,1,14333e-8,0,0,1,143366e-9,0,0,.999999,143524e-9,0,0,.999996,143952e-9,0,0,.999991,144862e-9,0,0,.999981,146544e-9,0,0,.999966,149391e-9,0,0,.999941,153946e-9,0,0,.999905,160971e-9,0,0,.999852,171562e-9,0,0,.99978,18729e-8,0,0,.999681,210386e-9,0,826239e-10,.999546,243906e-9,0,664807e-9,.999352,291739e-9,0,.00196192,.999027,357419e-9,0,.00405941,.997886,422349e-9,0,.00699664,.99419,385008e-9,0,.0107896,.99214,409775e-9,0,.0154415,.990274,456418e-9,0,.0209488,.988455,527008e-9,0,.0273037,.985804,597685e-9,0,.0344969,.98103,613124e-9,0,.0425183,.976674,668321e-9,0,.0513575,.972021,736985e-9,0,.0610046,.965274,773789e-9,0,.0714508,.958046,830852e-9,0,.0826877,.949333,875766e-9,0,.0947085,.939135,917088e-9,0,.107507,.927119,952244e-9,0,.121078,.91469,990626e-9,0,.135419,.903006,.00101304,0,.150526,.892368,.00103834,0,.166399,.880231,.00105002,0,.183038,.867432,.00106331,0,.200443,.853208,.00106783,0,.218618,.837956,.00106458,0,.237566,.821772,.00105945,0,.257291,.804328,.00104685,0,.2778,.786465,.00103178,0,.2991,.768004,.00101077,0,.321199,.74972,985504e-9,0,.344106,.731682,962893e-9,0,.36783,.712813,932146e-9,0,.392383,.693139,89871e-8,0,.417774,.673566,869678e-9,0,.444013,.653483,835525e-9,0,.471107,.633891,799853e-9,0,.49906,.614433,766838e-9,0,.527869,.594586,732227e-9,0,.557517,.574769,696442e-9,0,.587966,.555149,663935e-9,0,.61913,.535898,629826e-9,0,.650794,.516753,596486e-9,0,.68254,.497816,567078e-9,0,.714286,.479034,534399e-9,0,.746032,.460975,507013e-9,0,.777778,.442935,477421e-9,0,.809524,.425263,451101e-9,0,.84127,.408248,424964e-9,0,.873016,.391339,39993e-8,0,.904762,.37513,377619e-9,0,.936508,.359172,354418e-9,0,.968254,.343876,334823e-9,0,1,1,209042e-9,0,0,1,209045e-9,0,0,1,209093e-9,0,0,.999999,209304e-9,0,0,.999996,209871e-9,0,0,.999991,211078e-9,0,0,.999979,213304e-9,0,0,.999963,217061e-9,0,0,.999933,223042e-9,0,0,.999894,232206e-9,0,0,.999837,245901e-9,0,0,.999756,266023e-9,0,102927e-11,.999648,295204e-9,0,233468e-9,.999499,336958e-9,0,.00108237,.999283,395563e-9,0,.00268832,.998896,473785e-9,0,.00511138,.997006,520008e-9,0,.00837705,.993819,497261e-9,0,.0124928,.991632,523722e-9,0,.0174561,.989875,587258e-9,0,.0232596,.988109,676329e-9,0,.0298932,.985155,747701e-9,0,.0373453,.980479,768803e-9,0,.0456045,.976271,841054e-9,0,.0546593,.971347,911469e-9,0,.0644994,.964528,953057e-9,0,.0751152,.957632,.00102221,0,.0864981,.948681,.00106122,0,.0986407,.938716,.00111857,0,.111537,.926629,.00114762,0,.125182,.914025,.00118995,0,.139571,.901026,.00121228,0,.154703,.890358,.00123946,0,.170576,.878283,.0012527,0,.18719,.865459,.00125536,0,.204547,.851407,.00126134,0,.222648,.836276,.00124759,0,.241498,.820436,.00124443,0,.261101,.803253,.00122071,0,.281465,.785562,.00120107,0,.302595,.76718,.00117762,0,.324501,.748551,.00114289,0,.347192,.730564,.00110872,0,.370679,.712253,.00107636,0,.394973,.692867,.00103646,0,.420085,.673695,996793e-9,0,.446027,.653912,95675e-8,0,.47281,.634129,916739e-9,0,.500441,.615004,874401e-9,0,.528921,.595587,833411e-9,0,.558244,.575965,794556e-9,0,.588384,.5566,75196e-8,0,.619281,.537428,716381e-9,0,.650795,.518623,676558e-9,0,.68254,.499964,64074e-8,0,.714286,.481356,605984e-9,0,.746032,.463279,570256e-9,0,.777778,.445673,540138e-9,0,.809524,.428032,507299e-9,0,.84127,.411112,479553e-9,0,.873016,.394444,450737e-9,0,.904762,.378247,424269e-9,0,.936508,.362415,399111e-9,0,.968254,.347103,375274e-9,0,1,1,300729e-9,0,0,1,300733e-9,0,0,1,300797e-9,0,0,.999998,301072e-9,0,0,.999996,301817e-9,0,0,.999989,303398e-9,0,0,.999977,306309e-9,0,0,.999958,311209e-9,0,0,.999927,318975e-9,0,0,.999884,330804e-9,0,0,.99982,34834e-8,0,0,.999733,373854e-9,0,326995e-10,.999613,410424e-9,0,477174e-9,.999447,462047e-9,0,.00161099,.999204,533322e-9,0,.00353153,.998725,624964e-9,0,.00627965,.995871,631786e-9,0,.0098693,.993194,632017e-9,0,.0143011,.991541,68923e-8,0,.019568,.989773,766892e-9,0,.0256593,.987647,863668e-9,0,.0325625,.984193,922089e-9,0,.0402647,.980016,970749e-9,0,.0487532,.975859,.00106027,0,.058016,.970514,.00112239,0,.0680419,.963625,.00117212,0,.0788208,.956959,.00125211,0,.0903439,.947956,.00129411,0,.102604,.93809,.00135879,0,.115594,.92659,.00139309,0,.129309,.913829,.00143253,0,.143745,.90005,.00145809,0,.158901,.888129,.0014748,0,.174774,.87607,.00148756,0,.191365,.863461,.00148714,0,.208674,.849594,.00148892,0,.226705,.834531,.00146496,0,.245461,.81903,.0014579,0,.264947,.802122,.00143039,0,.28517,.78445,.00139717,0,.306137,.766434,.00136312,0,.327857,.747816,.00132597,0,.350341,.729519,.00128323,0,.373598,.711454,.00123803,0,.397642,.692699,.00119097,0,.422485,.673723,.00114565,0,.448139,.654386,.00109552,0,.474619,.634673,.00104553,0,.501933,.615554,99985e-8,0,.530089,.596462,948207e-9,0,.559087,.577385,902299e-9,0,.588913,.558257,856448e-9,0,.619525,.5392,810395e-9,0,.650826,.520543,768558e-9,0,.68254,.502206,7239e-7,0,.714286,.48402,685794e-9,0,.746032,.465779,64471e-8,0,.777778,.448455,609583e-9,0,.809524,.431091,57227e-8,0,.84127,.414147,54042e-8,0,.873016,.39765,506545e-9,0,.904762,.381576,477635e-9,0,.936508,.365881,448446e-9,0,.968254,.350582,421424e-9,0,1,1,427144e-9,0,0,1,427151e-9,0,0,1,427232e-9,0,0,.999998,42759e-8,0,0,.999995,428555e-9,0,0,.999988,430603e-9,0,0,.999976,434368e-9,0,0,.999952,440688e-9,0,0,.999919,450667e-9,0,0,.999871,46578e-8,0,0,.999801,488024e-9,0,0,.999704,520092e-9,0,129791e-9,.999572,565553e-9,0,821056e-9,.999389,628906e-9,0,.00225241,.999114,714911e-9,0,.00449109,.998488,819218e-9,0,.00756249,.995234,80415e-8,0,.0114716,.993021,830181e-9,0,.0162131,.991407,902645e-9,0,.021776,.989625,996934e-9,0,.0281471,.987064,.00109707,0,.0353118,.983265,.00114353,0,.0432562,.979535,.0012272,0,.0519665,.975224,.00132642,0,.0614298,.969574,.00138092,0,.0716348,.963021,.00145896,0,.0825709,.956046,.00152834,0,.094229,.947136,.00158217,0,.106602,.937313,.0016347,0,.119682,.926073,.00168383,0,.133465,.913121,.00171627,0,.147947,.899165,.00174229,0,.163125,.885891,.00176137,0,.178998,.873783,.00176406,0,.195566,.861331,.00176156,0,.21283,.847569,.00175346,0,.230793,.832785,.00172753,0,.249459,.817442,.00170204,0,.268832,.800613,.00166576,0,.28892,.783597,.00162909,0,.30973,.76571,.0015826,0,.331271,.747021,.00153106,0,.353554,.728593,.00148036,0,.37659,.710661,.00142808,0,.400391,.692426,.00136906,0,.424973,.673623,.00131066,0,.450347,.65494,.00125569,0,.476531,.635448,.00119517,0,.503535,.616221,.00113828,0,.531372,.597531,.0010816,0,.560047,.578795,.00102673,0,.589554,.559892,970985e-9,0,.619869,.541307,919773e-9,0,.650923,.522608,868479e-9,0,.68254,.504484,82137e-8,0,.714286,.486603,772916e-9,0,.746032,.468802,730353e-9,0,.777778,.451172,684955e-9,0,.809524,.434348,647565e-9,0,.84127,.417445,605863e-9,0,.873016,.401077,571885e-9,0,.904762,.385039,536034e-9,0,.936508,.369483,504227e-9,0,.968254,.354272,473165e-9,0,1,1,599525e-9,0,0,1,599533e-9,0,0,1,599639e-9,0,0,.999998,600097e-9,0,0,.999994,601336e-9,0,0,.999987,603958e-9,0,0,.999972,608775e-9,0,0,.999949,616842e-9,0,0,.999912,629534e-9,0,0,.999857,648658e-9,0,0,.999781,676615e-9,0,538873e-11,.999674,716574e-9,0,308602e-9,.999528,772641e-9,0,.00127003,.999326,849806e-9,0,.00300783,.999009,952682e-9,0,.00556637,.998112,.00106394,0,.00895889,.994496,.00102228,0,.0131827,.992806,.00108586,0,.0182277,.991211,.0011759,0,.0240795,.989415,.00128955,0,.030723,.986499,.00139038,0,.0381418,.982679,.00144539,0,.046321,.978839,.00153954,0,.0552459,.974295,.00164417,0,.0649034,.968784,.00171517,0,.0752814,.962324,.00180282,0,.0863693,.954956,.00186387,0,.0981578,.94624,.00193817,0,.110639,.936517,.00198156,0,.123806,.925186,.00203042,0,.137655,.91252,.0020664,0,.15218,.898441,.00207822,0,.16738,.884394,.0020992,0,.183253,.871273,.00208748,0,.199799,.859057,.00208686,0,.21702,.845243,.00205519,0,.234918,.830723,.00202868,0,.253496,.815801,.00199501,0,.272761,.79914,.00194193,0,.292719,.782372,.00188824,0,.313377,.76482,.00183695,0,.334745,.746586,.00177418,0,.356833,.7281,.00170628,0,.379654,.709842,.00164063,0,.403221,.692019,.00157355,0,.427548,.67364,.00150262,0,.452651,.655277,.00143473,0,.478545,.636438,.00136371,0,.505246,.617364,.00129911,0,.532768,.598603,.00123014,0,.561122,.580195,.00116587,0,.590309,.561786,.00110398,0,.620318,.543377,.00104148,0,.651102,.525093,983984e-9,0,.682545,.506791,92667e-8,0,.714286,.489291,874326e-9,0,.746032,.471811,821734e-9,0,.777778,.454435,774698e-9,0,.809524,.437493,727302e-9,0,.84127,.420977,684039e-9,0,.873016,.404729,64373e-8,0,.904762,.388756,60285e-8,0,.936508,.373344,56765e-8,0,.968254,.358191,531929e-9,0,1,1,832169e-9,0,0,1,832178e-9,0,0,1,83231e-8,0,0,.999998,832893e-9,0,0,.999995,834465e-9,0,0,.999985,837791e-9,0,0,.999969,843893e-9,0,0,.999944,854086e-9,0,0,.999903,870071e-9,0,0,.999843,894042e-9,0,0,.999759,928865e-9,0,531805e-10,.999643,978242e-9,0,579365e-9,.99948,.00104684,0,.00182774,.999255,.00114012,0,.00387804,.998885,.00126188,0,.00675709,.997405,.00135888,0,.010468,.99424,.00133626,0,.0150018,.992458,.00140905,0,.0203443,.990929,.00152305,0,.0264786,.989116,.00165882,0,.0333875,.985624,.00174128,0,.0410536,.982003,.00182108,0,.0494609,.978336,.00194498,0,.0585941,.973184,.00202708,0,.0684396,.9678,.00212166,0,.0789851,.961348,.00221366,0,.0902199,.953841,.00228219,0,.102134,.94534,.00235662,0,.114721,.935552,.00240572,0,.127972,.924064,.00244405,0,.141884,.911827,.00247557,0,.156451,.897731,.00248374,0,.171672,.883409,.00249863,0,.187545,.868625,.00246688,0,.20407,.856529,.00246523,0,.221249,.842999,.00242368,0,.239083,.828505,.00237354,0,.257578,.813825,.00232588,0,.276738,.797813,.00226731,0,.296569,.781097,.00219704,0,.31708,.764038,.00212394,0,.338281,.746067,.00204786,0,.360181,.727687,.00196728,0,.382794,.709571,.00188779,0,.406133,.691503,.00180532,0,.430213,.673673,.00171849,0,.45505,.655732,.00164147,0,.480662,.637399,.00155858,0,.507065,.618616,.00147641,0,.534278,.60005,.00140125,0,.562313,.581713,.00132441,0,.59118,.563546,.00125014,0,.620875,.545605,.00118249,0,.651373,.527559,.0011116,0,.682593,.509764,.00104979,0,.714286,.49193,985977e-9,0,.746032,.475011,928592e-9,0,.777778,.457878,873466e-9,0,.809524,.440979,819585e-9,0,.84127,.424613,772365e-9,0,.873016,.408549,722195e-9,0,.904762,.392771,680014e-9,0,.936508,.377317,636797e-9,0,.968254,.362352,598318e-9,0,1,1,.00114313,0,0,1,.00114314,0,0,.999999,.00114331,0,0,.999998,.00114404,0,0,.999994,.00114601,0,0,.999984,.00115019,0,0,.999967,.00115784,0,0,.999937,.0011706,0,0,.999894,.00119054,0,0,.999828,.00122031,0,0,.999735,.00126331,0,169263e-9,.999606,.00132382,0,949167e-9,.999426,.0014071,0,.00249668,.999173,.00151895,0,.00486392,.99873,.00166102,0,.00806323,.996243,.0017023,0,.0120895,.993779,.00172782,0,.0169288,.9919,.0018108,0,.0225633,.990524,.00196028,0,.028974,.98868,.00212014,0,.036142,.984663,.00217598,0,.044049,.981457,.00230563,0,.0526781,.977608,.00243966,0,.0620137,.972215,.00251336,0,.0720418,.966798,.0026285,0,.0827499,.960241,.00271409,0,.0941271,.952489,.00278381,0,.106164,.944127,.00285399,0,.118852,.934282,.00290994,0,.132185,.923271,.00294558,0,.146157,.910803,.00296269,0,.160766,.896705,.00296803,0,.176007,.88238,.00296637,0,.19188,.867116,.00293163,0,.208385,.853636,.00289418,0,.225523,.840469,.00284663,0,.243296,.82639,.00278594,0,.261709,.811759,.00271618,0,.280767,.796113,.00263187,0,.300476,.779518,.00254589,0,.320845,.763142,.00246003,0,.341883,.745464,.00236529,0,.363601,.727491,.00226536,0,.386011,.709414,.00216375,0,.409128,.691396,.00207127,0,.432967,.67368,.00197106,0,.457545,.656049,.00187022,0,.482881,.638188,.00177605,0,.508992,.620177,.00168482,0,.535899,.601506,.00158909,0,.563619,.58362,.00150583,0,.592165,.565496,.00141791,0,.621544,.54789,.00133693,0,.651743,.530323,.00126038,0,.682709,.512795,.00118556,0,.714286,.495199,.00111527,0,.746032,.478101,.0010489,0,.777778,.461511,984264e-9,0,.809524,.444879,92591e-8,0,.84127,.428424,866582e-9,0,.873016,.412495,814463e-9,0,.904762,.396975,764498e-9,0,.936508,.381614,715967e-9,0,.968254,.366732,672483e-9,0,1,1,.00155501,0,0,1,.00155503,0,0,1,.00155524,0,0,.999998,.00155615,0,0,.999994,.0015586,0,0,.999983,.00156379,0,0,.999963,.0015733,0,0,.999932,.00158911,0,0,.999882,.00161376,0,0,.99981,.00165041,0,100875e-10,.999708,.00170304,0,367658e-9,.999565,.00177658,0,.0014234,.999368,.00187688,0,.00327939,.999081,.00200989,0,.00596629,.99852,.00217177,0,.0094852,.99549,.0021745,0,.013824,.993252,.00222357,0,.0189642,.991727,.00235022,0,.0248856,.989951,.00250561,0,.0315669,.988029,.00268829,0,.0389882,.984029,.0027496,0,.0471302,.980683,.00289793,0,.0559754,.976554,.00303315,0,.0655081,.97139,.00313257,0,.0757138,.965544,.00323656,0,.08658,.95912,.00333432,0,.0980954,.951183,.0034039,0,.110251,.942974,.00347515,0,.123038,.932642,.00350381,0,.13645,.922158,.00354519,0,.150482,.909404,.00353851,0,.165129,.896071,.0035435,0,.18039,.881206,.00349936,0,.196263,.866077,.00347256,0,.212748,.85093,.003415,0,.229847,.837703,.00333367,0,.247561,.823878,.003249,0,.265895,.809449,.00316347,0,.284854,.794379,.00306351,0,.304445,.778138,.0029499,0,.324675,.761997,.00284099,0,.345555,.744938,.00272104,0,.367095,.727212,.00260715,0,.389309,.709549,.00248855,0,.41221,.691704,.00236783,0,.435814,.673689,.00225178,0,.460138,.656453,.00213765,0,.485203,.639128,.00202178,0,.511028,.621512,.00191443,0,.537634,.603598,.00180977,0,.565041,.58559,.00170456,0,.593268,.567852,.00160927,0,.622327,.5503,.00151395,0,.652217,.533033,.00142499,0,.682907,.515942,.00133955,0,.714296,.498814,.0012602,0,.746032,.481595,.00118188,0,.777778,.465117,.00111171,0,.809524,.448865,.00104091,0,.84127,.432711,976618e-9,0,.873016,.416822,91859e-8,0,.904762,.401272,857704e-9,0,.936508,.386226,807172e-9,0,.968254,.371321,75464e-8,0,1,1,.00209596,0,0,1,.00209598,0,0,1,.00209624,0,0,.999997,.00209736,0,0,.999991,.00210039,0,0,.999979,.00210678,0,0,.999959,.00211847,0,0,.999925,.0021379,0,0,.99987,.00216809,0,0,.999791,.00221281,0,681487e-10,.999677,.00227669,0,658161e-9,.999521,.00236533,0,.00200635,.999301,.00248514,0,.0041779,.998977,.00264185,0,.00718648,.998191,.00281695,0,.0110239,.994801,.00278518,0,.015672,.993091,.00288774,0,.0211091,.991571,.00303931,0,.0273123,.9897,.00321643,0,.034259,.987023,.00337332,0,.0419282,.983289,.00346146,0,.0502998,.979892,.00363704,0,.0593562,.975111,.00373601,0,.069081,.970351,.0038842,0,.0794598,.964131,.00397053,0,.0904798,.957747,.00408078,0,.10213,.949536,.00413533,0,.1144,.941372,.00420305,0,.127284,.931049,.00422815,0,.140772,.920647,.00425048,0,.154862,.908033,.0042281,0,.169548,.895028,.00422026,0,.184828,.879968,.00415042,0,.200701,.864875,.00408821,0,.217167,.84918,.00400909,0,.234227,.834934,.00391178,0,.251884,.821397,.00380066,0,.270141,.807135,.00367974,0,.289004,.792363,.00355172,0,.308479,.776661,.003411,0,.328575,.760705,.00328123,0,.349301,.744408,.00314003,0,.370668,.726994,.0029906,0,.392689,.709598,.00285034,0,.415379,.692112,.00271179,0,.438754,.674435,.00257185,0,.46283,.65676,.00243425,0,.48763,.639982,.00230351,0,.513173,.622983,.0021777,0,.539482,.605471,.00204991,0,.566579,.58796,.00193759,0,.594488,.570463,.00181976,0,.623226,.553058,.00171497,0,.6528,.535894,.00161109,0,.683198,.519089,.00151394,0,.714354,.502454,.00142122,0,.746032,.485681,.00133488,0,.777778,.468935,.00124975,0,.809524,.452951,.00117309,0,.84127,.437139,.00110155,0,.873016,.421446,.00103124,0,.904762,.405951,966387e-9,0,.936508,.391003,908119e-9,0,.968254,.376198,848057e-9,0,1,1,.00280076,0,0,1,.00280078,0,0,.999999,.00280109,0,0,.999997,.00280246,0,0,.999992,.00280616,0,0,.999979,.00281396,0,0,.999956,.00282822,0,0,.999916,.00285186,0,0,.999857,.0028885,0,0,.999768,.00294259,0,196026e-9,.999645,.00301946,0,.00104842,.99947,.00312541,0,.00270199,.999229,.00326733,0,.00519449,.998852,.00344992,0,.00852602,.997558,.00361052,0,.0126804,.994417,.0035898,0,.017635,.992824,.00372393,0,.023365,.991344,.00390695,0,.0298456,.989337,.00410392,0,.0370529,.985811,.00420987,0,.0449651,.982772,.00437488,0,.0535615,.979001,.00455069,0,.0628243,.974102,.00464462,0,.0727368,.969197,.00480577,0,.0832844,.962759,.00487818,0,.0944545,.956207,.00498176,0,.106236,.947909,.00503392,0,.118619,.939596,.00507474,0,.131595,.929642,.00509798,0,.145159,.918807,.00508476,0,.159305,.906921,.00505634,0,.174028,.893312,.00498845,0,.189327,.878933,.0049133,0,.2052,.863986,.0048259,0,.221647,.847936,.00470848,0,.23867,.832253,.00456889,0,.25627,.818619,.00442726,0,.274453,.804788,.00427677,0,.293222,.790241,.00411906,0,.312585,.775162,.00394833,0,.33255,.759463,.00377366,0,.353126,.743598,.00361026,0,.374324,.72697,.00343627,0,.396158,.709646,.00326422,0,.418641,.69277,.00309717,0,.44179,.675371,.0029356,0,.465624,.657863,.00277712,0,.490163,.640772,.00261738,0,.515429,.624441,.0024737,0,.541445,.607497,.00233125,0,.568236,.590438,.00218994,0,.595828,.573224,.0020664,0,.624242,.556168,.00193526,0,.653496,.539232,.00182463,0,.683588,.522352,.00170735,0,.714482,.506172,.00160555,0,.746032,.489842,.00150451,0,.777778,.473463,.00140938,0,.809524,.457266,.00132568,0,.84127,.441609,.0012376,0,.873016,.426348,.00116265,0,.904762,.411002,.00108935,0,.936508,.396045,.00101946,0,.968254,.381448,955665e-9,0,1,1,.0037121,0,0,1,.00371213,0,0,1,.00371251,0,0,.999997,.00371417,0,0,.99999,.00371863,0,0,.999977,.00372807,0,0,.99995,.00374529,0,0,.999908,.0037738,0,0,.999843,.00381789,0,123596e-10,.999745,.00388273,0,407442e-9,.999608,.00397443,0,.0015447,.999415,.00409998,0,.00351385,.999143,.00426662,0,.0063316,.9987,.00447625,0,.00998679,.996363,.00455323,0,.0144569,.994021,.00461052,0,.0197151,.992372,.00476359,0,.0257344,.991007,.00499101,0,.0324882,.988767,.0051972,0,.0399517,.984872,.00528407,0,.0481022,.982004,.00548926,0,.0569191,.977714,.00564385,0,.0663839,.973076,.0057693,0,.0764801,.967565,.0058924,0,.0871928,.961384,.00599629,0,.0985095,.954435,.00605998,0,.110419,.946303,.0061133,0,.122912,.937662,.00612028,0,.13598,.927867,.00612209,0,.149617,.916475,.00604813,0,.163817,.90541,.00603088,0,.178577,.891591,.00592218,0,.193894,.877573,.00578854,0,.209767,.862511,.00566648,0,.226196,.846861,.00551481,0,.243182,.83068,.00533754,0,.260728,.815725,.00515487,0,.278837,.802321,.0049655,0,.297515,.787826,.00475421,0,.316768,.773454,.00456002,0,.336605,.758224,.00434727,0,.357034,.74265,.00414444,0,.378067,.726729,.00393738,0,.399717,.710155,.00373575,0,.421998,.693312,.00353736,0,.444928,.67653,.00334368,0,.468523,.659444,.00315981,0,.492806,.642051,.00297809,0,.517798,.625758,.00280592,0,.543525,.609615,.00264254,0,.570012,.592919,.00248459,0,.597288,.576298,.00233327,0,.625379,.559489,.00219519,0,.654307,.542891,.00205441,0,.684084,.526255,.00193385,0,.714693,.509853,.00180745,0,.746044,.494131,.00169817,0,.777778,.478114,.0015913,0,.809524,.462274,.00148981,0,.84127,.446412,.00139537,0,.873016,.431274,.00130984,0,.904762,.41635,.00122403,0,.936508,.401476,.00114809,0,.968254,.386993,.00107563,0,1,1,.00488216,0,0,1,.0048822,0,0,1,.00488265,0,0,.999997,.00488463,0,0,.999988,.00488999,0,0,.999974,.00490129,0,0,.999946,.00492191,0,0,.999897,.00495598,0,0,.999825,.00500855,0,744791e-10,.999718,.00508559,0,712744e-9,.999565,.005194,0,.00215249,.999352,.00534147,0,.00444576,.999046,.00553523,0,.00759218,.998492,.00577016,0,.0115714,.995564,.00578487,0,.0163557,.993339,.00586414,0,.021915,.991834,.00606002,0,.0282201,.990496,.00633312,0,.0352433,.987826,.00651941,0,.042959,.98383,.00660842,0,.0513439,.98109,.00685523,0,.0603772,.976131,.00695778,0,.0700402,.971922,.00714236,0,.0803163,.965901,.00721437,0,.0911908,.959606,.00732017,0,.102651,.952504,.00735788,0,.114686,.944365,.00738493,0,.127286,.935652,.00737969,0,.140443,.925813,.00733612,0,.154151,.914397,.00723094,0,.168405,.903257,.00714002,0,.183201,.890015,.00700149,0,.198536,.876014,.00682813,0,.214409,.861436,.00665567,0,.23082,.845752,.00644526,0,.24777,.829169,.00621635,0,.265263,.813435,.00597789,0,.283301,.799701,.00575694,0,.301889,.785726,.00549866,0,.321035,.77152,.0052503,0,.340746,.75683,.00499619,0,.361032,.741951,.0047543,0,.381904,.726367,.0045084,0,.403374,.710537,.00426784,0,.425457,.693965,.00403487,0,.448169,.677724,.0038075,0,.47153,.66117,.00359431,0,.495561,.644274,.00338354,0,.520284,.627449,.00318163,0,.545725,.611645,.00299672,0,.571911,.595614,.00281016,0,.598873,.579426,.00264252,0,.62664,.563016,.00247509,0,.655239,.546728,.00232647,0,.684692,.530539,.00217803,0,.714999,.514164,.00204216,0,.746106,.498344,.00191403,0,.777778,.482957,.00179203,0,.809524,.467336,.00167695,0,.84127,.451994,.00157567,0,.873016,.436514,.00147113,0,.904762,.42178,.00138034,0,.936508,.407271,.00129219,0,.968254,.392822,.0012098,0,1,1,.00637427,0,0,1,.00637431,0,0,.999999,.00637485,0,0,.999996,.00637721,0,0,.999987,.00638357,0,0,.999971,.006397,0,0,.999939,.00642142,0,0,.999888,.00646177,0,0,.999807,.00652387,0,207916e-9,.999689,.00661454,0,.00112051,.99952,.00674155,0,.00287719,.999283,.00691313,0,.00550145,.998936,.00713598,0,.00897928,.998165,.00738501,0,.0132829,.994847,.00734388,0,.01838,.993182,.00749991,0,.0242381,.991665,.0077246,0,.030826,.989708,.00797579,0,.0381152,.986663,.00813011,0,.0460794,.983288,.00830365,0,.0546951,.980104,.00853496,0,.0639411,.974855,.00861045,0,.0737988,.97045,.00879133,0,.0842516,.964509,.00886377,0,.0952848,.957594,.00890346,0,.106886,.950546,.00893289,0,.119044,.942225,.00890074,0,.131749,.933365,.00886826,0,.144994,.923202,.0087316,0,.158772,.912605,.00863082,0,.173078,.901099,.00847403,0,.187908,.888177,.00825838,0,.203261,.873955,.00801834,0,.219134,.860091,.00779026,0,.235527,.84434,.00752478,0,.252443,.828517,.00724074,0,.269883,.81239,.00693769,0,.287851,.79721,.00664817,0,.306352,.783489,.00634763,0,.325393,.769514,.00604221,0,.344981,.755419,.00573568,0,.365126,.741083,.00544359,0,.385839,.726059,.00515515,0,.407132,.710809,.00487139,0,.42902,.695052,.00459846,0,.45152,.678886,.00433412,0,.474651,.663042,.00407981,0,.498433,.646634,.00384264,0,.52289,.630117,.00360897,0,.548048,.613804,.00338863,0,.573936,.598338,.00318486,0,.600584,.582687,.00298377,0,.628027,.566809,.00280082,0,.656295,.550817,.00262255,0,.685417,.534937,.00245835,0,.715406,.519151,.00230574,0,.74624,.503118,.0021549,0,.777778,.487723,.00202008,0,.809524,.472725,.00189355,0,.84127,.457599,.00177108,0,.873016,.442558,.00165843,0,.904762,.427624,.00155494,0,.936508,.413171,.00145273,0,.968254,.399122,.00136454,0,1,1,.00826496,0,0,1,.00826499,0,0,1,.00826564,0,0,.999996,.00826842,0,0,.999987,.00827589,0,0,.999967,.00829167,0,0,.999933,.00832037,0,0,.999876,.00836768,0,109338e-10,.999786,.00844031,0,427145e-9,.999655,.00854603,0,.0016384,.999468,.00869337,0,.00372392,.999203,.008891,0,.00668513,.998803,.00914387,0,.0104968,.99748,.00935838,0,.015125,.994446,.00933309,0,.0205338,.99292,.00953084,0,.0266884,.991414,.0097893,0,.0335565,.989049,.0100228,0,.0411086,.98582,.0101664,0,.0493181,.982441,.0103582,0,.0581613,.978595,.0105292,0,.0676169,.973495,.0106274,0,.0776661,.968405,.0107261,0,.0882926,.962717,.0108234,0,.0994817,.955478,.0108102,0,.111221,.948275,.0107914,0,.123499,.940006,.0107161,0,.136308,.930831,.0106309,0,.149639,.920648,.0104083,0,.163485,.910205,.0102312,0,.177843,.898445,.0100051,0,.192707,.885986,.00971928,0,.208077,.872204,.00940747,0,.22395,.858436,.0091085,0,.240326,.843454,.00876595,0,.257208,.827437,.00839794,0,.274596,.811488,.00803692,0,.292496,.796039,.00767352,0,.310911,.781083,.0073097,0,.329849,.767642,.00694032,0,.349316,.753901,.00657476,0,.369323,.740131,.00622699,0,.38988,.725845,.0058838,0,.410999,.710991,.00555586,0,.432696,.696002,.00523089,0,.454987,.680461,.00492494,0,.47789,.664875,.00463464,0,.501426,.649273,.00435422,0,.52562,.63302,.0040875,0,.550498,.61705,.00384075,0,.576089,.601154,.00359557,0,.602427,.586008,.00337636,0,.629544,.570699,.00316019,0,.657479,.555166,.00296033,0,.686264,.539645,.00277552,0,.715924,.524159,.00259499,0,.746459,.508682,.00243257,0,.777789,.493163,.00227851,0,.809524,.478004,.00213083,0,.84127,.46347,.00199502,0,.873016,.448778,.00186967,0,.904762,.434105,.00174732,0,.936508,.419576,.00163861,0,.968254,.405541,.00153341,0,1,1,.0106462,0,0,1,.0106462,0,0,.999999,.010647,0,0,.999995,.0106502,0,0,.999985,.0106589,0,0,.999964,.0106773,0,0,.999925,.0107106,0,0,.999861,.0107655,0,712986e-10,.999763,.0108497,0,743959e-9,.999616,.0109716,0,.00227361,.999408,.0111408,0,.0046983,.999112,.0113659,0,.00800158,.998637,.0116475,0,.0121493,.996223,.0117231,0,.0171023,.994006,.0118064,0,.0228218,.992444,.0120254,0,.0292711,.991028,.0123314,0,.036417,.98803,.0124954,0,.0442295,.984816,.0126538,0,.0526815,.981399,.0128537,0,.0617492,.977085,.0129694,0,.0714114,.972154,.013091,0,.0816495,.966617,.0131166,0,.0924472,.960628,.0131583,0,.10379,.953295,.0131094,0,.115665,.94575,.0129966,0,.128062,.937654,.0128796,0,.140972,.927716,.0126477,0,.154387,.917932,.0123889,0,.168301,.907719,.012131,0,.182709,.89584,.0118013,0,.197608,.883526,.0114145,0,.212994,.870301,.0110075,0,.228867,.856272,.0106019,0,.245227,.842251,.0101938,0,.262074,.826466,.00973254,0,.279412,.810859,.0092846,0,.297244,.795051,.00883304,0,.315575,.780053,.00840272,0,.334412,.76575,.00796438,0,.35376,.752298,.00752526,0,.373631,.739153,.00711486,0,.394034,.725514,.00670361,0,.414983,.711473,.00632656,0,.436491,.696936,.00595206,0,.458575,.682126,.00559191,0,.481253,.667027,.00525362,0,.504547,.651875,.00493805,0,.528481,.636463,.00462848,0,.553081,.620641,.00433936,0,.578377,.604931,.00407,0,.604404,.589549,.00380864,0,.631197,.574712,.00357049,0,.658795,.559775,.00334466,0,.687238,.544514,.00312505,0,.716559,.529555,.00293199,0,.746776,.514402,.00274204,0,.777849,.499302,.00256647,0,.809524,.484114,.00239901,0,.84127,.469308,.00225148,0,.873016,.455133,.00210178,0,.904762,.440939,.0019727,0,.936508,.426627,.00184382,0,.968254,.412509,.00172548,0,1,1,.013628,0,0,1,.0136281,0,0,.999999,.0136289,0,0,.999995,.0136327,0,0,.999983,.0136427,0,0,.99996,.0136638,0,0,.999917,.0137022,0,0,.999846,.0137652,0,204597e-9,.999736,.0138615,0,.00116837,.999573,.0140007,0,.00303325,.99934,.0141927,0,.00580613,.999004,.0144457,0,.00945626,.998407,.0147489,0,.0139421,.995464,.014731,0,.0192202,.993328,.0148283,0,.0252495,.991799,.0150797,0,.0319921,.990397,.0154316,0,.0394138,.986835,.0155005,0,.0474843,.983938,.0157308,0,.0561763,.980154,.0158753,0,.0654661,.975659,.0159581,0,.0753326,.970171,.0159832,0,.0857571,.964803,.0160084,0,.0967236,.958366,.0159484,0,.108218,.950613,.0158001,0,.120227,.942874,.0155845,0,.132741,.935005,.0154292,0,.145751,.924991,.0150742,0,.159249,.914814,.0146757,0,.17323,.904743,.0143097,0,.187687,.893216,.0138695,0,.202619,.880769,.0133706,0,.218021,.868136,.0128606,0,.233894,.85469,.0123403,0,.250238,.840593,.0118091,0,.267052,.825808,.011253,0,.284341,.81009,.0107099,0,.302106,.79504,.0101636,0,.320354,.779757,.00964041,0,.33909,.764697,.00911896,0,.358322,.750913,.00859533,0,.378059,.738175,.00811592,0,.398311,.725242,.00764504,0,.41909,.711864,.00718885,0,.440412,.698009,.00675843,0,.462292,.683841,.00634984,0,.484748,.669391,.00595502,0,.507802,.654731,.00558671,0,.531477,.639805,.00523578,0,.555802,.624789,.00490834,0,.580805,.609325,.00459448,0,.606522,.593975,.00430342,0,.63299,.578983,.00403019,0,.66025,.564442,.0037707,0,.688346,.549835,.0035316,0,.717319,.535039,.00330255,0,.7472,.520403,.00308932,0,.777982,.505687,.00289335,0,.809524,.490939,.00270818,0,.84127,.476233,.0025343,0,.873016,.461624,.00237097,0,.904762,.447833,.00222065,0,.936508,.433992,.00207561,0,.968254,.420147,.00194955,0,1,1,.0173415,0,0,1,.0173416,0,0,.999999,.0173426,0,0,.999995,.0173468,0,0,.999983,.0173582,0,0,.999954,.0173822,0,0,.999908,.0174258,0,669501e-11,.999828,.0174973,0,427399e-9,.999705,.0176063,0,.00171019,.999524,.0177631,0,.0039248,.999263,.0179781,0,.00705382,.998878,.018258,0,.0110552,.998012,.0185551,0,.0158812,.994614,.0184264,0,.0214852,.993132,.0186385,0,.0278239,.991563,.0189067,0,.0348585,.989298,.0191577,0,.0425544,.986036,.0192522,0,.050881,.982558,.0194063,0,.059811,.978531,.019486,0,.0693209,.974198,.0195847,0,.0793895,.968148,.0194749,0,.0899984,.962565,.0194277,0,.101132,.956041,.0192991,0,.112775,.947749,.0189893,0,.124917,.94018,.018704,0,.137547,.93165,.0183458,0,.150655,.921798,.0178775,0,.164236,.911573,.0173618,0,.178281,.901569,.0168482,0,.192788,.890341,.016265,0,.207752,.877835,.0156199,0,.223171,.865472,.0149516,0,.239044,.852905,.0143274,0,.255371,.838906,.0136643,0,.272153,.824888,.0129903,0,.289393,.809977,.0123218,0,.307093,.794697,.0116572,0,.325259,.780028,.0110307,0,.343896,.765124,.0104236,0,.363012,.750411,.0098219,0,.382617,.737264,.00924397,0,.402719,.724799,.00868719,0,.423332,.712253,.00816476,0,.444469,.699267,.00767262,0,.466146,.685618,.00719746,0,.488383,.671736,.00673916,0,.511199,.657777,.00631937,0,.534618,.643497,.00592411,0,.558668,.62889,.00553928,0,.58338,.614299,.0051934,0,.608787,.599197,.00485985,0,.634929,.584175,.00454357,0,.661849,.569541,.00425787,0,.689594,.555193,.00397905,0,.718211,.540947,.00372364,0,.747742,.526593,.00348599,0,.778205,.512335,.00326103,0,.80953,.498017,.00305137,0,.84127,.483609,.00285485,0,.873016,.469368,.00267472,0,.904762,.455037,.00249945,0,.936508,.441493,.00234792,0,.968254,.428147,.00219936,0,1,1,.0219422,0,0,1,.0219423,0,0,.999998,.0219434,0,0,.999993,.0219481,0,0,.999981,.021961,0,0,.999949,.0219879,0,0,.999896,.0220367,0,593194e-10,.999808,.0221167,0,75364e-8,.99967,.0222383,0,.00237884,.999466,.0224125,0,.00495612,.999174,.0226495,0,.00844887,.998725,.0229525,0,.0128058,.996979,.0231123,0,.0179742,.994317,.0230742,0,.0239047,.992781,.0232895,0,.0305526,.991191,.0235734,0,.0378786,.987787,.0236152,0,.0458475,.985092,.0237994,0,.0544287,.981121,.0238553,0,.0635952,.976924,.0238706,0,.0733233,.97218,.0238704,0,.0835922,.965956,.0236598,0,.0943839,.959998,.0234735,0,.105682,.953245,.0232277,0,.117474,.944445,.0226973,0,.129747,.937087,.0223527,0,.142491,.928341,.0218144,0,.155697,.9184,.0211516,0,.169358,.907959,.0204553,0,.183469,.89808,.0197673,0,.198024,.887047,.0189915,0,.21302,.875221,.0182082,0,.228455,.86269,.0173584,0,.244329,.850735,.0165718,0,.260639,.837545,.0157524,0,.277389,.823639,.0149482,0,.29458,.809699,.0141431,0,.312216,.794797,.0133527,0,.3303,.780578,.0126193,0,.34884,.766019,.0118914,0,.367842,.751447,.0111839,0,.387315,.737275,.010514,0,.40727,.724545,.00987277,0,.427717,.712644,.00926569,0,.448671,.700432,.00869029,0,.470149,.687664,.00814691,0,.492167,.674288,.00763012,0,.514746,.660966,.00714437,0,.537911,.647264,.00668457,0,.561688,.633431,.00626581,0,.586108,.619133,.00585593,0,.611206,.604935,.00548188,0,.637022,.590236,.00513288,0,.663599,.575473,.0047906,0,.690989,.561228,.00448895,0,.719242,.547054,.00420233,0,.748411,.533175,.00392869,0,.778531,.519163,.00367445,0,.809583,.505328,.00344097,0,.84127,.491446,.00322003,0,.873016,.477356,.00301283,0,.904762,.46356,.00282592,0,.936508,.449623,.00264956,0,.968254,.436068,.00246956,0,1,1,.0276135,0,0,1,.0276136,0,0,.999998,.0276148,0,0,.999993,.0276201,0,0,.999976,.0276342,0,0,.999945,.027664,0,0,.999884,.0277179,0,18679e-8,.999784,.027806,0,.00119607,.99963,.0279394,0,.00318407,.999401,.0281295,0,.00613601,.999066,.0283858,0,.00999963,.998524,.0287027,0,.0147164,.995702,.0286256,0,.0202295,.993593,.0286733,0,.0264876,.992067,.0288989,0,.0334452,.990548,.0292135,0,.0410621,.986775,.0291296,0,.0493032,.984054,.0293099,0,.0581381,.979481,.0291881,0,.0675397,.975297,.0291598,0,.0774848,.96981,.028954,0,.0879528,.963524,.028628,0,.0989258,.957398,.0283135,0,.110388,.950088,.0278469,0,.122327,.941538,.0271798,0,.134729,.933332,.0265388,0,.147587,.924392,.0257776,0,.160889,.914581,.024916,0,.174631,.904347,.0240242,0,.188806,.894324,.0231229,0,.203409,.883724,.022153,0,.218437,.872207,.0211355,0,.233888,.859927,.0201048,0,.249761,.848373,.0191263,0,.266056,.836023,.0181306,0,.282774,.82289,.0171718,0,.299917,.809324,.0162196,0,.317488,.795361,.0152622,0,.335493,.781253,.01439,0,.353936,.767338,.013533,0,.372825,.753156,.0127244,0,.392168,.739122,.0119454,0,.411976,.725358,.0112054,0,.432259,.712949,.010487,0,.453032,.701621,.00984032,0,.47431,.689703,.00921495,0,.496111,.677216,.00862492,0,.518456,.664217,.00806882,0,.541367,.65137,.00755922,0,.564872,.638,.00705705,0,.589001,.62453,.00661266,0,.613789,.610601,.00618432,0,.639277,.59676,.00578033,0,.66551,.582433,.00540927,0,.692539,.568026,.00506104,0,.720422,.55414,.0047353,0,.749216,.540178,.00442889,0,.778974,.526513,.00414363,0,.809711,.512954,.00388237,0,.84127,.499403,.00362875,0,.873016,.486026,.00340827,0,.904762,.472345,.00318598,0,.936508,.458828,.00297635,0,.968254,.445379,.00279447,0,1,1,.0345716,0,0,1,.0345717,0,0,.999999,.034573,0,0,.999991,.0345787,0,0,.999974,.0345941,0,0,.999937,.0346263,0,188589e-11,.999869,.0346847,0,409238e-9,.999757,.0347798,0,.0017674,.999582,.0349233,0,.00413658,.999322,.0351265,0,.00747408,.998939,.0353967,0,.0117157,.998219,.0357018,0,.0167966,.994974,.0354726,0,.0226572,.993201,.0355621,0,.0292445,.991573,.0357641,0,.0365123,.989301,.0359252,0,.0444203,.985712,.0358017,0,.0529334,.982411,.0358353,0,.0620214,.977827,.035617,0,.0716574,.973278,.0354398,0,.0818186,.967397,.0350483,0,.0924846,.960696,.0344795,0,.103638,.954349,.0339861,0,.115263,.946066,.0331323,0,.127348,.938012,.032359,0,.13988,.929413,.0314413,0,.152849,.920355,.0304103,0,.166248,.910586,.0292785,0,.18007,.900609,.0281391,0,.194308,.890093,.0269103,0,.208958,.880013,.0257269,0,.224018,.869001,.0244671,0,.239485,.85751,.0232252,0,.255359,.84582,.0220117,0,.271638,.834383,.0208274,0,.288324,.822158,.0196628,0,.305419,.809056,.0185306,0,.322927,.795832,.0174174,0,.340851,.782547,.0163758,0,.359199,.7689,.015391,0,.377975,.755526,.0144488,0,.397189,.741681,.0135372,0,.416851,.728178,.0126957,0,.436971,.714642,.0118812,0,.457564,.702756,.0111165,0,.478644,.69175,.0104145,0,.500229,.680159,.00974439,0,.522339,.668073,.00911926,0,.544997,.655405,.00851393,0,.56823,.642921,.00797637,0,.592068,.629993,.00745119,0,.616546,.616828,.00696972,0,.641705,.603305,.00652425,0,.66759,.589833,.00610188,0,.694255,.575945,.00570834,0,.72176,.561745,.00533384,0,.750168,.548277,.00500001,0,.779545,.534467,.00467582,0,.809933,.521032,.00438092,0,.841272,.507877,.00410348,0,.873016,.494654,.00383618,0,.904762,.481592,.00358699,0,.936508,.468509,.00337281,0,.968254,.455293,.00316196,0,1,1,.0430698,0,0,1,.0430699,0,0,.999998,.0430713,0,0,.999991,.0430773,0,0,.99997,.0430936,0,0,.999928,.0431277,0,406396e-10,.999852,.0431893,0,744376e-9,.999724,.0432895,0,.0024806,.999527,.0434397,0,.00524779,.99923,.0436507,0,.00898164,.998783,.0439255,0,.0136083,.997507,.0441104,0,.0190582,.994418,.0438225,0,.0252694,.992864,.0439396,0,.0321879,.991127,.0440962,0,.039767,.987331,.0438408,0,.0479667,.984819,.0438991,0,.056752,.980384,.0435906,0,.0660929,.975846,.0432543,0,.075963,.970748,.0428293,0,.0863398,.964303,.042153,0,.0972035,.95772,.0414111,0,.108537,.950747,.0405893,0,.120325,.942533,.0394887,0,.132554,.934045,.0383544,0,.145215,.924942,.037057,0,.158296,.915811,.0356993,0,.17179,.90612,.0342401,0,.185691,.896434,.0328078,0,.199993,.886021,.031288,0,.214691,.876081,.0297776,0,.229782,.865608,.0282334,0,.245265,.854924,.026749,0,.261138,.843607,.02526,0,.277401,.832456,.0238214,0,.294056,.821342,.0224682,0,.311104,.809303,.0211297,0,.328548,.796468,.0198387,0,.346394,.784046,.0186227,0,.364645,.771262,.0174561,0,.38331,.758118,.0163806,0,.402396,.745075,.0153287,0,.421912,.731926,.0143647,0,.44187,.71863,.0134363,0,.462283,.705414,.0125603,0,.483165,.693792,.0117508,0,.504535,.683108,.0110016,0,.52641,.67183,.0102757,0,.548816,.66015,.00962044,0,.571776,.647907,.00898031,0,.595323,.635734,.00840811,0,.619489,.623208,.00786211,0,.644317,.610438,.00734953,0,.669852,.597345,.00687688,0,.696148,.584138,.00643469,0,.723267,.5707,.00602236,0,.75128,.556966,.0056324,0,.780258,.543607,.00528277,0,.810268,.530213,.00493999,0,.841311,.516912,.00462265,0,.873016,.503916,.0043307,0,.904762,.491146,.00406858,0,.936508,.478439,.00381436,0,.968254,.465834,.00358003,0,1,1,.0534039,0,0,1,.053404,0,0,.999998,.0534055,0,0,.999989,.0534116,0,0,.999968,.0534283,0,0,.999918,.0534633,0,155895e-9,.99983,.0535262,0,.00120914,.999685,.0536281,0,.00334944,.999461,.0537799,0,.00653077,.999119,.0539902,0,.0106718,.998582,.0542524,0,.0156907,.995919,.0540318,0,.0215147,.993735,.0538914,0,.0280801,.992126,.0539557,0,.0353323,.990266,.0540401,0,.0432247,.986317,.0536064,0,.0517172,.983213,.0534425,0,.0607754,.978303,.0528622,0,.0703698,.973665,.0523363,0,.0804742,.968091,.0516165,0,.0910667,.961026,.0505434,0,.102128,.954333,.049523,0,.113641,.946372,.0481698,0,.125591,.938254,.0467674,0,.137965,.929516,.0452341,0,.150754,.920106,.0435083,0,.163947,.910899,.0417399,0,.177537,.901532,.0399389,0,.191516,.891919,.0380901,0,.205881,.882006,.0362341,0,.220626,.871965,.0343444,0,.235749,.862145,.0324832,0,.251248,.852058,.0306681,0,.267121,.84161,.0289097,0,.283368,.830806,.0272079,0,.299992,.820476,.0256089,0,.316992,.809514,.0240394,0,.334374,.797865,.0225379,0,.35214,.785621,.0211235,0,.370296,.773765,.0197908,0,.388849,.761629,.0185235,0,.407807,.748891,.0173358,0,.427178,.736437,.0162305,0,.446974,.723707,.0151778,0,.467207,.710606,.0141791,0,.487892,.698019,.0132592,0,.509046,.686203,.0123887,0,.530687,.675692,.0115976,0,.552839,.664826,.0108325,0,.575527,.65349,.0101348,0,.59878,.641774,.00947756,0,.622634,.629794,.00886058,0,.647128,.617647,.00828526,0,.672308,.60534,.00775312,0,.698231,.592718,.00726033,0,.724958,.579746,.00679731,0,.752563,.566763,.00636111,0,.781127,.553515,.00595228,0,.810733,.540118,.00556876,0,.841426,.527325,.00523051,0,.873016,.514265,.00490712,0,.904762,.501406,.00460297,0,.936508,.488922,.00431247,0,.968254,.476541,.0040472,0,1,1,.0659184,0,0,1,.0659185,0,0,.999998,.06592,0,0,.999988,.0659259,0,0,.999963,.0659423,0,0,.999907,.0659764,0,374198e-9,.999806,.0660376,0,.00182071,.999639,.0661361,0,.0043894,.999378,.0662814,0,.00800055,.998985,.0664779,0,.0125594,.998285,.0666914,0,.0179786,.995071,.0661989,0,.0241822,.993172,.0660454,0,.031106,.991438,.0660105,0,.0386952,.988428,.0656875,0,.0469032,.985218,.0652913,0,.0556905,.981128,.0647107,0,.065023,.976015,.0638491,0,.0748717,.97097,.062993,0,.0852112,.964582,.0617927,0,.0960199,.957383,.0603626,0,.107279,.949969,.0588128,0,.118971,.941843,.0570274,0,.131084,.933624,.0551885,0,.143604,.924543,.053122,0,.156521,.914919,.0508897,0,.169825,.905773,.0486418,0,.18351,.896434,.0463364,0,.197569,.887195,.0440623,0,.211997,.877706,.0417799,0,.226789,.867719,.03945,0,.241944,.858587,.037243,0,.257458,.849317,.0350956,0,.273331,.839585,.0329852,0,.289563,.829856,.0310028,0,.306154,.819589,.0290953,0,.323108,.809714,.0272738,0,.340426,.79934,.0255631,0,.358113,.788224,.0239175,0,.376175,.776619,.0223831,0,.394616,.76521,.0209298,0,.413445,.753716,.0195786,0,.432671,.741564,.0183001,0,.452305,.729413,.0171259,0,.472358,.717146,.0159933,0,.492845,.70436,.0149495,0,.513783,.69219,.0139681,0,.535189,.680289,.0130577,0,.557087,.669611,.0122198,0,.5795,.659113,.0114174,0,.602459,.648148,.0106729,0,.625997,.636905,.00998997,0,.650154,.625154,.00934313,0,.674976,.613481,.00874839,0,.700518,.60154,.00818265,0,.726845,.58943,.00766889,0,.754032,.576828,.00717153,0,.782167,.564194,.00672696,0,.811344,.551501,.00630863,0,.841644,.538635,.00592177,0,.873016,.525724,.00554888,0,.904762,.513209,.00520225,0,.936508,.500457,.00488231,0,.968254,.48799,.00457153,0,1,1,.0810131,0,0,1,.0810133,0,0,.999997,.0810145,0,0,.999985,.08102,0,0,.999956,.0810347,0,195026e-10,.999893,.0810656,0,719316e-9,.999777,.0811205,0,.00259774,.999583,.081208,0,.00561807,.999281,.0813343,0,.00967472,.998813,.0814969,0,.0146627,.997597,.0815217,0,.0204902,.994379,.0808502,0,.0270802,.992744,.0806792,0,.0343674,.990745,.0804589,0,.0422974,.986646,.0796107,0,.0508242,.983611,.0790913,0,.0599087,.978869,.0780746,0,.0695175,.973475,.0768218,0,.0796223,.967845,.0754926,0,.0901983,.960778,.0737063,0,.101224,.953333,.0718052,0,.112682,.945274,.0695946,0,.124555,.936955,.0672492,0,.136831,.928319,.0647732,0,.149496,.919075,.0620947,0,.162542,.909114,.0591816,0,.175958,.900137,.0563917,0,.189739,.891069,.0535392,0,.203877,.882262,.0507642,0,.218368,.873232,.0479793,0,.233208,.864042,.045226,0,.248393,.855002,.0425413,0,.263923,.846569,.0400126,0,.279796,.837714,.0375269,0,.296012,.828918,.0352027,0,.312573,.819783,.0330011,0,.329479,.810129,.0308908,0,.346734,.800866,.0289112,0,.364342,.79093,.0270255,0,.382307,.780593,.0252758,0,.400637,.769511,.0236178,0,.419337,.758558,.0220652,0,.438418,.747632,.0206289,0,.457889,.736146,.0192873,0,.477761,.724093,.0180333,0,.49805,.71234,.0168264,0,.51877,.700201,.015746,0,.53994,.687949,.0147027,0,.561581,.676163,.0137512,0,.583718,.665001,.0128655,0,.60638,.65472,.0120366,0,.629599,.644213,.0112604,0,.653415,.633382,.0105413,0,.677874,.62212,.00986498,0,.70303,.610631,.00923308,0,.728948,.599078,.00864206,0,.755706,.587519,.00811784,0,.783396,.575505,.00761237,0,.812121,.563148,.00713949,0,.841989,.550828,.00668379,0,.873035,.538458,.00627715,0,.904762,.525905,.00588336,0,.936508,.513517,.00552687,0,.968254,.501395,.00519681,0,1,1,.0991506,0,0,1,.0991504,0,0,.999996,.0991515,0,0,.999984,.0991558,0,0,.999947,.0991672,0,114389e-9,.999874,.0991912,0,.00121503,.999739,.0992331,0,.00356108,.999514,.0992983,0,.00705578,.999159,.0993877,0,.011574,.998586,.0994837,0,.017003,.995731,.0988425,0,.0232484,.993384,.098276,0,.0302318,.991615,.0979269,0,.0378884,.989029,.0973432,0,.0461641,.985373,.0963539,0,.0550136,.981278,.0952306,0,.0643988,.975777,.0936233,0,.0742868,.970526,.0920219,0,.0846501,.963755,.0898912,0,.0954644,.956676,.0876064,0,.106709,.948099,.0847751,0,.118367,.939718,.0818638,0,.130423,.931305,.078857,0,.142862,.922342,.0756127,0,.155674,.912842,.0721473,0,.168849,.903304,.0686195,0,.182378,.89411,.0650589,0,.196255,.885512,.0616022,0,.210473,.877193,.0582434,0,.225027,.86877,.0548979,0,.239915,.860267,.0516095,0,.255132,.851915,.048468,0,.270678,.843912,.0454447,0,.286551,.83604,.0425612,0,.302751,.828245,.0398752,0,.31928,.820159,.0373198,0,.336138,.81167,.034916,0,.35333,.802659,.0326402,0,.370858,.793921,.0304901,0,.388728,.784713,.0284857,0,.406944,.774946,.0266186,0,.425515,.76448,.0248593,0,.444449,.753793,.0232114,0,.463756,.743506,.0217039,0,.483447,.732555,.0202841,0,.503535,.720965,.0189648,0,.524036,.709422,.0177189,0,.544968,.697756,.0165626,0,.56635,.685565,.015483,0,.588208,.673987,.0144892,0,.610569,.66244,.0135607,0,.633466,.651675,.0126956,0,.656936,.641598,.0118788,0,.681025,.63121,.0111261,0,.705788,.620514,.010437,0,.731289,.609366,.00978747,0,.757606,.598137,.00917257,0,.784834,.586966,.00859778,0,.813085,.575549,.00806803,0,.842485,.563797,.00757294,0,.87313,.551758,.00710592,0,.904762,.539894,.0066841,0,.936508,.527901,.00627901,0,.968254,.515819,.00590506,0,1,1,.120864,0,0,1,.120864,0,0,.999996,.120864,0,0,.99998,.120867,0,0,.99994,.120872,0,323781e-9,.999852,.120884,0,.00188693,.999693,.120903,0,.00473489,.999426,.120929,0,.00872704,.999002,.120955,0,.0137237,.998235,.120918,0,.0196068,.994608,.119764,0,.0262803,.992997,.119265,0,.0336657,.990968,.11863,0,.0416987,.987002,.117261,0,.0503261,.983524,.116009,0,.0595035,.97875,.114252,0,.0691935,.972652,.11193,0,.0793645,.966613,.109555,0,.0899894,.959275,.106612,0,.101045,.951272,.103375,0,.112512,.942323,.0996594,0,.124372,.933679,.0958841,0,.136611,.924822,.0919265,0,.149216,.915742,.0878061,0,.162176,.906348,.0834894,0,.175482,.896883,.079085,0,.189125,.88774,.0746745,0,.203098,.87986,.0705773,0,.217396,.871998,.0665005,0,.232015,.864325,.0625413,0,.24695,.856685,.0586781,0,.2622,.84925,.0550063,0,.277761,.841719,.0514727,0,.293634,.834755,.0481398,0,.309819,.827853,.0450172,0,.326315,.820888,.0420969,0,.343126,.813616,.0393702,0,.360254,.805767,.0367771,0,.377701,.797338,.0343274,0,.395474,.789122,.0320529,0,.413577,.780601,.0299485,0,.432018,.771424,.0279812,0,.450804,.761502,.0261054,0,.469944,.751166,.0243942,0,.489451,.741276,.0228087,0,.509337,.730898,.0213265,0,.529617,.719878,.0199307,0,.550307,.708379,.0186574,0,.571428,.697165,.0174446,0,.593003,.685554,.0163144,0,.615059,.673631,.015276,0,.637628,.662385,.0143003,0,.660746,.651059,.0134112,0,.68446,.640451,.0125794,0,.70882,.630536,.011793,0,.733893,.620316,.0110547,0,.759756,.609722,.0103668,0,.786505,.598804,.00973009,0,.814259,.587871,.00912812,0,.843157,.577121,.00858916,0,.87334,.566019,.00807333,0,.904762,.554664,.00759687,0,.936508,.543101,.00714759,0,.968254,.531558,.00673418,0,1,1,.146767,0,0,1,.146767,0,0,.999997,.146767,0,0,.999977,.146765,0,320658e-11,.999929,.146762,0,682576e-9,.999823,.146753,0,.00276402,.999633,.146735,0,.00614771,.999314,.146699,0,.0106613,.998796,.14662,0,.0161546,.997124,.146107,0,.0225063,.994062,.144857,0,.0296198,.992154,.144011,0,.037417,.989186,.142712,0,.0458348,.985279,.140926,0,.0548211,.980826,.13885,0,.0643326,.975056,.136168,0,.074333,.969005,.133217,0,.0847917,.961554,.12959,0,.0956828,.954206,.125886,0,.106984,.945046,.121335,0,.118675,.935678,.116492,0,.130741,.926748,.111635,0,.143166,.917764,.106625,0,.155939,.908358,.101325,0,.169049,.899219,.0960249,0,.182487,.890089,.0906527,0,.196245,.881488,.0853905,0,.210317,.874031,.0804177,0,.224697,.866932,.0756005,0,.23938,.859976,.0709019,0,.254364,.853375,.0664391,0,.269646,.846971,.0622012,0,.285223,.840483,.058129,0,.301096,.833969,.0542762,0,.317265,.82806,.0507042,0,.333729,.822128,.047368,0,.350491,.815989,.044272,0,.367554,.809336,.0413444,0,.38492,.802177,.038601,0,.402594,.79441,.0360227,0,.420582,.786573,.0336383,0,.438891,.778619,.0314321,0,.457527,.77,.029362,0,.476499,.760698,.0274102,0,.49582,.750932,.0256146,0,.5155,.740993,.023974,0,.535555,.731159,.0224182,0,.556,.720836,.0209889,0,.576855,.709913,.0196411,0,.598143,.698415,.0183824,0,.619888,.68745,.0172222,0,.642123,.676154,.0161509,0,.664883,.664383,.0151397,0,.688211,.6533,.0141873,0,.71216,.642072,.0133105,0,.736792,.631412,.0124932,0,.762186,.621622,.0117408,0,.788439,.611681,.0110358,0,.815672,.60142,.0103775,0,.844034,.59083,.00975623,0,.873699,.580254,.00918084,0,.904765,.569841,.00864721,0,.936508,.559224,.00815731,0,.968254,.548315,.00767924,0,1,1,.177563,0,0,1,.177563,0,0,.999994,.177562,0,0,.999972,.177555,0,664171e-10,.999914,.177536,0,.0012276,.999787,.177496,0,.00388025,.999556,.17742,0,.00783463,.999165,.177285,0,.0128953,.9985,.177037,0,.0189053,.995388,.175634,0,.025742,.993102,.174375,0,.033309,.990992,.173121,0,.0415298,.986932,.170896,0,.0503425,.982786,.16847,0,.0596964,.977592,.165455,0,.0695498,.971075,.161676,0,.0798676,.963967,.157458,0,.0906201,.956397,.152836,0,.101783,.947489,.147467,0,.113333,.937564,.14145,0,.125254,.928182,.135383,0,.137529,.919027,.129212,0,.150144,.909618,.12276,0,.163088,.900492,.116273,0,.176351,.891671,.1098,0,.189924,.883146,.103362,0,.203799,.875151,.0970799,0,.21797,.868338,.0911732,0,.232433,.862033,.0854966,0,.247182,.856107,.0800691,0,.262216,.850644,.0749618,0,.27753,.845261,.070079,0,.293124,.839885,.0654321,0,.308997,.834609,.0610975,0,.325149,.829083,.0569741,0,.341581,.82404,.0531736,0,.358294,.818968,.049665,0,.37529,.813496,.0463856,0,.392573,.807533,.0433217,0,.410148,.80099,.0404402,0,.428019,.793891,.0377578,0,.446192,.786281,.0352616,0,.464676,.778773,.0329577,0,.483478,.770737,.030808,0,.502608,.762094,.0287964,0,.522079,.752898,.0269254,0,.541905,.743306,.0251926,0,.5621,.733416,.023595,0,.582684,.723742,.0221155,0,.603677,.713542,.0207435,0,.625106,.702755,.019434,0,.646998,.691484,.0182046,0,.66939,.680531,.0170771,0,.692324,.66953,.0160339,0,.715849,.658126,.0150677,0,.740028,.646933,.0141551,0,.764937,.636107,.0133179,0,.790673,.625271,.0125284,0,.817358,.615225,.0117937,0,.84515,.605678,.0111181,0,.874244,.59583,.0104759,0,.904828,.585704,.00986672,0,.936508,.575413,.00929712,0,.968254,.565373,.00876713,0,1,1,.214058,0,0,.999999,.214058,0,0,.999994,.214055,0,0,.999966,.214039,0,259642e-9,.999893,.213998,0,.00200075,.999737,.21391,0,.00527775,.999449,.213745,0,.00983959,.99896,.213458,0,.0154755,.9979,.212855,0,.0220249,.994278,.210779,0,.0293654,.992254,.20926,0,.0374021,.98881,.206908,0,.0460604,.984715,.204009,0,.0552802,.979738,.200471,0,.0650127,.972884,.195813,0,.0752175,.965996,.190856,0,.0858612,.957974,.185077,0,.0969155,.949155,.17868,0,.108356,.939288,.171513,0,.120163,.928996,.163838,0,.132319,.919563,.156246,0,.144808,.910004,.148359,0,.157618,.900791,.140417,0,.170737,.892135,.132569,0,.184155,.883803,.124741,0,.197866,.876034,.117091,0,.211861,.869219,.109835,0,.226134,.863062,.102859,0,.240682,.857795,.0962928,0,.255499,.853009,.0900725,0,.270583,.848603,.0842101,0,.285931,.844335,.0786527,0,.301542,.840208,.0734397,0,.317415,.836035,.0685334,0,.33355,.83172,.0639275,0,.349948,.827135,.0595909,0,.36661,.822797,.0556204,0,.383539,.818387,.0519394,0,.400738,.813565,.0485317,0,.41821,.808142,.0453138,0,.435961,.802212,.0423354,0,.453997,.79573,.0395553,0,.472324,.788741,.036988,0,.490951,.781093,.0345688,0,.509887,.773597,.0323297,0,.529144,.765622,.0302719,0,.548735,.757083,.0283477,0,.568674,.747992,.0265562,0,.588979,.738591,.0248844,0,.609671,.728719,.0233342,0,.630773,.719146,.0219081,0,.652314,.709165,.0205711,0,.674328,.69875,.0193248,0,.696854,.687884,.0181582,0,.719942,.676818,.0170746,0,.743651,.666247,.0160718,0,.768057,.655284,.0151262,0,.793253,.64401,.0142561,0,.819363,.633353,.0134327,0,.846547,.622674,.012653,0,.875017,.612265,.0119354,0,.905021,.602455,.0112533,0,.936508,.593147,.0106234,0,.968254,.583592,.0100213,0,1,1,.25717,0,0,1,.25717,0,0,.999992,.257164,0,0,.999958,.257135,0,641715e-9,.999864,.25706,0,.00305314,.999666,.256897,0,.00700975,.999302,.256596,0,.0122194,.998663,.25607,0,.0184622,.995607,.254123,0,.0255773,.993094,.252081,0,.0334439,.9907,.249867,0,.0419696,.98594,.246118,0,.0510823,.981214,.242049,0,.0607242,.974966,.236869,0,.0708486,.967589,.230724,0,.081417,.95915,.223635,0,.0923974,.950257,.21596,0,.103763,.940165,.207296,0,.115491,.929396,.197901,0,.127562,.919288,.188437,0,.13996,.909428,.178762,0,.15267,.900105,.169072,0,.165679,.891418,.159478,0,.178979,.883347,.15002,0,.192558,.875992,.140813,0,.20641,.869466,.13196,0,.220529,.863699,.123501,0,.234907,.858553,.115436,0,.249542,.854379,.107901,0,.264428,.850894,.10088,0,.279564,.847632,.0942296,0,.294947,.844571,.0879861,0,.310575,.84163,.0821534,0,.326448,.838542,.0766409,0,.342566,.835412,.0715322,0,.358929,.831899,.0666883,0,.37554,.828177,.0622175,0,.392399,.82416,.0580452,0,.409511,.820393,.054267,0,.426878,.816068,.0507172,0,.444506,.811201,.0474041,0,.4624,.805785,.0443174,0,.480566,.799878,.0414562,0,.499013,.793469,.0388147,0,.517749,.786473,.0363453,0,.536785,.778874,.0340225,0,.556134,.771277,.0318599,0,.575809,.763426,.0298859,0,.595827,.755044,.0280357,0,.616207,.746161,.0262979,0,.636973,.737124,.0247295,0,.65815,.72761,.0232514,0,.679772,.717822,.0218755,0,.701876,.708279,.0205942,0,.724509,.698333,.0193947,0,.74773,.68802,.0182717,0,.771609,.677321,.0172044,0,.79624,.666504,.0162122,0,.821743,.656184,.0152924,0,.84828,.64556,.0144326,0,.876069,.634636,.0136157,0,.905404,.624124,.0128612,0,.936508,.613914,.0121435,0,.968254,.603589,.0114887,0,1,1,.307946,0,0,.999999,.307945,0,0,.999988,.307934,0,204479e-10,.999944,.307886,0,.00127833,.999824,.307756,0,.00445047,.999565,.30748,0,.00914673,.999085,.306966,0,.0150498,.998103,.306004,0,.0219367,.994249,.303028,0,.0296485,.991807,.300435,0,.038068,.987773,.296554,0,.0471062,.982673,.2916,0,.0566942,.976623,.285641,0,.0667768,.968757,.27815,0,.0773099,.959849,.269529,0,.088257,.950663,.260248,0,.0995879,.940129,.249704,0,.111277,.92895,.238291,0,.123304,.917996,.226501,0,.13565,.907813,.214669,0,.148299,.898305,.202835,0,.161237,.889626,.191158,0,.174455,.88175,.179695,0,.187941,.874715,.168548,0,.201687,.868746,.15792,0,.215687,.863703,.147807,0,.229933,.859315,.138149,0,.24442,.855538,.128993,0,.259145,.852428,.120414,0,.274103,.850168,.112498,0,.289293,.848132,.105054,0,.304711,.846291,.0981087,0,.320357,.844431,.0915942,0,.33623,.842493,.0855056,0,.35233,.840368,.0798204,0,.368658,.83798,.0745097,0,.385214,.83523,.0695424,0,.402002,.832091,.0649092,0,.419023,.828667,.0606291,0,.436282,.824805,.0566523,0,.453782,.820988,.0530229,0,.471529,.816635,.0496364,0,.489528,.811725,.0464658,0,.507788,.806316,.0435082,0,.526317,.800469,.0407873,0,.545124,.794107,.038255,0,.564221,.787218,.0358825,0,.583621,.779872,.0336785,0,.603341,.772097,.0316379,0,.623397,.764484,.0297379,0,.643812,.756428,.0279581,0,.664611,.748022,.0263153,0,.685824,.739268,.0247799,0,.707488,.73024,.0233385,0,.729646,.720893,.0220035,0,.752354,.71119,.0207555,0,.77568,.701791,.0195843,0,.799715,.692184,.0184891,0,.824574,.682258,.0174541,0,.850417,.67206,.0164873,0,.877466,.661717,.0155959,0,.90604,.651462,.0147519,0,.936528,.641467,.0139727,0,.968254,.631229,.0132363,0,1,1,.367573,0,0,.999999,.367571,0,0,.999984,.367553,0,183382e-9,.999925,.367473,0,.00225254,.999759,.367259,0,.00628165,.99941,.366801,0,.0117858,.998739,.365946,0,.0184359,.995529,.363191,0,.0260114,.992875,.360171,0,.0343581,.989135,.355981,0,.0433637,.984166,.350401,0,.0529438,.977871,.343348,0,.0630334,.96951,.334341,0,.0735805,.959964,.323862,0,.0845437,.950162,.312521,0,.095889,.938882,.299577,0,.107588,.926992,.285573,0,.119617,.915589,.271212,0,.131957,.904791,.256611,0,.144591,.895177,.242224,0,.157503,.886403,.227952,0,.170682,.878957,.214192,0,.184117,.872418,.200795,0,.197799,.867029,.188015,0,.21172,.862835,.175975,0,.225873,.859411,.164526,0,.240253,.856655,.153693,0,.254854,.854519,.14352,0,.269673,.852828,.13397,0,.284707,.851412,.124984,0,.299953,.850609,.116748,0,.315408,.849855,.10905,0,.331073,.849017,.101839,0,.346946,.848079,.0951359,0,.363028,.846911,.0888774,0,.379318,.845445,.0830375,0,.395818,.84362,.0775844,0,.41253,.841411,.0725054,0,.429457,.838768,.0677691,0,.446602,.835801,.0634016,0,.463968,.832341,.0593095,0,.481561,.828424,.0555121,0,.499386,.824312,.052024,0,.51745,.819918,.0487865,0,.535761,.815072,.0457801,0,.554328,.809863,.0430184,0,.573162,.804164,.0404245,0,.592275,.798034,.0380146,0,.611681,.791436,.0357436,0,.631398,.784498,.0336475,0,.651445,.777125,.0316666,0,.671845,.769365,.0298122,0,.692628,.761579,.0281001,0,.713827,.753746,.0265049,0,.735484,.745573,.0250067,0,.75765,.737083,.0236026,0,.78039,.728545,.0223302,0,.803789,.719691,.0211243,0,.82796,.710569,.0199983,0,.853056,.701216,.0189569,0,.879298,.692094,.0179702,0,.907014,.682909,.0170418,0,.936691,.673509,.0161732,0,.968254,.663863,.0153406,0,1,1,.437395,0,0,.999998,.437394,0,0,.99998,.437363,0,616704e-9,.999891,.437232,0,.00367925,.999656,.436877,0,.00867446,.999148,.436121,0,.0150679,.997959,.434564,0,.022531,.993464,.430134,0,.0308507,.990606,.426077,0,.0398805,.985027,.419397,0,.0495148,.978491,.41118,0,.0596749,.969643,.40048,0,.0703001,.959189,.38769,0,.0813427,.948223,.373575,0,.0927641,.935955,.357622,0,.104533,.923237,.34043,0,.116624,.911074,.322735,0,.129015,.899724,.30479,0,.141687,.890189,.287392,0,.154626,.881796,.270248,0,.167818,.874781,.253659,0,.181252,.869166,.237786,0,.194918,.864725,.222618,0,.208807,.861565,.208356,0,.222913,.859284,.194867,0,.237229,.857677,.18212,0,.25175,.856714,.17018,0,.266473,.856155,.158969,0,.281392,.8558,.148413,0,.296505,.855672,.138578,0,.311811,.855538,.129345,0,.327306,.855689,.120861,0,.342991,.855767,.112969,0,.358864,.855618,.105593,0,.374925,.85525,.0987451,0,.391176,.854583,.0923727,0,.407616,.853534,.0864143,0,.424249,.852061,.0808338,0,.441076,.850253,.0756771,0,.4581,.848004,.0708612,0,.475324,.845333,.0663784,0,.492754,.842376,.0622631,0,.510394,.838956,.0584112,0,.528251,.835121,.0548328,0,.546331,.830842,.0514838,0,.564644,.826212,.048355,0,.583198,.821522,.0454714,0,.602005,.816551,.0428263,0,.621078,.811211,.0403612,0,.640434,.805479,.038039,0,.660089,.799409,.0358739,0,.680066,.79306,.0338727,0,.70039,.786395,.0319985,0,.721094,.779416,.030241,0,.742215,.77214,.0285951,0,.7638,.764636,.0270747,0,.785912,.756836,.0256354,0,.808628,.749315,.0243027,0,.832055,.741561,.0230497,0,.856338,.733589,.0218801,0,.88169,.725479,.020784,0,.908441,.717255,.0197702,0,.937125,.708829,.0188168,0,.968254,.700191,.0179113,0,1,1,.518937,0,0,.999998,.518933,0,0,.999967,.518883,0,.00147741,.999832,.51866,0,.00573221,.999466,.518057,0,.011826,.998644,.516752,0,.0192116,.994458,.512347,0,.027573,.991223,.507675,0,.0367099,.985515,.500188,0,.046487,.978308,.490408,0,.0568071,.968359,.477357,0,.0675984,.95682,.461752,0,.0788059,.943929,.443796,0,.090386,.930224,.423893,0,.102304,.916514,.402682,0,.114532,.903653,.380914,0,.127047,.892315,.359212,0,.139828,.882942,.338102,0,.152861,.875438,.31773,0,.16613,.869642,.298186,0,.179624,.865304,.279491,0,.193332,.862382,.261804,0,.207247,.860666,.245146,0,.22136,.859788,.229406,0,.235666,.859608,.214605,0,.250158,.859912,.200691,0,.264832,.86053,.187623,0,.279684,.861368,.17539,0,.294711,.862237,.163901,0,.309911,.863127,.153175,0,.32528,.863923,.143147,0,.340819,.864567,.133781,0,.356524,.865013,.125042,0,.372397,.86539,.116952,0,.388438,.865591,.109476,0,.404645,.865517,.102542,0,.421022,.865084,.0960688,0,.437569,.864309,.0900499,0,.454287,.863151,.0844328,0,.471181,.861649,.0792218,0,.488253,.859742,.0743482,0,.505507,.857446,.0697963,0,.522947,.854757,.0655364,0,.54058,.851783,.061608,0,.558412,.848516,.0579701,0,.576449,.844897,.0545742,0,.594701,.840956,.0514167,0,.613178,.836676,.0484598,0,.631892,.832075,.0456934,0,.650856,.827191,.0431178,0,.670088,.822295,.0407718,0,.689606,.817294,.0386032,0,.709434,.812013,.0365675,0,.7296,.806465,.0346547,0,.750138,.800691,.0328717,0,.771093,.794709,.031211,0,.792519,.788493,.0296504,0,.814488,.782049,.0281782,0,.837097,.775403,.0267965,0,.860481,.76857,.0255002,0,.884842,.761536,.0242759,0,.910494,.754303,.0231142,0,.937985,.74692,.0220305,0,.968254,.739745,.0210192,0,1,1,.613914,0,0,.999996,.613907,0,963597e-10,.999942,.613814,0,.00301247,.999704,.613407,0,.00870385,.999046,.612302,0,.0160714,.995516,.608266,0,.0245899,.991726,.602863,0,.0339681,.985157,.593956,0,.0440254,.97642,.581748,0,.0546409,.964404,.565183,0,.0657284,.950601,.545273,0,.0772246,.935158,.522129,0,.0890812,.919364,.496782,0,.10126,.904754,.470571,0,.113731,.89176,.444037,0,.126469,.881492,.418322,0,.139454,.873656,.393522,0,.15267,.868053,.369795,0,.166101,.864336,.347171,0,.179736,.862259,.325737,0,.193565,.861556,.305532,0,.207578,.861776,.286416,0,.221769,.862661,.268355,0,.23613,.864015,.251334,0,.250656,.865711,.235352,0,.265343,.867519,.220302,0,.280187,.869351,.206161,0,.295183,.871144,.192908,0,.31033,.872839,.180505,0,.325624,.874307,.168848,0,.341065,.875667,.158021,0,.35665,.876758,.147877,0,.37238,.87764,.138441,0,.388253,.878237,.129627,0,.404269,.878563,.121415,0,.42043,.878572,.113741,0,.436735,.87842,.106652,0,.453187,.878057,.100097,0,.469786,.877413,.0940128,0,.486536,.87646,.0883462,0,.503439,.875233,.0830924,0,.520498,.8737,.0781975,0,.537717,.871873,.07364,0,.555102,.86978,.0694103,0,.572657,.867405,.0654696,0,.59039,.864751,.0617914,0,.608307,.861818,.0583491,0,.626419,.858645,.0551443,0,.644733,.855307,.0521894,0,.663264,.851736,.0494334,0,.682025,.847927,.0468504,0,.701032,.843888,.0444261,0,.720308,.839629,.0421497,0,.739875,.835158,.0400082,0,.759764,.830509,.0380076,0,.780014,.825714,.0361488,0,.800673,.820729,.0343956,0,.821803,.815751,.0327781,0,.843492,.810752,.031275,0,.86586,.805587,.0298542,0,.889087,.800317,.0285397,0,.913466,.79489,.0272948,0,.93952,.789314,.0261139,0,.96835,.783593,.0249938,0,1,1,.724258,0,0,.999992,.724243,0,726889e-9,.99987,.724044,0,.00569574,.999336,.72317,0,.0131702,.996271,.719432,0,.0220738,.991159,.712576,0,.0319405,.982465,.700927,0,.0425202,.97049,.684297,0,.0536599,.953973,.661244,0,.065258,.935546,.633804,0,.0772427,.916596,.603071,0,.0895616,.899353,.57105,0,.102175,.885216,.539206,0,.11505,.875076,.508714,0,.128164,.868334,.479571,0,.141495,.864414,.451796,0,.155026,.862678,.425328,0,.168745,.862835,.400352,0,.182639,.864067,.376532,0,.196699,.866086,.35391,0,.210915,.868557,.332424,0,.225282,.871271,.312053,0,.239792,.874058,.292764,0,.25444,.8768,.27453,0,.269223,.87939,.257297,0,.284135,.8819,.24114,0,.299174,.884187,.225934,0,.314337,.886262,.211669,0,.329622,.888119,.198311,0,.345026,.889709,.185783,0,.360549,.891054,.174063,0,.376189,.892196,.163143,0,.391946,.893101,.152952,0,.407819,.893803,.143475,0,.423808,.894277,.134647,0,.439914,.894532,.126434,0,.456137,.894576,.1188,0,.472479,.894393,.111694,0,.48894,.893976,.105069,0,.505523,.893346,.0989077,0,.52223,.892502,.0931724,0,.539064,.891441,.0878276,0,.556028,.890276,.082903,0,.573125,.888972,.0783505,0,.590361,.887469,.0741083,0,.607741,.885785,.0701633,0,.62527,.883914,.0664835,0,.642957,.881872,.0630567,0,.660809,.879651,.0598527,0,.678836,.877267,.0568615,0,.69705,.874717,.05406,0,.715465,.872012,.0514378,0,.734098,.869157,.0489805,0,.752968,.866155,.0466727,0,.772101,.863014,.0445056,0,.791529,.859748,.0424733,0,.81129,.856416,.0405957,0,.831438,.852958,.0388273,0,.852044,.849382,.0371619,0,.87321,.845694,.0355959,0,.89509,.841893,.0341155,0,.917932,.837981,.0327141,0,.942204,.833963,.0313856,0,.968981,.829847,.0301275,0,1,1,.85214,0,0,.999969,.852095,0,.00279627,.999483,.851408,0,.0107635,.994545,.84579,0,.0206454,.986188,.835231,0,.0315756,.969847,.814687,0,.0432021,.945951,.783735,0,.0553396,.91917,.746074,0,.0678766,.895488,.706938,0,.0807395,.878232,.669534,0,.0938767,.868252,.635168,0,.10725,.863873,.603069,0,.120832,.863369,.572514,0,.134598,.86545,.543169,0,.148533,.868803,.514578,0,.16262,.872794,.486762,0,.176849,.87702,.459811,0,.19121,.881054,.433654,0,.205694,.884974,.408574,0,.220294,.888587,.384525,0,.235005,.891877,.36156,0,.24982,.894793,.339661,0,.264737,.89743,.318913,0,.279751,.899796,.299302,0,.294859,.901943,.280843,0,.310058,.903858,.263481,0,.325346,.905574,.247197,0,.340721,.907069,.231915,0,.356181,.908379,.217614,0,.371725,.90952,.20425,0,.387353,.910483,.191758,0,.403063,.91128,.180092,0,.418854,.911936,.169222,0,.434727,.912454,.159098,0,.450682,.912835,.149668,0,.466718,.913078,.140884,0,.482837,.913192,.132709,0,.499038,.913175,.125095,0,.515324,.91304,.118012,0,.531695,.912781,.111417,0,.548153,.91241,.105281,0,.5647,.911924,.0995691,0,.581338,.911331,.0942531,0,.59807,.910637,.0893076,0,.6149,.90984,.0846998,0,.63183,.908941,.0804044,0,.648865,.907944,.0763984,0,.666011,.906857,.0726638,0,.683273,.90568,.0691783,0,.700659,.904416,.0659222,0,.718176,.903067,.0628782,0,.735834,.901637,.0600307,0,.753646,.900128,.0573647,0,.771625,.898544,.0548668,0,.78979,.89689,.052527,0,.808162,.895165,.0503306,0,.826771,.893371,.0482668,0,.845654,.891572,.0463605,0,.864863,.889763,.0445998,0,.884472,.887894,.0429451,0,.904592,.885967,.0413884,0,.925407,.883984,.0399225,0,.947271,.881945,.0385405,0,.97105,.879854,.0372362,0,1,.999804,.995833,0,0,.938155,.933611,0,.0158731,.864755,.854311,0,.0317461,.888594,.865264,0,.0476191,.905575,.863922,0,.0634921,.915125,.850558,0,.0793651,.920665,.829254,0,.0952381,.924073,.802578,0,.111111,.926304,.772211,0,.126984,.927829,.739366,0,.142857,.928924,.705033,0,.15873,.92973,.670019,0,.174603,.930339,.634993,0,.190476,.930811,.600485,0,.206349,.931191,.566897,0,.222222,.93149,.534485,0,.238095,.931737,.503429,0,.253968,.931939,.473811,0,.269841,.932108,.445668,0,.285714,.93225,.418993,0,.301587,.932371,.393762,0,.31746,.932474,.369939,0,.333333,.932562,.347479,0,.349206,.932638,.326336,0,.365079,.932703,.306462,0,.380952,.93276,.287805,0,.396825,.932809,.270313,0,.412698,.932851,.253933,0,.428571,.932887,.23861,0,.444444,.932917,.224289,0,.460317,.932943,.210917,0,.47619,.932965,.19844,0,.492063,.932982,.186807,0,.507937,.932995,.175966,0,.52381,.933005,.165869,0,.539683,.933011,.156468,0,.555556,.933013,.147719,0,.571429,.933013,.139579,0,.587302,.93301,.132007,0,.603175,.933004,.124965,0,.619048,.932994,.118416,0,.634921,.932982,.112326,0,.650794,.932968,.106663,0,.666667,.93295,.101397,0,.68254,.932931,.0964993,0,.698413,.932908,.0919438,0,.714286,.932883,.0877057,0,.730159,.932856,.0837623,0,.746032,.932827,.0800921,0,.761905,.932796,.0766754,0,.777778,.932762,.0734936,0,.793651,.932727,.0705296,0,.809524,.932689,.0677676,0,.825397,.93265,.0651929,0,.84127,.932609,.0627917,0,.857143,.932565,.0605515,0,.873016,.932521,.0584606,0,.888889,.932474,.0565082,0,.904762,.932427,.0546841,0,.920635,.932377,.0529793,0,.936508,.932326,.0513851,0,.952381,.932274,.0498936,0,.968254,.93222,.0484975,0,.984127,.932164,.0471899,0,1];function s3(r){let e=(i,s)=>r.createTexture({id:i,width:64,height:64,format:"rgba16float",data:Uint16Array.from(s,i3.toHalfFloat),mipLevels:1,sampler:{minFilter:"nearest",magFilter:"nearest"}}),t=e("ltc-matrix",r3),n=e("ltc-amplitude",n3);return{bindings:{areaLTCMatrix:t,areaLTCAmplitude:n},destroy(){t.destroy(),n.destroy()}}}var D6=a0;return f3(Yt);})();
|
|
921
|
+
`,bindingLayout:[{name:"publishedBodyMatrices",group:0}]};var ma=D(k(),1);function ii(r,e){r.userData.morphWeights=[...e];let t=r.userData.morphMeshes||[];for(let n of t)n.preorderTraversal(i=>{if(!(i instanceof rt))return;let s=i.userData.morphTargets;if(!s)return;let o=i.userData.morphWeightTransport;if(o){e7(o,e),i.userData.morphWeights=[...e];return}xr(i.model,s.geometry,s.targets,e),i.userData.morphWeights=[...e]})}function e7(r,e){r.values.fill(0),r.values.set(e.slice(0,r.values.length)),r.data instanceof ma.Buffer?r.data.write(r.values):r.data.writeData(r.values,{width:r.packedTargetCount,height:1})}function ga(r,e,t={}){return{id:t.id,getValue:()=>{switch(e){case"translation":return Array.from(r.position);case"rotation":return Array.from(r.rotation);case"scale":return Array.from(r.scale);case"weights":return Array.from(r.userData.morphWeights??[]);case"visibility":return[r.display?1:0];case"selectable":return[r.selectable?1:0];case"hoverable":return[r.hoverable?1:0]}},setValue:n=>{switch(e){case"translation":r.setPosition(n).updateMatrix();break;case"rotation":r.setRotation(n).updateMatrix();break;case"scale":r.setScale(n).updateMatrix();break;case"weights":ii(r,n);break;case"selectable":r.setProps({selectable:n[0]!==0});break;case"hoverable":r.setProps({hoverable:n[0]!==0});break;case"visibility":r.setProps({display:n[0]!==0}),t.onVisibilityChange?.();break}}}}var si=class extends ye{mixer;activeClip;onUpdate;previousTimeSeconds;constructor(e,t,n={}){if(super(e),this.mixer=t,this.onUpdate=n.onUpdate,this.activeClip=e[0]?.name,n.autoplay===!1)for(let i of e)i.playing=!1,i.action.stop();else n.autoplay==="first"&&this.activeClip&&this.selectClip(this.activeClip)}setUpdateHandler(e){return this.onUpdate=e,this}setTime(e){let t=e/1e3,n=this.previousTimeSeconds===void 0?0:t-this.previousTimeSeconds;this.previousTimeSeconds=t;let i=n*this.mixer.timeScale;this.clips.forEach(s=>{if(!s.playing){s.action.stop();return}if(s.action.paused)return;s.action.resume();let o=Math.max(0,t-s.startTime)*s.speed;s.action.setTime(o-i*s.action.timeScale)}),this.mixer.update(n),this.onUpdate?.()}update(e){this.mixer.update(e),this.onUpdate?.()}selectClip(e,t={}){let n=this.clips.find(o=>o.name===e);if(!n)throw new Error(`Unknown animation clip: ${e}`);let i=this.clips.find(o=>o.name===this.activeClip),s=t.crossFadeDuration||0;for(let o of this.clips)o!==n&&!(s>0&&o===i)&&(o.playing=!1,o.action.stop());return n.playing=!0,s>0&&i&&i!==n?(i.playing=!0,i.action.crossFadeTo(n.action,s)):n.action.reset().setEffectiveWeight(1).play(),this.activeClip=e,n}},oi=class extends ge{clip;mixer;action;constructor(e,t=new be){super({name:e.name}),this.clip=e,this.mixer=t,this.action=t.clipAction(e).play()}applyTime(e){this.action.setTime(e),this.mixer.update(0)}};function ai(r){let e=new l0().set(1,0,0,0,1,0,r.offset[0],r.offset[1],1),t=new l0().set(Math.cos(r.rotation),Math.sin(r.rotation),0,-Math.sin(r.rotation),Math.cos(r.rotation),0,0,0,1),n=new l0().set(r.scale[0],0,0,0,r.scale[1],0,0,0,1);return Array.from(e.multiplyRight(t).multiplyRight(n))}function ci(r,e){let t=new l0(ai(r)),n=new l0(ai(e)),i=new l0(t).invert();return Array.from(n.multiplyRight(i))}function ya(r,e,t){return{id:t,getValue:()=>t7(r[0],e),setValue:n=>{for(let i of r)r7(i,e,n)}}}function xa(r,e,t=new Map,n){return{id:n,setValue:i=>{for(let s of r)s7(s,e,i,t)}}}function ba(r,e,t={}){return{id:t.id,getValue:()=>{let n=r[e];return Array.isArray(n)?t.component===void 0?[...n]:[n[t.component]]:typeof n=="number"?[n]:[]},setValue:n=>{if(t.component!==void 0){let i=[...r[e]||[1,1,1]];i[t.component]=n[0],r[e]=i}else r[e]=n.length===1?n[0]:[...n];t.onChange?.()}}}function t7(r,e){let n=r.shaderInputs.getUniformValues().pbrMaterial?.[e.property];return Array.isArray(n)?e.component===void 0?[...n]:[n[e.component]]:typeof n=="number"?[n]:[]}function r7(r,e,t){let n=e.component!==void 0?{[e.property]:i7(n7(r,e.property),e.component,t[0])}:{[e.property]:t.length===1?t[0]:t};r.setProps({pbrMaterial:n})}function n7(r,e){let n=r.shaderInputs.getUniformValues().pbrMaterial?.[e];return Array.isArray(n)?[...n]:[]}function i7(r,e,t){let n=[...r];return n[e]=t,n}function s7(r,e,t,n){let i=o7(n,r,e);switch(e.path){case"offset":e.component!==void 0?i.offset[e.component]=t[0]:i.offset=[t[0],t[1]];break;case"rotation":i.rotation=t[0];break;case"scale":e.component!==void 0?i.scale[e.component]=t[0]:i.scale=[t[0],t[1]];break}r.setProps({pbrMaterial:{[e.uniform]:ci(e.baseTransform,i)}})}function o7(r,e,t){let n=r.get(e)||{},i=n[t.textureSlot];return i||(i={offset:[...t.baseTransform.offset],rotation:t.baseTransform.rotation,scale:[...t.baseTransform.scale]},n[t.textureSlot]=i,r.set(e,n)),i}function va(r,e){let t=()=>{let i=r.get(e);if(!i||!i.every(s=>typeof s=="number"||typeof s=="boolean"))throw new Error("Missing numeric animation property");return i},n=typeof t()[0]=="boolean";return{id:e,getValue:()=>t().map(Number),setValue:i=>{if(!r.set(e,n?[i[0]!==0]:[...i]))throw new Error("Animation property is not writable")}}}function Ta(r){let{positions:e,targets:t=[],weights:n=[],jointMatrices:i,influences:s=[]}=r;if(e.length%3||t.some(a=>a.length!==e.length)||!n.every(Number.isFinite))throw new Error("Invalid position deformation");let o=bt({POSITION:e},t.map(a=>({POSITION:a})),n).POSITION;if(!i){if(!o.every(Number.isFinite))throw new Error("Nonfinite deformation");return o}if(!s.length||s.some(a=>a.joints.length!==e.length/3*4||a.weights.length!==a.joints.length))throw new Error("Invalid skin influences");for(let a=0;a<o.length/3;a++){let c=Array.from(o.subarray(a*3,a*3+3)),u=[0,0,0],l=0;for(let d of s)for(let f=0;f<4;f++){let h=a*4+f,p=d.weights[h];if(!Number.isFinite(p)||p<0)throw new Error("Invalid skin weight");if(!p)continue;let m=d.joints[h],g=i[m];if(!Number.isInteger(m)||!g)throw new Error("Invalid skin joint");let b=g.transformAsPoint(c);for(let v=0;v<3;v++)u[v]+=p*b[v];l+=p}if(!(l>0))throw new Error("Empty skin weights");for(let d=0;d<3;d++)o[a*3+d]=u[d]/l}if(!o.every(Number.isFinite))throw new Error("Nonfinite deformation");return o}var Ia=D(b0(),1);var Sa=[1,0,0,2e-5,1,0,0,503905e-9,1,0,0,.00201562,1,0,0,.00453516,1,0,0,.00806253,1,0,0,.0125978,1,0,0,.018141,1,0,0,.0246924,1,0,0,.0322525,1,0,0,.0408213,1,0,0,.0503999,1,0,0,.0609894,1,0,0,.0725906,1,0,0,.0852058,1,0,0,.0988363,1,0,0,.113484,1,0,0,.129153,1,0,0,.145839,1,0,0,.163548,1,0,0,.182266,1,0,0,.201942,1,0,0,.222314,1,0,0,.241906,1,0,0,.262314,1,0,0,.285754,1,0,0,.310159,1,0,0,.335426,1,0,0,.361341,1,0,0,.387445,1,0,0,.412784,1,0,0,.438197,1,0,0,.466966,1,0,0,.49559,1,0,0,.523448,1,0,0,.549938,1,0,0,.57979,1,0,0,.608746,1,0,0,.636185,1,0,0,.664748,1,0,0,.69313,1,0,0,.71966,1,0,0,.747662,1,0,0,.774023,1,0,0,.799775,1,0,0,.825274,1,0,0,.849156,1,0,0,.873248,1,0,0,.89532,1,0,0,.917565,1,0,0,.937863,1,0,0,.958139,1,0,0,.976563,1,0,0,.994658,1,0,0,1.0112,1,0,0,1.02712,1,0,0,1.04189,1,0,0,1.05568,1,0,0,1.06877,1,0,0,1.08058,1,0,0,1.09194,1,0,0,1.10191,1,0,0,1.11161,1,0,0,1.1199,1,0,0,1.12813,.999547,-448815e-12,.0224417,199902e-10,.999495,-113079e-10,.0224406,503651e-9,.999496,-452317e-10,.0224406,.00201461,.999496,-101772e-9,.0224406,.00453287,.999495,-180928e-9,.0224406,.00805845,.999497,-282702e-9,.0224406,.0125914,.999496,-407096e-9,.0224406,.0181319,.999498,-554114e-9,.0224406,.02468,.999499,-723768e-9,.0224406,.0322363,.999495,-916058e-9,.0224405,.0408009,.999499,-.00113101,.0224408,.050375,.999494,-.00136863,.0224405,.0609586,.999489,-.00162896,.0224401,.0725537,.999489,-.00191201,.0224414,.0851619,.999498,-.00221787,.0224413,.0987867,.999492,-.00254642,.0224409,.113426,.999507,-.00289779,.0224417,.129088,.999494,-.0032716,.0224386,.145767,.999546,-.0036673,.0224424,.163472,.999543,-.00408166,.0224387,.182182,.999499,-.00450056,.0224338,.201843,.999503,-.00483661,.0224203,.222198,.999546,-.00452928,.022315,.241714,.999508,-.00587403,.0224329,.262184,.999509,-.00638806,.0224271,.285609,.999501,-.00691028,.0224166,.309998,.999539,-.00741979,.0223989,.335262,.999454,-.00786282,.0223675,.361154,.999529,-.00811928,.0222828,.387224,.999503,-.00799941,.0221063,.41252,.999561,-.00952753,.0223057,.438006,.999557,-.0099134,.0222065,.466735,.999541,-.0100935,.0220402,.495332,.999562,-.00996821,.0218067,.523197,.999556,-.0105031,.0217096,.550223,.999561,-.0114191,.0217215,.579498,.999588,-.0111818,.0213357,.608416,.999633,-.0107725,.0208689,.635965,.999527,-.0121671,.0210149,.664476,.999508,-.0116005,.020431,.692786,.999568,-.0115604,.0199791,.719709,.999671,-.0121117,.0197415,.74737,.999688,-.0110769,.0188846,.773692,.99962,-.0122368,.0188452,.799534,.999823,-.0110325,.0178001,.825046,.999599,-.0114923,.0174221,.849075,.999619,-.0105923,.0164345,.872999,.999613,-.0105988,.0158227,.895371,.99964,-.00979861,.0148131,.917364,.99977,-.00967238,.0140721,.938002,.999726,-.00869175,.0129543,.957917,.99973,-.00866872,.0122329,.976557,.999773,-.00731956,.0108958,.994459,.999811,-.00756027,.0102715,1.01118,.999862,-.00583732,.00878781,1.02701,.999835,-.00631438,.00827529,1.04186,.999871,-.00450785,.00674583,1.05569,.999867,-.00486079,.00621041,1.06861,.999939,-.00322072,.00478301,1.08064,.999918,-.00318199,.00406395,1.09181,1.00003,-.00193348,.00280682,1.10207,.999928,-.00153729,.00198741,1.11152,.999933,-623666e-9,917714e-9,1.12009,1,-102387e-11,907581e-12,1.12813,.997866,-896716e-12,.0448334,199584e-10,.997987,-225945e-10,.0448389,502891e-9,.997987,-903781e-10,.0448388,.00201156,.997985,-203351e-9,.0448388,.00452602,.997986,-361514e-9,.0448388,.00804629,.997987,-56487e-8,.0448389,.0125724,.997988,-813423e-9,.0448389,.0181045,.997984,-.00110718,.0448387,.0246427,.997985,-.00144616,.0448388,.0321875,.997987,-.00183038,.044839,.0407392,.997983,-.00225987,.0448387,.0502986,.997991,-.00273467,.0448389,.0608667,.997984,-.00325481,.0448384,.0724444,.998002,-.00382043,.044839,.0850348,.997997,-.00443145,.0448396,.0986372,.998007,-.00508796,.0448397,.113255,.998008,-.00578985,.04484,.128891,.998003,-.00653683,.0448384,.145548,.997983,-.00732713,.0448358,.163221,.997985,-.00815454,.0448358,.181899,.998005,-.00898985,.0448286,.201533,.998026,-.00964404,.0447934,.221821,.998055,-.00922677,.044611,.241282,.99804,-.0117361,.0448245,.261791,.998048,-.0127628,.0448159,.285181,.998088,-.0138055,.0447996,.30954,.998058,-.0148206,.0447669,.334751,.998099,-.0156998,.044697,.36061,.998116,-.0161976,.0445122,.386603,.998195,-.015945,.0441711,.411844,.998168,-.0183947,.0444255,.43773,.998184,-.0197913,.0443809,.466009,.998251,-.0201426,.0440689,.494574,.998305,-.0198847,.0435632,.522405,.998273,-.0210577,.043414,.549967,.998254,-.0227901,.0433943,.578655,.998349,-.0223108,.0426529,.60758,.99843,-.0223088,.042,.635524,.998373,-.0241141,.0418987,.663621,.998425,-.0231446,.0408118,.691906,.998504,-.0233684,.0400565,.719339,.998443,-.0241652,.0394634,.74643,.99848,-.0228715,.0380002,.773086,.998569,-.023519,.0372322,.798988,.998619,-.0223108,.0356468,.824249,.998594,-.0223105,.034523,.848808,.998622,-.0213426,.0328887,.87227,.998669,-.0207912,.0314374,.895157,.998705,-.0198416,.0296925,.916769,.998786,-.0189168,.0279634,.937773,.998888,-.0178811,.0261597,.957431,.99906,-.0166845,.0242159,.976495,.999038,-.0155464,.0222638,.994169,.999237,-.0141349,.0201967,1.01112,.999378,-.0129324,.0181744,1.02692,.999433,-.0113192,.0159898,1.04174,.999439,-.0101244,.0140385,1.05559,.999614,-.00837456,.0117826,1.06852,.999722,-.00721769,.00983745,1.08069,.999817,-.00554067,.00769002,1.09176,.99983,-.00426961,.005782,1.10211,.999964,-.00273904,.00374503,1.11152,1.00001,-.00136739,.00187176,1.12031,.999946,393227e-10,-28919e-9,1.12804,.995847,-13435e-10,.0671785,19916e-9,.995464,-338387e-10,.0671527,501622e-9,.99547,-135355e-9,.0671531,.00200649,.995471,-30455e-8,.0671532,.00451461,.99547,-541423e-9,.0671531,.008026,.995471,-84598e-8,.0671531,.0125407,.99547,-.00121823,.0671531,.0180589,.99547,-.00165817,.0671531,.0245806,.995463,-.00216583,.0671526,.0321062,.995468,-.00274127,.0671527,.0406366,.995474,-.00338447,.0671534,.0501717,.995473,-.00409554,.0671533,.0607131,.995478,-.00487451,.0671531,.0722618,.995476,-.00572148,.0671532,.0848191,.995477,-.00663658,.0671539,.0983882,.995498,-.00761986,.0671541,.112972,.995509,-.00867094,.0671542,.128568,.995509,-.00978951,.0671531,.145183,.995503,-.0109725,.0671491,.162808,.995501,-.012211,.0671465,.181441,.99553,-.0134565,.0671371,.201015,.99555,-.014391,.0670831,.221206,.99558,-.014351,.0668883,.240813,.995577,-.0173997,.0671055,.261257,.995602,-.0191111,.0671178,.284467,.995623,-.0206705,.0670946,.308765,.995658,-.022184,.0670472,.333905,.995705,-.0234832,.0669417,.359677,.995719,-.0241933,.0666714,.385554,.995786,-.0243539,.066266,.410951,.995887,-.0271866,.0664367,.437163,.995944,-.0296012,.0664931,.464842,.996004,-.0301045,.0660105,.49332,.996128,-.0298311,.0652694,.521131,.996253,-.0316426,.0650739,.549167,.996244,-.0339043,.0649433,.57737,.996309,-.033329,.0638926,.606073,.996417,-.0338935,.0630849,.634527,.996372,-.0353104,.0625083,.66256,.996542,-.0348942,.0611986,.690516,.996568,-.0351614,.060069,.718317,.996711,-.0354317,.0588522,.74528,.996671,-.0349513,.0571902,.772061,.996865,-.0345622,.0555321,.798089,.996802,-.0342566,.0537816,.823178,.996992,-.0330862,.0516095,.847949,.996944,-.0324666,.0495537,.871431,.997146,-.0309544,.0470302,.894357,.997189,-.0299372,.0446043,.916142,.997471,-.0281389,.0418812,.937193,.997515,-.0268702,.0391823,.957,.997812,-.0247166,.0361338,.975936,.998027,-.0233525,.0333945,.99391,.998233,-.0209839,.0301917,1.01075,.998481,-.0194309,.027271,1.02669,.998859,-.0169728,.0240162,1.04173,.99894,-.0152322,.0210517,1.05551,.999132,-.0127497,.0178632,1.06856,.999369,-.0108282,.014787,1.08054,.999549,-.00845886,.0116185,1.09185,.999805,-.0063937,.00867209,1.10207,.99985,-.00414582,.00566823,1.1117,.999912,-.00207443,.00277562,1.12022,1.00001,870226e-10,-53766e-9,1.12832,.991943,-178672e-11,.0893382,198384e-10,.991952,-450183e-10,.089339,499849e-9,.991956,-180074e-9,.0893394,.0019994,.991955,-405167e-9,.0893393,.00449867,.991953,-720298e-9,.0893391,.00799764,.991955,-.00112548,.0893393,.0124964,.991957,-.0016207,.0893395,.0179951,.991958,-.00220601,.0893396,.0244939,.991947,-.00288137,.0893385,.0319929,.991962,-.00364693,.0893399,.0404933,.991965,-.00450264,.0893399,.049995,.99198,-.00544862,.0893411,.0604995,.99197,-.00648491,.0893397,.0720074,.991976,-.00761164,.089341,.0845207,.99198,-.00882891,.0893405,.0980413,.991982,-.0101367,.0893396,.112571,.992008,-.011535,.0893415,.128115,.992026,-.0130228,.0893414,.144672,.992064,-.0145966,.0893418,.162241,.992041,-.0162421,.0893359,.180801,.992086,-.0178888,.0893214,.200302,.992157,-.0190368,.0892401,.220332,.992181,-.0195584,.0890525,.240144,.992175,-.0227257,.0892153,.260728,.99221,-.0254195,.089304,.283473,.99222,-.0274883,.0892703,.307673,.992317,-.0294905,.0892027,.332729,.992374,-.0311861,.0890577,.358387,.992505,-.0320656,.0886994,.384102,.992568,-.0329715,.0883198,.409767,.992675,-.036006,.0883602,.436145,.992746,-.0392897,.0884591,.463217,.992873,-.0399337,.0878287,.491557,.992934,-.040231,.0870108,.519516,.993091,-.0422013,.0865857,.547741,.993259,-.0443503,.0861937,.575792,.993455,-.0446368,.0851187,.604233,.993497,-.0454299,.0840576,.632925,.993694,-.0463296,.0829671,.660985,.993718,-.0470619,.0817185,.688714,.993973,-.0468838,.0800294,.716743,.994207,-.046705,.0781286,.74377,.994168,-.0469698,.0763337,.77042,.9945,-.0456816,.0738184,.796659,.994356,-.0455518,.0715545,.821868,.994747,-.0439488,.0686085,.846572,.994937,-.0430056,.065869,.870435,.995142,-.0413414,.0626446,.893272,.995451,-.0396521,.05929,.915376,.995445,-.0378453,.0558503,.936196,.995967,-.0355219,.0520949,.956376,.996094,-.0335146,.048377,.975327,.996622,-.030682,.0442575,.993471,.996938,-.0285504,.0404693,1.01052,.997383,-.0253399,.0360903,1.02637,.997714,-.0231651,.0322176,1.04139,.998249,-.0198138,.0278433,1.05542,.998596,-.0174337,.0238759,1.06846,.998946,-.0141349,.0195944,1.08056,.99928,-.0115603,.0156279,1.09181,.999507,-.00839065,.0114607,1.10213,.999697,-.005666,.00763325,1.11169,.999869,-.00269902,.00364946,1.12042,1.00001,623836e-10,-319288e-10,1.12832,.987221,-222675e-11,.111332,197456e-10,.98739,-561116e-10,.111351,497563e-9,.987448,-224453e-9,.111357,.00199031,.987441,-505019e-9,.111357,.0044782,.987442,-897816e-9,.111357,.00796129,.987442,-.00140284,.111357,.0124396,.987444,-.00202012,.111357,.0179132,.987442,-.00274964,.111357,.0243824,.987446,-.00359147,.111357,.0318474,.987435,-.00454562,.111356,.0403086,.987461,-.00561225,.111358,.0497678,.987458,-.00679125,.111358,.0602239,.987443,-.0080828,.111356,.0716792,.987476,-.0094872,.111358,.0841364,.98749,-.0110044,.111361,.097597,.987508,-.0126344,.111362,.112062,.987494,-.0143767,.111357,.127533,.987526,-.0162307,.111359,.144015,.987558,-.0181912,.111361,.161502,.987602,-.0202393,.111355,.179979,.987692,-.022273,.111346,.199386,.987702,-.0235306,.111215,.219183,.987789,-.0247628,.111061,.239202,.987776,-.0280668,.111171,.259957,.987856,-.0316751,.111327,.282198,.987912,-.0342468,.111282,.306294,.988,-.0367205,.111198,.331219,.988055,-.0387766,.110994,.356708,.988241,-.0397722,.110547,.382234,.988399,-.0416076,.110198,.408227,.988539,-.0448192,.110137,.434662,.988661,-.0483793,.110143,.461442,.988967,-.0495895,.109453,.489318,.989073,-.0506797,.108628,.517516,.989274,-.0526953,.108003,.545844,.989528,-.054578,.107255,.573823,.989709,-.0561503,.106294,.601944,.989991,-.056866,.104896,.630855,.990392,-.0572914,.103336,.658925,.990374,-.0586224,.10189,.686661,.990747,-.0584764,.099783,.714548,.991041,-.0582662,.0974309,.74186,.991236,-.0584118,.0951678,.768422,.991585,-.0573055,.0921581,.794817,.991984,-.0564241,.0891167,.820336,.9921,-.0553608,.085805,.84493,.992749,-.0533816,.0820354,.868961,.99288,-.0518661,.0782181,.891931,.993511,-.0492492,.0738935,.914186,.993617,-.0471956,.0696402,.93532,.99411,-.044216,.0649659,.95543,.994595,-.0416654,.0603177,.974685,.994976,-.0384314,.0553493,.992807,.995579,-.0353491,.0503942,1.00996,.996069,-.0319787,.0452123,1.02606,.996718,-.028472,.0400112,1.04114,.997173,-.0250789,.0349456,1.05517,.997818,-.0213326,.029653,1.0683,.998318,-.0178509,.024549,1.0805,.998853,-.0141118,.0194197,1.09177,.999218,-.0105914,.0143869,1.1022,.999594,-.00693474,.00943517,1.11175,.99975,-.00340478,.00464051,1.12056,1.00001,109172e-9,-112821e-9,1.12853,.983383,-266524e-11,.133358,196534e-10,.981942,-671009e-10,.133162,494804e-9,.981946,-268405e-9,.133163,.00197923,.981944,-603912e-9,.133163,.00445326,.981941,-.00107362,.133162,.00791693,.981946,-.00167755,.133163,.0123703,.981944,-.00241569,.133162,.0178135,.981945,-.00328807,.133163,.0242466,.981945,-.00429472,.133162,.03167,.981955,-.00543573,.133164,.0400846,.981951,-.00671105,.133163,.0494901,.981968,-.00812092,.133165,.0598886,.981979,-.00966541,.133166,.0712811,.981996,-.0113446,.133168,.083669,.982014,-.0131585,.133169,.0970533,.982011,-.0151073,.133167,.111438,.982062,-.0171906,.133172,.126826,.9821,-.0194067,.133175,.143215,.982149,-.0217502,.133176,.160609,.982163,-.0241945,.133173,.178981,.982247,-.0265907,.133148,.198249,.982291,-.027916,.132974,.217795,.982396,-.0299663,.132868,.238042,.982456,-.0334544,.132934,.258901,.982499,-.0378636,.133137,.280639,.982617,-.0409274,.133085,.304604,.98274,-.0438523,.132985,.329376,.982944,-.0462288,.132728,.354697,.98308,-.0475995,.132228,.380102,.983391,-.0501901,.131924,.406256,.983514,-.0535899,.131737,.432735,.98373,-.0571858,.131567,.459359,.984056,-.0592353,.130932,.486637,.984234,-.0610488,.130092,.51509,.984748,-.0630758,.12923,.543461,.985073,-.0647398,.128174,.571376,.985195,-.0671941,.127133,.599414,.985734,-.0681345,.125576,.628134,.986241,-.0686089,.123639,.656399,.986356,-.0698511,.121834,.684258,.986894,-.0700931,.119454,.711818,.987382,-.0698321,.116718,.739511,.988109,-.0693975,.113699,.766267,.988363,-.0689584,.110454,.792456,.989112,-.0672353,.106602,.81813,.989241,-.0662034,.10267,.842889,.990333,-.0638938,.0981381,.867204,.990591,-.0618534,.0935388,.89038,.991106,-.0593117,.088553,.912576,.991919,-.0562676,.0832187,.934118,.992111,-.0534085,.0778302,.954254,.992997,-.0495459,.0720453,.973722,.993317,-.0463707,.0663458,.991949,.994133,-.0421245,.0601883,1.00936,.994705,-.0384977,.0542501,1.02559,.995495,-.0340956,.0479862,1.04083,.996206,-.030105,.041887,1.05497,.996971,-.0256095,.0355355,1.06824,.997796,-.0213932,.0293655,1.08056,.998272,-.0169612,.0232926,1.09182,.998857,-.0126756,.0172786,1.10219,.99939,-.00832486,.0113156,1.11192,.999752,-.00410826,.00557892,1.12075,1,150957e-9,-119101e-9,1.12885,.975169,-309397e-11,.154669,195073e-10,.975439,-779608e-10,.154712,491534e-9,.975464,-311847e-9,.154716,.00196617,.975464,-701656e-9,.154716,.00442387,.975462,-.0012474,.154715,.0078647,.975461,-.00194906,.154715,.0122886,.975464,-.00280667,.154715,.0176959,.975468,-.00382025,.154716,.0240867,.975471,-.00498985,.154716,.0314612,.975472,-.00631541,.154717,.0398199,.975486,-.00779719,.154718,.0491639,.975489,-.00943505,.154718,.0594932,.975509,-.0112295,.154721,.0708113,.97554,-.0131802,.154724,.0831176,.975557,-.0152876,.154726,.096415,.975585,-.0175512,.154728,.110705,.975605,-.0199713,.154729,.125992,.975645,-.0225447,.154729,.142272,.975711,-.0252649,.154735,.159549,.975788,-.0280986,.154736,.177805,.975872,-.0308232,.154704,.196911,.975968,-.0324841,.154525,.216324,.976063,-.0351281,.154432,.236628,.976157,-.0388618,.15446,.257539,.976204,-.0437704,.154665,.278975,.976358,-.047514,.154652,.302606,.976571,-.0508638,.154535,.327204,.976725,-.0534995,.154221,.352276,.977013,-.0555547,.153737,.377696,.977294,-.0586728,.153403,.403855,.977602,-.0622715,.15312,.430333,.977932,-.0658166,.152755,.456855,.978241,-.0689877,.152233,.483668,.978602,-.0712805,.15132,.512097,.979234,-.0732775,.150235,.540455,.97977,-.075163,.148978,.568486,.979995,-.0778026,.147755,.596524,.98078,-.0791854,.146019,.624825,.981628,-.0799666,.143906,.653403,.982067,-.0808532,.141561,.681445,.98271,-.0816024,.139025,.708918,.983734,-.0812511,.135764,.736594,.98431,-.0806201,.132152,.763576,.985071,-.0801605,.12846,.789797,.98618,-.0784208,.124084,.815804,.986886,-.0766643,.1193,.840869,.987485,-.0747744,.114236,.864952,.988431,-.0716701,.108654,.888431,.988886,-.0691609,.102994,.910963,.990024,-.0654048,.0967278,.932629,.990401,-.0619765,.090384,.95313,.991093,-.0579296,.0837885,.972587,.992018,-.0536576,.0770171,.991184,.992536,-.0493719,.0701486,1.00863,.993421,-.0444813,.062953,1.02494,.993928,-.040008,.0560455,1.04017,.994994,-.0347982,.04856,1.05463,.995866,-.0301017,.0416152,1.06807,.996916,-.0248225,.0342597,1.08039,.997766,-.0199229,.0271668,1.09177,.998479,-.0147422,.0201387,1.10235,.99921,-.00980173,.0131944,1.11206,.999652,-.0047426,.00640712,1.12104,.999998,891673e-10,-10379e-8,1.12906,.967868,-351885e-11,.175947,193569e-10,.968001,-886733e-10,.175972,487782e-9,.96801,-354697e-9,.175973,.00195115,.968012,-798063e-9,.175974,.00439006,.968011,-.00141879,.175973,.00780461,.968011,-.00221686,.175973,.0121948,.968016,-.00319231,.175974,.0175607,.968019,-.00434515,.175974,.0239027,.968018,-.00567538,.175974,.0312208,.968033,-.00718308,.175977,.0395158,.968049,-.00886836,.175979,.0487885,.968047,-.0107312,.175978,.0590394,.968072,-.0127719,.175981,.0702705,.968108,-.0149905,.175986,.0824836,.968112,-.0173866,.175985,.0956783,.968173,-.0199611,.175993,.109862,.96827,-.0227128,.176008,.125033,.968292,-.025639,.17601,.141193,.968339,-.0287299,.176007,.158336,.968389,-.0319399,.176001,.176441,.968501,-.034941,.175962,.195359,.968646,-.0370812,.175793,.214686,.968789,-.0402329,.175708,.234973,.96886,-.0442601,.1757,.255871,.969013,-.049398,.175876,.277238,.969242,-.0539932,.17594,.300326,.969419,-.0577299,.175781,.324702,.969763,-.0605643,.175432,.349527,.970093,-.0634488,.174992,.374976,.970361,-.0670589,.174611,.401097,.970825,-.0708246,.174226,.427496,.971214,-.0742871,.173684,.453858,.971622,-.0782608,.173186,.480637,.972175,-.0813151,.172288,.508655,.972944,-.0832678,.170979,.536973,.973595,-.0855964,.169573,.565138,.974345,-.0882163,.168152,.593222,.975233,-.0901671,.166314,.621201,.976239,-.0912111,.163931,.649919,.977289,-.0916959,.161106,.678011,.978076,-.0927061,.158272,.705717,.979533,-.0925562,.15475,.733228,.980335,-.0918159,.150638,.760454,.981808,-.0908508,.146201,.786918,.983061,-.0896172,.141386,.812953,.984148,-.0871588,.135837,.838281,.985047,-.0850624,.130135,.862594,.986219,-.0818541,.123882,.88633,.987043,-.0784523,.117126,.908952,.988107,-.0749601,.110341,.930744,.988955,-.0703548,.102885,.951728,.989426,-.0662798,.0954167,.971166,.990421,-.0610834,.0876331,.989984,.991032,-.0562936,.0797785,1.00765,.992041,-.0508154,.0718166,1.02434,.992794,-.0454045,.0637125,1.03976,.993691,-.0398194,.0555338,1.05418,.994778,-.0341482,.0473388,1.06772,.995915,-.028428,.0391016,1.08028,.997109,-.022642,.0309953,1.09185,.998095,-.0168738,.0230288,1.10247,.998985,-.0111274,.0150722,1.11229,.999581,-.00543881,.00740605,1.12131,1.00003,162239e-9,-105549e-9,1.12946,.959505,-393734e-11,.196876,191893e-10,.959599,-992157e-10,.196895,483544e-9,.959641,-396868e-9,.196903,.0019342,.959599,-892948e-9,.196895,.00435193,.959603,-.00158747,.196896,.0077368,.959604,-.00248042,.196896,.0120888,.959605,-.00357184,.196896,.0174082,.959605,-.00486169,.196896,.0236949,.959613,-.00635008,.196897,.0309497,.959619,-.00803696,.196898,.0391725,.959636,-.00992255,.196901,.0483649,.959634,-.0120067,.1969,.0585266,.959675,-.0142898,.196906,.0696609,.959712,-.0167717,.196911,.0817678,.959752,-.0194524,.196918,.0948494,.959807,-.0223321,.196925,.10891,.959828,-.0254091,.196924,.123947,.959906,-.0286815,.196934,.139968,.960005,-.0321371,.196944,.156968,.960071,-.0357114,.196936,.17491,.960237,-.0389064,.196882,.193597,.960367,-.041623,.196731,.21285,.960562,-.0452655,.196654,.233075,.960735,-.0496207,.196643,.253941,.960913,-.0549379,.196774,.275278,.961121,-.0603414,.196893,.297733,.96139,-.0644244,.196717,.321877,.961818,-.067556,.196314,.346476,.962175,-.0712709,.195917,.371907,.96255,-.0752848,.1955,.397916,.963164,-.0792073,.195026,.424229,.963782,-.0828225,.194424,.450637,.964306,-.0873119,.193831,.477288,.964923,-.0911051,.192973,.504716,.966048,-.093251,.19151,.533053,.967024,-.0958983,.190013,.561366,.968038,-.09835,.188253,.589464,.969152,-.100754,.186257,.617433,.970557,-.102239,.183775,.645801,.972104,-.102767,.180645,.674278,.973203,-.103492,.177242,.702004,.975123,-.103793,.17345,.729529,.97641,-.102839,.168886,.756712,.978313,-.101687,.163892,.783801,.980036,-.100314,.158439,.809671,.981339,-.097836,.152211,.835402,.982794,-.0950006,.145679,.860081,.984123,-.0920994,.138949,.883757,.984918,-.0878641,.131283,.90685,.985999,-.083939,.123464,.928786,.987151,-.0791234,.115324,.94983,.987827,-.0739332,.106854,.96962,.988806,-.0688088,.0982691,.98861,.989588,-.0628962,.0893456,1.00667,.990438,-.0573146,.0805392,1.02344,.991506,-.0509433,.0713725,1.03933,.992492,-.0448724,.0623732,1.05378,.993663,-.0383497,.0530838,1.06747,.994956,-.0319593,.0439512,1.08007,.99634,-.025401,.0347803,1.09182,.99761,-.0189687,.0257954,1.1025,.99863,-.0124441,.0169893,1.11247,.99947,-.00614003,.00829498,1.12151,1.00008,216624e-9,-146107e-9,1.12993,.950129,-434955e-11,.217413,190081e-10,.950264,-10957e-8,.217444,47884e-8,.9503,-438299e-9,.217451,.00191543,.950246,-986124e-9,.21744,.00430951,.950246,-.00175311,.21744,.00766137,.950245,-.00273923,.21744,.011971,.950253,-.00394453,.217441,.0172385,.950258,-.00536897,.217442,.0234641,.950267,-.00701262,.217444,.030648,.950277,-.00887551,.217446,.038791,.950284,-.0109576,.217446,.0478931,.950312,-.0132591,.217451,.0579568,.950334,-.01578,.217454,.0689821,.950378,-.0185204,.217462,.0809714,.950417,-.0214803,.217467,.0939265,.950488,-.0246594,.217479,.10785,.950534,-.0280565,.217483,.122743,.950633,-.0316685,.217498,.138611,.950698,-.0354787,.217499,.155442,.950844,-.0394003,.217507,.173208,.950999,-.0426812,.217419,.191605,.951221,-.0461302,.217317,.21084,.951412,-.0502131,.217238,.230945,.951623,-.0549183,.21722,.251745,.951867,-.0604493,.217306,.273001,.952069,-.0665189,.217466,.294874,.952459,-.0709179,.217266,.318732,.952996,-.0746112,.216891,.34318,.953425,-.0789252,.216503,.36849,.953885,-.0833293,.216042,.394373,.954617,-.087371,.215469,.420505,.955429,-.0914054,.214802,.446907,.956068,-.0961671,.214146,.473522,.957094,-.10048,.213286,.50052,.958372,-.103248,.211796,.528715,.959654,-.106033,.21016,.557065,.961305,-.108384,.208149,.585286,.962785,-.111122,.206024,.613334,.964848,-.112981,.203442,.641334,.966498,-.113717,.19996,.669955,.968678,-.114121,.196105,.698094,.970489,-.114524,.191906,.725643,.972903,-.113792,.186963,.752856,.974701,-.112406,.181343,.780013,.976718,-.110685,.175185,.806268,.978905,-.108468,.168535,.832073,.980267,-.105061,.161106,.857149,.981967,-.101675,.153387,.881145,.983063,-.0974492,.145199,.904255,.984432,-.0925815,.136527,.926686,.985734,-.0877983,.127584,.947901,.986228,-.081884,.118125,.968111,.98719,-.0761208,.108594,.98719,.988228,-.0698196,.0989996,1.00559,.989046,-.0632739,.0890074,1.02246,.990242,-.056522,.0790832,1.03841,.991252,-.0495272,.0689182,1.05347,.992542,-.0425373,.0588592,1.06724,.994096,-.0353198,.0486833,1.08009,.995593,-.028235,.0385977,1.09177,.99711,-.0209511,.0286457,1.10274,.998263,-.0139289,.0188497,1.11262,.999254,-.0067359,.009208,1.12191,.999967,141846e-9,-657764e-10,1.13024,.935608,-474692e-11,.236466,187817e-10,.93996,-11971e-8,.237568,473646e-9,.939959,-478845e-9,.237567,.0018946,.939954,-.0010774,.237566,.00426284,.939956,-.00191538,.237566,.00757842,.939954,-.00299277,.237566,.0118413,.93996,-.00430961,.237567,.0170518,.939969,-.00586589,.237569,.02321,.939982,-.00766166,.237572,.0303164,.939987,-.00969686,.237572,.0383711,.939997,-.0119715,.237574,.0473751,.940031,-.0144858,.237581,.0573298,.940073,-.0172399,.237589,.0682366,.94012,-.0202335,.237598,.080097,.940162,-.0234663,.237604,.0929116,.940237,-.0269387,.237615,.106686,.940328,-.0306489,.237632,.121421,.940419,-.0345917,.237645,.137115,.940522,-.0387481,.237654,.153766,.940702,-.0429906,.237661,.17133,.940871,-.0465089,.237561,.189502,.941103,-.050531,.23748,.208616,.941369,-.0550657,.237423,.228595,.941641,-.0601337,.237399,.249287,.941903,-.0658804,.237443,.270467,.942224,-.0722674,.237597,.292024,.942633,-.0771788,.237419,.315272,.943172,-.0815623,.237068,.339579,.943691,-.0863973,.236682,.364717,.944382,-.0911536,.236213,.390435,.945392,-.0952967,.235562,.416425,.946185,-.0998948,.234832,.442772,.947212,-.104796,.234114,.469347,.948778,-.10928,.233222,.496162,.950149,-.113081,.231845,.523978,.951989,-.115893,.230005,.552295,.953921,-.11846,.227862,.580569,.955624,-.12115,.225439,.608698,.958234,-.123373,.222635,.636696,.960593,-.124519,.219093,.665208,.963201,-.124736,.214749,.693557,.965642,-.125012,.210059,.721334,.968765,-.124661,.204935,.748613,.971753,-.122996,.198661,.776224,.973751,-.120998,.191823,.802461,.976709,-.118583,.184359,.828399,.977956,-.115102,.176437,.853693,.979672,-.111077,.167681,.877962,.981816,-.10688,.158872,.901564,.98238,-.101469,.149398,.924057,.983964,-.0960013,.139436,.945751,.984933,-.0899626,.12943,.966272,.985694,-.0832973,.11894,.985741,.986822,-.0767082,.108349,1.00407,.987725,-.0693614,.0976026,1.02154,.98877,-.06211,.086652,1.03757,.990129,-.0544143,.0756182,1.05296,.991337,-.046744,.0645753,1.06683,.992978,-.0387931,.0534683,1.0798,.994676,-.030973,.0424137,1.09181,.99645,-.0230311,.0314035,1.10286,.997967,-.0152065,.0206869,1.11291,.99922,-.00744837,.010155,1.12237,1.00002,240209e-9,-752767e-10,1.13089,.922948,-515351e-11,.255626,186069e-10,.928785,-129623e-9,.257244,468009e-9,.928761,-51849e-8,.257237,.00187202,.928751,-.0011666,.257235,.00421204,.928751,-.00207395,.257234,.0074881,.928754,-.00324055,.257235,.0117002,.92876,-.00466639,.257236,.0168486,.928763,-.00635149,.257237,.0229334,.928774,-.00829584,.257239,.029955,.928791,-.0104995,.257243,.0379139,.928804,-.0129623,.257245,.0468108,.928847,-.0156846,.257255,.0566473,.92889,-.0186661,.257263,.0674246,.928924,-.0219067,.257268,.0791433,.928989,-.0254066,.257282,.0918076,.92909,-.0291651,.257301,.105419,.92918,-.0331801,.257316,.119978,.92929,-.0374469,.257332,.135491,.929453,-.041939,.257357,.151948,.929586,-.0464612,.257347,.169275,.929858,-.0503426,.257269,.187257,.930125,-.0548409,.257199,.206204,.930403,-.0598063,.257149,.22601,.930726,-.0652437,.257122,.246561,.931098,-.0712376,.257153,.267618,.931396,-.0777506,.257237,.288993,.931947,-.0832374,.257124,.311527,.932579,-.0883955,.25683,.335697,.933194,-.0937037,.256444,.360634,.934013,-.0987292,.255939,.386126,.935307,-.103215,.255282,.412018,.936374,-.108234,.254538,.438292,.93776,-.113234,.253728,.464805,.939599,-.118013,.25275,.491464,.941036,-.122661,.251404,.518751,.94337,-.125477,.249435,.547133,.945318,-.128374,.247113,.575456,.947995,-.130996,.244441,.60372,.950818,-.133438,.241352,.63174,.954378,-.135004,.237849,.659971,.957151,-.135313,.233188,.688478,.960743,-.13521,.228001,.716767,.964352,-.135007,.222249,.744349,.967273,-.133523,.21542,.771786,.969767,-.131155,.208039,.798639,.973195,-.128492,.200076,.824774,.975557,-.125094,.191451,.850222,.977692,-.120578,.18184,.874761,.98026,-.115882,.172102,.898497,.981394,-.110372,.161859,.921636,.982386,-.10415,.15108,.943467,.983783,-.0978128,.140407,.964045,.98422,-.0906171,.129058,.98398,.985447,-.0832921,.117614,1.00276,.986682,-.0754412,.10585,1.02047,.987326,-.0673885,.0940943,1.03678,.988707,-.0592565,.0822093,1.05218,.990185,-.050717,.070192,1.06652,.991866,-.0423486,.0582081,1.07965,.993897,-.0336118,.0460985,1.09188,.995841,-.0252178,.0342737,1.10307,.997605,-.0164893,.0224829,1.11324,.999037,-.00817112,.0110647,1.12262,1.00003,291686e-9,-168673e-9,1.13139,.915304,-552675e-11,.275999,183285e-10,.91668,-139285e-9,.276414,461914e-9,.916664,-55713e-8,.276409,.00184763,.916653,-.00125354,.276406,.00415715,.916651,-.00222851,.276405,.00739053,.916655,-.00348205,.276406,.0115478,.916653,-.00501414,.276405,.0166291,.916667,-.00682478,.276409,.0226346,.91668,-.00891398,.276412,.0295648,.91669,-.0112817,.276413,.0374199,.916727,-.013928,.276422,.0462016,.916759,-.0168528,.276429,.0559101,.916793,-.0200558,.276436,.0665466,.916849,-.0235373,.276448,.0781139,.916964,-.0272973,.276474,.0906156,.917047,-.0313344,.276491,.104051,.917152,-.0356465,.276511,.118424,.917286,-.0402271,.276533,.133736,.917469,-.0450408,.276564,.149978,.917686,-.0497872,.276563,.167057,.917953,-.0540937,.276493,.184846,.918228,-.0590709,.276437,.203614,.918572,-.0644277,.276398,.223212,.918918,-.0702326,.276362,.243584,.919356,-.076484,.276383,.264465,.919842,-.0830808,.276434,.285701,.920451,-.0892972,.276407,.307559,.921113,-.095016,.276128,.331501,.921881,-.100771,.275754,.356207,.923027,-.106029,.275254,.381477,.924364,-.111029,.274595,.40722,.925818,-.116345,.273841,.433385,.92746,-.121424,.272913,.459848,.929167,-.12657,.271837,.486493,.931426,-.131581,.270575,.513432,.934001,-.135038,.268512,.541502,.936296,-.138039,.266135,.569658,.939985,-.140687,.263271,.598375,.943516,-.143247,.260058,.626563,.94782,-.145135,.256138,.654711,.951023,-.145733,.251154,.683285,.955338,-.145554,.245562,.711831,.959629,-.145008,.239265,.739573,.963123,-.144003,.232064,.767027,.966742,-.141289,.224036,.794359,.969991,-.138247,.215305,.820361,.973403,-.134786,.206051,.846548,.975317,-.129966,.195914,.871541,.977647,-.12471,.185184,.895313,.980137,-.119086,.174161,.918398,.981031,-.112297,.162792,.940679,.982037,-.105372,.150952,.961991,.983164,-.097821,.138921,.981913,.983757,-.0897245,.126611,1.00109,.985036,-.0815974,.114228,1.01902,.986289,-.0727725,.101389,1.03604,.987329,-.0639323,.0886476,1.05149,.989193,-.0548109,.0756837,1.06619,.990716,-.045687,.0627581,1.07948,.992769,-.0364315,.0498337,1.09172,.99524,-.0271761,.0370305,1.1033,.997154,-.0179609,.0243959,1.11353,.998845,-.00878063,.0119567,1.12319,1.00002,259038e-9,-108146e-9,1.13177,.903945,-591681e-11,.295126,181226e-10,.903668,-148672e-9,.295037,455367e-9,.903677,-594683e-9,.29504,.00182145,.903673,-.00133805,.295039,.00409831,.903666,-.00237872,.295036,.00728584,.903668,-.00371676,.295037,.0113842,.903679,-.00535212,.29504,.0163936,.903684,-.00728479,.295041,.0223141,.903698,-.00951473,.295044,.0291462,.903718,-.0120419,.295049,.0368904,.903754,-.0148664,.295058,.0455477,.903801,-.017988,.29507,.0551194,.903851,-.0214064,.295082,.0656058,.903921,-.0251219,.295097,.0770109,.904002,-.0291337,.295116,.0893354,.904111,-.033441,.29514,.102583,.904246,-.0380415,.295169,.116755,.904408,-.0429258,.295202,.131853,.904637,-.0480468,.295245,.147869,.904821,-.0529208,.295214,.164658,.905163,-.0577748,.295185,.182274,.905469,-.0631763,.295143,.200828,.905851,-.068917,.295112,.2202,.906322,-.0750861,.295104,.240372,.906761,-.0815855,.295086,.261082,.90735,-.0882138,.295095,.282123,.908087,-.095082,.295139,.303563,.908826,-.101488,.29492,.327028,.909832,-.107577,.294577,.351464,.911393,-.113033,.294115,.376497,.912804,-.118629,.293446,.402115,.914081,-.124232,.292581,.428111,.91637,-.129399,.29166,.454442,.91814,-.134892,.290422,.481024,.921179,-.140069,.289194,.507924,.924544,-.144431,.287421,.535557,.927995,-.147498,.284867,.563984,.931556,-.150197,.281722,.5923,.935777,-.152711,.278207,.620832,.940869,-.154836,.274148,.649069,.945994,-.155912,.269057,.677746,.949634,-.155641,.262799,.706293,.955032,-.154809,.256097,.734278,.95917,-.153678,.248618,.761751,.962931,-.151253,.239794,.789032,.966045,-.147625,.230281,.815422,.96971,-.143964,.220382,.841787,.972747,-.139464,.209846,.867446,.975545,-.133459,.198189,.892004,.978381,-.127424,.186362,.915458,.979935,-.120506,.173964,.937948,.980948,-.11282,.161429,.959732,.982234,-.104941,.148557,.980118,.982767,-.0962905,.135508,.999463,.983544,-.0873625,.122338,1.01756,.984965,-.0783447,.108669,1.03492,.986233,-.0684798,.0949911,1.05087,.987796,-.0590867,.0811386,1.0656,.989885,-.0489145,.0673099,1.0794,.991821,-.0391,.0535665,1.09174,.99448,-.029087,.0397529,1.10341,.996769,-.019114,.0261463,1.11383,.998641,-.00947007,.0128731,1.1237,.999978,446316e-9,-169093e-9,1.13253,.888362,-627064e-11,.312578,178215e-10,.889988,-157791e-9,.313148,448451e-9,.889825,-631076e-9,.313092,.00179356,.88984,-.00141994,.313097,.00403554,.889828,-.0025243,.313092,.00717429,.889831,-.00394421,.313093,.0112099,.889831,-.00567962,.313093,.0161425,.889844,-.00773051,.313096,.0219724,.889858,-.0100968,.3131,.0286999,.889882,-.0127786,.313106,.0363256,.889918,-.0157757,.313116,.0448509,.889967,-.0190878,.313129,.0542758,.89003,-.022715,.313145,.0646032,.890108,-.0266566,.313165,.0758339,.890218,-.0309131,.313193,.0879729,.890351,-.0354819,.313226,.101019,.89051,-.0403613,.313263,.114979,.890672,-.0455385,.313294,.129848,.890882,-.0509444,.313333,.145616,.891189,-.0559657,.313324,.162122,.891457,-.0613123,.313281,.179524,.891856,-.0671488,.313281,.197855,.892312,-.0732732,.313268,.216991,.892819,-.0797865,.313263,.236924,.893369,-.0865269,.313247,.257433,.894045,-.0931592,.313205,.278215,.894884,-.100532,.313276,.299467,.895832,-.107716,.313205,.322276,.897043,-.114099,.312873,.34642,.898515,-.119941,.312331,.371187,.900191,-.126044,.311731,.396656,.90188,-.131808,.310859,.422488,.904359,-.137289,.309857,.448744,.906923,-.142991,.308714,.475239,.910634,-.148253,.307465,.501983,.914502,-.153332,.305774,.529254,.919046,-.156646,.303156,.557709,.923194,-.159612,.299928,.586267,.928858,-.162027,.296245,.614925,.934464,-.164203,.291832,.643187,.939824,-.165602,.286565,.671601,.944582,-.165383,.280073,.700213,.949257,-.164439,.272891,.728432,.954389,-.162953,.264771,.756082,.958595,-.161007,.255927,.78369,.962138,-.157243,.245769,.810769,.966979,-.152872,.235127,.836999,.969566,-.148209,.22347,.862684,.972372,-.142211,.211147,.887847,.975916,-.135458,.198606,.911843,.978026,-.128398,.185498,.934795,.979686,-.120313,.17171,.956787,.980748,-.11166,.158159,.978046,.981622,-.103035,.144399,.997693,.982356,-.0930328,.13001,1.01642,.983308,-.0834627,.115778,1.03366,.985037,-.0732249,.101327,1.05014,.986493,-.0628145,.086554,1.06507,.988484,-.0526556,.0720413,1.07907,.991051,-.0415744,.0571151,1.09189,.993523,-.0314275,.0426643,1.10369,.99628,-.0203603,.0279325,1.11423,.998344,-.0102446,.0138182,1.12421,.999997,42612e-8,-193628e-9,1.1333,.871555,-660007e-11,.329176,174749e-10,.875255,-166579e-9,.330571,441051e-9,.875644,-666394e-9,.330718,.00176441,.875159,-.00149903,.330536,.00396899,.87516,-.00266493,.330536,.007056,.875158,-.00416393,.330535,.0110251,.87516,-.00599598,.330535,.0158764,.875163,-.00816108,.330536,.0216101,.875174,-.0106591,.330538,.0282266,.875199,-.0134899,.330545,.0357266,.875257,-.0166538,.330563,.0441117,.875304,-.0201501,.330575,.0533821,.875373,-.0239785,.330595,.0635395,.875464,-.0281389,.330619,.0745872,.875565,-.0326301,.330645,.0865255,.875691,-.0374516,.330676,.0993599,.875897,-.0425993,.330733,.113093,.876091,-.0480576,.330776,.127722,.876353,-.0537216,.330826,.143227,.876649,-.0589807,.330809,.159462,.877034,-.0647865,.330819,.176642,.877443,-.0709789,.330817,.194702,.877956,-.0774782,.330832,.213577,.878499,-.0843175,.330822,.233246,.879144,-.0912714,.330804,.253512,.879982,-.0980824,.330766,.274137,.88097,-.105823,.330864,.295209,.882051,-.113671,.330896,.317226,.883397,-.120303,.330545,.341068,.884987,-.12667,.330068,.365613,.886789,-.133118,.329418,.390807,.889311,-.139024,.328683,.416494,.891995,-.144971,.327729,.442618,.895106,-.150747,.326521,.469131,.899527,-.156283,.325229,.495921,.90504,-.161707,.32378,.523162,.909875,-.165661,.32122,.55092,.91561,-.168755,.317942,.579928,.921225,-.171193,.313983,.608539,.927308,-.17319,.309636,.636854,.933077,-.174819,.304262,.66523,.938766,-.175002,.297563,.693609,.943667,-.173946,.289613,.722157,.949033,-.172221,.281227,.750021,.953765,-.169869,.271545,.777466,.95804,-.166578,.261034,.804853,.962302,-.161761,.249434,.831569,.966544,-.156636,.237484,.857779,.969372,-.150784,.224395,.883051,.972486,-.143672,.210786,.907864,.975853,-.135772,.196556,.931223,.977975,-.127942,.182307,.954061,.979122,-.118347,.167607,.97531,.980719,-.109112,.152739,.995666,.981223,-.0991789,.137932,1.01475,.98216,-.0883553,.122692,1.03253,.983379,-.0780825,.107493,1.04917,.985434,-.0665646,.0917791,1.06464,.987332,-.0557714,.0764949,1.07896,.990004,-.0442805,.060721,1.09199,.992975,-.0331676,.0452284,1.10393,.995811,-.0219547,.0297934,1.11476,.9982,-.0107613,.0146415,1.12484,1.00002,248678e-9,-14555e-8,1.13413,.859519,-693595e-11,.347264,171673e-10,.859843,-17503e-8,.347394,433219e-9,.859656,-700076e-9,.347319,.00173277,.859671,-.00157517,.347325,.00389875,.859669,-.00280028,.347324,.00693112,.85967,-.0043754,.347324,.01083,.859665,-.00630049,.347321,.0155954,.859685,-.0085755,.347328,.0212278,.859694,-.0112003,.347329,.0277273,.859718,-.0141747,.347336,.0350946,.85976,-.0174988,.347348,.0433314,.85982,-.0211722,.347366,.0524384,.859892,-.0251941,.347387,.0624168,.860006,-.0295649,.347422,.0732708,.860122,-.0342825,.347453,.0849999,.860282,-.0393462,.347499,.0976102,.860482,-.0447513,.347554,.111104,.860719,-.0504775,.347614,.125479,.860998,-.0563577,.347666,.140703,.861322,-.0619473,.347662,.156681,.861724,-.0681277,.347684,.173597,.862198,-.0746567,.347709,.191371,.862733,-.0815234,.347727,.209976,.863371,-.0886643,.347744,.229351,.86414,-.0957908,.347734,.24934,.865138,-.102912,.34772,.269797,.866182,-.110924,.3478,.290654,.867436,-.119223,.347911,.312074,.869087,-.126197,.347649,.335438,.870859,-.133145,.347222,.359732,.872997,-.139869,.346645,.38467,.875939,-.146089,.345935,.41019,.879012,-.152334,.345012,.436218,.883353,-.15821,.343924,.462641,.888362,-.164097,.342636,.489449,.895026,-.169528,.341351,.516629,.900753,-.174408,.339115,.544109,.906814,-.17751,.335809,.572857,.912855,-.180101,.331597,.601554,.919438,-.182116,.32698,.630198,.925962,-.183494,.321449,.658404,.931734,-.184159,.314595,.686625,.93762,-.18304,.306462,.71531,.943858,-.181323,.297514,.744272,.948662,-.178683,.287447,.771462,.953299,-.175379,.276166,.798593,.957346,-.170395,.263758,.8256,.962565,-.165042,.251019,.852575,.966075,-.158655,.237011,.878316,.969048,-.151707,.222518,.90329,.972423,-.143271,.207848,.927745,.975833,-.134824,.192463,.950859,.977629,-.125444,.1768,.972947,.978995,-.114949,.161033,.993263,.980533,-.104936,.145523,1.01337,.980745,-.0935577,.129799,1.03128,.981814,-.0822956,.113486,1.04825,.983943,-.0710082,.0972925,1.06405,.986141,-.0587931,.0808138,1.0785,.988878,-.0472755,.0644915,1.09204,.992132,-.0349128,.0478128,1.10413,.9953,-.0232407,.031621,1.11527,.998117,-.0112713,.0154935,1.12551,1.00003,339743e-9,-195763e-9,1.13504,.845441,-729126e-11,.364305,169208e-10,.843588,-183164e-9,.363506,425067e-9,.843412,-73253e-8,.36343,.00169999,.843401,-.00164818,.363426,.00382495,.843399,-.00293008,.363425,.00679993,.843401,-.00457822,.363425,.010625,.843394,-.00659249,.363421,.0153002,.843398,-.00897282,.363421,.0208258,.843415,-.0117191,.363426,.0272024,.843438,-.0148312,.363432,.0344305,.843483,-.018309,.363447,.0425116,.84356,-.0221521,.363472,.0514471,.843646,-.0263597,.363499,.061238,.843743,-.0309315,.363527,.0718873,.84388,-.0358658,.363569,.0833969,.844079,-.0411624,.363631,.0957742,.844279,-.0468128,.363688,.109015,.844549,-.0527923,.363761,.123124,.844858,-.0588204,.363817,.138044,.84522,-.0647573,.36383,.153755,.845669,-.0713181,.363879,.170394,.846155,-.0781697,.363908,.187861,.846789,-.0853913,.363969,.206176,.847502,-.0928086,.363999,.225244,.8484,-.10005,.363997,.244926,.849461,-.107615,.364008,.265188,.850562,-.115814,.364055,.28587,.851962,-.124334,.364179,.306926,.854326,-.131995,.364233,.329605,.856295,-.139338,.363856,.35359,.858857,-.146346,.363347,.37831,.862428,-.152994,.362807,.403722,.866203,-.159463,.361963,.429537,.871629,-.165623,.36112,.456,.877365,-.171649,.359917,.482773,.883744,-.177151,.35848,.509705,.890693,-.182381,.356523,.537215,.897278,-.186076,.3533,.565493,.903958,-.188602,.349095,.594293,.910908,-.190755,.344215,.623165,.918117,-.192063,.338606,.651573,.924644,-.192758,.331544,.679869,.931054,-.192238,.323163,.708668,.937303,-.190035,.313529,.737201,.943387,-.187162,.303152,.764977,.948494,-.183876,.29146,.792683,.952546,-.178901,.277917,.819228,.958077,-.173173,.264753,.846559,.962462,-.16645,.25002,.872962,.966569,-.159452,.234873,.898729,.969108,-.15074,.218752,.923126,.973072,-.141523,.202673,.947278,.975452,-.132075,.186326,.969938,.977784,-.121257,.169396,.991325,.97899,-.110182,.153044,1.01123,.979777,-.0989634,.136485,1.0299,.980865,-.0865894,.119343,1.04727,.982432,-.0746115,.102452,1.06341,.984935,-.0621822,.0852423,1.07834,.987776,-.0495694,.0678546,1.092,.99103,-.0372386,.0506917,1.1043,.99474,-.0244353,.0333316,1.11576,.997768,-.0121448,.0164348,1.12617,1.00003,31774e-8,-169504e-9,1.13598,.825551,-756799e-11,.378425,165099e-10,.82664,-190922e-9,.378923,416504e-9,.826323,-763495e-9,.378779,.0016656,.826359,-.00171789,.378795,.00374768,.82636,-.00305402,.378795,.00666259,.826368,-.00477185,.378798,.0104104,.826364,-.00687131,.378795,.0149912,.826368,-.00935232,.378795,.0204054,.826376,-.0122146,.378797,.0266532,.826399,-.0154581,.378803,.0337355,.82646,-.0190825,.378824,.0416537,.826525,-.0230873,.378846,.0504091,.826614,-.0274719,.378876,.0600032,.82674,-.0322355,.378917,.0704393,.826888,-.0373766,.378964,.0817195,.827078,-.0428936,.379024,.0938492,.827318,-.0487778,.379099,.106828,.82764,-.0549935,.379199,.120659,.827926,-.0611058,.379227,.13526,.828325,-.0675054,.379275,.150713,.828801,-.0743455,.379332,.167034,.8294,-.0815523,.379415,.184209,.830094,-.0890779,.379495,.202203,.8309,-.096736,.379555,.220945,.831943,-.104135,.379577,.240306,.833037,-.112106,.379604,.260317,.834278,-.120554,.379668,.2808,.836192,-.129128,.3799,.301654,.838671,-.137541,.380109,.323502,.840939,-.14523,.379809,.347176,.844575,-.15248,.379593,.371706,.848379,-.159607,.37909,.39688,.853616,-.166267,.378617,.422702,.858921,-.172698,.377746,.448919,.865324,-.178823,.376749,.475661,.872207,-.184542,.375363,.502599,.880018,-.189836,.373657,.529914,.88694,-.194294,.370673,.557683,.894779,-.197022,.36662,.586848,.902242,-.199108,.36138,.615831,.909914,-.200398,.355434,.644478,.917088,-.20094,.348173,.672905,.923888,-.200671,.339482,.701327,.930495,-.198773,.32956,.730101,.937247,-.195394,.318363,.758383,.943108,-.191956,.306323,.786539,.948296,-.187227,.292576,.813637,.953472,-.181165,.278234,.840793,.958485,-.174119,.263054,.867712,.962714,-.166564,.246756,.893635,.966185,-.158181,.229945,.919028,.970146,-.148275,.212633,.943413,.973491,-.138157,.195229,.966627,.975741,-.127574,.178048,.988817,.977238,-.11554,.160312,1.00924,.978411,-.10364,.142857,1.02845,.979811,-.0913122,.125317,1.04648,.98116,-.0782558,.107627,1.06284,.983543,-.0655957,.0895862,1.07798,.986789,-.0520411,.0713756,1.092,.990292,-.0389727,.053228,1.10484,.994187,-.025808,.0351945,1.11642,.997499,-.0126071,.0173198,1.12703,.999999,275604e-9,-148602e-9,1.13674,.81075,-78735e-10,.394456,161829e-10,.808692,-198293e-9,.393453,407564e-9,.80846,-792877e-9,.39334,.00162965,.808595,-.00178416,.393407,.00366711,.808597,-.00317182,.393408,.00651934,.808598,-.00495589,.393408,.0101866,.808591,-.00713627,.393403,.0146689,.808592,-.00971285,.393402,.0199667,.80861,-.0126855,.393407,.0260803,.808633,-.0160538,.393413,.0330107,.80868,-.0198175,.393429,.0407589,.808748,-.0239758,.393453,.0493264,.808854,-.0285286,.39349,.0587161,.808992,-.0334748,.39354,.0689304,.809141,-.0388116,.393588,.0799707,.809352,-.0445375,.39366,.0918432,.809608,-.0506427,.393742,.104549,.809915,-.0570708,.393834,.118085,.810253,-.0633526,.393885,.132377,.810687,-.0700966,.393953,.147537,.811233,-.0772274,.394047,.163543,.811865,-.0847629,.394148,.180394,.812648,-.0925663,.394265,.198051,.813583,-.100416,.394363,.216443,.814683,-.108119,.394402,.235502,.815948,-.11644,.394489,.255242,.817278,-.125036,.394542,.275441,.819605,-.133655,.39486,.296094,.822256,-.142682,.395248,.317309,.825349,-.150756,.395241,.340516,.829605,-.158392,.395285,.364819,.83391,-.165801,.394922,.389736,.839808,-.172677,.394691,.415409,.845708,-.179448,.394006,.441546,.853025,-.185746,.393279,.46832,.859666,-.191684,.391655,.495302,.86789,-.197146,.390068,.52262,.875845,-.201904,.38727,.550336,.882634,-.205023,.382688,.578825,.891076,-.207098,.377543,.608103,.900589,-.208474,.371752,.63723,.90791,-.209068,.364016,.665769,.915971,-.208655,.355593,.694428,.923455,-.20729,.345439,.723224,.931514,-.203821,.334099,.751925,.937885,-.19986,.321069,.780249,.943136,-.194993,.306571,.8077,.948818,-.189132,.291556,.83497,.954433,-.181617,.275745,.86188,.959078,-.173595,.258695,.888562,.962705,-.164855,.240825,.914008,.966753,-.155129,.22268,.939145,.970704,-.144241,.204542,.963393,.973367,-.133188,.185927,.985983,.975984,-.121146,.167743,1.00704,.976994,-.108366,.149218,1.02715,.978485,-.0956746,.13131,1.0455,.980074,-.0820733,.112513,1.06221,.98225,-.0684061,.0938323,1.07782,.98553,-.0549503,.0749508,1.09199,.989529,-.0407857,.055848,1.10508,.993536,-.0271978,.0368581,1.11684,.997247,-.0132716,.0181845,1.12789,1,431817e-9,-198809e-9,1.13792,.785886,-812608e-11,.405036,157669e-10,.790388,-205278e-9,.407355,398297e-9,.790145,-820824e-9,.407231,.00159263,.790135,-.00184681,.407226,.00358336,.790119,-.00328316,.407218,.00637039,.790126,-.00512988,.40722,.0099539,.79013,-.00738684,.407221,.0143339,.790135,-.0100538,.407221,.0195107,.790134,-.0131306,.407217,.0254848,.79016,-.0166169,.407224,.0322572,.790197,-.020512,.407236,.0398284,.790273,-.0248157,.407263,.0482014,.790381,-.029527,.407304,.0573777,.790521,-.0346446,.407355,.0673602,.790704,-.0401665,.40742,.0781522,.790925,-.0460896,.407499,.0897582,.791195,-.0524017,.407589,.10218,.791522,-.0590121,.407691,.11541,.791878,-.0654876,.407748,.12939,.792361,-.0725207,.407849,.144237,.792942,-.0799844,.407963,.159924,.79362,-.0877896,.408087,.176425,.794529,-.0958451,.408259,.193733,.795521,-.103827,.408362,.211756,.796778,-.111937,.408482,.230524,.798027,-.120521,.408547,.249967,.799813,-.129242,.408721,.269926,.802387,-.138048,.409148,.290338,.805279,-.147301,.409641,.311193,.809251,-.155895,.410154,.333611,.813733,-.163942,.410297,.357615,.819081,-.171666,.410373,.382339,.825427,-.178905,.410348,.407828,.83172,-.185812,.409486,.434034,.83877,-.192318,.408776,.460493,.845817,-.198249,.407176,.487346,.854664,-.204034,.405719,.514832,.863495,-.208908,.403282,.542401,.871883,-.212765,.399293,.570683,.88065,-.214911,.393803,.599947,.89004,-.216214,.387536,.62932,.898476,-.216745,.379846,.658319,.906738,-.216387,.370625,.687138,.914844,-.215053,.360139,.71601,.923877,-.212007,.348849,.745124,.931925,-.207481,.335639,.773366,.938054,-.202418,.320798,.801636,.943895,-.196507,.304772,.829055,.949468,-.189009,.288033,.856097,.955152,-.180539,.270532,.88301,.959403,-.171437,.251639,.909296,.963309,-.161661,.232563,.934868,.967399,-.150425,.213231,.959662,.972009,-.138659,.194247,.98302,.97433,-.126595,.174718,1.00517,.975823,-.113205,.155518,1.02566,.976371,-.0996096,.136709,1.04418,.978705,-.0860754,.117571,1.06146,.981477,-.0714438,.0980046,1.07777,.984263,-.0572304,.0782181,1.09214,.988423,-.0428875,.0584052,1.10553,.993,-.0282442,.038522,1.11758,.99704,-.0140183,.0190148,1.12864,.999913,369494e-9,-145203e-9,1.13901,.777662,-84153e-10,.423844,154403e-10,.770458,-211714e-9,.419915,38845e-8,.770716,-846888e-9,.420055,.00155386,.770982,-.00190567,.420202,.00349653,.770981,-.00338782,.420201,.00621606,.77098,-.00529338,.4202,.00971274,.770983,-.00762223,.4202,.0139867,.770985,-.0103741,.420198,.0190381,.770996,-.0135489,.4202,.0248677,.771029,-.0171461,.420212,.0314764,.771052,-.0211647,.420215,.0388648,.771131,-.0256048,.420245,.047036,.771235,-.0304647,.420284,.0559911,.771383,-.0357436,.420341,.0657346,.771591,-.0414392,.420423,.0762694,.771819,-.0475462,.420506,.0875984,.772123,-.0540506,.420617,.099727,.772464,-.060797,.42072,.112637,.772855,-.0675393,.420799,.126313,.773317,-.0748323,.420893,.140824,.773981,-.0825681,.421058,.15617,.774746,-.0906307,.421226,.172322,.77566,-.0988982,.421397,.189253,.776837,-.106994,.421569,.206912,.778097,-.115528,.421704,.225359,.779588,-.124317,.421849,.24447,.781574,-.133139,.422097,.264156,.784451,-.142179,.422615,.284318,.787682,-.15165,.423269,.304902,.792433,-.160771,.424396,.3265,.797359,-.169166,.424772,.35014,.803986,-.177149,.425475,.374768,.809504,-.184745,.424996,.399928,.815885,-.19173,.424247,.425796,.823513,-.198525,.423515,.452287,.832549,-.204709,.422787,.479321,.841653,-.210447,.421187,.506718,.850401,-.215501,.418519,.53432,.859854,-.219752,.414715,.56242,.869364,-.222305,.409462,.591558,.878837,-.223744,.402926,.621074,.888636,-.224065,.395043,.650538,.898132,-.223742,.38564,.679538,.907181,-.222308,.375378,.708674,.915621,-.219837,.363212,.737714,.9239,-.215233,.349313,.767014,.931644,-.209592,.334162,.795133,.938887,-.203644,.317943,.823228,.945282,-.196349,.300581,.850822,.950758,-.18742,.282195,.877594,.956146,-.177879,.262481,.904564,.960355,-.167643,.242487,.930741,.965256,-.156671,.222668,.955868,.968029,-.144123,.201907,.979869,.97251,-.131305,.18202,1.00291,.974925,-.118335,.161909,1.02392,.975402,-.103714,.142129,1.0433,.976987,-.089415,.122447,1.06089,.979677,-.0748858,.102248,1.07713,.983184,-.0596086,.0814851,1.09218,.987466,-.0447671,.0609484,1.10585,.992348,-.0295217,.0401835,1.11829,.996674,-.0143917,.0198163,1.12966,1.00003,321364e-9,-149983e-9,1.1402,.757901,-869074e-11,.436176,151011e-10,.751195,-217848e-9,.432317,378533e-9,.751178,-871373e-9,.432307,.0015141,.751195,-.00196061,.432317,.0034068,.751198,-.00348552,.432318,.00605659,.751195,-.00544599,.432315,.00946353,.751207,-.00784203,.43232,.013628,.751213,-.0106732,.43232,.0185499,.751221,-.0139393,.432319,.0242302,.751244,-.0176398,.432325,.0306694,.7513,-.0217743,.432348,.0378698,.751358,-.0263412,.432367,.0458321,.751458,-.0313396,.432404,.0545587,.751608,-.0367682,.432464,.0640543,.7518,-.0426246,.43254,.0743222,.752065,-.0489031,.432645,.0853668,.752376,-.0555828,.432762,.0971911,.752715,-.0623861,.432859,.109768,.753137,-.069415,.432958,.123126,.753676,-.0770039,.433099,.137308,.754345,-.084971,.433272,.15229,.755235,-.0932681,.433504,.168075,.756186,-.10171,.433693,.184625,.757363,-.110019,.433857,.201897,.75884,-.11887,.434102,.220014,.760467,-.127881,.434306,.238778,.762969,-.136766,.434751,.258172,.765823,-.14612,.43529,.278062,.769676,-.15566,.436236,.298437,.774909,-.165177,.437754,.319532,.77994,-.17402,.438343,.342505,.785757,-.182201,.438609,.366693,.792487,-.190104,.438762,.391668,.80038,-.197438,.438795,.417494,.808494,-.204365,.438226,.443933,.817695,-.210714,.437283,.470929,.828111,-.216651,.436087,.498569,.837901,-.221804,.433717,.526165,.847813,-.226318,.430133,.554155,.858314,-.229297,.425213,.582822,.868891,-.230999,.418576,.612847,.878941,-.231155,.410405,.642445,.888809,-.230935,.400544,.672024,.898089,-.229343,.389613,.701366,.908081,-.226886,.377197,.730763,.916819,-.222676,.363397,.759642,.924968,-.216835,.347437,.788775,.932906,-.210245,.32995,.817135,.940025,-.202992,.312262,.844912,.946101,-.19436,.293313,.872164,.952835,-.184125,.273638,.899443,.957347,-.173657,.252385,.926389,.961434,-.162204,.231038,.951947,.965522,-.14979,.209834,.976751,.969412,-.136307,.188821,1.00022,.973902,-.122527,.168013,1.02229,.974045,-.108213,.147634,1.04199,.975775,-.0927397,.12705,1.06019,.978383,-.0778212,.106309,1.07711,.98211,-.0621216,.0849279,1.09245,.986517,-.0463847,.0633519,1.10651,.991696,-.0309353,.0419698,1.11903,.996349,-.0150914,.0206272,1.13073,1.00003,442449e-9,-231396e-9,1.14146,.727498,-885074e-11,.441528,145832e-10,.730897,-223525e-9,.443589,368298e-9,.730796,-893996e-9,.443528,.00147303,.730805,-.00201149,.443533,.00331433,.730814,-.00357596,.443538,.00589222,.730815,-.00558734,.443538,.00920678,.730822,-.00804544,.44354,.0132582,.730836,-.0109501,.443545,.0180468,.730848,-.0143008,.443546,.0235732,.730871,-.0180969,.443552,.0298382,.730915,-.022338,.443567,.0368438,.730982,-.0270225,.443591,.044591,.731076,-.0321491,.443627,.0530831,.731245,-.0377166,.443699,.0623243,.73144,-.0437216,.443777,.0723181,.7317,-.0501576,.443881,.0830691,.732034,-.0569942,.444014,.0945809,.732388,-.0638756,.444113,.106825,.732853,-.071203,.444247,.119859,.733473,-.0790076,.444442,.13369,.734195,-.0871937,.444645,.148304,.735069,-.095696,.444877,.163702,.736169,-.10426,.445133,.179861,.73747,-.112853,.44537,.196778,.738991,-.12199,.445651,.214496,.740865,-.131153,.445958,.232913,.743637,-.140245,.446548,.251977,.746797,-.149722,.447246,.271551,.751517,-.159341,.448656,.291774,.756156,-.169106,.449866,.312455,.761519,-.178436,.450919,.334552,.768295,-.186904,.451776,.358491,.776613,-.195117,.452832,.383446,.783966,-.202695,.45249,.408945,.793542,-.20985,.452587,.435364,.803192,-.216403,.451852,.462336,.813892,-.22251,.450708,.48987,.824968,-.227676,.4486,.517697,.835859,-.232443,.445156,.545975,.846825,-.235775,.440351,.574483,.858085,-.237897,.433641,.604246,.868825,-.238074,.425354,.634101,.879638,-.237661,.415383,.664201,.889966,-.236186,.404136,.693918,.899479,-.233599,.390917,.723481,.908769,-.229737,.376352,.75258,.917966,-.223836,.360372,.781764,.926304,-.217067,.342551,.811139,.934626,-.209309,.324238,.839585,.941841,-.20071,.304484,.867044,.94789,-.190602,.283607,.894579,.954196,-.179253,.262205,.921743,.958383,-.167646,.239847,.948026,.963119,-.155073,.218078,.973296,.966941,-.141426,.195899,.998135,.970836,-.126849,.174121,1.02021,.973301,-.112296,.153052,1.04085,.97448,-.0964965,.131733,1.05946,.977045,-.080489,.10997,1.07693,.980751,-.064844,.0881657,1.09254,.985475,-.0481938,.0657987,1.10697,.991089,-.0319185,.0435215,1.12004,.996122,-.0158088,.0214779,1.13173,1.00001,372455e-9,-200295e-9,1.14291,.708622,-907597e-11,.45304,141962e-10,.711162,-228911e-9,.454662,358052e-9,.709812,-914446e-9,.453797,.00143034,.709865,-.00205819,.453834,.00321935,.709864,-.00365894,.453833,.00572331,.709855,-.00571692,.453826,.00894278,.709862,-.00823201,.453828,.012878,.709875,-.011204,.453832,.0175295,.709896,-.0146323,.453839,.0228978,.709925,-.0185163,.453847,.0289839,.709974,-.0228551,.453866,.0357894,.710045,-.0276473,.453892,.0433161,.710133,-.032891,.453924,.0515665,.710292,-.0385851,.453992,.0605458,.710485,-.0447254,.45407,.0702574,.710769,-.0513051,.454192,.0807077,.711106,-.0582733,.454329,.091896,.711516,-.0652866,.45446,.103814,.712071,-.0728426,.454653,.116508,.712676,-.0808307,.45484,.129968,.713476,-.0892216,.455096,.144206,.714377,-.0979047,.455346,.159212,.715579,-.106531,.455647,.174973,.716977,-.115492,.455961,.191504,.71862,-.124821,.456315,.208835,.72084,-.134079,.4568,.226869,.723786,-.143427,.457521,.245582,.727464,-.153061,.458475,.264957,.732771,-.162768,.460239,.284948,.736515,-.172627,.460899,.30522,.743519,-.182487,.463225,.326717,.750041,-.191295,.464027,.350113,.758589,-.199746,.465227,.374782,.767703,-.207584,.465877,.400226,.777484,-.214973,.465996,.426442,.788792,-.221796,.466019,.453688,.800194,-.228038,.465083,.481246,.811234,-.233346,.462506,.509086,.822859,-.238073,.459257,.537338,.835082,-.241764,.454863,.566108,.846332,-.244241,.448163,.595126,.858355,-.244736,.439709,.625574,.87034,-.244278,.429837,.65617,.881027,-.24255,.418002,.686029,.891007,-.239912,.404325,.716039,.900874,-.236133,.389222,.745518,.911072,-.230672,.373269,.775026,.920359,-.22356,.355083,.804521,.928604,-.215591,.335533,.834045,.937175,-.206503,.315278,.861612,.942825,-.196684,.293653,.889131,.949805,-.185116,.271503,.916853,.955535,-.172703,.248821,.943541,.959843,-.159978,.225591,.970132,.964393,-.146375,.202719,.994709,.968008,-.131269,.179928,1.0186,.971013,-.11569,.158007,1.03928,.973334,-.1003,.13624,1.05887,.975775,-.0833352,.1138,1.07652,.979579,-.0668981,.0913141,1.09297,.984323,-.0500902,.0683051,1.10734,.990351,-.0332377,.0451771,1.12084,.995823,-.0161491,.0221705,1.13296,1.0001,234083e-9,-108712e-9,1.14441,.683895,-924677e-11,.46015,137429e-10,.68833,-233383e-9,.463134,346865e-9,.688368,-933547e-9,.463159,.00138748,.688367,-.00210049,.463159,.00312187,.688369,-.00373415,.463159,.00555004,.688377,-.00583449,.463163,.00867216,.688386,-.00840128,.463166,.0124884,.688398,-.0114343,.463169,.0169993,.688418,-.0149329,.463175,.0222054,.688453,-.0188964,.463188,.028108,.688515,-.0233239,.463214,.0347085,.68857,-.0282136,.463231,.0420091,.688679,-.033564,.463276,.0500132,.688854,-.0393733,.463356,.0587255,.689038,-.0456354,.46343,.0681476,.689321,-.0523433,.463553,.0782897,.689662,-.059412,.463693,.0891501,.690188,-.0665736,.4639,.100735,.690755,-.0743106,.464107,.113074,.691405,-.0824722,.464329,.126161,.692198,-.0910484,.464585,.140007,.693196,-.0998778,.464893,.154612,.69454,-.108651,.465285,.169984,.695921,-.117855,.465596,.186106,.697749,-.12734,.466056,.203034,.700375,-.136714,.466771,.220703,.703395,-.146386,.467579,.239062,.707904,-.156096,.469067,.258188,.711673,-.165904,.469851,.277759,.717489,-.175812,.471815,.297935,.724051,-.185931,.47389,.318916,.731965,-.195238,.47587,.341591,.741151,-.204021,.477523,.366062,.751416,-.212113,.478881,.391396,.761848,-.21979,.479226,.417599,.771886,-.2267,.478495,.444401,.783998,-.232991,.477622,.472084,.796523,-.238645,.475833,.500193,.808851,-.243396,.472568,.52865,.821191,-.247226,.467857,.557362,.834261,-.250102,.461871,.586768,.846762,-.251056,.453543,.617085,.859867,-.250604,.443494,.647659,.871948,-.248783,.431711,.678119,.882967,-.245855,.417911,.708399,.892826,-.242168,.401993,.738256,.90332,-.237062,.385371,.767999,.913633,-.22997,.366837,.798191,.922774,-.221687,.346372,.827756,.931371,-.212345,.325682,.856425,.938929,-.20206,.303665,.884299,.944821,-.190981,.280786,.912023,.951792,-.178065,.2573,.939669,.957712,-.164634,.233448,.96655,.961912,-.150863,.209504,.992366,.966382,-.13577,.18597,1.01633,.969588,-.119593,.162905,1.03843,.971777,-.103203,.14053,1.05841,.97433,-.0865888,.117909,1.07632,.978686,-.0690829,.0944101,1.09326,.983281,-.0516568,.0705671,1.10796,.989562,-.034558,.0468592,1.12182,.995465,-.0167808,.0229846,1.1342,.999991,373016e-9,-235606e-9,1.1459,.662251,-939016e-11,.468575,132714e-10,.666634,-237624e-9,.471675,335842e-9,.666411,-950385e-9,.471516,.00134321,.666399,-.00213833,.471509,.00302221,.666386,-.0038014,.471499,.00537283,.666405,-.00593958,.471511,.00839533,.666406,-.00855253,.471508,.0120898,.666428,-.0116401,.471519,.0164569,.666444,-.0152015,.471522,.0214971,.66649,-.0192362,.471543,.027212,.666537,-.0237428,.471558,.033603,.666617,-.0287198,.471591,.0406728,.666718,-.0341647,.471631,.0484238,.666889,-.0400759,.47171,.0568621,.667104,-.0464479,.471805,.0659915,.667374,-.0532677,.471923,.0758178,.667772,-.0603805,.472098,.0863425,.668371,-.0677392,.472363,.0975917,.668971,-.0756028,.472596,.109567,.669696,-.0839293,.472869,.122272,.670481,-.0926683,.473126,.135718,.6715,-.1016,.473442,.149914,.672911,-.110566,.47389,.164882,.674512,-.119984,.474354,.180602,.67651,-.129574,.474922,.19711,.679292,-.139106,.475764,.214371,.682798,-.148993,.476886,.232405,.686955,-.158737,.478179,.251153,.691406,-.168754,.479432,.270436,.697438,-.178703,.481481,.290374,.704761,-.188955,.484143,.311044,.713599,-.198814,.487007,.333003,.723194,-.207869,.488962,.357144,.732601,-.216189,.489815,.382169,.744193,-.22398,.490888,.408227,.754907,-.231156,.490355,.434928,.767403,-.23747,.489548,.462599,.78107,-.243503,.488274,.490908,.793893,-.248114,.484843,.519421,.807296,-.25222,.4803,.548561,.820529,-.255265,.474097,.577772,.833716,-.256741,.466041,.607782,.848403,-.25637,.456547,.638807,.860755,-.254804,.443946,.670058,.874012,-.251834,.430852,.700749,.885619,-.247867,.414903,.731446,.896069,-.242634,.397276,.761191,.906266,-.236093,.378535,.791053,.916759,-.227543,.358038,.821298,.92523,-.21783,.335705,.850747,.93436,-.207534,.313797,.879258,.941631,-.195983,.289671,.907734,.947564,-.183567,.265319,.935206,.953681,-.169345,.240815,.962739,.960008,-.154909,.216119,.989227,.964145,-.140161,.192096,1.01465,.968171,-.123411,.167855,1.03737,.969859,-.106525,.144817,1.05767,.972666,-.0891023,.12149,1.0761,.977055,-.0718094,.0975306,1.09336,.982527,-.0534213,.0730217,1.10878,.989001,-.0355579,.0483366,1.12285,.99512,-.0176383,.023938,1.13548,1.00007,368831e-9,-211581e-9,1.14744,.651047,-960845e-11,.484101,12922e-9,.644145,-241347e-9,.478968,324578e-9,.64396,-965142e-9,.478831,.00129798,.64396,-.00217154,.47883,.00292046,.643968,-.00386049,.478835,.00519202,.643974,-.00603186,.478838,.0081128,.643977,-.0086854,.478836,.011683,.643982,-.0118207,.478834,.0159031,.644024,-.0154374,.478856,.0207743,.644059,-.0195343,.478868,.0262975,.644122,-.0241103,.478896,.0324747,.644207,-.0291638,.478933,.039309,.64432,-.0346919,.478981,.0468029,.644481,-.0406919,.479053,.0549614,.644722,-.047159,.479169,.0637909,.645013,-.0540748,.479302,.0732974,.645503,-.0612001,.479541,.0834898,.646117,-.0687303,.479829,.0943873,.646707,-.0767846,.480061,.105991,.647431,-.0852465,.480343,.11831,.64831,-.0940719,.48066,.131348,.649486,-.103056,.481083,.14514,.650864,-.112261,.481528,.159676,.652604,-.121852,.482102,.174979,.654825,-.131505,.482813,.191079,.657876,-.141189,.483876,.207927,.661339,-.151239,.48499,.225586,.665463,-.161091,.486279,.243947,.670542,-.171235,.487968,.262957,.677361,-.181347,.49053,.282781,.685672,-.191679,.493862,.303311,.694551,-.201781,.49699,.324607,.703753,-.211164,.498884,.347916,.713703,-.219675,.500086,.372628,.725911,-.227836,.501554,.398694,.73862,-.23533,.502193,.425529,.752118,-.241786,.501811,.453209,.76579,-.247865,.500185,.481381,.779568,-.252696,.497159,.51011,.793991,-.256802,.492765,.539322,.808182,-.259942,.486827,.569078,.821698,-.261703,.478386,.598818,.836009,-.262006,.468772,.629762,.849824,-.260333,.456352,.661366,.863888,-.257398,.442533,.69295,.876585,-.253264,.426573,.723608,.888665,-.248026,.408964,.754378,.899537,-.241487,.389677,.784761,.9094,-.233463,.368516,.814688,.920166,-.223397,.346624,.845009,.928899,-.21255,.322717,.874431,.937156,-.200869,.298698,.902922,.943861,-.188387,.273491,.931356,.949557,-.174341,.247866,.958854,.955862,-.158994,.222496,.986098,.961721,-.143664,.197522,1.01229,.965976,-.127412,.17302,1.03571,.968652,-.109798,.148954,1.05699,.971084,-.0916787,.125044,1.07587,.975584,-.0739634,.100577,1.09372,.98122,-.055322,.0753666,1.10948,.988253,-.0366825,.0498899,1.12394,.99482,-.0180389,.024611,1.13694,1.00001,229839e-9,-188283e-9,1.14919,.613867,-964198e-11,.479449,123452e-10,.621485,-244534e-9,.485399,313091e-9,.621429,-978202e-9,.485353,.00125245,.62112,-.00220004,.485114,.00281687,.621119,-.0039111,.485112,.00500783,.621122,-.00611091,.485112,.00782498,.621133,-.00879922,.485117,.0112687,.621152,-.0119756,.485125,.0153394,.621183,-.0156396,.485139,.0200382,.621227,-.0197898,.485158,.0253663,.621298,-.0244253,.485192,.0313261,.621388,-.0295441,.485233,.0379204,.621507,-.0351432,.485286,.0451523,.621693,-.0412198,.485378,.0530277,.621933,-.0477673,.485495,.0615522,.622232,-.0547574,.485635,.0707316,.622809,-.0619417,.485943,.0805883,.623407,-.069625,.486232,.0911267,.62406,-.077796,.486516,.102354,.624835,-.0863731,.486838,.114279,.625758,-.095251,.487188,.126902,.627043,-.104299,.487695,.140285,.628438,-.113724,.488163,.154397,.630325,-.123417,.488858,.169267,.632801,-.133137,.489754,.184941,.635784,-.143052,.490815,.20136,.639406,-.153132,.492048,.218643,.643872,-.163143,.49363,.236615,.6499,-.17333,.496009,.255449,.657201,-.183622,.498994,.275006,.666221,-.194019,.502888,.295354,.674419,-.204192,.505459,.316244,.683729,-.21406,.507771,.33849,.695584,-.222854,.510245,.363166,.708583,-.231315,.512293,.389071,.721233,-.238911,.512747,.415737,.735134,-.245657,.512482,.443331,.750179,-.251879,.511526,.471891,.765073,-.256911,.508935,.500892,.779794,-.261144,.504341,.530294,.794801,-.264316,.498515,.560144,.810339,-.266276,.491015,.590213,.824818,-.266981,.481126,.620865,.839375,-.265778,.468685,.652687,.853043,-.262748,.453925,.684759,.867335,-.258474,.437912,.716209,.88037,-.253187,.419648,.747508,.891711,-.246476,.39982,.77797,.902896,-.238735,.37879,.808586,.913601,-.22885,.355891,.838843,.923019,-.217656,.331773,.869014,.933432,-.205539,.307356,.898512,.939691,-.192595,.281321,.9269,.946938,-.178945,.255441,.955297,.952372,-.163587,.229013,.983231,.95909,-.147214,.203179,1.00971,.963675,-.13064,.17792,1.03438,.968247,-.113121,.152898,1.05625,.97001,-.0945824,.128712,1.07598,.974458,-.0755648,.103349,1.094,.980168,-.0571998,.0776731,1.1104,.987295,-.0377994,.0514445,1.12491,.994432,-.0186417,.025429,1.13851,.999975,542714e-9,-282356e-9,1.15108,.592656,-980249e-11,.486018,119532e-10,.598467,-247275e-9,.490781,301531e-9,.597934,-988317e-9,.490343,.00120517,.597903,-.00222366,.490319,.0027116,.597913,-.00395315,.490327,.00482077,.597919,-.00617653,.490329,.00753264,.597936,-.00889375,.490339,.0108478,.597956,-.0121043,.490347,.0147668,.597992,-.0158073,.490365,.0192905,.598032,-.0200017,.490382,.0244204,.598109,-.0246865,.49042,.0301593,.598215,-.0298594,.490474,.03651,.59833,-.0355167,.490524,.0434757,.598525,-.0416559,.490624,.0510629,.598778,-.0482692,.490753,.0592781,.599135,-.0553114,.49094,.0681304,.599802,-.062542,.491328,.0776467,.600361,-.0703638,.491598,.0878184,.60101,-.0786256,.491882,.0986573,.601811,-.0872962,.492232,.11018,.602861,-.0962284,.492684,.1224,.604167,-.10538,.493213,.135354,.605693,-.114896,.493799,.149034,.607682,-.124654,.494576,.163469,.610672,-.13456,.4959,.178747,.613313,-.144581,.496713,.194723,.617603,-.154703,.498499,.211617,.622174,-.16489,.500188,.229183,.628855,-.175164,.503072,.247786,.636963,-.185565,.506798,.267116,.644866,-.195911,.509719,.28702,.653741,-.206104,.512776,.307763,.664942,-.216447,.516812,.329631,.67633,-.22552,.519181,.353515,.690012,-.234316,.521681,.379226,.704243,-.242032,.523129,.405901,.719396,-.249172,.523768,.433585,.734471,-.255543,.522541,.462085,.750539,-.260697,.520217,.491233,.766365,-.26501,.516293,.521094,.781677,-.268409,.509708,.551014,.797132,-.270399,.501944,.581463,.812655,-.271247,.492025,.612402,.828592,-.270708,.480424,.643798,.844044,-.268085,.465955,.67682,.857305,-.263459,.448425,.708496,.87114,-.258151,.430243,.74046,.884936,-.251171,.410578,.771583,.895772,-.243305,.38862,.802234,.906961,-.234037,.365214,.833179,.917775,-.222714,.34116,.86353,.927883,-.210175,.31572,.893557,.936617,-.196925,.289159,.922976,.943384,-.182788,.261996,.951606,.949713,-.167965,.235324,.979958,.955818,-.151109,.208408,1.00765,.961344,-.133834,.182591,1.03329,.965469,-.115987,.156958,1.0557,.968693,-.09746,.132239,1.07583,.973165,-.0778514,.106195,1.09451,.979387,-.0585067,.0797669,1.11137,.98671,-.0390409,.0530263,1.12643,.994093,-.019408,.0263163,1.14016,1.00002,540029e-9,-194487e-9,1.15299,.574483,-989066e-11,.494533,114896e-10,.574478,-249127e-9,.494528,289403e-9,.574607,-996811e-9,.494637,.00115797,.574396,-.00224241,.494458,.00260498,.574377,-.00398632,.49444,.00463102,.574386,-.00622836,.494445,.00723623,.574401,-.0089683,.494453,.010421,.574419,-.0122056,.49446,.0141859,.574459,-.0159396,.494481,.0185322,.574525,-.0201692,.49452,.0234617,.574587,-.0248924,.494547,.0289762,.574697,-.0301074,.494604,.0350797,.574853,-.0358114,.494688,.0417767,.575027,-.041999,.494772,.0490718,.575294,-.0486618,.494915,.0569728,.575733,-.0557148,.495173,.0654955,.576356,-.0630489,.495537,.0746612,.576944,-.0709285,.495836,.0844615,.57765,-.0792723,.496177,.0949142,.578491,-.0880167,.496563,.10603,.579639,-.0969462,.497096,.117841,.580989,-.10622,.497684,.130367,.582587,-.115861,.498337,.143609,.584951,-.125605,.499414,.157625,.587602,-.135608,.500518,.172413,.59076,-.145742,.501767,.187999,.594992,-.155934,.503542,.20445,.600656,-.166303,.506135,.221764,.607816,-.176681,.509542,.24002,.61522,-.187071,.51263,.258992,.623702,-.197465,.516021,.278773,.634192,-.207816,.520422,.299377,.644936,-.218183,.524073,.320802,.657888,-.2278,.528049,.34384,.670666,-.236747,.52986,.36916,.685626,-.24484,.531892,.395867,.701304,-.252071,.532727,.423488,.717727,-.258714,.532146,.452201,.733914,-.264211,.529883,.481579,.750529,-.26859,.5259,.511558,.76747,-.272046,.51999,.542042,.785189,-.274225,.513083,.572799,.800954,-.275189,.502936,.603816,.816962,-.274946,.490921,.635461,.83336,-.272695,.47684,.6676,.848143,-.268223,.459405,.70051,.861818,-.262768,.440319,.732902,.876828,-.255872,.420123,.765084,.889312,-.247703,.398379,.796391,.900412,-.238381,.374496,.827333,.912251,-.227783,.349874,.858385,.921792,-.214832,.323181,.888652,.931273,-.200949,.296624,.917763,.940295,-.186537,.269211,.947878,.946812,-.171538,.241447,.977016,.953588,-.155254,.213829,1.00501,.958841,-.137156,.186807,1.03179,.963746,-.118699,.160706,1.05502,.966468,-.0998358,.135504,1.07568,.971178,-.0805186,.109131,1.09479,.97831,-.0599348,.0818293,1.1123,.985886,-.0399661,.0545872,1.12771,.994021,-.0198682,.0269405,1.14186,1.00009,271022e-9,-12989e-8,1.15514,.538716,-990918e-11,.486732,109675e-10,.550656,-250642e-9,.497518,277412e-9,.55057,-.00100265,.497441,.00110974,.550903,-.00225672,.497733,.00249779,.550568,-.00401046,.497438,.00443906,.550574,-.00626613,.49744,.00693637,.550591,-.0090226,.497449,.00998921,.550623,-.0122795,.497469,.0135984,.550667,-.0160361,.497495,.0177654,.550724,-.0202908,.497526,.0224915,.550792,-.0250421,.497557,.0277795,.550918,-.0302878,.49763,.0336334,.551058,-.0360241,.497701,.0400573,.551276,-.0422473,.497824,.0470585,.551551,-.0489441,.497977,.0546433,.552074,-.0559596,.498312,.0628367,.552681,-.0633978,.498679,.071646,.553324,-.0713176,.499031,.0810746,.554011,-.0797268,.499365,.091129,.55488,-.0885238,.499779,.101837,.556171,-.0974417,.500444,.113239,.557498,-.106841,.501025,.125316,.559299,-.116533,.501864,.138128,.561647,-.126298,.502967,.151695,.564347,-.136388,.504129,.16604,.567863,-.146576,.505713,.181207,.572569,-.156832,.507953,.197259,.578919,-.167323,.511186,.214258,.585387,-.177712,.514042,.232038,.593134,-.188184,.517484,.250733,.603295,-.198717,.522345,.270454,.613854,-.209177,.526751,.290807,.626092,-.219644,.531595,.312202,.637868,-.229494,.534721,.334435,.652458,-.238718,.538304,.359184,.666985,-.247061,.539875,.385637,.683301,-.254652,.541042,.41328,.69998,-.261376,.540735,.441903,.717824,-.267085,.539139,.471609,.734617,-.271465,.534958,.501446,.753663,-.27528,.53032,.532571,.770512,-.277617,.522134,.563641,.787356,-.278525,.51206,.595067,.806252,-.278512,.50119,.627226,.822061,-.277023,.486791,.659402,.838959,-.273175,.470467,.692874,.85379,-.267238,.450688,.725702,.868268,-.260327,.429741,.75832,.881994,-.251946,.407223,.790189,.893885,-.242432,.383214,.821625,.905118,-.231904,.357297,.853011,.916045,-.219545,.330733,.883773,.927614,-.205378,.303916,.914435,.936005,-.190388,.275941,.944502,.944533,-.1749,.247493,.974439,.950758,-.158588,.218996,1.00286,.957078,-.141027,.191559,1.0304,.962448,-.121507,.164457,1.05466,.964993,-.102068,.138636,1.0761,.970017,-.0822598,.111861,1.09541,.97661,-.062033,.0843438,1.11317,.985073,-.0409832,.0558496,1.12911,.993515,-.020146,.0275331,1.1438,1.00006,27329e-8,-107883e-9,1.15736,.525324,-999341e-11,.498153,105385e-10,.526513,-251605e-9,.499277,265329e-9,.526517,-.00100641,.499282,.0010613,.526588,-.00226466,.499337,.00238823,.526539,-.0040255,.499302,.00424535,.526547,-.00628954,.499306,.00663364,.526561,-.00905628,.499313,.00955337,.526593,-.0123253,.499334,.0130054,.526642,-.0160957,.499365,.0169911,.5267,-.0203661,.499396,.0215122,.526792,-.0251347,.499451,.0265718,.526904,-.0303985,.499511,.0321732,.527079,-.0361554,.499617,.0383231,.527285,-.0423982,.499731,.045026,.527602,-.0491121,.499924,.0522936,.528166,-.0561127,.500306,.0601528,.52879,-.0635988,.5007,.0686059,.529421,-.071581,.501048,.0776518,.530144,-.0799854,.501421,.0873148,.531062,-.0888032,.501884,.0976084,.532374,-.0977643,.50259,.108588,.533828,-.107197,.50329,.120234,.53581,-.116887,.504312,.132602,.538063,-.126755,.505365,.145721,.5409,-.136819,.506668,.159617,.544882,-.147117,.508731,.174369,.550238,-.157446,.511601,.190028,.556038,-.167988,.514431,.206587,.563031,-.178364,.517808,.224046,.571543,-.189007,.521937,.242503,.582255,-.199546,.527415,.261977,.59272,-.210084,.531682,.282162,.605648,-.220448,.537123,.303426,.61785,-.230593,.540664,.325323,.632223,-.240238,.544467,.348993,.648819,-.24887,.547594,.375462,.665825,-.256657,.54912,.403024,.683389,-.263711,.549294,.431773,.701495,-.269666,.547649,.461494,.719197,-.274169,.543786,.491623,.737906,-.278124,.538644,.522994,.756652,-.280632,.531057,.554775,.775279,-.281741,.521972,.586441,.792688,-.281652,.509613,.618596,.811894,-.280345,.496497,.651462,.827938,-.277128,.47968,.684023,.844837,-.271646,.460688,.718024,.859239,-.264397,.438872,.751207,.874088,-.256144,.41577,.784232,.887693,-.246311,.391369,.816191,.899402,-.235497,.365872,.847828,.910973,-.223631,.338618,.87934,.92204,-.209874,.310803,.910325,.930987,-.194265,.281802,.940695,.94,-.178125,.252836,.970958,.948018,-.161479,.224239,1.00078,.955141,-.144038,.195857,1.0288,.960513,-.124915,.168487,1.05371,.963964,-.104284,.141495,1.07596,.968713,-.0838732,.114437,1.09628,.975524,-.0635579,.0863105,1.11448,.98431,-.042291,.0574774,1.13069,.992916,-.0209131,.0284343,1.14568,.999926,743097e-9,-379265e-9,1.15955,.501042,-998428e-11,.498726,100306e-10,.502992,-252112e-9,.500665,253283e-9,.502417,-.00100791,.500092,.00101259,.502965,-.00226919,.500621,.00227978,.502318,-.00403109,.499994,.00405011,.502333,-.00629832,.500005,.00632868,.502362,-.00906907,.500027,.00911446,.502369,-.0123423,.500023,.0124078,.50243,-.0161178,.500066,.016211,.502493,-.0203937,.500103,.0205256,.502592,-.0251684,.500166,.0253548,.502707,-.0304389,.50023,.0307029,.502881,-.0362015,.500335,.0365753,.503124,-.0424507,.500488,.0429798,.503443,-.0491582,.500686,.0499268,.504083,-.0561476,.501155,.0574541,.504668,-.0636846,.501524,.0655408,.505319,-.0716834,.501904,.0742072,.50609,-.0800925,.502321,.0834699,.507122,-.0888425,.502896,.0933603,.508414,-.097855,.503603,.10391,.509955,-.107304,.504416,.115113,.512061,-.116921,.505565,.127054,.514419,-.12689,.506732,.139709,.517529,-.136934,.508338,.153173,.522085,-.147327,.510987,.167528,.526986,-.157612,.513527,.182708,.533122,-.168213,.516717,.198881,.540807,-.178688,.520832,.215986,.550687,-.189511,.52632,.234335,.560567,-.199998,.531009,.253375,.571698,-.210652,.535839,.273499,.584364,-.220917,.541091,.294355,.599066,-.23137,.546875,.316525,.614148,-.241206,.551306,.339671,.631157,-.250379,.555187,.36531,.647919,-.258397,.556595,.392767,.666112,-.265528,.556949,.421397,.686158,-.271827,.556617,.451433,.704838,-.27674,.552975,.482131,.723957,-.280733,.547814,.513458,.74262,-.283359,.53997,.545446,.762009,-.284541,.530422,.57775,.781314,-.284507,.518546,.610434,.799116,-.283309,.504178,.643178,.817604,-.280378,.48843,.676248,.83459,-.275619,.469457,.709698,.850974,-.26856,.447698,.744245,.866747,-.260094,.424791,.777695,.881412,-.249929,.399913,.810392,.8936,-.239137,.37308,.842872,.905943,-.226818,.345705,.874677,.916408,-.213699,.31706,.906257,.927215,-.198428,.288444,.936881,.935625,-.181643,.258329,.96795,.944076,-.164386,.228488,.998216,.951229,-.146339,.199763,1.02689,.958793,-.127709,.172153,1.0535,.963219,-.107244,.144989,1.07646,.967562,-.0857764,.11685,1.09675,.974866,-.0645377,.0880571,1.11576,.983353,-.0431732,.0587352,1.13227,.992503,-.0218356,.0294181,1.1478,1.00003,605203e-9,-231013e-9,1.16207,.482935,-101177e-10,.504695,968142e-11,.477554,-251521e-9,.499071,240676e-9,.477904,-.00100683,.499436,96342e-8,.478368,-.00226636,.499899,.0021687,.477977,-.00402719,.499513,.00385384,.477993,-.00629226,.499525,.0060221,.478011,-.00906011,.499536,.00867289,.478051,-.0123305,.499566,.0118074,.478089,-.016102,.499587,.0154269,.478171,-.0203736,.499645,.0195341,.478254,-.025143,.499692,.0241318,.47839,-.0304071,.499779,.0292247,.478588,-.0361631,.499911,.0348196,.478812,-.0424023,.500046,.0409231,.479208,-.0490724,.500326,.047552,.479841,-.0560722,.500805,.0547377,.480392,-.0636125,.501152,.0624607,.481068,-.0716134,.501561,.0707473,.481898,-.0800062,.502054,.0796118,.483022,-.0886568,.502728,.0890974,.484332,-.0977553,.503479,.0992099,.486126,-.107173,.504546,.10999,.488066,-.11677,.50557,.121476,.490521,-.126725,.506849,.133672,.494232,-.136793,.50911,.146731,.498302,-.147116,.511345,.160577,.503565,-.157446,.514344,.175335,.510902,-.168121,.518824,.191207,.519263,-.178799,.523666,.208058,.528204,-.189407,.528296,.225875,.538854,-.200145,.533724,.244782,.551278,-.210701,.539833,.264753,.565222,-.221303,.546131,.285745,.579403,-.231688,.551496,.307592,.595469,-.241718,.556809,.330582,.610929,-.250992,.559641,.354995,.629433,-.259602,.562379,.382471,.648504,-.267038,.563676,.411126,.66756,-.273388,.562092,.440924,.689143,-.278788,.560807,.472118,.709056,-.282783,.555701,.503774,.729855,-.285836,.548698,.536364,.748954,-.287078,.538544,.56895,.768373,-.287133,.526711,.601991,.78827,-.285839,.512511,.635403,.807465,-.283238,.496323,.668797,.825194,-.27906,.477638,.702584,.842203,-.272286,.456253,.736393,.857749,-.263854,.432412,.77096,.874799,-.253943,.407806,.80489,.887497,-.24237,.38033,.83771,.89966,-.230278,.352446,.870376,.911753,-.21646,.323268,.902256,.923011,-.202071,.294314,.933306,.932375,-.185519,.264104,.965177,.940537,-.167604,.234035,.996303,.948904,-.149068,.20412,1.0261,.955263,-.129539,.175431,1.05304,.960303,-.109932,.148116,1.07617,.965512,-.0880572,.119693,1.09742,.973466,-.0660548,.0901619,1.11721,.98284,-.0439228,.0599875,1.13436,.992216,-.0219588,.0298975,1.15006,.999946,119402e-9,-208547e-10,1.16471,.447827,-100414e-10,.491543,914833e-11,.454778,-251257e-9,.499172,22891e-8,.453519,-.00100342,.497787,914184e-9,.45357,-.00225776,.497847,.00205701,.453578,-.00401371,.497855,.00365705,.45357,-.00627107,.497841,.00571453,.453598,-.00902968,.497864,.00823019,.453627,-.0122888,.497882,.0112049,.453684,-.0160475,.497923,.0146405,.453764,-.0203044,.49798,.0185394,.453866,-.0250576,.498049,.0229054,.453996,-.0303028,.49813,.0277424,.454196,-.0360379,.498267,.0330587,.454457,-.0422521,.498445,.0388613,.454926,-.0488393,.498812,.0451767,.455525,-.0558653,.499272,.0520153,.456074,-.0633772,.499625,.0593754,.456752,-.0713606,.500049,.0672751,.457648,-.07971,.500615,.0757447,.458849,-.0883032,.501399,.0848231,.46029,-.0974095,.502293,.0945135,.462,-.106729,.503301,.104848,.464121,-.116354,.504533,.115884,.466889,-.126214,.506172,.127652,.470744,-.136324,.508667,.14024,.47488,-.146595,.510995,.153673,.480845,-.157027,.514832,.168053,.488262,-.167658,.519506,.183508,.496547,-.178343,.524347,.199948,.506254,-.188916,.52983,.217503,.517961,-.199975,.536357,.236272,.531484,-.210624,.543641,.256096,.545496,-.221227,.550048,.277085,.559497,-.231568,.555076,.298615,.575752,-.241698,.560541,.321547,.591999,-.251172,.564156,.345602,.610654,-.260178,.567607,.371851,.630484,-.268094,.56923,.40076,.651807,-.274661,.569779,.430801,.67239,-.280331,.566791,.461939,.693024,-.284501,.562007,.493854,.715473,-.287852,.555791,.526992,.736323,-.28929,.546345,.560102,.755771,-.289405,.534,.593543,.775424,-.2881,.519114,.627256,.795447,-.285562,.502543,.661464,.815319,-.281416,.484773,.695206,.831769,-.275523,.463445,.729044,.849464,-.267516,.440269,.764069,.866775,-.257584,.415049,.799089,.881252,-.245817,.388049,.831948,.894209,-.233127,.35889,.865526,.906922,-.219579,.329915,.89818,.919686,-.204491,.300441,.930013,.929044,-.188962,.269445,.962061,.938393,-.171079,.238402,.994214,.94661,-.15199,.208204,1.02533,.953095,-.131953,.178653,1.0529,.958644,-.111233,.150684,1.0771,.963925,-.0903098,.122359,1.09855,.971995,-.0680505,.0923342,1.11874,.981658,-.0448512,.0614195,1.13635,.991649,-.0221931,.0303582,1.15238,.999985,393403e-9,-111086e-9,1.16772,.396806,-971563e-11,.457671,842355e-11,.429186,-249421e-9,.495017,21625e-8,.429324,-998052e-9,.495173,865322e-9,.429175,-.00224487,.494999,.00194637,.429129,-.00399041,.494952,.00346004,.429153,-.00623476,.494974,.00540684,.429168,-.0089773,.494983,.00778714,.429207,-.0122175,.495012,.0106022,.429257,-.0159542,.495047,.0138535,.429338,-.0201864,.495106,.0175443,.429431,-.0249104,.495165,.0216774,.429587,-.0301252,.495279,.0262594,.429796,-.0358249,.495432,.0312968,.430065,-.0419972,.495621,.0367985,.430588,-.0485144,.496061,.042798,.43113,-.0555028,.496472,.0492914,.431743,-.0629852,.496904,.0562907,.432448,-.0709256,.497369,.0638056,.433414,-.0791942,.498032,.071885,.434638,-.0877346,.498854,.0805517,.43611,-.0968056,.499812,.0898047,.437859,-.106002,.500891,.0997142,.440017,-.115648,.502198,.110289,.443236,-.125427,.504389,.121644,.44697,-.135492,.506809,.133769,.451689,-.145746,.509858,.146787,.45811,-.156219,.514247,.160793,.465305,-.166834,.518816,.175791,.474085,-.177546,.524331,.191906,.484808,-.188262,.53104,.209199,.49732,-.199346,.538511,.227825,.509693,-.209951,.544554,.247269,.524367,-.220533,.551616,.267978,.539228,-.231082,.557368,.289672,.55644,-.241342,.563782,.31268,.574204,-.250964,.568851,.33651,.593388,-.260306,.57312,.362219,.613358,-.268667,.574916,.390322,.634512,-.275591,.575053,.420478,.65563,-.281328,.572404,.451614,.678265,-.285948,.568893,.484112,.70011,-.289408,.561878,.517348,.723005,-.291328,.55359,.551355,.743744,-.291418,.541099,.585109,.763949,-.290252,.526489,.619487,.784186,-.287648,.509496,.65404,.804304,-.283782,.491484,.688649,.823629,-.278067,.470517,.723133,.84094,-.270588,.44705,.757163,.857852,-.261188,.421252,.792816,.874934,-.249313,.394191,.827248,.888709,-.236492,.365359,.861074,.902589,-.222185,.336016,.894417,.914201,-.207314,.30527,.926825,.925978,-.191146,.274532,.9595,.93512,-.174135,.243393,.991583,.943656,-.155231,.212414,1.02356,.951719,-.134403,.182005,1.05239,.957164,-.113023,.153043,1.07754,.962656,-.0914493,.124186,1.09984,.970695,-.0694179,.0941654,1.12,.980749,-.0466199,.0629671,1.13849,.991205,-.0227032,.0311146,1.15494,.999884,632388e-9,-254483e-9,1.1706,.379821,-957289e-11,.460637,789337e-11,.405188,-247483e-9,.491396,204064e-9,.404796,-989434e-9,.490914,815853e-9,.40483,-.00222607,.490949,.00183559,.40473,-.00395723,.49084,.00326332,.404731,-.00618287,.490836,.00509945,.404768,-.00890258,.490871,.00734463,.404791,-.0121156,.490883,.00999992,.404857,-.0158214,.490938,.0130676,.404943,-.0200178,.491004,.0165503,.405059,-.0247027,.491093,.0204521,.405213,-.0298729,.491205,.0247788,.405399,-.0355226,.491333,.0295373,.405731,-.0416352,.491604,.034741,.406303,-.0480807,.492116,.0404255,.406814,-.0550458,.492506,.0465732,.407404,-.0624652,.492926,.0532058,.408149,-.0702958,.493442,.0603442,.409128,-.0784623,.494136,.0680297,.410408,-.087007,.495054,.0762786,.411813,-.0959639,.495962,.0851046,.413735,-.105075,.497257,.0945878,.416137,-.114646,.498882,.104725,.41934,-.124394,.501132,.11563,.423326,-.134328,.503883,.127325,.428419,-.14458,.50747,.139911,.43484,-.154979,.511964,.153481,.442641,-.165628,.517328,.168114,.452511,-.176365,.524258,.183995,.463473,-.187298,.531248,.200953,.475564,-.198244,.538367,.219176,.488664,-.208938,.545175,.238514,.504073,-.219599,.553227,.259129,.520832,-.230378,.560653,.280997,.538455,-.240703,.567523,.303821,.55709,-.250548,.573287,.327948,.576646,-.259964,.577795,.353362,.596705,-.268721,.580077,.380336,.618053,-.276054,.58018,.4101,.640303,-.282176,.578747,.44161,.662365,-.286931,.574294,.474106,.684542,-.290521,.567035,.507549,.707984,-.292672,.558687,.541853,.730913,-.293189,.547606,.576581,.752948,-.292199,.533471,.61172,.773452,-.289508,.516395,.646339,.794715,-.285716,.497873,.682131,.814251,-.280051,.476845,.716396,.833057,-.272873,.453449,.751503,.84959,-.263982,.427857,.786085,.867022,-.252745,.400335,.821355,.882277,-.239655,.371304,.85646,.895375,-.225386,.340397,.890828,.909347,-.209587,.310005,.923532,.921885,-.193433,.2796,.956419,.932127,-.176135,.247276,.989445,.941869,-.157872,.216186,1.02221,.949735,-.137577,.185602,1.05195,.956617,-.115285,.155767,1.07822,.961974,-.0928418,.126103,1.10149,.96972,-.0700592,.0956758,1.12207,.98012,-.0474671,.0643269,1.1408,.990825,-.0238113,.0320863,1.1577,.999876,381574e-9,-812203e-10,1.17403,.367636,-961342e-11,.469176,753287e-11,.380377,-244772e-9,.485434,191797e-9,.380416,-978857e-9,.485475,767015e-9,.380376,-.00220165,.485435,.00172522,.380419,-.00391408,.485487,.00306734,.380438,-.00611549,.485505,.00479332,.380462,-.00880558,.485525,.00690391,.380496,-.0119837,.485551,.00940039,.38056,-.0156487,.485605,.0122848,.38064,-.0197988,.485666,.0155601,.380767,-.0244324,.48577,.0192313,.380909,-.0295444,.485871,.0233032,.381142,-.0351321,.48606,.0277861,.381472,-.0411535,.486336,.0326939,.382015,-.0475408,.486833,.0380565,.382523,-.0544395,.487231,.0438615,.383129,-.061784,.487683,.0501332,.383952,-.0695085,.488313,.0568996,.38498,-.0775819,.489077,.0641952,.386331,-.0860443,.490113,.0720324,.387788,-.0948406,.491099,.0804379,.389808,-.103899,.492566,.0894899,.39252,-.113313,.494601,.0992098,.395493,-.123007,.496619,.109641,.399826,-.132859,.499912,.120919,.405341,-.143077,.504061,.133107,.411932,-.153465,.508905,.146263,.420591,-.164108,.515482,.160544,.43101,-.174893,.523191,.176123,.441881,-.185839,.53026,.192757,.453919,-.196633,.537295,.210535,.468715,-.207611,.546156,.229886,.485182,-.218517,.555173,.250543,.501926,-.229249,.562728,.27221,.51785,-.239481,.567494,.294892,.536947,-.249395,.573889,.318987,.557115,-.259,.578831,.344348,.577966,-.268075,.582055,.371223,.599489,-.276115,.583307,.399834,.62479,-.282523,.583902,.431415,.647504,-.287663,.57953,.464301,.670601,-.291538,.573103,.498123,.693539,-.293842,.563731,.532662,.717385,-.294681,.553169,.567925,.741533,-.293717,.539908,.603502,.762142,-.291156,.521902,.639074,.783014,-.28719,.502815,.674439,.805158,-.281773,.482598,.710497,.823646,-.274682,.458949,.7456,.841879,-.266184,.433129,.781085,.859515,-.255682,.406064,.816,.875335,-.242849,.376509,.851074,.890147,-.228329,.345502,.886473,.903144,-.212491,.31428,.920751,.916618,-.195695,.282994,.954606,.927953,-.178267,.251091,.988402,.937414,-.159549,.219107,1.02141,.946823,-.140022,.18896,1.05167,.954651,-.118154,.158667,1.07819,.959955,-.0946636,.128808,1.1025,.96858,-.0711792,.0973787,1.12391,.97938,-.0475046,.0650965,1.14322,.990498,-.024059,.0326267,1.16077,.999844,-512408e-10,112444e-9,1.17727,.316912,-934977e-11,.425996,695559e-11,.356423,-241372e-9,.479108,179562e-9,.356272,-965292e-9,.478897,71811e-8,.356262,-.00217182,.478894,.00161574,.356265,-.00386092,.478895,.00287261,.356278,-.0060324,.478905,.00448907,.356293,-.00868565,.478914,.00646572,.356346,-.0118207,.478965,.00880438,.356395,-.0154355,.479001,.0115066,.356484,-.019529,.479075,.0145762,.356609,-.0240991,.47918,.018018,.356766,-.0291413,.479305,.0218379,.357009,-.0346498,.479512,.0260454,.357424,-.0405462,.479909,.0306657,.357899,-.0468825,.480337,.0357054,.358424,-.0536887,.480771,.0411728,.359041,-.0609416,.481242,.0470841,.359903,-.0685239,.481943,.0534831,.360932,-.0764883,.482741,.0603795,.362196,-.0848364,.483688,.0678028,.363847,-.0935002,.484947,.0758086,.365972,-.102471,.486588,.0844173,.368741,-.111751,.488787,.0937199,.372146,-.121334,.491405,.103732,.377114,-.131147,.495604,.114608,.38226,-.141213,.499436,.126345,.389609,-.151632,.505334,.139116,.397925,-.162073,.51168,.152995,.407824,-.172819,.518876,.168071,.420014,-.183929,.527639,.184495,.434266,-.195032,.537588,.20232,.447352,-.205792,.544379,.221189,.463726,-.216704,.553422,.241616,.481406,-.227531,.562074,.263298,.498707,-.238017,.568227,.286116,.518039,-.247936,.574473,.3101,.538277,-.257437,.579191,.335401,.561166,-.266829,.584807,.362246,.583189,-.275329,.586476,.390609,.606024,-.28234,.585578,.420998,.632419,-.287924,.584496,.454357,.656128,-.291972,.577766,.488233,.679953,-.29456,.56875,.523248,.704654,-.295816,.558388,.559168,.729016,-.295157,.544826,.595326,.752062,-.292779,.528273,.631864,.773138,-.288681,.508482,.667793,.794869,-.283358,.487341,.704035,.815101,-.27608,.46354,.739925,.834212,-.26767,.438672,.775539,.852368,-.257397,.411239,.810895,.870207,-.245689,.3829,.846472,.884063,-.231452,.351496,.881788,.898284,-.215561,.31895,.917438,.912964,-.198208,.287367,.952422,.924666,-.180426,.254487,.987551,.934429,-.161525,.222226,1.02142,.943485,-.141197,.191143,1.05218,.9521,-.120085,.161112,1.07937,.957876,-.0975881,.130982,1.10403,.966943,-.0726842,.0990553,1.12616,.978313,-.0483705,.0662818,1.14619,.990048,-.0239072,.0329243,1.16413,.999984,461885e-9,-772859e-10,1.18099,.321287,-935049e-11,.455413,659662e-11,.332595,-237513e-9,.471437,167562e-9,.332729,-949964e-9,.471618,670192e-9,.332305,-.00213618,.471028,.00150712,.332326,-.00379765,.471055,.00267959,.332344,-.00593353,.471072,.00418751,.332356,-.00854349,.471077,.00603172,.332403,-.0116268,.471121,.00821362,.332461,-.0151824,.47117,.0107357,.332552,-.0192088,.471251,.0136014,.332657,-.0237024,.47133,.0168152,.332835,-.0286615,.471487,.0203853,.333083,-.0340765,.471708,.0243212,.333547,-.0398563,.47219,.0286518,.333989,-.0460916,.472587,.0333763,.334532,-.0527897,.473054,.0385084,.335167,-.0599284,.473568,.0440638,.33608,-.0673514,.474362,.0500962,.337146,-.0752237,.475231,.0566022,.338462,-.083418,.476282,.0636272,.34014,-.0919382,.477615,.0712153,.342341,-.100741,.479404,.079417,.345088,-.109905,.481618,.0882631,.349049,-.119369,.485081,.0978851,.353939,-.129033,.489317,.108336,.359893,-.139038,.494309,.119698,.366945,-.149411,.499983,.132024,.375814,-.159843,.507185,.145558,.387112,-.170664,.516392,.160433,.40023,-.181897,.526519,.176648,.412555,-.192785,.53423,.193922,.427023,-.203663,.542741,.212662,.443685,-.214695,.552066,.232944,.461499,-.225561,.560762,.254495,.480975,-.236257,.569421,.277531,.501,-.24639,.576101,.301724,.521691,-.256101,.581493,.327112,.543478,-.265289,.585221,.353917,.566094,-.273938,.587614,.381941,.589578,-.281679,.587991,.41172,.614583,-.287655,.585928,.444148,.641813,-.292228,.582092,.478617,.666189,-.295172,.57398,.51397,.690475,-.29648,.561676,.550118,.715543,-.296203,.548758,.586933,.740405,-.293999,.532792,.62384,.762183,-.28998,.512735,.660723,.786069,-.28478,.492402,.69807,.806812,-.277568,.469058,.734422,.826987,-.268951,.443017,.770946,.844588,-.259049,.415501,.80699,.863725,-.2471,.387328,.842107,.879137,-.234157,.356108,.878078,.894634,-.218719,.324315,.914058,.909162,-.201293,.291813,.949922,.92072,-.18267,.258474,.985337,.93158,-.163212,.225593,1.0205,.941238,-.142771,.193986,1.05273,.949293,-.120956,.163392,1.08075,.956226,-.0985743,.132934,1.10559,.96546,-.075118,.101255,1.12823,.977403,-.0497921,.0675441,1.149,.989648,-.0241574,.0334681,1.16765,1.00001,5762e-7,-184807e-9,1.18519,.303474,-916603e-11,.4542,61243e-10,.308894,-232869e-9,.462306,155592e-9,.309426,-931661e-9,.463093,622499e-9,.308643,-.0020949,.461933,.00139979,.308651,-.0037242,.461941,.00248874,.308662,-.00581873,.46195,.00388933,.308687,-.00837818,.461974,.00560247,.308728,-.0114016,.462011,.00762948,.308789,-.0148884,.462067,.00997326,.308882,-.0188369,.462151,.0126375,.309007,-.0232436,.462263,.0156271,.30918,-.0281054,.462417,.0189498,.309442,-.0334065,.462667,.0226167,.309901,-.0390589,.463162,.0266614,.310331,-.0452042,.463555,.0310715,.310858,-.0517735,.464019,.0358698,.311576,-.0587359,.464669,.0410848,.312436,-.0660383,.465406,.0467453,.313526,-.0737266,.466339,.0528718,.314903,-.0817574,.467504,.0595039,.316814,-.090167,.469226,.0666888,.318965,-.0987555,.470981,.0744658,.322077,-.107792,.473814,.082912,.325947,-.117098,.477241,.0920846,.331008,-.126602,.48184,.102137,.337893,-.136619,.488334,.113135,.345106,-.146838,.494415,.12511,.355111,-.157357,.503275,.138356,.365095,-.167955,.510966,.152686,.378344,-.179157,.521508,.16856,.391599,-.190143,.530455,.18561,.407786,-.20123,.541275,.204308,.425294,-.212456,.551784,.224623,.444021,-.223568,.561493,.246172,.463418,-.234154,.569886,.268979,.484077,-.244546,.577116,.293411,.505513,-.254301,.582914,.318936,.527672,-.263564,.587208,.345856,.550565,-.272332,.589277,.374054,.573656,-.280011,.588426,.403276,.59827,-.286924,.587504,.43474,.624731,-.291994,.583401,.468767,.652396,-.295159,.576997,.504411,.67732,-.296954,.565863,.54114,.703147,-.296877,.552316,.57816,.728715,-.295147,.536773,.616124,.752448,-.291275,.51771,.653885,.775169,-.285905,.496087,.691537,.799307,-.279064,.474232,.729251,.819482,-.270294,.447676,.766267,.837659,-.260032,.419656,.802616,.856903,-.248497,.391328,.838583,.873325,-.235252,.360285,.874711,.889788,-.221126,.329215,.91077,.904486,-.204304,.296392,.94653,.917711,-.185562,.262159,.983828,.928969,-.165635,.229142,1.01955,.939707,-.14442,.19673,1.05317,.948167,-.122147,.165095,1.0823,.955222,-.099098,.13451,1.10791,.964401,-.0755332,.102476,1.1312,.976605,-.0513817,.0689667,1.15218,.989085,-.0258499,.034506,1.17129,.999908,617773e-9,-271268e-9,1.18961,.285803,-905752e-11,.452348,572272e-11,.284689,-22732e-8,.450581,143626e-9,.285263,-910214e-9,.451482,575099e-9,.285302,-.00204784,.451553,.00129395,.285318,-.00364057,.451574,.0023006,.28533,-.00568813,.451585,.00359547,.285361,-.00819001,.451618,.00517934,.285397,-.0111458,.45165,.007054,.285447,-.0145536,.451688,.00922167,.285527,-.0184127,.451758,.0116869,.285688,-.0227207,.451929,.0144555,.28584,-.0274712,.452055,.0175341,.286136,-.0326278,.452369,.0209406,.286574,-.0381792,.452853,.0246965,.287012,-.0441879,.453272,.0287996,.287542,-.0506096,.453752,.033268,.288299,-.0573634,.454488,.0381504,.289186,-.0645458,.455294,.0434447,.290302,-.0720405,.456301,.0491973,.291776,-.0799046,.457648,.0554453,.29372,-.088117,.459483,.0622311,.296052,-.0965328,.461571,.0695992,.299563,-.105409,.465085,.077658,.30335,-.114553,.468506,.0864176,.309167,-.123917,.474423,.0961078,.31529,-.13381,.47995,.106643,.324163,-.144021,.488592,.118322,.333272,-.154382,.496461,.131133,.344224,-.165015,.50562,.145208,.357733,-.176168,.516719,.16073,.373046,-.187468,.528513,.177807,.38788,-.198488,.537713,.196072,.405133,-.209545,.547999,.21605,.423845,-.220724,.55759,.237484,.443777,-.231518,.566246,.26039,.464824,-.242035,.574326,.284835,.486635,-.251898,.58037,.310518,.51012,-.261304,.58568,.337678,.535301,-.270384,.590197,.366242,.559193,-.27841,.590569,.395873,.583544,-.285325,.588161,.426857,.608834,-.291113,.584249,.459477,.635753,-.294882,.57763,.494734,.664367,-.297088,.569479,.532023,.689688,-.297364,.555064,.569629,.715732,-.295949,.539522,.608124,.741307,-.292259,.521613,.646231,.764949,-.287063,.49969,.684938,.788599,-.28012,.476747,.723548,.81048,-.27153,.45116,.761135,.831372,-.261289,.424101,.798916,.850092,-.249559,.39443,.835952,.867777,-.236348,.363849,.871606,.884632,-.221569,.332477,.907843,.90047,-.20618,.300667,.944187,.914524,-.188771,.266552,.981371,.926892,-.168362,.232349,1.01841,.937951,-.146761,.199359,1.05308,.947236,-.123813,.1675,1.0839,.954367,-.099984,.136166,1.11047,.963907,-.0759278,.103808,1.13414,.976218,-.0511367,.0697061,1.15575,.988772,-.0267415,.0352529,1.17531,.999888,-520778e-9,289926e-9,1.19389,.263546,-883274e-11,.441896,526783e-11,.262352,-221849e-9,.439889,132311e-9,.262325,-886683e-9,.439848,528824e-9,.26228,-.00199476,.439765,.00118975,.262372,-.00354671,.439922,.00211568,.26239,-.00554141,.439941,.00330652,.262412,-.00797888,.439961,.00476346,.262453,-.0108584,.440002,.00648818,.262528,-.0141788,.440085,.0084835,.262615,-.017938,.440166,.0107533,.262744,-.0221346,.440291,.0133044,.262939,-.026762,.440493,.0161445,.263277,-.0317573,.440889,.0192974,.26368,-.0371832,.441338,.0227699,.264106,-.0430371,.441753,.0265698,.264624,-.0493035,.442227,.0307178,.265378,-.0558669,.442985,.0352616,.266253,-.0628718,.443795,.0401968,.267478,-.0701569,.445008,.04559,.269062,-.077845,.446599,.0514539,.270926,-.0857941,.448349,.0578382,.273693,-.0940773,.451221,.0648363,.276746,-.102704,.454097,.0724389,.281693,-.111735,.459517,.0808744,.287335,-.121004,.46531,.0901551,.29448,-.130734,.472605,.100371,.30257,-.140777,.480251,.111644,.312465,-.15111,.489444,.124111,.324856,-.16189,.500919,.137979,.33774,-.172946,.511317,.153163,.35255,-.184152,.522684,.169817,.367786,-.19522,.53248,.187886,.385474,-.20632,.543326,.207634,.404976,-.217744,.554109,.229165,.425203,-.228691,.563395,.252068,.446704,-.239299,.571565,.276471,.468951,-.249348,.577935,.302323,.493487,-.258933,.584309,.329882,.517861,-.268009,.58773,.358525,.543309,-.276238,.589612,.388585,.569704,-.28356,.589294,.419787,.594871,-.289497,.585137,.452114,.622555,-.294452,.580356,.486466,.651167,-.296918,.57185,.523079,.677332,-.297647,.558428,.5611,.703718,-.296321,.542232,.599592,.730262,-.293339,.524541,.639138,.754304,-.288036,.502691,.677978,.778051,-.281018,.479212,.716537,.801557,-.272414,.454071,.75586,.822559,-.262419,.425952,.794477,.843051,-.250702,.397313,.832664,.86232,-.237264,.366534,.869876,.879044,-.222716,.334816,.906973,.896362,-.206827,.303143,.943558,.910342,-.189659,.269699,.979759,.924119,-.171108,.236411,1.01718,.935374,-.149579,.202224,1.05289,.944295,-.126295,.16989,1.08496,.952227,-.101511,.138089,1.11256,.962041,-.0766392,.105053,1.1375,.97528,-.0511967,.070329,1.15983,.988476,-.025463,.0351268,1.17987,.999962,286808e-10,145564e-10,1.19901,.227089,-841413e-11,.404216,472707e-11,.239725,-215083e-9,.426708,120833e-9,.239904,-860718e-9,.427028,483555e-9,.239911,-.00193661,.427039,.00108806,.239914,-.00344276,.42704,.00193457,.239933,-.00537907,.427064,.00302363,.239944,-.00774482,.427065,.00435604,.239993,-.01054,.427122,.00593398,.240052,-.0137626,.427179,.00775987,.240148,-.0174115,.427279,.00983854,.240278,-.021484,.42741,.0121763,.240472,-.0259729,.427618,.0147827,.240839,-.0308131,.428086,.0176837,.241201,-.0360893,.428482,.0208775,.241626,-.0417723,.428907,.0243821,.242207,-.0478337,.42952,.0282228,.24298,-.0542199,.430332,.0324333,.243881,-.0610015,.431222,.0370252,.245123,-.0680874,.432512,.0420535,.24667,-.0755482,.434088,.0475414,.248779,-.0832873,.436323,.0535542,.251665,-.0913546,.439509,.0601716,.255305,-.0998489,.443478,.0674282,.260049,-.108576,.448713,.0754673,.266192,-.117754,.455524,.084339,.273158,-.127294,.4627,.0941683,.282131,-.137311,.472068,.10515,.293332,-.147736,.483565,.117402,.304667,-.158357,.493702,.130824,.317785,-.169274,.504708,.145724,.333245,-.180595,.517107,.16215,.349843,-.191892,.528849,.180149,.367944,-.203168,.540301,.199746,.387579,-.214443,.551514,.221047,.408247,-.225624,.560906,.243981,.43014,-.236422,.56959,.268513,.452669,-.24654,.576098,.294409,.476196,-.256157,.580925,.322002,.501157,-.265289,.584839,.351052,.527632,-.273671,.587614,.3812,.555754,-.281254,.589119,.412994,.581682,-.287448,.585204,.445498,.608196,-.292614,.579006,.479505,.635661,-.296068,.571297,.514643,.664999,-.297395,.560855,.552213,.691039,-.296645,.544525,.591365,.7179,-.293785,.526535,.630883,.744059,-.289089,.50545,.670932,.76863,-.282239,.482514,.710904,.793273,-.273688,.457246,.750259,.814731,-.26328,.428872,.78948,.835603,-.251526,.399384,.828597,.85489,-.238339,.368811,.866892,.872828,-.223607,.336617,.90563,.889462,-.207538,.303997,.943538,.904929,-.190297,.270812,.980591,.919101,-.172034,.237453,1.01935,.930536,-.152058,.204431,1.05498,.941223,-.129515,.172495,1.08717,.94982,-.104263,.140175,1.11551,.960592,-.0781944,.106465,1.14098,.974629,-.051688,.0711592,1.16418,.98811,-.0253929,.0354432,1.18465,1.00004,804378e-9,-330876e-9,1.20462,.214668,-821282e-11,.406619,433582e-11,.218053,-208144e-9,.413025,109887e-9,.217987,-832212e-9,.412901,439362e-9,.217971,-.00187246,.412876,988623e-9,.217968,-.00332855,.41286,.00175772,.217985,-.00520055,.412882,.00274729,.218014,-.00748814,.412916,.00395842,.218054,-.0101901,.412957,.00539274,.218106,-.0133057,.413005,.00705348,.218217,-.0168342,.413139,.00894581,.218338,-.0207707,.413258,.0110754,.21855,-.0251001,.413509,.0134551,.218913,-.0297861,.413992,.0161081,.219265,-.0348956,.414383,.0190307,.219696,-.0403909,.414839,.0222458,.220329,-.0462003,.415567,.025792,.220989,-.0524208,.41621,.0296637,.222027,-.058948,.417385,.0339323,.223301,-.0658208,.418779,.0386055,.224988,-.0730347,.420665,.0437355,.227211,-.0805274,.423198,.0493844,.230131,-.088395,.426566,.0556135,.233908,-.0966208,.43091,.0624829,.239092,-.105223,.437148,.0701636,.245315,-.11424,.444302,.0786949,.253166,-.12368,.453262,.0882382,.262374,-.133569,.463211,.0988682,.273145,-.143836,.474271,.110727,.285512,-.154577,.4863,.123945,.299512,-.165501,.498817,.138581,.314287,-.176698,.510341,.154676,.331083,-.188066,.522583,.172459,.349615,-.199597,.534879,.191979,.369318,-.210843,.546083,.21309,.390377,-.222068,.5562,.235998,.412411,-.233059,.564704,.260518,.435715,-.24357,.572314,.286795,.461196,-.253356,.579395,.314559,.485587,-.262362,.581985,.343581,.511908,-.270895,.584347,.374367,.539798,-.278452,.58505,.406015,.567974,-.284877,.583344,.439168,.594303,-.290124,.577348,.473005,.622951,-.294183,.570751,.508534,.652404,-.296389,.561541,.544764,.679291,-.296605,.546426,.582927,.706437,-.294095,.528599,.622681,.734485,-.28978,.508676,.663567,.758841,-.283363,.484768,.704092,.78537,-.275015,.460434,.745101,.807315,-.264689,.432166,.784712,.8271,-.252597,.401807,.824241,.849191,-.239154,.371458,.863803,.867046,-.224451,.338873,.903063,.8852,-.208342,.306175,.942763,.901771,-.190684,.272759,.981559,.915958,-.172105,.239306,1.02048,.928046,-.152214,.206071,1.05765,.939961,-.130247,.17367,1.08999,.948711,-.10672,.142201,1.11829,.959305,-.0808688,.108454,1.14467,.973009,-.0539145,.0728109,1.16839,.987631,-.0262947,.0360625,1.19004,.999978,.00132758,-559424e-9,1.21058,.193925,-793421e-11,.391974,392537e-11,.196746,-200315e-9,.397675,991033e-10,.19667,-801099e-9,.397521,396342e-9,.196633,-.00180246,.397445,891829e-9,.196654,-.00320443,.397482,.00158582,.196659,-.00500647,.39748,.00247867,.196683,-.0072086,.397506,.00357167,.196728,-.00981001,.397562,.00486675,.196792,-.0128096,.397633,.00636707,.19689,-.0162055,.397746,.00807752,.197017,-.0199943,.397884,.0100052,.19729,-.024139,.39827,.0121691,.197583,-.0286671,.398639,.0145755,.197927,-.0335858,.399034,.0172355,.198383,-.0388806,.399554,.0201718,.199002,-.0444736,.400289,.0234194,.199739,-.0504583,.401111,.026984,.200784,-.056729,.402349,.0309217,.202075,-.0633643,.403841,.0352496,.203898,-.0703247,.406076,.0400313,.206199,-.0775565,.408841,.0453282,.209252,-.085184,.41259,.0511794,.213638,-.0931994,.418288,.0577459,.21881,-.101617,.424681,.0650508,.225642,-.11052,.433429,.0732759,.233717,-.119772,.442897,.0824683,.242823,-.129505,.452888,.0927484,.254772,-.139906,.466407,.104417,.266603,-.150402,.477413,.117211,.28073,-.161395,.490519,.131598,.295399,-.172465,.50201,.147407,.312705,-.183982,.515311,.165031,.331335,-.195532,.52786,.184336,.351037,-.206971,.5392,.205361,.372175,-.218117,.54941,.228043,.394548,-.229327,.558642,.25267,.419598,-.240052,.567861,.279071,.443922,-.249937,.573332,.306882,.471495,-.259407,.58013,.33661,.496769,-.267749,.580564,.367328,.524951,-.275524,.581696,.399753,.55318,-.282148,.579885,.433134,.581577,-.287533,.575471,.467534,.609231,-.291612,.567445,.502943,.637478,-.293911,.557657,.53871,.667795,-.295096,.546535,.576568,.694272,-.294073,.529561,.614929,.722937,-.290386,.510561,.655909,.749682,-.284481,.487846,.697663,.774754,-.276188,.462487,.738515,.799301,-.266215,.43481,.779802,.820762,-.254116,.404879,.820045,.843231,-.240393,.374559,.860294,.861857,-.225503,.341582,.900965,.880815,-.209382,.308778,.941727,.89766,-.19155,.275232,.980916,.912926,-.172346,.240938,1.02162,.926391,-.151799,.207223,1.0597,.938429,-.129968,.17484,1.09291,.947834,-.10651,.142984,1.12248,.958432,-.0824098,.109902,1.149,.972402,-.0565242,.0744454,1.1733,.987191,-.028427,.0373794,1.19538,.999975,385685e-10,-4203e-8,1.21676,.178114,-766075e-11,.385418,354027e-11,.176074,-191966e-9,.381002,887135e-10,.17601,-767549e-9,.380861,354715e-9,.17598,-.00172696,.380798,798168e-9,.175994,-.00307012,.380824,.00141928,.176017,-.00479684,.380858,.00221859,.176019,-.00690648,.380839,.00319714,.176072,-.00939888,.380913,.0043572,.176131,-.0122726,.380979,.005702,.176239,-.0155264,.38112,.00723689,.176371,-.0191551,.381272,.00896907,.176638,-.023117,.381669,.0109194,.176912,-.0274633,.382015,.0130903,.177279,-.032173,.382476,.0154949,.17774,-.0372219,.383041,.0181669,.178344,-.0426132,.38378,.0211209,.179153,-.0483309,.384773,.0243899,.180197,-.0543447,.386076,.0280062,.181581,-.0607122,.387809,.032004,.18344,-.0673855,.390205,.036453,.186139,-.0743989,.393944,.0414162,.189432,-.0817731,.39832,.0469394,.193795,-.0895464,.404188,.0531442,.199641,-.0978264,.4121,.0601374,.206679,-.106499,.421425,.0680078,.214865,-.115654,.431504,.076919,.224406,-.125268,.442526,.0868835,.235876,-.135475,.455465,.0981875,.248335,-.146023,.4681,.110759,.262868,-.157016,.482069,.124885,.278962,-.168245,.496182,.140645,.295082,-.17958,.507401,.157838,.313738,-.191227,.520252,.17695,.333573,-.202718,.531708,.197817,.356433,-.214424,.544509,.220785,.378853,-.225492,.55373,.245306,.402717,-.236236,.561348,.271593,.428375,-.246568,.568538,.299776,.454724,-.255941,.573462,.329433,.482291,-.264511,.576356,.360598,.509706,-.272129,.576446,.393204,.538805,-.278979,.575298,.427227,.568919,-.284528,.572154,.462157,.596804,-.288801,.564691,.497997,.625987,-.291334,.555134,.534467,.656414,-.292722,.545051,.571736,.683916,-.292185,.528813,.610158,.711809,-.290043,.51106,.649061,.739547,-.285246,.490103,.690081,.766914,-.277647,.465523,.732554,.791375,-.267603,.437718,.773982,.814772,-.256109,.40882,.81609,.836691,-.242281,.377823,.856849,.856984,-.227155,.34496,.898363,.876332,-.210395,.311335,.939471,.894988,-.192612,.277703,.980799,.911113,-.173236,.243019,1.02215,.924092,-.152258,.209037,1.06139,.936828,-.129575,.175909,1.09635,.946869,-.10594,.143852,1.12707,.958284,-.081318,.110289,1.15419,.972325,-.0556133,.0747232,1.17909,.986878,-.0297899,.0383149,1.20163,.999936,-.00197169,912402e-9,1.22338,.151174,-720365e-11,.351531,309789e-11,.155594,-18279e-8,.361806,78608e-9,.156099,-731569e-9,.362982,314615e-9,.156053,-.00164578,.362869,707845e-9,.156093,-.0029261,.362961,.00125884,.156099,-.00457155,.362959,.00196783,.15612,-.00658224,.362982,.00283622,.156168,-.00895774,.363048,.00386625,.156221,-.0116962,.363101,.00506109,.156324,-.0147973,.363241,.00642675,.156476,-.0182503,.363448,.00797175,.156731,-.0220266,.36384,.00971484,.156994,-.026176,.364179,.0116575,.157341,-.0306701,.36462,.0138207,.157867,-.0354591,.365364,.0162356,.15846,-.0406141,.366111,.0189092,.159308,-.0460519,.367248,.021885,.160426,-.0518096,.368767,.0252004,.161877,-.0578906,.370745,.0288825,.163995,-.0642812,.373831,.0330139,.16655,-.0710067,.377366,.0376283,.170237,-.0781522,.382799,.0428493,.175096,-.0857172,.389915,.0487324,.181069,-.0938025,.398487,.0554214,.188487,-.102363,.408799,.0630189,.197029,-.111343,.419991,.071634,.206684,-.120812,.431455,.0812797,.218698,-.131033,.445746,.0923651,.230726,-.141373,.457471,.104545,.245516,-.152387,.472388,.118449,.261551,-.163628,.486671,.133923,.277437,-.174814,.49762,.150849,.296662,-.186713,.51162,.169924,.31795,-.198513,.525435,.190848,.339422,-.210119,.536267,.213504,.362143,-.221354,.545982,.237947,.387198,-.23224,.555364,.264427,.412349,-.24257,.561489,.292519,.439274,-.252284,.566903,.322561,.466779,-.261023,.569614,.353952,.496011,-.26899,.571589,.387278,.524964,-.275498,.570325,.421356,.556518,-.281449,.568792,.457314,.584363,-.285526,.560268,.493199,.614214,-.28844,.55205,.530276,.645684,-.289777,.541906,.56855,.673446,-.289722,.526464,.606927,.701924,-.287792,.509872,.645945,.73037,-.284315,.490649,.685564,.757405,-.278804,.467964,.726511,.784025,-.269543,.441468,.768601,.808255,-.258117,.41216,.811321,.830739,-.244728,.380606,.853496,.851914,-.229428,.348111,.895374,.872586,-.212508,.314732,.937674,.891581,-.194025,.280338,.979869,.907641,-.174711,.245203,1.02253,.922233,-.153509,.21077,1.06371,.935878,-.130418,.177399,1.09972,.946338,-.105558,.144507,1.13124,.957265,-.080059,.110508,1.15973,.971668,-.0539766,.0742311,1.18515,.9866,-.0277101,.0375224,1.20858,1.00021,-515531e-9,135226e-9,1.23135,.137468,-686011e-11,.345041,273315e-11,.13703,-173378e-9,.343936,690761e-10,.136986,-693048e-9,.34383,276126e-9,.136964,-.00155931,.343761,621337e-9,.137003,-.00277211,.343863,.00110494,.137012,-.00433103,.343868,.00172744,.137043,-.00623606,.343916,.00249022,.13709,-.0084868,.343986,.00339559,.137145,-.0110814,.344045,.00444687,.137242,-.0140187,.344177,.00565007,.137431,-.0172713,.344491,.00701868,.137644,-.0208605,.344805,.00856042,.13791,-.024792,.345172,.0102863,.138295,-.0290461,.345734,.0122185,.138764,-.0335957,.346371,.0143771,.139415,-.038467,.347298,.0167894,.140272,-.0436176,.348527,.0194895,.141457,-.0491016,.350276,.0225043,.14303,-.0548764,.352646,.0258962,.145289,-.0610096,.356206,.0297168,.148502,-.0674777,.361488,.0340562,.152188,-.074345,.367103,.0389534,.157359,-.0817442,.375247,.0445541,.16379,-.0896334,.385064,.0509535,.171376,-.098005,.396082,.0582611,.179901,-.106817,.407418,.06654,.189892,-.116239,.420031,.075994,.201838,-.12627,.434321,.0867239,.214311,-.136701,.447631,.0987517,.228902,-.147616,.462046,.112353,.245107,-.158871,.476942,.127605,.262292,-.170261,.490285,.144469,.281215,-.182017,.503783,.163282,.301058,-.193729,.515505,.183873,.322752,-.205512,.52682,.206466,.347547,-.217214,.539473,.231194,.370969,-.227966,.546625,.257288,.397533,-.238555,.55472,.285789,.42398,-.248278,.559468,.315746,.452928,-.257422,.564095,.347724,.482121,-.265306,.565426,.380922,.510438,-.272043,.563205,.415639,.541188,-.277614,.561087,.451702,.571667,-.281927,.554922,.48845,.602432,-.285015,.546838,.526442,.634126,-.286512,.537415,.564896,.662816,-.286388,.522906,.604037,.692411,-.284734,.507003,.643795,.720946,-.281297,.488398,.68298,.748293,-.276262,.466353,.723466,.776931,-.269978,.443573,.764565,.801065,-.260305,.415279,.805838,.825843,-.247426,.384773,.849985,.84807,-.232437,.352555,.893174,.869122,-.215806,.318642,.936564,.888963,-.197307,.28381,.980253,.905547,-.177203,.247888,1.02463,.918554,-.155542,.212904,1.06714,.931395,-.131948,.1787,1.10451,.941749,-.106723,.145902,1.13694,.954551,-.0804939,.111193,1.1666,.970279,-.0534239,.0744697,1.19249,.986117,-.0257452,.0368788,1.21665,.999938,.00190634,-.0010291,1.23981,.118493,-647439e-11,.32272,23772e-10,.118765,-163023e-9,.323456,598573e-10,.118772,-65212e-8,.323477,239447e-9,.118843,-.00146741,.323657,538881e-9,.118804,-.00260846,.323553,95826e-8,.118826,-.00407576,.323595,.00149845,.118846,-.00586826,.323617,.00216047,.118886,-.00798578,.32367,.00294679,.118947,-.0104273,.323753,.00386124,.119055,-.0131909,.323922,.00490999,.119241,-.0162444,.324251,.00610804,.11944,-.0196339,.324544,.00745805,.119739,-.0233378,.325026,.00897805,.12011,-.0273179,.325586,.0106895,.120571,-.0316143,.326231,.0126073,.12124,-.0361939,.327264,.0147654,.122162,-.0410511,.328733,.0172001,.123378,-.0462233,.330659,.0199375,.125183,-.0517109,.333754,.0230498,.127832,-.0575652,.338507,.026597,.130909,-.0637441,.343666,.0306345,.135221,-.0704302,.351063,.035273,.14082,-.0776364,.360604,.0406137,.146781,-.0852293,.369638,.0466788,.155121,-.0935351,.3827,.0537628,.16398,-.102234,.39522,.0617985,.173926,-.111465,.40793,.07097,.185137,-.121296,.42105,.0813426,.19826,-.13169,.435735,.0931596,.212938,-.142614,.450932,.106547,.229046,-.153884,.465726,.121575,.246246,-.165382,.479461,.138286,.264637,-.176806,.492106,.15666,.284959,-.188793,.504774,.17728,.308157,-.200763,.518805,.19988,.330951,-.21239,.528231,.224293,.3549,-.223521,.536376,.250541,.381502,-.234169,.544846,.278902,.409529,-.244077,.551717,.309227,.437523,-.253363,.55517,.341426,.467624,-.261659,.557772,.37518,.497268,-.268498,.556442,.41007,.528294,-.274018,.553915,.446445,.559053,-.278169,.549153,.483779,.589329,-.281229,.539878,.522249,.622503,-.282902,.53162,.561754,.652382,-.282815,.518119,.601544,.681847,-.281247,.502187,.641574,.712285,-.277986,.484824,.682633,.740094,-.273017,.463483,.723426,.768478,-.266692,.441299,.763747,.794556,-.258358,.415238,.805565,.819408,-.248807,.386912,.847254,.843411,-.236214,.356165,.891091,.862397,-.219794,.320562,.936174,.883113,-.201768,.285322,.982562,.90023,-.181672,.249713,1.02862,.915192,-.159279,.214546,1.07163,.928458,-.134725,.180285,1.10995,.94069,-.10913,.147119,1.14354,.953409,-.0821315,.112492,1.17372,.969537,-.0542677,.0752014,1.20043,.985612,-.0259096,.0370361,1.22528,.999835,.00298198,-.00151801,1.24959,.10097,-602574e-11,.300277,202619e-11,.101577,-152164e-9,.302077,511662e-10,.101572,-608889e-9,.302066,204751e-9,.101566,-.00136997,.302047,460753e-9,.101592,-.00243557,.302114,819497e-9,.101608,-.0038053,.30214,.00128154,.101627,-.00547906,.30216,.0018483,.101669,-.00745647,.302224,.00252223,.101732,-.00973615,.302318,.00330716,.101844,-.0123097,.302513,.00421061,.102025,-.0151681,.30285,.00524481,.102224,-.0183334,.303166,.0064154,.102515,-.0217819,.303654,.00774063,.102886,-.0255067,.304243,.0092398,.103395,-.029514,.305089,.0109339,.104109,-.0337912,.306301,.0128561,.105074,-.0383565,.30798,.0150338,.10654,-.0432132,.310726,.0175228,.108478,-.0484244,.314351,.0203648,.111015,-.0539339,.319032,.0236325,.114682,-.0598885,.32605,.0274188,.11911,-.0663375,.334109,.0317905,.124736,-.0733011,.344013,.0368502,.131479,-.0807744,.355358,.0427104,.139283,-.0888204,.367614,.0494788,.148054,-.0973394,.380072,.0572367,.159037,-.10665,.395678,.0662704,.169794,-.116221,.40795,.0763192,.18314,-.126632,.423546,.087956,.197515,-.137383,.438213,.101042,.213514,-.148641,.453248,.115827,.23065,-.160117,.46688,.132283,.249148,-.171807,.479962,.150644,.270219,-.183695,.494618,.171073,.292338,-.195574,.506937,.193378,.314999,-.207205,.516463,.217585,.340991,-.218955,.528123,.24428,.367982,-.229917,.537025,.272784,.39432,-.239737,.541627,.302742,.423364,-.249048,.546466,.335112,.453751,-.257329,.549466,.369032,.48416,-.264623,.549503,.404577,.515262,-.270411,.547008,.441337,.547036,-.274581,.542249,.479162,.576614,-.277266,.533015,.517904,.611143,-.279144,.525512,.558508,.640989,-.279001,.51154,.598995,.671182,-.277324,.495641,.639935,.700848,-.273908,.477526,.681017,.729862,-.269063,.457955,.722764,.758273,-.262282,.434846,.764349,.784121,-.254281,.409203,.806206,.809798,-.24505,.382694,.848617,.834953,-.233861,.354034,.892445,.856817,-.221308,.321764,.936263,.877609,-.205996,.288118,.982401,.897489,-.186702,.253277,1.02975,.913792,-.164618,.217963,1.07488,.92785,-.140023,.183221,1.11487,.940378,-.11328,.149385,1.14947,.95273,-.0853958,.114152,1.1807,.969059,-.0568698,.0769845,1.20912,.985574,-.0276502,.0381186,1.23498,.999943,.00239052,-.00126861,1.25987,.0852715,-560067e-11,.279021,171162e-11,.0854143,-140871e-9,.279483,430516e-10,.0854191,-563385e-9,.2795,172184e-9,.0854188,-.00126753,.279493,387464e-9,.0854229,-.00225337,.279501,68918e-8,.0854443,-.00352086,.279549,.00107803,.0854697,-.00506962,.279591,.00155536,.0855093,-.00689873,.279652,.00212354,.0855724,-.00900821,.279752,.00278703,.0856991,-.0113799,.280011,.0035551,.085855,-.0140314,.280297,.00443449,.0860682,-.016963,.280682,.00543636,.086344,-.0201438,.281159,.0065788,.0867426,-.0235999,.281886,.00787977,.087239,-.0273069,.282745,.0093606,.0879815,-.031269,.284139,.011056,.0891258,-.035531,.28647,.0130065,.0906909,-.0400947,.289708,.0152495,.0927624,-.0449638,.293904,.0178454,.0958376,-.0502427,.300471,.0208915,.0995827,-.0559514,.30806,.0244247,.104526,-.0622152,.317874,.0285721,.110532,-.0690046,.329332,.0334227,.117385,-.0763068,.341217,.0390466,.12522,-.084184,.353968,.0455786,.134037,-.0925248,.366797,.0530773,.144014,-.101487,.380209,.0617424,.156013,-.111273,.395956,.071777,.168872,-.121431,.41053,.0830905,.183089,-.132105,.425073,.0959341,.198763,-.143286,.439833,.110448,.216159,-.154841,.454507,.126769,.234859,-.166588,.468368,.14495,.255879,-.178626,.482846,.165233,.27677,-.190218,.493489,.187217,.301184,-.202227,.506549,.211659,.325852,-.213764,.5158,.237922,.352824,-.22487,.525442,.26632,.380882,-.235246,.532487,.296691,.410137,-.244847,.537703,.329179,.439787,-.253122,.540361,.363135,.472291,-.260517,.542734,.399222,.501856,-.266519,.538826,.436352,.534816,-.270905,.535152,.474505,.565069,-.273826,.525979,.513988,.597154,-.275333,.516394,.554852,.630473,-.275314,.506206,.596592,.660574,-.273323,.489769,.638117,.692015,-.270008,.472578,.680457,.720647,-.265001,.452134,.723008,.750528,-.258311,.430344,.765954,.777568,-.250046,.405624,.809012,.80387,-.240114,.378339,.852425,.828439,-.228737,.349877,.895346,.851472,-.216632,.318968,.940695,.873906,-.202782,.287489,.987235,.89467,-.187059,.254394,1.03348,.912281,-.168818,.221294,1.07812,.927358,-.146494,.18675,1.11928,.940385,-.120009,.152322,1.15609,.952672,-.0917183,.117514,1.18875,.968496,-.0620321,.0797405,1.21821,.985236,-.0314945,.0402383,1.24523,.99998,-575153e-9,110644e-9,1.27133,.0702429,-512222e-11,.255273,140947e-11,.0702981,-128826e-9,.255469,354488e-10,.0703691,-515562e-9,.255727,141874e-9,.0703805,-.00116,.255754,31929e-8,.0703961,-.00206224,.255813,567999e-9,.0704102,-.00322223,.255839,88871e-8,.0704298,-.00463928,.255863,.00128272,.0704759,-.00631375,.255953,.00175283,.0705434,-.00824317,.256079,.00230342,.0706693,-.010412,.25636,.0029443,.0708189,-.0128439,.256647,.00368031,.0710364,-.0155177,.257084,.00452614,.0713223,-.0184374,.257637,.00549706,.0717182,-.0216002,.258416,.00661246,.072321,-.0249966,.259699,.00790147,.0731446,-.0286566,.261475,.0093884,.0743352,-.0325888,.264132,.0111186,.0760676,-.036843,.26815,.013145,.078454,-.0414292,.273636,.0155251,.0818618,-.0464634,.281653,.0183525,.0857382,-.0519478,.289992,.0216642,.0908131,-.0579836,.30066,.0255956,.0967512,-.0645124,.312204,.0301954,.103717,-.0716505,.325001,.0356017,.111596,-.0793232,.338129,.041896,.120933,-.087645,.352853,.0492447,.130787,-.096492,.366192,.0576749,.142311,-.105973,.380864,.0673969,.155344,-.116182,.396575,.0785899,.169535,-.126815,.411443,.0912377,.185173,-.138015,.426256,.105607,.201755,-.149325,.439607,.121551,.221334,-.161207,.455467,.139608,.241461,-.173162,.469096,.159591,.26294,-.18504,.481014,.18156,.286776,-.196881,.493291,.205781,.311596,-.208311,.503556,.231819,.338667,-.219671,.513268,.260274,.366021,-.230451,.519414,.290862,.395875,-.240131,.526766,.323196,.425564,-.248566,.52905,.357071,.457094,-.256195,.530796,.393262,.488286,-.262331,.528703,.430797,.522291,-.267141,.52727,.470231,.554172,-.270411,.519848,.510477,.586427,-.271986,.510307,.551594,.619638,-.27192,.499158,.593849,.650656,-.269817,.483852,.636314,.68284,-.266267,.467515,.679679,.714356,-.26113,.44931,.723884,.742717,-.254067,.425789,.767245,.770894,-.245652,.401144,.811819,.797358,-.235554,.374224,.856315,.823377,-.223896,.346167,.901077,.847456,-.210865,.316056,.946502,.870697,-.196574,.284503,.993711,.891068,-.180814,.251628,1.04134,.909267,-.163314,.219065,1.08609,.925653,-.143304,.186446,1.12702,.940017,-.121322,.153416,1.16371,.952398,-.0973872,.120334,1.19712,.967568,-.0698785,.08352,1.22791,.984772,-.0390031,.0439209,1.25672,1.00026,-.0070087,.00315668,1.28428,.0556653,-459654e-11,.227325,112556e-11,.0565238,-116382e-9,.230826,284985e-10,.0565717,-465666e-9,.231026,114036e-9,.0565859,-.00104773,.231079,256656e-9,.0565761,-.00186255,.231025,45663e-8,.0565913,-.00291002,.231058,714664e-9,.0566108,-.00418998,.231085,.00103224,.0566532,-.00570206,.231169,.00141202,.0567473,-.00743666,.231417,.00186018,.0568567,-.00940298,.231661,.00238264,.0569859,-.0115991,.231895,.00298699,.0572221,-.0140096,.232456,.00368957,.057519,-.0166508,.233096,.00450303,.0579534,-.01951,.234094,.00544945,.0585922,-.0225991,.235629,.00655564,.0595647,-.0259416,.238106,.00785724,.0609109,-.0295661,.241557,.00939127,.0628751,-.0335126,.246652,.0112198,.0656908,-.0378604,.254091,.0134168,.0691347,-.0426543,.262666,.0160374,.0732165,-.0478967,.272029,.0191514,.0782863,-.0536716,.283007,.0228597,.0843973,-.0600683,.295732,.0272829,.0913598,-.0670095,.308779,.032484,.0994407,-.0745516,.322886,.0385886,.108189,-.082712,.336408,.0457133,.118574,-.0914927,.351692,.0539832,.129989,-.100854,.366502,.0635162,.142722,-.110837,.381675,.0744386,.156654,-.121353,.3963,.0868483,.172151,-.132414,.411477,.100963,.188712,-.143809,.42508,.116795,.208093,-.155765,.441328,.134715,.227936,-.167608,.454328,.154396,.249495,-.179579,.467235,.176179,.27362,-.191488,.480248,.200193,.296371,-.202618,.487886,.225775,.324234,-.214133,.499632,.25441,.353049,-.225212,.509532,.285077,.381785,-.234875,.514265,.317047,.414038,-.244205,.521282,.351874,.445251,-.252145,.522931,.388279,.476819,-.258433,.520947,.425825,.509209,-.263411,.517669,.465104,.542759,-.266732,.512841,.505741,.574822,-.268263,.503317,.547611,.609324,-.268489,.493035,.590953,.641772,-.266941,.478816,.63488,.674049,-.263297,.462863,.679072,.705071,-.257618,.442931,.723487,.734709,-.250625,.421299,.768708,.763704,-.24179,.397085,.814375,.791818,-.231115,.370577,.859907,.817439,-.21922,.34232,.906715,.843202,-.205658,.312627,.953943,.866639,-.190563,.280933,1.00185,.888129,-.173978,.248393,1.05105,.907239,-.155485,.216007,1.09704,.923893,-.134782,.183233,1.13857,.938882,-.11249,.150376,1.17539,.952464,-.0890706,.117177,1.20924,.968529,-.0646523,.0813095,1.24055,.984763,-.038606,.0439378,1.27018,1.00053,-.01238,.00598668,1.29873,.0437928,-409594e-11,.204012,879224e-12,.0440166,-103395e-9,.205049,221946e-10,.0440529,-413633e-9,.205225,887981e-10,.0440493,-930594e-9,.2052,199858e-9,.0439884,-.00165352,.204901,355495e-9,.0440716,-.0025849,.205255,556983e-9,.0440968,-.00372222,.205311,805326e-9,.0441359,-.00506478,.205391,.00110333,.0442231,-.00660384,.205638,.00145768,.0443254,-.00835246,.205877,.00187275,.0444832,-.0102992,.20627,.00235938,.0447001,-.0124449,.206796,.0029299,.0450168,-.0147935,.207593,.0036005,.0454816,-.017336,.208819,.00439246,.0462446,-.0201156,.211036,.00533864,.0473694,-.0231568,.214388,.00646984,.0490191,-.0264941,.219357,.00783856,.0512776,-.030184,.226061,.00950182,.0541279,-.0342661,.234094,.0115156,.0578989,-.0388539,.244297,.0139687,.0620835,-.0438735,.254457,.0169015,.0673497,-.04951,.266706,.0204554,.0731759,-.0556263,.278753,.0246606,.0803937,-.0624585,.29309,.0297126,.0879287,-.0697556,.305856,.0355868,.0970669,-.0778795,.321059,.0425768,.106508,-.0863541,.333873,.05056,.11776,-.0955935,.349008,.0598972,.130081,-.105438,.363776,.0706314,.144454,-.115899,.380112,.0828822,.1596,-.126827,.394843,.0967611,.176097,-.138161,.409033,.112381,.194726,-.149904,.424257,.129952,.213944,-.161675,.436945,.149333,.235516,-.173659,.450176,.170892,.260564,-.185963,.466305,.194984,.285183,-.197582,.477328,.220805,.311095,-.208697,.486566,.248694,.338924,-.219519,.494811,.279015,.369757,-.229766,.504065,.311725,.3996,-.238879,.507909,.345844,.430484,-.246802,.509805,.381749,.46413,-.253924,.511436,.420251,.497077,-.259319,.508787,.459957,.530434,-.263297,.50394,.501356,.565725,-.265619,.49804,.544252,.599254,-.265842,.487346,.587856,.631251,-.263978,.472975,.631969,.663972,-.26043,.457135,.677471,.697724,-.255358,.439844,.723744,.727725,-.248308,.417872,.770653,.756417,-.239181,.39273,.817357,.785419,-.22814,.367839,.864221,.81266,-.215681,.339449,.912701,.839391,-.201623,.309279,.962419,.86366,-.185624,.278029,1.0122,.885028,-.16797,.245294,1.06186,.904639,-.148336,.212689,1.10934,.922048,-.12637,.179616,1.15063,.936952,-.102928,.146749,1.18885,.951895,-.0785268,.112733,1.22352,.967198,-.0530153,.0760056,1.25681,.984405,-.02649,.0383183,1.28762,1.00021,70019e-8,-20039e-8,1.31656,.0325964,-355447e-11,.176706,655682e-12,.0329333,-899174e-10,.178527,165869e-10,.0329181,-359637e-9,.178453,663498e-10,.0329085,-808991e-9,.178383,149332e-9,.0329181,-.00143826,.178394,265873e-9,.0329425,-.00224678,.178517,416597e-9,.0329511,-.00323575,.17849,603299e-9,.033011,-.00439875,.178695,829422e-9,.0330733,-.00574059,.178843,.00109908,.0331857,-.00725896,.179176,.00141933,.0333445,-.00895289,.179618,.0017999,.0335674,-.0108219,.180238,.00225316,.033939,-.0128687,.181417,.00279765,.0345239,-.015114,.183395,.0034564,.0354458,-.017596,.186616,.00425864,.0368313,-.0203524,.191547,.00524936,.0386115,-.0234105,.197508,.00647033,.0410303,-.0268509,.205395,.00798121,.0442245,-.0307481,.215365,.0098557,.0478659,-.0350863,.225595,.0121417,.0522416,-.0399506,.236946,.0149385,.0574513,-.045357,.249442,.0183189,.0631208,-.0512863,.261222,.0223644,.0701124,-.0579273,.275418,.0272418,.0777331,-.0650652,.288989,.0329458,.0862709,-.0728813,.302546,.0396819,.096103,-.081363,.317164,.04757,.106976,-.0904463,.331733,.0567012,.119175,-.100105,.34661,.067202,.132919,-.110375,.362249,.0792588,.147727,-.121115,.376978,.0928672,.163618,-.132299,.390681,.108228,.182234,-.143887,.406571,.125502,.201809,-.155827,.42042,.144836,.225041,-.168357,.438411,.166706,.247621,-.18004,.450368,.189909,.27097,-.191536,.460083,.215251,.296658,-.203024,.469765,.243164,.325892,-.214056,.481837,.273388,.35406,-.224104,.487474,.305344,.384372,-.233489,.492773,.339741,.41749,-.241874,.498451,.376287,.45013,-.248834,.499632,.414195,.481285,-.254658,.495233,.454077,.519183,-.259367,.496401,.496352,.551544,-.261818,.487686,.538798,.587349,-.262964,.479453,.583626,.621679,-.262128,.467709,.629451,.654991,-.258998,.452123,.67566,.686873,-.254119,.433495,.723248,.719801,-.246946,.413657,.771156,.750355,-.237709,.390366,.81989,.780033,-.226549,.364947,.868601,.809254,-.214186,.337256,.920034,.836576,-.199639,.307395,.971706,.861774,-.183169,.275431,1.02479,.885707,-.165111,.243431,1.07837,.904742,-.144363,.210921,1.12783,.915604,-.121305,.17647,1.17254,.930959,-.0962119,.143106,1.21012,.948404,-.069969,.108112,1.24474,.967012,-.0427586,.0708478,1.27718,.984183,-.0147043,.032335,1.3083,.999577,.0142165,-.00726867,1.3382,.0229227,-299799e-11,.148623,462391e-12,.0232194,-758796e-10,.15054,117033e-10,.0232315,-303636e-9,.15063,468397e-10,.0232354,-683189e-9,.150624,105472e-9,.0232092,-.0012136,.150445,187744e-9,.0232523,-.00189765,.150679,294847e-9,.0232828,-.00273247,.150789,428013e-9,.0233371,-.00371287,.150995,591134e-9,.0234015,-.00484794,.15118,787642e-9,.023514,-.00612877,.151562,.00102547,.023679,-.00756125,.152116,.00131351,.0239559,-.00914651,.153162,.00166594,.0244334,-.010904,.155133,.00210182,.025139,-.0128615,.158035,.00264406,.0262598,-.0150628,.162751,.00332923,.0277875,-.0175532,.168944,.00419773,.0298472,-.0203981,.176835,.00530034,.0325444,-.023655,.186686,.00669777,.0355581,-.0272982,.196248,.00842661,.0392841,-.0314457,.207352,.0105854,.0436815,-.0361157,.219279,.0132458,.0485272,-.0412932,.230728,.0164736,.0541574,-.0470337,.242994,.0203715,.0609479,-.0535002,.257042,.0250953,.0685228,-.0605409,.27102,.0306856,.0768042,-.0680553,.28406,.037193,.0864844,-.0765011,.299186,.0449795,.0969415,-.0852674,.3132,.0538316,.108478,-.0947333,.327138,.0641149,.121705,-.10481,.342345,.0759185,.136743,-.115474,.358472,.0894116,.152986,-.126536,.374067,.104562,.170397,-.138061,.388267,.121632,.191392,-.150203,.406467,.140996,.211566,-.161751,.418641,.161696,.233567,-.173407,.430418,.184557,.257769,-.185397,.44277,.210092,.28531,-.197048,.457191,.237827,.311726,-.20784,.464712,.267253,.340537,-.218345,.472539,.299332,.372921,-.228306,.482331,.333988,.402924,-.236665,.484378,.369722,.434475,-.244097,.484717,.407836,.469736,-.250547,.487093,.448465,.505045,-.25511,.485575,.490263,.540262,-.258444,.481225,.534495,.576347,-.259903,.473481,.579451,.608656,-.259572,.4603,.625604,.646679,-.257908,.450341,.674511,.679902,-.253663,.431561,.723269,.714159,-.247419,.412684,.773263,.745345,-.239122,.389388,.824182,.778248,-.228837,.365361,.876634,.807208,-.216197,.337667,.92945,.835019,-.201772,.307197,.985261,.860261,-.185291,.274205,1.04299,.877601,-.165809,.240178,1.09816,.898211,-.143897,.207571,1.14694,.915789,-.119513,.174904,1.19008,.931831,-.0932919,.141423,1.2297,.949244,-.0656528,.105603,1.26553,.967527,-.0370262,.0679551,1.29986,.984139,-.00730117,.0283133,1.33252,.999713,.0234648,-.0121785,1.36397,.0152135,-245447e-11,.122795,304092e-12,.0151652,-615778e-10,.122399,76292e-10,.0151181,-245948e-9,.122023,304802e-10,.0151203,-553394e-9,.12203,686634e-10,.015125,-983841e-9,.122037,122463e-9,.0151427,-.00153774,.12214,192706e-9,.0151708,-.0022103,.122237,281219e-9,.0152115,-.00300741,.12238,390804e-9,.0152877,-.00392494,.1227,526317e-9,.015412,-.00496597,.123244,69443e-8,.0156201,-.00613314,.124228,90547e-8,.0159658,-.00744113,.125945,.0011732,.0165674,-.00892546,.129098,.00151888,.017487,-.010627,.133865,.00197007,.018839,-.0126043,.140682,.0025637,.020554,-.0148814,.148534,.00333637,.0226727,-.0175123,.157381,.00433738,.0251879,-.0205266,.166685,.00561664,.0283635,-.0240319,.177796,.00725563,.0318694,-.0279432,.188251,.00928811,.0361044,-.0324313,.200038,.011835,.0406656,-.0373527,.210685,.0149146,.0463846,-.0430132,.224182,.0187254,.0525696,-.0491013,.23634,.0232283,.0598083,-.0559175,.250013,.0286521,.0679437,-.0633657,.263981,.0350634,.0771181,-.0714602,.278072,.0425882,.0881273,-.0803502,.29511,.0514487,.0996628,-.0896903,.309976,.0615766,.112702,-.099644,.325611,.0732139,.126488,-.109829,.339321,.0862324,.142625,-.120859,.35574,.101275,.15953,-.131956,.369845,.117892,.176991,-.143145,.38146,.136205,.199715,-.155292,.40052,.157252,.220787,-.167066,.412055,.179966,.243697,-.178396,.423133,.204418,.272106,-.190433,.439524,.232141,.297637,-.201265,.447041,.261109,.325273,-.211834,.454488,.292627,.357219,-.221889,.465004,.326669,.387362,-.230729,.468527,.362426,.423131,-.23924,.475836,.401533,.45543,-.246067,.475017,.441902,.493393,-.251557,.478017,.484239,.526253,-.255571,.4709,.528586,.560554,-.257752,.463167,.574346,.599306,-.258076,.456452,.621655,.634541,-.256471,.443725,.670492,.668907,-.253283,.428719,.721943,.705619,-.247562,.411348,.772477,.739034,-.240626,.388939,.8264,.771408,-.231493,.36425,.881702,.803312,-.220125,.337321,.9385,.828457,-.206645,.305364,.997437,.854819,-.190664,.273715,1.05693,.878666,-.171429,.242218,1.11251,.898404,-.149235,.209556,1.16398,.917416,-.12435,.176863,1.21014,.933133,-.0972703,.142775,1.25178,.95066,-.0683607,.106735,1.29028,.968589,-.0378724,.0681609,1.32703,.984776,-.00605712,.0273966,1.36158,.99994,.0263276,-.0138124,1.3943,.00867437,-186005e-11,.0928979,173682e-12,.00864003,-466389e-10,.0925237,435505e-11,.00864593,-186594e-9,.0925806,174322e-10,.00864095,-419639e-9,.0924903,392862e-10,.00863851,-746272e-9,.0924589,702598e-10,.00868531,-.00116456,.0929,111188e-9,.00869667,-.00167711,.0928529,163867e-9,.00874332,-.00228051,.0930914,23104e-8,.00882709,-.00297864,.0935679,31741e-8,.00898874,-.00377557,.0946165,430186e-9,.00929346,-.00469247,.0967406,580383e-9,.00978271,-.00575491,.100084,783529e-9,.0105746,-.00701514,.105447,.00106304,.0116949,-.00851797,.112494,.00144685,.0130419,-.0102757,.119876,.00196439,.0148375,-.012381,.129034,.00266433,.0168725,-.01482,.137812,.00358364,.0193689,-.0176563,.147696,.00478132,.0222691,-.0209211,.157795,.00631721,.0256891,-.0246655,.168431,.00826346,.0294686,-.0288597,.178587,.0106714,.0340412,-.0336441,.190251,.0136629,.0393918,-.039033,.202999,.0173272,.0453947,-.0450087,.215655,.0217448,.0521936,-.0515461,.228686,.0269941,.0600279,-.058817,.242838,.033272,.0692398,-.0667228,.258145,.0406457,.0793832,-.0752401,.273565,.0492239,.0902297,-.0841851,.287735,.0590105,.102014,-.0936479,.301161,.0702021,.116054,-.103967,.317438,.0832001,.13191,-.114622,.334166,.0977951,.148239,-.125452,.348192,.113985,.165809,-.136453,.361094,.131928,.184616,-.147648,.373534,.151811,.207491,-.159607,.39101,.174476,.230106,-.171119,.402504,.198798,.257036,-.182906,.418032,.225796,.281172,-.193605,.425468,.254027,.312034,-.204771,.440379,.285713,.340402,-.214988,.445406,.319196,.370231,-.224711,.44968,.35537,.407105,-.233516,.460747,.393838,.439037,-.240801,.460624,.433747,.47781,-.24762,.465957,.477234,.510655,-.251823,.460054,.52044,.550584,-.255552,.459172,.567853,.585872,-.257036,.450311,.615943,.620466,-.257535,.437763,.667693,.660496,-.255248,.426639,.718988,.695578,-.251141,.409185,.772503,.732176,-.244718,.39015,.827023,.760782,-.236782,.362594,.885651,.79422,-.225923,.33711,.943756,.824521,-.213855,.308272,1.00874,.854964,-.197723,.278529,1.06764,.878065,-.179209,.246208,1.12836,.899834,-.157569,.21329,1.18318,.918815,-.133206,.181038,1.23161,.934934,-.106545,.146993,1.27644,.952115,-.0780574,.111175,1.31842,.96906,-.0478279,.0728553,1.35839,.985178,-.0160014,.032579,1.39697,1.00039,.0173126,-.0095256,1.43312,.00384146,-124311e-11,.0613583,778271e-13,.00390023,-314043e-10,.0622919,196626e-11,.00389971,-125622e-9,.0622632,787379e-11,.00389491,-282352e-9,.0620659,1778e-8,.00391618,-502512e-9,.0624687,320918e-10,.00392662,-784458e-9,.0625113,515573e-10,.00396053,-.00112907,.0628175,778668e-10,.00401911,-.00153821,.0633286,113811e-9,.00414994,-.0020208,.0646443,16445e-8,.00441223,-.00260007,.0673886,237734e-9,.00484427,-.0033097,.0716528,345929e-9,.00549109,-.00418966,.0774998,505987e-9,.00636293,-.00527331,.0844758,739208e-9,.00746566,-.00660428,.0921325,.00107347,.00876625,-.00818826,.0997067,.00153691,.0103125,-.0100811,.107433,.00217153,.0123309,-.0123643,.117088,.00303427,.0146274,-.0150007,.126438,.00416018,.0172295,-.0180531,.135672,.00561513,.0204248,-.0215962,.146244,.007478,.0241597,-.0256234,.157481,.00981046,.0284693,-.0302209,.169125,.0127148,.033445,-.0353333,.181659,.0162453,.0391251,-.0410845,.1944,.0205417,.0454721,-.0473451,.207082,.0256333,.0530983,-.0542858,.221656,.0317036,.0615356,-.0618384,.236036,.0388319,.0703363,-.0697631,.248398,.046974,.0810391,-.0784757,.263611,.0565246,.0920144,-.0873488,.275857,.0671724,.105584,-.0973652,.292555,.0798105,.119506,-.107271,.306333,.0935945,.134434,-.117608,.318888,.109106,.153399,-.128938,.337552,.127074,.171258,-.139944,.349955,.14643,.191059,-.151288,.361545,.168,.215069,-.163018,.378421,.192082,.237838,-.174226,.38879,.217838,.266965,-.186063,.405857,.246931,.292827,-.196909,.414146,.277505,.324352,-.207473,.426955,.310711,.354427,-.217713,.433429,.346794,.389854,-.227183,.443966,.385237,.420749,-.235131,.44471,.424955,.459597,-.242786,.451729,.468446,.495316,-.248767,.45072,.513422,.534903,-.253351,.450924,.560618,.572369,-.256277,.445266,.609677,.612383,-.2576,.438798,.660995,.644037,-.256931,.421693,.713807,.686749,-.254036,.4109,.767616,.719814,-.249785,.390151,.82533,.754719,-.244283,.367847,.888311,.792022,-.235076,.345013,.948177,.822404,-.225061,.316193,1.01661,.853084,-.211113,.287013,1.08075,.879871,-.19449,.255424,1.14501,.901655,-.174023,.222879,1.20203,.919957,-.1509,.18989,1.25698,.938412,-.124923,.15606,1.30588,.953471,-.0968139,.120512,1.3529,.970451,-.066734,.0828515,1.3986,.985522,-.034734,.0424458,1.44148,1.00099,-.00102222,678929e-9,1.48398,965494e-9,-627338e-12,.0306409,197672e-13,99168e-8,-158573e-10,.0314638,499803e-12,991068e-9,-634012e-10,.031363,200682e-11,974567e-9,-14144e-8,.03036,457312e-11,998079e-9,-252812e-9,.031496,860131e-11,.00102243,-396506e-9,.0319955,148288e-10,.00107877,-577593e-9,.0331376,249141e-10,.00121622,-816816e-9,.0359396,423011e-10,.0014455,-.00113761,.0399652,724613e-10,.00178791,-.00156959,.0450556,123929e-9,.00225668,-.00214064,.0508025,208531e-9,.00285627,-.00287655,.0568443,341969e-9,.0035991,-.00380271,.0630892,544158e-9,.00455524,-.00496264,.0702204,842423e-9,.00569143,-.0063793,.0773426,.00126704,.00716928,-.00813531,.0860839,.00186642,.00885307,-.0101946,.0944079,.00267014,.0109316,-.0126386,.103951,.00374033,.0133704,-.0154876,.113786,.0051304,.0161525,-.0187317,.123477,.00688858,.0194267,-.0224652,.133986,.00910557,.0230967,-.0265976,.143979,.0118074,.0273627,-.0312848,.154645,.0151266,.0323898,-.0365949,.166765,.0191791,.0379225,-.0422914,.177932,.0239236,.0447501,-.0487469,.19167,.0296568,.0519391,-.0556398,.203224,.0362924,.0599464,-.0631646,.215652,.0440585,.0702427,-.0714308,.232089,.0531619,.0806902,-.0800605,.245258,.0634564,.0923194,-.0892815,.258609,.0752481,.106938,-.09931,.276654,.0888914,.121238,-.109575,.289847,.104055,.138817,-.120461,.307566,.121266,.15595,-.131209,.320117,.139944,.178418,-.143049,.339677,.161591,.197875,-.154074,.349886,.184303,.224368,-.166307,.369352,.210669,.252213,-.178051,.386242,.238895,.277321,-.189335,.395294,.269182,.310332,-.200683,.412148,.302508,.338809,-.210856,.418266,.337264,.372678,-.220655,.428723,.374881,.405632,-.230053,.433887,.415656,.442293,-.237993,.439911,.457982,.477256,-.244897,.440175,.502831,.515592,-.250657,.441079,.550277,.550969,-.255459,.435219,.601102,.592883,-.257696,.432882,.651785,.629092,-.259894,.421054,.708961,.672033,-.258592,.41177,.763806,.709147,-.256525,.395267,.824249,.745367,-.254677,.375013,.8951,.784715,-.247892,.353906,.959317,.818107,-.240162,.327801,1.03153,.847895,-.229741,.298821,1.10601,.879603,-.213084,.269115,1.164,.902605,-.195242,.236606,1.22854,.922788,-.174505,.203442,1.29017,.944831,-.150169,.169594,1.34157,.959656,-.124099,.135909,1.3956,.972399,-.0960626,.0990563,1.45128,.986549,-.0657097,.0602348,1.50312,1.00013,-.0333558,.0186694,1.55364,619747e-11,-1e-7,.00778326,796756e-16,237499e-13,-999999e-13,282592e-10,114596e-15,100292e-11,-166369e-11,250354e-9,677492e-14,350752e-11,-637769e-11,357289e-9,631655e-13,826445e-11,-174689e-10,516179e-9,31851e-11,242481e-10,-450868e-10,.0010223,130577e-11,455631e-10,-89044e-9,.00144302,374587e-11,971222e-10,-178311e-9,.00241912,102584e-10,171403e-9,-313976e-9,.00354938,236481e-10,292747e-9,-520026e-9,.00513765,496014e-10,789827e-9,-.00118187,.0238621,139056e-9,.00114093,-.00171827,.0286691,244093e-9,.00176119,-.00249667,.0368565,420623e-9,.0022233,-.00333742,.0400469,65673e-8,.00343382,-.00481976,.0535751,.00109323,.00427602,-.00600755,.057099,.00155268,.00461435,-.00737637,.0551084,.00215031,.00695698,-.00971401,.0715767,.00316529,.00867619,-.0120943,.0793314,.00436995,.0106694,-.0148202,.0869391,.0058959,.0140351,-.0183501,.101572,.00798757,.0168939,-.022006,.11018,.0104233,.020197,-.0261568,.119041,.0134167,.0254702,-.0312778,.135404,.0173009,.0298384,-.0362469,.1437,.0215428,.035159,-.042237,.15512,.0268882,.0427685,-.0488711,.17128,.033235,.0494848,-.0557997,.181813,.0404443,.0592394,-.0635578,.198745,.0490043,.0681463,-.071838,.210497,.0588239,.0804753,-.0809297,.228864,.0702835,.0942205,-.0906488,.247008,.0834012,.106777,-.100216,.258812,.0975952,.124471,-.110827,.278617,.114162,.138389,-.121193,.287049,.131983,.159543,-.13253,.307151,.152541,.176432,-.143611,.31564,.174673,.201723,-.15548,.33538,.199842,.229721,-.167166,.355256,.227097,.250206,-.178238,.360047,.256014,.282118,-.189905,.378761,.28855,.312821,-.201033,.39181,.323348,.341482,-.211584,.397716,.360564,.377368,-.221314,.410141,.400004,.418229,-.230474,.423485,.442371,.444881,-.239443,.418874,.488796,.488899,-.245987,.427545,.535012,.520317,-.253948,.422147,.589678,.568566,-.256616,.42719,.637683,.599607,-.26376,.415114,.703363,.64222,-.268687,.408715,.771363,.685698,-.2694,.399722,.83574,.732327,-.266642,.388651,.897764,.769873,-.267712,.369198,.983312,.806733,-.263479,.346802,1.06222,.843466,-.254575,.321368,1.13477,.873008,-.242749,.29211,1.20712,.908438,-.22725,.262143,1.27465,.936321,-.207621,.228876,1.33203,.950353,-.187932,.19484,1.40439,.96442,-.165154,.163178,1.4732,.979856,-.139302,.127531,1.53574,.982561,-.11134,.0903457,1.59982,.996389,-.0808124,.0489007,1.6577],wa=[1,0,0,0,1,791421e-36,0,0,1,104392e-29,0,0,1,349405e-26,0,0,1,109923e-23,0,0,1,947414e-22,0,0,1,359627e-20,0,0,1,772053e-19,0,0,1,108799e-17,0,0,1,110655e-16,0,0,1,865818e-16,0,0,.999998,545037e-15,0,0,.999994,285095e-14,0,0,.999989,126931e-13,0,0,.999973,489938e-13,0,0,.999947,166347e-12,0,0,.999894,502694e-12,0,0,.999798,136532e-11,0,0,.999617,335898e-11,0,0,.999234,752126e-11,0,0,.998258,152586e-10,0,0,.99504,266207e-10,0,0,.980816,236802e-10,0,0,.967553,207684e-11,0,0,.966877,403733e-11,0,0,.965752,741174e-11,0,0,.96382,127746e-10,0,0,.960306,202792e-10,0,0,.953619,280232e-10,0,0,.941103,278816e-10,0,0,.926619,160221e-10,0,0,.920983,235164e-10,0,0,.912293,311924e-10,0,.0158731,.899277,348118e-10,0,.0476191,.880884,26041e-9,0,.0793651,.870399,338726e-10,0,.111111,.856138,392906e-10,0,.142857,.837436,372874e-10,0,.174603,.820973,392558e-10,0,.206349,.803583,434658e-10,0,.238095,.782168,40256e-9,0,.269841,.764107,448159e-10,0,.301587,.743092,457627e-10,0,.333333,.721626,455314e-10,0,.365079,.700375,477335e-10,0,.396825,.677334,461072e-10,0,.428571,.655702,484393e-10,0,.460317,.632059,464583e-10,0,.492064,.610125,483923e-10,0,.52381,.58653,464342e-10,0,.555556,.564508,477033e-10,0,.587302,.541405,459263e-10,0,.619048,.519556,46412e-9,0,.650794,.497292,448913e-10,0,.68254,.475898,445789e-10,0,.714286,.454722,433496e-10,0,.746032,.434042,423054e-10,0,.777778,.414126,413737e-10,0,.809524,.394387,397265e-10,0,.84127,.375841,390709e-10,0,.873016,.357219,369938e-10,0,.904762,.340084,365618e-10,0,.936508,.322714,342533e-10,0,.968254,.306974,339596e-10,0,1,1,101524e-23,0,0,1,10292e-22,0,0,1,130908e-23,0,0,1,473331e-23,0,0,1,625319e-22,0,0,1,107932e-20,0,0,1,163779e-19,0,0,1,203198e-18,0,0,1,204717e-17,0,0,.999999,168995e-16,0,0,.999998,115855e-15,0,0,.999996,66947e-14,0,0,.999991,330863e-14,0,0,.999983,141737e-13,0,0,.999968,532626e-13,0,0,.99994,177431e-12,0,0,.999891,528835e-12,0,0,.999797,142169e-11,0,0,.999617,347057e-11,0,0,.999227,77231e-10,0,0,.998239,155753e-10,0,0,.994937,268495e-10,0,0,.980225,213742e-10,0,0,.967549,21631e-10,0,0,.966865,417989e-11,0,0,.965739,763341e-11,0,0,.963794,130892e-10,0,0,.960244,206456e-10,0,0,.953495,282016e-10,0,148105e-9,.940876,271581e-10,0,.002454,.926569,164159e-10,0,.00867491,.920905,239521e-10,0,.01956,.912169,315127e-10,0,.035433,.899095,346626e-10,0,.056294,.882209,290223e-10,0,.0818191,.870272,342992e-10,0,.111259,.855977,394164e-10,0,.142857,.837431,372343e-10,0,.174603,.820826,396691e-10,0,.206349,.803408,435395e-10,0,.238095,.782838,419579e-10,0,.269841,.763941,450953e-10,0,.301587,.742904,455847e-10,0,.333333,.721463,458833e-10,0,.365079,.700197,477159e-10,0,.396825,.677501,470641e-10,0,.428571,.655527,484732e-10,0,.460317,.6324,476834e-10,0,.492064,.609964,484213e-10,0,.52381,.586839,475541e-10,0,.555556,.564353,476951e-10,0,.587302,.541589,467611e-10,0,.619048,.519413,463493e-10,0,.650794,.497337,453994e-10,0,.68254,.475797,445308e-10,0,.714286,.454659,435787e-10,0,.746032,.434065,424839e-10,0,.777778,.414018,41436e-9,0,.809524,.39455,401902e-10,0,.84127,.375742,390813e-10,0,.873016,.357501,377116e-10,0,.904762,.339996,36535e-9,0,.936508,.323069,351265e-10,0,.968254,.306897,339112e-10,0,1,1,10396e-19,0,0,1,104326e-20,0,0,1,110153e-20,0,0,1,144668e-20,0,0,1,34528e-19,0,0,1,175958e-19,0,0,1,12627e-17,0,0,1,936074e-18,0,0,1,645742e-17,0,0,.999998,401228e-16,0,0,.999997,222338e-15,0,0,.999995,10967e-13,0,0,.999991,482132e-14,0,0,.999981,189434e-13,0,0,.999967,667716e-13,0,0,.999938,212066e-12,0,0,.999886,60977e-11,0,0,.999792,159504e-11,0,0,.999608,381191e-11,0,0,.999209,833727e-11,0,0,.998179,165288e-10,0,0,.994605,274387e-10,0,0,.979468,167316e-10,0,0,.967529,242877e-11,0,0,.966836,461696e-11,0,0,.96569,830977e-11,0,0,.963706,140427e-10,0,244659e-11,.960063,217353e-10,0,760774e-9,.953113,286606e-10,0,.00367261,.940192,247691e-10,0,.00940263,.927731,195814e-10,0,.018333,.920669,252531e-10,0,.0306825,.911799,324277e-10,0,.0465556,.89857,340982e-10,0,.0659521,.883283,319622e-10,0,.0887677,.86989,35548e-9,0,.114784,.855483,397143e-10,0,.143618,.837987,391665e-10,0,.174606,.820546,411306e-10,0,.206349,.802878,436753e-10,0,.238095,.783402,444e-7,0,.269841,.763439,458726e-10,0,.301587,.742925,467097e-10,0,.333333,.721633,478887e-10,0,.365079,.69985,481251e-10,0,.396825,.67783,491811e-10,0,.428571,.655126,488199e-10,0,.460318,.632697,496025e-10,0,.492064,.609613,48829e-9,0,.52381,.587098,492754e-10,0,.555556,.564119,482625e-10,0,.587302,.541813,482807e-10,0,.619048,.519342,471552e-10,0,.650794,.497514,466765e-10,0,.68254,.475879,455582e-10,0,.714286,.454789,446007e-10,0,.746032,.434217,435382e-10,0,.777778,.414086,421753e-10,0,.809524,.394744,412093e-10,0,.84127,.375782,396634e-10,0,.873016,.357707,386419e-10,0,.904762,.340038,370345e-10,0,.936508,.323284,359725e-10,0,.968254,.306954,3436e-8,0,1,1,599567e-19,0,0,1,600497e-19,0,0,1,614839e-19,0,0,1,686641e-19,0,0,1,972658e-19,0,0,1,221271e-18,0,0,1,833195e-18,0,0,1,403601e-17,0,0,.999999,206001e-16,0,0,.999998,101739e-15,0,0,.999997,470132e-15,0,0,.999993,200436e-14,0,0,.999988,783682e-14,0,0,.999979,280338e-13,0,0,.999962,917033e-13,0,0,.999933,274514e-12,0,0,.999881,753201e-12,0,0,.999783,189826e-11,0,0,.999594,440279e-11,0,0,.999178,93898e-10,0,0,.998073,181265e-10,0,0,.993993,280487e-10,0,0,.979982,149422e-10,0,0,.968145,378481e-11,0,0,.966786,53771e-10,0,0,.965611,947508e-11,0,388934e-10,.963557,156616e-10,0,9693e-7,.959752,235144e-10,0,.00370329,.952461,291568e-10,0,.00868428,.940193,240102e-10,0,.0161889,.929042,231235e-10,0,.0263948,.920266,273968e-10,0,.0394088,.911178,337915e-10,0,.0552818,.897873,333629e-10,0,.0740138,.884053,351405e-10,0,.0955539,.869455,378034e-10,0,.119795,.854655,399378e-10,0,.14656,.838347,419108e-10,0,.175573,.820693,440831e-10,0,.206388,.802277,445599e-10,0,.238095,.783634,472691e-10,0,.269841,.763159,476984e-10,0,.301587,.742914,491487e-10,0,.333333,.721662,502312e-10,0,.365079,.699668,502817e-10,0,.396825,.677839,51406e-9,0,.428571,.655091,511095e-10,0,.460317,.632665,516067e-10,0,.492064,.609734,512255e-10,0,.52381,.587043,510263e-10,0,.555556,.564298,50565e-9,0,.587302,.541769,497951e-10,0,.619048,.519529,492698e-10,0,.650794,.497574,482066e-10,0,.68254,.476028,473689e-10,0,.714286,.454961,461941e-10,0,.746032,.434341,450618e-10,0,.777778,.414364,438355e-10,0,.809524,.394832,424196e-10,0,.84127,.376109,412563e-10,0,.873016,.35779,396226e-10,0,.904762,.340379,384886e-10,0,.936508,.323385,368214e-10,0,.968254,.307295,356636e-10,0,1,1,106465e-17,0,0,1,106555e-17,0,0,1,107966e-17,0,0,1,114601e-17,0,0,1,137123e-17,0,0,1,21243e-16,0,0,.999999,489653e-17,0,0,.999999,160283e-16,0,0,.999998,62269e-15,0,0,.999997,251859e-15,0,0,.999996,996192e-15,0,0,.999992,374531e-14,0,0,.999986,132022e-13,0,0,.999975,433315e-13,0,0,.999959,131956e-12,0,0,.999927,372249e-12,0,0,.999871,972461e-12,0,0,.999771,235343e-11,0,0,.999572,52768e-10,0,0,.999133,109237e-10,0,0,.997912,203675e-10,0,0,.993008,279396e-10,0,0,.980645,139604e-10,0,0,.970057,646596e-11,0,0,.966717,65089e-10,0,474145e-10,.965497,111863e-10,0,89544e-8,.96334,179857e-10,0,.0032647,.959294,259045e-10,0,.0075144,.951519,292327e-10,0,.0138734,.940517,249769e-10,0,.0224952,.93014,26803e-9,0,.0334828,.91972,303656e-10,0,.0468973,.910294,353323e-10,0,.0627703,.897701,351002e-10,0,.0811019,.884522,388104e-10,0,.10186,.869489,412932e-10,0,.124985,.853983,415781e-10,0,.150372,.838425,454066e-10,0,.177868,.820656,471624e-10,0,.207245,.801875,475243e-10,0,.238143,.783521,505621e-10,0,.269841,.763131,50721e-9,0,.301587,.74261,523293e-10,0,.333333,.72148,528699e-10,0,.365079,.699696,538677e-10,0,.396825,.677592,539255e-10,0,.428571,.65525,546367e-10,0,.460317,.632452,541348e-10,0,.492064,.609903,544976e-10,0,.52381,.586928,536201e-10,0,.555556,.564464,535185e-10,0,.587302,.541801,524949e-10,0,.619048,.519681,51812e-9,0,.650794,.497685,507687e-10,0,.68254,.47622,496243e-10,0,.714286,.455135,485714e-10,0,.746032,.4346,471847e-10,0,.777778,.414564,459294e-10,0,.809524,.395165,444705e-10,0,.84127,.376333,430772e-10,0,.873016,.358197,416229e-10,0,.904762,.34064,401019e-10,0,.936508,.323816,386623e-10,0,.968254,.307581,370933e-10,0,1,1,991541e-17,0,0,1,992077e-17,0,0,1,100041e-16,0,0,1,10385e-15,0,0,1,115777e-16,0,0,1,150215e-16,0,0,.999999,254738e-16,0,0,.999999,598822e-16,0,0,.999998,179597e-15,0,0,.999997,602367e-15,0,0,.999994,206835e-14,0,0,.99999,694952e-14,0,0,.999984,223363e-13,0,0,.999972,678578e-13,0,0,.999952,193571e-12,0,0,.999919,516594e-12,0,0,.99986,128739e-11,0,0,.999753,299298e-11,0,0,.999546,648258e-11,0,0,.999074,129985e-10,0,0,.997671,232176e-10,0,0,.991504,256701e-10,0,0,.981148,131141e-10,0,0,.971965,869048e-11,0,280182e-10,.966624,808301e-11,0,695475e-9,.965344,135235e-10,0,.00265522,.963048,210592e-10,0,.00622975,.958673,287473e-10,0,.0116234,.950262,281379e-10,0,.018976,.940836,271089e-10,0,.0283844,.930996,30926e-9,0,.0399151,.919848,348359e-10,0,.0536063,.909136,366092e-10,0,.0694793,.897554,384162e-10,0,.0875342,.884691,430971e-10,0,.107749,.869414,447803e-10,0,.130087,.853462,452858e-10,0,.154481,.838187,495769e-10,0,.180833,.820381,502709e-10,0,.209005,.801844,522713e-10,0,.238791,.783061,541505e-10,0,.269869,.763205,553712e-10,0,.301587,.742362,564909e-10,0,.333333,.721393,572646e-10,0,.365079,.699676,581012e-10,0,.396825,.677395,58096e-9,0,.428571,.655208,585766e-10,0,.460317,.632451,583602e-10,0,.492064,.609839,580234e-10,0,.52381,.587093,577161e-10,0,.555556,.564467,568447e-10,0,.587302,.542043,563166e-10,0,.619048,.519826,55156e-9,0,.650794,.497952,541682e-10,0,.68254,.476477,528971e-10,0,.714286,.455412,514952e-10,0,.746032,.434926,502222e-10,0,.777778,.4149,485779e-10,0,.809524,.395552,472242e-10,0,.84127,.376712,454891e-10,0,.873016,.358622,440924e-10,0,.904762,.341048,422984e-10,0,.936508,.324262,408582e-10,0,.968254,.308013,390839e-10,0,1,1,613913e-16,0,0,1,614145e-16,0,0,1,617708e-16,0,0,1,633717e-16,0,0,1,681648e-16,0,0,1,808291e-16,0,0,1,114608e-15,0,0,.999998,210507e-15,0,0,.999997,499595e-15,0,0,.999995,139897e-14,0,0,.999994,419818e-14,0,0,.999988,127042e-13,0,0,.999979,375153e-13,0,0,.999965,106206e-12,0,0,.999945,285381e-12,0,0,.999908,723611e-12,0,0,.999846,17255e-10,0,0,.999733,386104e-11,0,0,.999511,808493e-11,0,0,.998993,156884e-10,0,0,.997326,265538e-10,0,0,.989706,206466e-10,0,0,.981713,130756e-10,0,70005e-10,.973636,106473e-10,0,464797e-9,.966509,10194e-9,0,.00201743,.965149,165881e-10,0,.00497549,.962669,249147e-10,0,.00953262,.95786,317449e-10,0,.0158211,.949334,281045e-10,0,.0239343,.941041,303263e-10,0,.0339372,.931575,356754e-10,0,.0458738,.920102,397075e-10,0,.059772,.908002,384886e-10,0,.075645,.897269,43027e-9,0,.0934929,.884559,479925e-10,0,.113302,.869161,48246e-9,0,.135045,.853342,509505e-10,0,.158678,.837633,542846e-10,0,.184136,.820252,554139e-10,0,.211325,.801872,581412e-10,0,.240113,.782418,585535e-10,0,.270306,.7631,610923e-10,0,.301594,.742183,613678e-10,0,.333333,.721098,627275e-10,0,.365079,.699512,629413e-10,0,.396825,.677372,636351e-10,0,.428571,.655059,633555e-10,0,.460317,.632567,636513e-10,0,.492064,.609784,628965e-10,0,.52381,.587237,625546e-10,0,.555556,.564525,615825e-10,0,.587302,.542181,605048e-10,0,.619048,.520017,596329e-10,0,.650794,.498204,581516e-10,0,.68254,.476742,569186e-10,0,.714286,.455803,553833e-10,0,.746032,.435251,537807e-10,0,.777778,.415374,522025e-10,0,.809524,.395921,503421e-10,0,.84127,.377253,488211e-10,0,.873016,.359021,468234e-10,0,.904762,.341637,453269e-10,0,.936508,.3247,433014e-10,0,.968254,.308625,418007e-10,0,1,1,286798e-15,0,0,1,286877e-15,0,0,1,288094e-15,0,0,1,293506e-15,0,0,1,309262e-15,0,0,.999999,348593e-15,0,0,.999999,444582e-15,0,0,.999998,688591e-15,0,0,.999996,134391e-14,0,0,.999993,317438e-14,0,0,.999989,835609e-14,0,0,.999983,228677e-13,0,0,.999974,623361e-13,0,0,.999959,165225e-12,0,0,.999936,419983e-12,0,0,.999896,101546e-11,0,0,.99983,232376e-11,0,0,.999709,50156e-10,0,0,.999469,10167e-9,0,0,.998886,190775e-10,0,0,.996819,300511e-10,0,0,.988837,185092e-10,0,168222e-12,.982178,134622e-10,0,259622e-9,.975017,125961e-10,0,.00142595,.967101,13507e-9,0,.00382273,.964905,205003e-10,0,.00764164,.96218,29546e-9,0,.0130121,.956821,343738e-10,0,.0200253,.948829,305063e-10,0,.0287452,.941092,346487e-10,0,.039218,.931883,412061e-10,0,.0514748,.920211,444651e-10,0,.0655351,.907307,431252e-10,0,.0814082,.89684,490382e-10,0,.0990939,.884119,53334e-9,0,.118583,.869148,54114e-9,0,.139856,.853377,578536e-10,0,.162882,.836753,592285e-10,0,.187615,.820063,622787e-10,0,.213991,.801694,645492e-10,0,.241918,.782116,65353e-9,0,.271267,.762673,674344e-10,0,.301847,.742133,682788e-10,0,.333333,.720779,691959e-10,0,.365079,.699386,696817e-10,0,.396826,.67732,699583e-10,0,.428572,.654888,698447e-10,0,.460318,.632499,694063e-10,0,.492064,.609825,691612e-10,0,.52381,.587287,681576e-10,0,.555556,.564743,674138e-10,0,.587302,.542409,661617e-10,0,.619048,.520282,647785e-10,0,.650794,.498506,633836e-10,0,.68254,.477102,615905e-10,0,.714286,.456167,601013e-10,0,.746032,.435728,581457e-10,0,.777778,.415809,564215e-10,0,.809524,.396517,544997e-10,0,.84127,.377737,525061e-10,0,.873016,.359698,506831e-10,0,.904762,.342164,48568e-9,0,.936508,.325417,467826e-10,0,.968254,.309186,446736e-10,0,1,1,109018e-14,0,0,1,10904e-13,0,0,1,109393e-14,0,0,1,11095e-13,0,0,1,1154e-12,0,0,1,126089e-14,0,0,.999999,15059e-13,0,0,.999997,207899e-14,0,0,.999994,348164e-14,0,0,.999993,705728e-14,0,0,.999987,163692e-13,0,0,.999981,406033e-13,0,0,.999969,10245e-11,0,0,.999953,255023e-12,0,0,.999925,61511e-11,0,0,.999881,142218e-11,0,0,.99981,313086e-11,0,0,.99968,653119e-11,0,0,.999418,12832e-9,0,0,.998748,232497e-10,0,0,.996066,329522e-10,0,0,.988379,179613e-10,0,108799e-9,.982567,143715e-10,0,921302e-9,.976097,148096e-10,0,.00280738,.968475,178905e-10,0,.00596622,.964606,253921e-10,0,.0105284,.961564,348623e-10,0,.0165848,.955517,357612e-10,0,.0242,.948381,343493e-10,0,.03342,.941095,405849e-10,0,.0442777,.931923,475394e-10,0,.0567958,.91996,484328e-10,0,.0709879,.907419,502146e-10,0,.086861,.89618,561654e-10,0,.104415,.88337,587612e-10,0,.123643,.869046,618057e-10,0,.144531,.853278,657392e-10,0,.167057,.836091,66303e-9,0,.191188,.819644,704445e-10,0,.216878,.801246,714071e-10,0,.244062,.782031,740093e-10,0,.272649,.762066,74685e-9,0,.302509,.741964,766647e-10,0,.333442,.720554,766328e-10,0,.365079,.699098,777857e-10,0,.396826,.677189,774633e-10,0,.428572,.65484,776235e-10,0,.460318,.632496,770316e-10,0,.492064,.609908,762669e-10,0,.52381,.587312,753972e-10,0,.555556,.564938,739994e-10,0,.587302,.542577,728382e-10,0,.619048,.52062,71112e-9,0,.650794,.498819,694004e-10,0,.68254,.477555,675575e-10,0,.714286,.456568,653449e-10,0,.746032,.436278,636068e-10,0,.777778,.41637,613466e-10,0,.809524,.397144,594177e-10,0,.84127,.378412,570987e-10,0,.873016,.360376,550419e-10,0,.904762,.342906,527422e-10,0,.936508,.326136,506544e-10,0,.968254,.30997,484307e-10,0,1,1,354014e-14,0,0,1,354073e-14,0,0,1,354972e-14,0,0,1,358929e-14,0,0,1,370093e-14,0,0,.999999,396194e-14,0,0,.999998,453352e-14,0,0,.999997,578828e-14,0,0,.999994,863812e-14,0,0,.999991,153622e-13,0,0,.999985,316356e-13,0,0,.999977,712781e-13,0,0,.999964,166725e-12,0,0,.999945,390501e-12,0,0,.999912,895622e-12,0,0,.999866,198428e-11,0,0,.999786,421038e-11,0,0,.999647,850239e-11,0,0,.999356,162059e-10,0,0,.998563,282652e-10,0,0,.994928,336309e-10,0,244244e-10,.987999,178458e-10,0,523891e-9,.982893,159162e-10,0,.00194729,.977044,178056e-10,0,.00451099,.969972,230624e-10,0,.00835132,.964237,313922e-10,0,.013561,.960791,406145e-10,0,.0202056,.954292,372796e-10,0,.0283321,.948052,403199e-10,0,.0379739,.940938,479537e-10,0,.0491551,.931689,545292e-10,0,.0618918,.91987,54038e-9,0,.0761941,.907665,589909e-10,0,.0920672,.895281,642651e-10,0,.109511,.882621,659707e-10,0,.12852,.86873,709973e-10,0,.149085,.853008,742221e-10,0,.171189,.835944,761754e-10,0,.194809,.818949,797052e-10,0,.21991,.800951,812434e-10,0,.246447,.781847,838075e-10,0,.274352,.761649,84501e-9,0,.303535,.74152,860258e-10,0,.333857,.720495,866233e-10,0,.365104,.698742,868326e-10,0,.396826,.677096,87133e-9,0,.428572,.654782,863497e-10,0,.460318,.632335,860206e-10,0,.492064,.610031,849337e-10,0,.52381,.587457,838279e-10,0,.555556,.56513,82309e-9,0,.587302,.542877,803542e-10,0,.619048,.5209,786928e-10,0,.650794,.499291,765171e-10,0,.68254,.477971,744753e-10,0,.714286,.457221,72209e-9,0,.746032,.436803,697448e-10,0,.777778,.417083,675333e-10,0,.809524,.397749,648058e-10,0,.84127,.379177,625759e-10,0,.873016,.361061,598584e-10,0,.904762,.343713,575797e-10,0,.936508,.326894,549999e-10,0,.968254,.310816,527482e-10,0,1,1,10153e-12,0,0,1,101544e-13,0,0,1,101751e-13,0,0,1,102662e-13,0,0,1,10521e-12,0,0,.999999,111049e-13,0,0,.999999,123408e-13,0,0,.999996,14924e-12,0,0,.999992,204471e-13,0,0,.999989,326539e-13,0,0,.99998,603559e-13,0,0,.999971,123936e-12,0,0,.999955,269058e-12,0,0,.999933,593604e-12,0,0,.999901,129633e-11,0,0,.999847,275621e-11,0,0,.999761,564494e-11,0,0,.999607,110485e-10,0,0,.999282,204388e-10,0,0,.99831,341084e-10,0,22038e-11,.993288,294949e-10,0,242388e-9,.987855,192736e-10,0,.0012503,.983167,182383e-10,0,.0032745,.977908,218633e-10,0,.00646321,.971194,290662e-10,0,.0109133,.963867,386401e-10,0,.0166927,.95982,462827e-10,0,.0238494,.953497,420705e-10,0,.0324178,.947621,477743e-10,0,.0424225,.940611,568258e-10,0,.0538808,.931174,618061e-10,0,.0668047,.919919,627098e-10,0,.0812014,.907856,694714e-10,0,.0970745,.894509,735008e-10,0,.114424,.881954,763369e-10,0,.133246,.868309,821896e-10,0,.153534,.852511,83769e-9,0,.175275,.835821,881615e-10,0,.198453,.817981,896368e-10,0,.223042,.800504,930906e-10,0,.249009,.78141,945056e-10,0,.276304,.761427,963605e-10,0,.304862,.74094,968088e-10,0,.334584,.720233,981481e-10,0,.365322,.698592,979122e-10,0,.396826,.676763,981057e-10,0,.428571,.654808,973956e-10,0,.460318,.632326,962619e-10,0,.492064,.610049,952996e-10,0,.52381,.58763,933334e-10,0,.555556,.565261,917573e-10,0,.587302,.543244,896636e-10,0,.619048,.521273,873304e-10,0,.650794,.499818,852648e-10,0,.68254,.478536,823961e-10,0,.714286,.457826,79939e-9,0,.746032,.437549,77126e-9,0,.777778,.41776,743043e-10,0,.809524,.39863,716426e-10,0,.84127,.379954,686456e-10,0,.873016,.362025,660514e-10,0,.904762,.344581,630755e-10,0,.936508,.327909,605439e-10,0,.968254,.311736,576345e-10,0,1,1,263344e-13,0,0,1,263373e-13,0,0,1,263815e-13,0,0,1,265753e-13,0,0,1,271132e-13,0,0,.999999,283279e-13,0,0,.999997,30833e-12,0,0,.999995,358711e-13,0,0,.999992,461266e-13,0,0,.999985,67574e-12,0,0,.999977,11358e-11,0,0,.999966,213657e-12,0,0,.999948,431151e-12,0,0,.999923,896656e-12,0,0,.999884,186603e-11,0,0,.999826,381115e-11,0,0,.999732,754184e-11,0,0,.999561,143192e-10,0,0,.999191,257061e-10,0,0,.997955,405724e-10,0,744132e-10,.992228,276537e-10,0,716477e-9,.987638,208885e-10,0,.0022524,.983395,215226e-10,0,.00484816,.978614,270795e-10,0,.00860962,.972389,365282e-10,0,.0136083,.964392,474747e-10,0,.0198941,.95861,509141e-10,0,.0275023,.952806,48963e-9,0,.0364584,.94712,571119e-10,0,.04678,.940104,671704e-10,0,.0584799,.930398,687586e-10,0,.0715665,.919866,738161e-10,0,.086045,.907853,813235e-10,0,.101918,.894078,834582e-10,0,.119186,.881177,892093e-10,0,.137845,.867575,944548e-10,0,.157891,.852107,969607e-10,0,.179316,.835502,101456e-9,0,.202106,.81756,103256e-9,0,.226243,.79984,106954e-9,0,.251704,.780998,108066e-9,0,.278451,.761132,110111e-9,0,.306436,.740429,110459e-9,0,.335586,.719836,111219e-9,0,.365796,.698467,11145e-8,0,.3969,.676446,110393e-9,0,.428571,.654635,110035e-9,0,.460318,.632411,108548e-9,0,.492064,.609986,106963e-9,0,.52381,.587872,105238e-9,0,.555556,.565528,102665e-9,0,.587302,.543563,100543e-9,0,.619048,.52176,976182e-10,0,.650794,.500188,947099e-10,0,.68254,.479204,919929e-10,0,.714286,.458413,886139e-10,0,.746032,.438314,857839e-10,0,.777778,.418573,82411e-9,0,.809524,.39947,792211e-10,0,.84127,.380892,759546e-10,0,.873016,.362953,727571e-10,0,.904762,.345601,695738e-10,0,.936508,.328895,664907e-10,0,.968254,.312808,634277e-10,0,1,1,628647e-13,0,0,1,628705e-13,0,0,1,629587e-13,0,0,1,633441e-13,0,0,.999999,644087e-13,0,0,.999998,667856e-13,0,0,.999997,715889e-13,0,0,.999995,809577e-13,0,0,.999989,992764e-13,0,0,.999983,135834e-12,0,0,.999974,210482e-12,0,0,.999959,365215e-12,0,0,.999939,686693e-12,0,0,.999911,13472e-10,0,0,.999868,26731e-10,0,0,.999804,524756e-11,0,0,.9997,100403e-10,0,0,.99951,185019e-10,0,0,.999078,322036e-10,0,620676e-11,.997428,470002e-10,0,341552e-9,.99162,287123e-10,0,.00143727,.987479,234706e-10,0,.00349201,.983582,260083e-10,0,.0066242,.979186,337927e-10,0,.0109113,.97325,454689e-10,0,.0164064,.965221,573759e-10,0,.0231463,.957262,544114e-10,0,.0311571,.952211,587006e-10,0,.0404572,.946631,692256e-10,0,.0510592,.939391,787819e-10,0,.0629723,.929795,792368e-10,0,.0762025,.91965,875075e-10,0,.090753,.907737,950903e-10,0,.106626,.893899,972963e-10,0,.123822,.880239,10459e-8,0,.142337,.866562,107689e-9,0,.16217,.85164,113081e-9,0,.183314,.835021,116636e-9,0,.20576,.817311,120074e-9,0,.229496,.798845,121921e-9,0,.254502,.780479,12475e-8,0,.280753,.760694,125255e-9,0,.308212,.740142,126719e-9,0,.336825,.719248,12636e-8,0,.366517,.698209,126712e-9,0,.397167,.676398,125769e-9,0,.428578,.654378,124432e-9,0,.460318,.632484,123272e-9,0,.492064,.610113,12085e-8,0,.52381,.587931,118411e-9,0,.555556,.565872,11569e-8,0,.587302,.543814,112521e-9,0,.619048,.522265,109737e-9,0,.650794,.500835,106228e-9,0,.68254,.479818,102591e-9,0,.714286,.459258,991288e-10,0,.746032,.439061,952325e-10,0,.777778,.419552,91895e-9,0,.809524,.400399,879051e-10,0,.84127,.381976,844775e-10,0,.873016,.364009,806316e-10,0,.904762,.346761,771848e-10,0,.936508,.330049,735429e-10,0,.968254,.314018,702103e-10,0,1,1,139968e-12,0,0,1,139979e-12,0,0,1,140145e-12,0,0,1,14087e-11,0,0,.999999,142865e-12,0,0,.999998,147279e-12,0,0,.999997,156057e-12,0,0,.999992,17276e-11,0,0,.999989,204352e-12,0,0,.99998,26494e-11,0,0,.999969,383435e-12,0,0,.999953,618641e-12,0,0,.999929,108755e-11,0,0,.999898,201497e-11,0,0,.999849,381346e-11,0,0,.999778,719815e-11,0,0,.999661,133215e-10,0,0,.999451,238313e-10,0,0,.998936,401343e-10,0,113724e-9,.99662,517346e-10,0,820171e-9,.991094,304323e-10,0,.00238143,.987487,281757e-10,0,.00493527,.983731,320048e-10,0,.00856859,.979647,423905e-10,0,.0133393,.973837,562935e-10,0,.0192863,.96584,677442e-10,0,.0264369,.956309,623073e-10,0,.03481,.951523,704131e-10,0,.0444184,.946003,836594e-10,0,.0552713,.938454,911736e-10,0,.0673749,.929279,938264e-10,0,.0807329,.919239,103754e-9,0,.0953479,.907293,109928e-9,0,.111221,.893936,115257e-9,0,.128352,.879674,122265e-9,0,.14674,.865668,125733e-9,0,.166382,.850998,132305e-9,0,.187276,.834498,134844e-9,0,.209413,.816903,139276e-9,0,.232786,.798235,140984e-9,0,.257382,.779724,14378e-8,0,.283181,.760251,144623e-9,0,.310156,.739808,145228e-9,0,.338269,.718762,14539e-8,0,.367461,.697815,144432e-9,0,.397646,.67631,143893e-9,0,.428685,.654278,141846e-9,0,.460318,.632347,13935e-8,0,.492064,.610296,137138e-9,0,.52381,.588039,133806e-9,0,.555556,.566218,130755e-9,0,.587302,.544346,127128e-9,0,.619048,.522701,123002e-9,0,.650794,.501542,119443e-9,0,.68254,.480508,115055e-9,0,.714286,.460092,111032e-9,0,.746032,.440021,106635e-9,0,.777778,.420446,102162e-9,0,.809524,.401512,98184e-9,0,.84127,.38299,936497e-10,0,.873016,.365232,89813e-9,0,.904762,.347865,853073e-10,0,.936508,.331342,817068e-10,0,.968254,.315202,773818e-10,0,1,1,29368e-11,0,0,1,2937e-10,0,0,1,293998e-12,0,0,1,295298e-12,0,0,.999999,298865e-12,0,0,.999998,3067e-10,0,0,.999995,322082e-12,0,0,.999992,350767e-12,0,0,.999986,403538e-12,0,0,.999976,501372e-12,0,0,.999964,68562e-11,0,0,.999945,10374e-10,0,0,.999919,171269e-11,0,0,.999882,300175e-11,0,0,.999829,542144e-11,0,0,.999749,984182e-11,0,0,.99962,176213e-10,0,0,.999382,305995e-10,0,138418e-10,.998751,496686e-10,0,389844e-9,.995344,510733e-10,0,.00150343,.990768,345829e-10,0,.00352451,.987464,342841e-10,0,.00655379,.983846,399072e-10,0,.0106554,.980007,533219e-10,0,.0158723,.974494,696992e-10,0,.0222333,.96622,776754e-10,0,.029758,.956273,747718e-10,0,.0384596,.950952,864611e-10,0,.0483473,.945215,100464e-9,0,.0594266,.937287,103729e-9,0,.0717019,.928649,111665e-9,0,.0851752,.918791,12353e-8,0,.0998479,.906685,127115e-9,0,.115721,.893706,13628e-8,0,.132794,.879248,142427e-9,0,.151067,.864685,148091e-9,0,.170538,.850032,153517e-9,0,.191204,.833853,157322e-9,0,.213063,.816353,161086e-9,0,.236107,.797834,164111e-9,0,.260329,.778831,165446e-9,0,.285714,.759756,167492e-9,0,.312243,.739419,166928e-9,0,.339887,.718491,167e-6,0,.368604,.697392,165674e-9,0,.398329,.676102,163815e-9,0,.428961,.654243,162003e-9,0,.460331,.632176,158831e-9,0,.492064,.610407,155463e-9,0,.52381,.588394,152062e-9,0,.555556,.56645,147665e-9,0,.587302,.5449,14375e-8,0,.619048,.523276,138905e-9,0,.650794,.502179,134189e-9,0,.68254,.481359,129392e-9,0,.714286,.46092,124556e-9,0,.746032,.441084,11957e-8,0,.777778,.421517,114652e-9,0,.809524,.402721,109688e-9,0,.84127,.384222,104667e-9,0,.873016,.366534,999633e-10,0,.904762,.349205,950177e-10,0,.936508,.332702,907301e-10,0,.968254,.316599,859769e-10,0,1,1,585473e-12,0,0,1,585507e-12,0,0,1,58602e-11,0,0,.999999,588259e-12,0,0,.999999,594381e-12,0,0,.999998,607754e-12,0,0,.999995,633729e-12,0,0,.99999,68137e-11,0,0,.999984,767003e-12,0,0,.999973,921212e-12,0,0,.999959,120218e-11,0,0,.999936,172024e-11,0,0,.999907,268088e-11,0,0,.999866,445512e-11,0,0,.999806,768481e-11,0,0,.999716,1342e-8,0,0,.999576,232473e-10,0,0,.9993,391694e-10,0,129917e-9,.998498,608429e-10,0,845035e-9,.994132,489743e-10,0,.00237616,.99031,384644e-10,0,.00484456,.987409,421768e-10,0,.00832472,.983981,504854e-10,0,.0128643,.980268,671028e-10,0,.0184947,.974875,852749e-10,0,.025237,.966063,85531e-9,0,.0331046,.956779,900588e-10,0,.0421067,.950259,10577e-8,0,.0522487,.944239,119458e-9,0,.0635343,.936341,122164e-9,0,.0759654,.928047,134929e-9,0,.0895434,.918065,145544e-9,0,.104269,.906267,150531e-9,0,.120142,.893419,161652e-9,0,.137163,.878758,16593e-8,0,.15533,.863699,174014e-9,0,.174645,.848876,177877e-9,0,.195106,.833032,184049e-9,0,.21671,.815557,186088e-9,0,.239454,.797323,19054e-8,0,.263332,.778124,191765e-9,0,.288336,.758929,192535e-9,0,.314451,.738979,192688e-9,0,.341658,.718213,191522e-9,0,.369924,.696947,190491e-9,0,.399202,.675807,187913e-9,0,.429416,.654147,184451e-9,0,.460447,.63229,181442e-9,0,.492064,.610499,177139e-9,0,.523809,.588747,172596e-9,0,.555555,.566783,167457e-9,0,.587301,.545359,162518e-9,0,.619048,.523984,156818e-9,0,.650794,.502917,151884e-9,0,.68254,.482294,145514e-9,0,.714286,.461945,140199e-9,0,.746032,.442133,134101e-9,0,.777778,.422705,128374e-9,0,.809524,.403916,122996e-9,0,.84127,.38554,116808e-9,0,.873016,.367909,111973e-9,0,.904762,.350651,105938e-9,0,.936508,.334208,101355e-9,0,.968254,.318123,957629e-10,0,1,1,111633e-11,0,0,1,111639e-11,0,0,1,111725e-11,0,0,1,112096e-11,0,0,.999999,11311e-10,0,0,.999997,115315e-11,0,0,.999995,11956e-10,0,0,.999989,127239e-11,0,0,.999981,140772e-11,0,0,.999969,164541e-11,0,0,.999952,206607e-11,0,0,.999928,281783e-11,0,0,.999895,416835e-11,0,0,.999848,658728e-11,0,0,.999781,108648e-10,0,0,.999682,182579e-10,0,0,.999523,306003e-10,0,159122e-10,.999205,499862e-10,0,391184e-9,.998131,73306e-9,0,.00147534,.993334,513229e-10,0,.0034227,.99016,467783e-10,0,.00632232,.987321,523413e-10,0,.0102295,.984099,64267e-9,0,.0151794,.980432,843042e-10,0,.0211947,.974976,102819e-9,0,.0282899,.966429,996234e-10,0,.0364739,.957633,111074e-9,0,.0457522,.949422,128644e-9,0,.0561278,.943045,140076e-9,0,.0676023,.935448,146349e-9,0,.0801762,.927225,161854e-9,0,.0938499,.917033,169135e-9,0,.108623,.905762,179987e-9,0,.124496,.892879,189832e-9,0,.141469,.878435,195881e-9,0,.159541,.863114,20466e-8,0,.178713,.84776,209473e-9,0,.198985,.832084,214861e-9,0,.220355,.814915,217695e-9,0,.242823,.796711,220313e-9,0,.266385,.777603,22313e-8,0,.291036,.757991,222471e-9,0,.316767,.738371,222869e-9,0,.343563,.717872,221243e-9,0,.371402,.696619,218089e-9,0,.400248,.675379,21562e-8,0,.430047,.65411,21169e-8,0,.460709,.63241,206947e-9,0,.492079,.61046,201709e-9,0,.52381,.58903,196753e-9,0,.555556,.567267,189637e-9,0,.587302,.545886,184735e-9,0,.619048,.524714,177257e-9,0,.650794,.503789,171424e-9,0,.68254,.483204,164688e-9,0,.714286,.462976,157172e-9,0,.746032,.443294,151341e-9,0,.777778,.423988,143737e-9,0,.809524,.405325,138098e-9,0,.84127,.386981,130698e-9,0,.873016,.369436,125276e-9,0,.904762,.35219,118349e-9,0,.936508,.335804,11312e-8,0,.968254,.319749,106687e-9,0,1,1,204685e-11,0,0,1,204694e-11,0,0,1,204831e-11,0,0,.999999,205428e-11,0,0,.999999,207056e-11,0,0,.999997,210581e-11,0,0,.999993,21732e-10,0,0,.999987,229365e-11,0,0,.999979,250243e-11,0,0,.999965,286127e-11,0,0,.999947,348028e-11,0,0,.999918,455588e-11,0,0,.999881,643303e-11,0,0,.999828,970064e-11,0,0,.999753,153233e-10,0,0,.999642,24793e-9,0,0,.999464,402032e-10,0,122947e-9,.999089,635852e-10,0,807414e-9,.997567,857026e-10,0,.00227206,.992903,594912e-10,0,.00462812,.990011,578515e-10,0,.00794162,.987192,65399e-9,0,.0122534,.98418,819675e-10,0,.0175888,.980491,105514e-9,0,.0239635,.974779,121532e-9,0,.031387,.96675,119144e-9,0,.0398644,.958248,136125e-9,0,.0493982,.948884,155408e-9,0,.0599896,.941673,162281e-9,0,.0716382,.934521,176754e-9,0,.0843437,.926205,192873e-9,0,.0981056,.916089,200038e-9,0,.112923,.904963,213624e-9,0,.128796,.892089,221834e-9,0,.145725,.878028,232619e-9,0,.163709,.86249,238632e-9,0,.182749,.846587,247002e-9,0,.202847,.830988,250702e-9,0,.224001,.814165,255562e-9,0,.246214,.796135,257505e-9,0,.269482,.777052,258625e-9,0,.293805,.757201,258398e-9,0,.319176,.737655,256714e-9,0,.345587,.717477,255187e-9,0,.373021,.696433,251792e-9,0,.401454,.675084,247223e-9,0,.430844,.653907,242213e-9,0,.461125,.632561,237397e-9,0,.492187,.610658,229313e-9,0,.52381,.589322,224402e-9,0,.555556,.567857,216116e-9,0,.587302,.54652,209124e-9,0,.619048,.525433,201601e-9,0,.650794,.504679,192957e-9,0,.68254,.484203,186052e-9,0,.714286,.464203,177672e-9,0,.746032,.444549,170005e-9,0,.777778,.425346,162401e-9,0,.809524,.406706,1544e-7,0,.84127,.388576,147437e-9,0,.873016,.37094,139493e-9,0,.904762,.353996,133219e-9,0,.936508,.337391,125573e-9,0,.968254,.321648,119867e-9,0,1,1,362511e-11,0,0,1,362525e-11,0,0,1,362739e-11,0,0,.999999,363673e-11,0,0,.999998,366214e-11,0,0,.999996,371698e-11,0,0,.999992,382116e-11,0,0,.999986,400554e-11,0,0,.999976,432058e-11,0,0,.999961,485194e-11,0,0,.999938,574808e-11,0,0,.999908,726643e-11,0,0,.999865,984707e-11,0,0,.999807,142217e-10,0,0,.999723,215581e-10,0,0,.999602,336114e-10,0,119113e-10,.999398,527353e-10,0,355813e-9,.998946,805809e-10,0,.00137768,.996647,942908e-10,0,.00322469,.992298,668733e-10,0,.00597897,.989802,716564e-10,0,.00968903,.987019,821355e-10,0,.0143845,.984219,104555e-9,0,.0200831,.980425,131245e-9,0,.0267948,.974241,139613e-9,0,.034525,.967006,145931e-9,0,.0432757,.95893,167153e-9,0,.0530471,.949157,188146e-9,0,.0638386,.94062,194625e-9,0,.0756487,.933509,213721e-9,0,.0884762,.925088,229616e-9,0,.10232,.915178,239638e-9,0,.117178,.904093,254814e-9,0,.133051,.891337,263685e-9,0,.149939,.877326,274789e-9,0,.167841,.861794,280534e-9,0,.18676,.845758,289534e-9,0,.206696,.829792,294446e-9,0,.22765,.813037,296877e-9,0,.249625,.795285,300217e-9,0,.27262,.776323,299826e-9,0,.296636,.756673,299787e-9,0,.321671,.736856,297867e-9,0,.347718,.716883,294052e-9,0,.374768,.696089,289462e-9,0,.402804,.67505,285212e-9,0,.431796,.653509,27653e-8,0,.461695,.63258,271759e-9,0,.49242,.61104,262811e-9,0,.523822,.589567,255151e-9,0,.555556,.568322,246434e-9,0,.587302,.547235,237061e-9,0,.619048,.52616,228343e-9,0,.650794,.505716,219236e-9,0,.68254,.485274,209595e-9,0,.714286,.465411,201011e-9,0,.746032,.445854,19109e-8,0,.777778,.426911,182897e-9,0,.809524,.408222,173569e-9,0,.84127,.390307,165496e-9,0,.873016,.372624,156799e-9,0,.904762,.355804,14917e-8,0,.936508,.33924,140907e-9,0,.968254,.323534,134062e-9,0,1,1,622487e-11,0,0,1,62251e-10,0,0,1,622837e-11,0,0,.999999,624259e-11,0,0,.999998,628127e-11,0,0,.999996,636451e-11,0,0,.999991,65218e-10,0,0,.999984,679782e-11,0,0,.999973,726361e-11,0,0,.999955,803644e-11,0,0,.999931,931397e-11,0,0,.999896,114299e-10,0,0,.999847,149402e-10,0,0,.999784,207461e-10,0,0,.999692,302493e-10,0,0,.999554,454957e-10,0,997275e-10,.999326,690762e-10,0,724813e-9,.998757,101605e-9,0,.0020972,.995367,958745e-10,0,.00432324,.99209,832808e-10,0,.00746347,.989517,887601e-10,0,.0115534,.987008,10564e-8,0,.0166134,.98421,133179e-9,0,.0226552,.98021,161746e-9,0,.0296838,.973676,161821e-9,0,.0377016,.967052,178635e-9,0,.0467079,.959385,206765e-9,0,.0567013,.949461,22476e-8,0,.0676796,.939578,23574e-8,0,.0796403,.932416,25893e-8,0,.0925812,.923759,271228e-9,0,.106501,.914223,289165e-9,0,.121397,.902942,301156e-9,0,.13727,.890419,313852e-9,0,.15412,.876639,324408e-9,0,.171946,.861316,33249e-8,0,.190751,.84496,338497e-9,0,.210537,.828427,345861e-9,0,.231305,.811871,347863e-9,0,.253057,.794397,350225e-9,0,.275797,.775726,349915e-9,0,.299525,.75617,347297e-9,0,.324242,.736091,344232e-9,0,.349947,.716213,340835e-9,0,.376633,.695736,332369e-9,0,.404289,.674961,327943e-9,0,.432895,.653518,318533e-9,0,.462415,.632574,310391e-9,0,.492788,.61134,300755e-9,0,.523909,.590017,290506e-9,0,.555556,.568752,280446e-9,0,.587302,.548061,269902e-9,0,.619048,.52711,258815e-9,0,.650794,.506682,248481e-9,0,.68254,.486524,237141e-9,0,.714286,.466812,226872e-9,0,.746032,.44732,216037e-9,0,.777778,.428473,205629e-9,0,.809524,.409921,195691e-9,0,.84127,.392028,185457e-9,0,.873016,.374606,176436e-9,0,.904762,.357601,166508e-9,0,.936508,.341348,158385e-9,0,.968254,.32542,149203e-9,0,1,1,103967e-10,0,0,1,10397e-9,0,0,1,104019e-10,0,0,.999999,104231e-10,0,0,.999998,104806e-10,0,0,.999995,106042e-10,0,0,.999991,108366e-10,0,0,.999982,112415e-10,0,0,.999968,119174e-10,0,0,.99995,130227e-10,0,0,.999922,148176e-10,0,0,.999884,177303e-10,0,0,.99983,224564e-10,0,0,.999758,300966e-10,0,0,.999654,423193e-10,0,549083e-11,.999503,614848e-10,0,296087e-9,.999237,903576e-10,0,.00123144,.998491,1271e-7,0,.00295954,.994594,107754e-9,0,.00555829,.99178,103025e-9,0,.00907209,.989265,11154e-8,0,.0135257,.986998,136296e-9,0,.0189327,.984137,169154e-9,0,.0252993,.979798,196671e-9,0,.0326272,.97337,196678e-9,0,.0409157,.967239,223121e-9,0,.0501623,.959543,253809e-9,0,.0603638,.949466,265972e-9,0,.0715171,.939074,288372e-9,0,.0836187,.931118,310983e-9,0,.0966657,.922525,325561e-9,0,.110656,.912983,345725e-9,0,.125588,.901617,3556e-7,0,.141461,.889487,374012e-9,0,.158275,.875787,383445e-9,0,.176031,.860654,393972e-9,0,.19473,.844417,400311e-9,0,.214374,.82741,405004e-9,0,.234967,.810545,407378e-9,0,.256512,.793312,407351e-9,0,.279011,.774847,406563e-9,0,.302468,.755621,404903e-9,0,.326887,.735511,397486e-9,0,.352266,.715435,39357e-8,0,.378605,.695403,384739e-9,0,.405897,.674681,376108e-9,0,.43413,.65359,365997e-9,0,.463277,.632471,354957e-9,0,.493295,.61151,343593e-9,0,.524106,.59064,331841e-9,0,.555561,.569386,318891e-9,0,.587302,.548785,3072e-7,0,.619048,.528146,29361e-8,0,.650794,.507872,281709e-9,0,.68254,.487805,268627e-9,0,.714286,.468196,255887e-9,0,.746032,.448922,243997e-9,0,.777778,.430093,231662e-9,0,.809524,.411845,220339e-9,0,.84127,.393808,208694e-9,0,.873016,.376615,198045e-9,0,.904762,.359655,187375e-9,0,.936508,.343452,177371e-9,0,.968254,.32765,167525e-9,0,1,1,169351e-10,0,0,1,169356e-10,0,0,1,169427e-10,0,0,.999999,169736e-10,0,0,.999998,170575e-10,0,0,.999995,172372e-10,0,0,.99999,175739e-10,0,0,.999979,181568e-10,0,0,.999966,191206e-10,0,0,.999944,20677e-9,0,0,.999912,231644e-10,0,0,.999869,271268e-10,0,0,.999811,334272e-10,0,0,.99973,433979e-10,0,0,.999617,590083e-10,0,680315e-10,.999445,829497e-10,0,612796e-9,.999138,118019e-9,0,.00187408,.998095,156712e-9,0,.00395791,.993919,125054e-9,0,.00692144,.991333,126091e-9,0,.0107962,.989226,144912e-9,0,.0155986,.986954,175737e-9,0,.0213364,.983982,213883e-9,0,.0280114,.979128,234526e-9,0,.0356226,.973327,243725e-9,0,.0441668,.967416,2773e-7,0,.0536399,.959729,308799e-9,0,.0640376,.949758,322447e-9,0,.0753554,.939173,350021e-9,0,.0875893,.9296,370089e-9,0,.100736,.921181,391365e-9,0,.114793,.91164,413636e-9,0,.129759,.900435,427068e-9,0,.145632,.888183,441046e-9,0,.162412,.874772,454968e-9,0,.180101,.859566,461882e-9,0,.1987,.843579,471556e-9,0,.218213,.826453,474335e-9,0,.238641,.809164,477078e-9,0,.259989,.792179,47755e-8,0,.282262,.773866,472573e-9,0,.305464,.754944,469765e-9,0,.329599,.735133,462371e-9,0,.35467,.714858,453674e-9,0,.380678,.694829,443888e-9,0,.407622,.674453,432052e-9,0,.435493,.653685,420315e-9,0,.464275,.632666,406829e-9,0,.493938,.611676,392234e-9,0,.524422,.591193,379208e-9,0,.555624,.570145,36319e-8,0,.587302,.549566,349111e-9,0,.619048,.529278,334166e-9,0,.650794,.509026,318456e-9,0,.68254,.489186,30449e-8,0,.714286,.469662,289051e-9,0,.746032,.450691,275494e-9,0,.777778,.431841,261437e-9,0,.809524,.413752,247846e-9,0,.84127,.395951,235085e-9,0,.873016,.378633,222245e-9,0,.904762,.36194,210533e-9,0,.936508,.345599,198494e-9,0,.968254,.329999,188133e-9,0,1,1,269663e-10,0,0,1,26967e-9,0,0,1,269772e-10,0,0,.999999,270214e-10,0,0,.999998,271415e-10,0,0,.999994,27398e-9,0,0,.999988,278771e-10,0,0,.999977,287019e-10,0,0,.999961,300544e-10,0,0,.999937,322138e-10,0,0,.999904,356163e-10,0,0,.999854,409465e-10,0,0,.99979,492651e-10,0,0,.999699,621722e-10,0,88288e-11,.999572,819715e-10,0,223369e-9,.999381,111689e-9,0,.00105414,.999016,153862e-9,0,.0026493,.997437,187667e-9,0,.00508608,.993545,155672e-9,0,.00840554,.991135,161455e-9,0,.012629,.989157,188241e-9,0,.0177661,.986874,226229e-9,0,.0238198,.983714,268668e-9,0,.0307887,.978301,277109e-9,0,.0386688,.973227,303446e-9,0,.0474554,.967317,341851e-9,0,.0571428,.959477,370885e-9,0,.0677256,.950012,392753e-9,0,.0791988,.939484,42781e-8,0,.0915576,.928135,443866e-9,0,.104798,.919819,472959e-9,0,.118918,.910049,491551e-9,0,.133915,.899181,512616e-9,0,.149788,.886881,523563e-9,0,.166537,.87359,540183e-9,0,.184164,.858613,547386e-9,0,.202669,.842809,554809e-9,0,.222056,.825727,558316e-9,0,.242329,.808086,557824e-9,0,.263492,.790728,556346e-9,0,.285551,.772987,552672e-9,0,.30851,.7541,543738e-9,0,.332376,.734669,536107e-9,0,.357153,.714411,523342e-9,0,.382845,.694196,512238e-9,0,.409454,.674252,497465e-9,0,.436977,.65357,481096e-9,0,.465404,.632999,467054e-9,0,.494713,.611994,448771e-9,0,.524864,.591604,431889e-9,0,.555779,.571134,415238e-9,0,.587302,.550528,396369e-9,0,.619048,.530292,379477e-9,0,.650794,.510364,361488e-9,0,.68254,.490749,343787e-9,0,.714286,.471266,327822e-9,0,.746032,.452462,310626e-9,0,.777778,.433907,295352e-9,0,.809524,.415659,279179e-9,0,.84127,.398138,264685e-9,0,.873016,.380833,249905e-9,0,.904762,.364247,236282e-9,0,.936508,.348041,222905e-9,0,.968254,.332389,210522e-9,0,1,1,420604e-10,0,0,1,420614e-10,0,0,1,420757e-10,0,0,.999999,42138e-9,0,0,.999997,423067e-10,0,0,.999993,426668e-10,0,0,.999986,433372e-10,0,0,.999974,444857e-10,0,0,.999956,463554e-10,0,0,.99993,493105e-10,0,0,.999892,539077e-10,0,0,.999838,610005e-10,0,0,.999767,718822e-10,0,0,.999666,884581e-10,0,365471e-10,.999525,113398e-9,0,485623e-9,.999311,150043e-9,0,.00162096,.998865,200063e-9,0,.00355319,.996278,211014e-9,0,.00633818,.992956,189672e-9,0,.0100043,.991017,210262e-9,0,.0145648,.989055,244292e-9,0,.0200237,.986741,290481e-9,0,.0263798,.983288,334303e-9,0,.033629,.977784,340307e-9,0,.0417652,.973037,377864e-9,0,.0507821,.967181,4239e-7,0,.060673,.958971,443854e-9,0,.0714314,.950093,483039e-9,0,.0830518,.939552,517934e-9,0,.0955288,.927678,539449e-9,0,.108859,.918278,568604e-9,0,.123038,.908449,588505e-9,0,.138065,.897713,612473e-9,0,.153938,.885533,625575e-9,0,.170657,.872131,63854e-8,0,.188224,.857517,647034e-9,0,.20664,.841796,65209e-8,0,.225909,.824726,6544e-7,0,.246035,.807297,655744e-9,0,.267022,.789058,646716e-9,0,.288878,.77189,643898e-9,0,.311607,.753082,629973e-9,0,.335216,.7341,621564e-9,0,.359713,.714094,605171e-9,0,.385103,.693839,588752e-9,0,.41139,.673891,573294e-9,0,.438576,.653565,552682e-9,0,.466656,.633326,533446e-9,0,.495617,.612582,514635e-9,0,.525431,.59205,49303e-8,0,.556041,.571918,471842e-9,0,.587338,.551572,451713e-9,0,.619048,.531553,430049e-9,0,.650794,.51175,410445e-9,0,.68254,.49238,390098e-9,0,.714286,.473143,370033e-9,0,.746032,.45423,351205e-9,0,.777778,.435963,332049e-9,0,.809524,.41787,315021e-9,0,.84127,.400387,297315e-9,0,.873016,.383332,281385e-9,0,.904762,.366665,265397e-9,0,.936508,.350633,250601e-9,0,.968254,.334964,23589e-8,0,1,1,643736e-10,0,0,1,64375e-9,0,0,1,643947e-10,0,0,.999999,64481e-9,0,0,.999997,647143e-10,0,0,.999994,652119e-10,0,0,.999985,661359e-10,0,0,.999972,677116e-10,0,0,.999952,702599e-10,0,0,.999922,742517e-10,0,0,.99988,803906e-10,0,0,.99982,897315e-10,0,0,.999741,103838e-9,0,0,.999629,12496e-8,0,149024e-9,.999474,156161e-9,0,861027e-9,.999229,201034e-9,0,.00231198,.998662,259069e-9,0,.00458147,.995299,245439e-9,0,.00770895,.992732,24498e-8,0,.0117126,.990847,273211e-9,0,.0165989,.988911,316492e-9,0,.0223674,.98654,37161e-8,0,.0290135,.982636,410352e-9,0,.0365309,.977346,421756e-9,0,.0449117,.972909,475578e-9,0,.0541481,.966821,522482e-9,0,.0642326,.958686,545008e-9,0,.075158,.949754,589286e-9,0,.0869181,.939184,619995e-9,0,.0995074,.927505,654266e-9,0,.112922,.916606,682362e-9,0,.127157,.906707,704286e-9,0,.142212,.895937,725909e-9,0,.158085,.883913,743939e-9,0,.174776,.870642,755157e-9,0,.192287,.856241,764387e-9,0,.210619,.84069,771032e-9,0,.229775,.823728,765906e-9,0,.249761,.806481,767604e-9,0,.270582,.787924,754385e-9,0,.292243,.770588,749668e-9,0,.314753,.751991,731613e-9,0,.338118,.733407,717655e-9,0,.362347,.713688,700604e-9,0,.387447,.693595,678765e-9,0,.413424,.673426,657042e-9,0,.440284,.65359,635892e-9,0,.468027,.633576,611569e-9,0,.496645,.613144,586011e-9,0,.526122,.592711,563111e-9,0,.556417,.572722,537699e-9,0,.587451,.552762,512556e-9,0,.619048,.532985,489757e-9,0,.650794,.513219,464139e-9,0,.68254,.493992,442193e-9,0,.714286,.47509,418629e-9,0,.746032,.456287,397045e-9,0,.777778,.438152,375504e-9,0,.809524,.420294,35492e-8,0,.84127,.402749,335327e-9,0,.873016,.385879,316422e-9,0,.904762,.369352,298333e-9,0,.936508,.353301,281417e-9,0,.968254,.337781,265203e-9,0,1,1,968267e-10,0,0,1,968284e-10,0,0,1,968556e-10,0,0,.999999,969733e-10,0,0,.999997,972913e-10,0,0,.999993,979688e-10,0,0,.999984,992239e-10,0,0,.999969,101356e-9,0,0,.999946,104784e-9,0,0,.999913,110111e-9,0,0,.999868,118217e-9,0,0,.999801,130396e-9,0,0,.999712,148523e-9,0,124907e-10,.999589,175233e-9,0,355405e-9,.999416,213999e-9,0,.0013528,.999136,268529e-9,0,.00312557,.998367,333088e-9,0,.00573045,.994701,304757e-9,0,.00919397,.992497,318031e-9,0,.0135261,.990608,353863e-9,0,.0187278,.988715,409044e-9,0,.0247947,.986241,472967e-9,0,.0317196,.981696,495104e-9,0,.039494,.977097,532873e-9,0,.0481087,.972583,594447e-9,0,.0575549,.966142,636867e-9,0,.0678242,.95823,669899e-9,0,.0789089,.949677,719499e-9,0,.0908023,.939226,750584e-9,0,.103499,.927501,793183e-9,0,.116993,.915199,81995e-8,0,.131282,.90498,847654e-9,0,.146364,.894243,868929e-9,0,.162237,.882154,884278e-9,0,.178902,.869161,898108e-9,0,.196358,.854751,901254e-9,0,.21461,.839368,90679e-8,0,.23366,.822874,901541e-9,0,.253512,.805514,897297e-9,0,.274174,.78716,881856e-9,0,.29565,.769061,870032e-9,0,.31795,.751,851719e-9,0,.341081,.732614,830671e-9,0,.365053,.713171,806569e-9,0,.389874,.693472,78338e-8,0,.415553,.673528,756404e-9,0,.442098,.653397,726872e-9,0,.469512,.633781,700494e-9,0,.497794,.613877,67105e-8,0,.526935,.593506,640361e-9,0,.556908,.573667,613502e-9,0,.587657,.553932,583177e-9,0,.61906,.534345,554375e-9,0,.650794,.515042,527811e-9,0,.68254,.495674,499367e-9,0,.714286,.477132,47429e-8,0,.746032,.458609,447726e-9,0,.777778,.440354,424205e-9,0,.809524,.422765,399549e-9,0,.84127,.405472,378315e-9,0,.873016,.388482,355327e-9,0,.904762,.372191,336122e-9,0,.936508,.356099,315247e-9,0,.968254,.340737,29794e-8,0,1,1,143327e-9,0,0,1,14333e-8,0,0,1,143366e-9,0,0,.999999,143524e-9,0,0,.999996,143952e-9,0,0,.999991,144862e-9,0,0,.999981,146544e-9,0,0,.999966,149391e-9,0,0,.999941,153946e-9,0,0,.999905,160971e-9,0,0,.999852,171562e-9,0,0,.99978,18729e-8,0,0,.999681,210386e-9,0,826239e-10,.999546,243906e-9,0,664807e-9,.999352,291739e-9,0,.00196192,.999027,357419e-9,0,.00405941,.997886,422349e-9,0,.00699664,.99419,385008e-9,0,.0107896,.99214,409775e-9,0,.0154415,.990274,456418e-9,0,.0209488,.988455,527008e-9,0,.0273037,.985804,597685e-9,0,.0344969,.98103,613124e-9,0,.0425183,.976674,668321e-9,0,.0513575,.972021,736985e-9,0,.0610046,.965274,773789e-9,0,.0714508,.958046,830852e-9,0,.0826877,.949333,875766e-9,0,.0947085,.939135,917088e-9,0,.107507,.927119,952244e-9,0,.121078,.91469,990626e-9,0,.135419,.903006,.00101304,0,.150526,.892368,.00103834,0,.166399,.880231,.00105002,0,.183038,.867432,.00106331,0,.200443,.853208,.00106783,0,.218618,.837956,.00106458,0,.237566,.821772,.00105945,0,.257291,.804328,.00104685,0,.2778,.786465,.00103178,0,.2991,.768004,.00101077,0,.321199,.74972,985504e-9,0,.344106,.731682,962893e-9,0,.36783,.712813,932146e-9,0,.392383,.693139,89871e-8,0,.417774,.673566,869678e-9,0,.444013,.653483,835525e-9,0,.471107,.633891,799853e-9,0,.49906,.614433,766838e-9,0,.527869,.594586,732227e-9,0,.557517,.574769,696442e-9,0,.587966,.555149,663935e-9,0,.61913,.535898,629826e-9,0,.650794,.516753,596486e-9,0,.68254,.497816,567078e-9,0,.714286,.479034,534399e-9,0,.746032,.460975,507013e-9,0,.777778,.442935,477421e-9,0,.809524,.425263,451101e-9,0,.84127,.408248,424964e-9,0,.873016,.391339,39993e-8,0,.904762,.37513,377619e-9,0,.936508,.359172,354418e-9,0,.968254,.343876,334823e-9,0,1,1,209042e-9,0,0,1,209045e-9,0,0,1,209093e-9,0,0,.999999,209304e-9,0,0,.999996,209871e-9,0,0,.999991,211078e-9,0,0,.999979,213304e-9,0,0,.999963,217061e-9,0,0,.999933,223042e-9,0,0,.999894,232206e-9,0,0,.999837,245901e-9,0,0,.999756,266023e-9,0,102927e-11,.999648,295204e-9,0,233468e-9,.999499,336958e-9,0,.00108237,.999283,395563e-9,0,.00268832,.998896,473785e-9,0,.00511138,.997006,520008e-9,0,.00837705,.993819,497261e-9,0,.0124928,.991632,523722e-9,0,.0174561,.989875,587258e-9,0,.0232596,.988109,676329e-9,0,.0298932,.985155,747701e-9,0,.0373453,.980479,768803e-9,0,.0456045,.976271,841054e-9,0,.0546593,.971347,911469e-9,0,.0644994,.964528,953057e-9,0,.0751152,.957632,.00102221,0,.0864981,.948681,.00106122,0,.0986407,.938716,.00111857,0,.111537,.926629,.00114762,0,.125182,.914025,.00118995,0,.139571,.901026,.00121228,0,.154703,.890358,.00123946,0,.170576,.878283,.0012527,0,.18719,.865459,.00125536,0,.204547,.851407,.00126134,0,.222648,.836276,.00124759,0,.241498,.820436,.00124443,0,.261101,.803253,.00122071,0,.281465,.785562,.00120107,0,.302595,.76718,.00117762,0,.324501,.748551,.00114289,0,.347192,.730564,.00110872,0,.370679,.712253,.00107636,0,.394973,.692867,.00103646,0,.420085,.673695,996793e-9,0,.446027,.653912,95675e-8,0,.47281,.634129,916739e-9,0,.500441,.615004,874401e-9,0,.528921,.595587,833411e-9,0,.558244,.575965,794556e-9,0,.588384,.5566,75196e-8,0,.619281,.537428,716381e-9,0,.650795,.518623,676558e-9,0,.68254,.499964,64074e-8,0,.714286,.481356,605984e-9,0,.746032,.463279,570256e-9,0,.777778,.445673,540138e-9,0,.809524,.428032,507299e-9,0,.84127,.411112,479553e-9,0,.873016,.394444,450737e-9,0,.904762,.378247,424269e-9,0,.936508,.362415,399111e-9,0,.968254,.347103,375274e-9,0,1,1,300729e-9,0,0,1,300733e-9,0,0,1,300797e-9,0,0,.999998,301072e-9,0,0,.999996,301817e-9,0,0,.999989,303398e-9,0,0,.999977,306309e-9,0,0,.999958,311209e-9,0,0,.999927,318975e-9,0,0,.999884,330804e-9,0,0,.99982,34834e-8,0,0,.999733,373854e-9,0,326995e-10,.999613,410424e-9,0,477174e-9,.999447,462047e-9,0,.00161099,.999204,533322e-9,0,.00353153,.998725,624964e-9,0,.00627965,.995871,631786e-9,0,.0098693,.993194,632017e-9,0,.0143011,.991541,68923e-8,0,.019568,.989773,766892e-9,0,.0256593,.987647,863668e-9,0,.0325625,.984193,922089e-9,0,.0402647,.980016,970749e-9,0,.0487532,.975859,.00106027,0,.058016,.970514,.00112239,0,.0680419,.963625,.00117212,0,.0788208,.956959,.00125211,0,.0903439,.947956,.00129411,0,.102604,.93809,.00135879,0,.115594,.92659,.00139309,0,.129309,.913829,.00143253,0,.143745,.90005,.00145809,0,.158901,.888129,.0014748,0,.174774,.87607,.00148756,0,.191365,.863461,.00148714,0,.208674,.849594,.00148892,0,.226705,.834531,.00146496,0,.245461,.81903,.0014579,0,.264947,.802122,.00143039,0,.28517,.78445,.00139717,0,.306137,.766434,.00136312,0,.327857,.747816,.00132597,0,.350341,.729519,.00128323,0,.373598,.711454,.00123803,0,.397642,.692699,.00119097,0,.422485,.673723,.00114565,0,.448139,.654386,.00109552,0,.474619,.634673,.00104553,0,.501933,.615554,99985e-8,0,.530089,.596462,948207e-9,0,.559087,.577385,902299e-9,0,.588913,.558257,856448e-9,0,.619525,.5392,810395e-9,0,.650826,.520543,768558e-9,0,.68254,.502206,7239e-7,0,.714286,.48402,685794e-9,0,.746032,.465779,64471e-8,0,.777778,.448455,609583e-9,0,.809524,.431091,57227e-8,0,.84127,.414147,54042e-8,0,.873016,.39765,506545e-9,0,.904762,.381576,477635e-9,0,.936508,.365881,448446e-9,0,.968254,.350582,421424e-9,0,1,1,427144e-9,0,0,1,427151e-9,0,0,1,427232e-9,0,0,.999998,42759e-8,0,0,.999995,428555e-9,0,0,.999988,430603e-9,0,0,.999976,434368e-9,0,0,.999952,440688e-9,0,0,.999919,450667e-9,0,0,.999871,46578e-8,0,0,.999801,488024e-9,0,0,.999704,520092e-9,0,129791e-9,.999572,565553e-9,0,821056e-9,.999389,628906e-9,0,.00225241,.999114,714911e-9,0,.00449109,.998488,819218e-9,0,.00756249,.995234,80415e-8,0,.0114716,.993021,830181e-9,0,.0162131,.991407,902645e-9,0,.021776,.989625,996934e-9,0,.0281471,.987064,.00109707,0,.0353118,.983265,.00114353,0,.0432562,.979535,.0012272,0,.0519665,.975224,.00132642,0,.0614298,.969574,.00138092,0,.0716348,.963021,.00145896,0,.0825709,.956046,.00152834,0,.094229,.947136,.00158217,0,.106602,.937313,.0016347,0,.119682,.926073,.00168383,0,.133465,.913121,.00171627,0,.147947,.899165,.00174229,0,.163125,.885891,.00176137,0,.178998,.873783,.00176406,0,.195566,.861331,.00176156,0,.21283,.847569,.00175346,0,.230793,.832785,.00172753,0,.249459,.817442,.00170204,0,.268832,.800613,.00166576,0,.28892,.783597,.00162909,0,.30973,.76571,.0015826,0,.331271,.747021,.00153106,0,.353554,.728593,.00148036,0,.37659,.710661,.00142808,0,.400391,.692426,.00136906,0,.424973,.673623,.00131066,0,.450347,.65494,.00125569,0,.476531,.635448,.00119517,0,.503535,.616221,.00113828,0,.531372,.597531,.0010816,0,.560047,.578795,.00102673,0,.589554,.559892,970985e-9,0,.619869,.541307,919773e-9,0,.650923,.522608,868479e-9,0,.68254,.504484,82137e-8,0,.714286,.486603,772916e-9,0,.746032,.468802,730353e-9,0,.777778,.451172,684955e-9,0,.809524,.434348,647565e-9,0,.84127,.417445,605863e-9,0,.873016,.401077,571885e-9,0,.904762,.385039,536034e-9,0,.936508,.369483,504227e-9,0,.968254,.354272,473165e-9,0,1,1,599525e-9,0,0,1,599533e-9,0,0,1,599639e-9,0,0,.999998,600097e-9,0,0,.999994,601336e-9,0,0,.999987,603958e-9,0,0,.999972,608775e-9,0,0,.999949,616842e-9,0,0,.999912,629534e-9,0,0,.999857,648658e-9,0,0,.999781,676615e-9,0,538873e-11,.999674,716574e-9,0,308602e-9,.999528,772641e-9,0,.00127003,.999326,849806e-9,0,.00300783,.999009,952682e-9,0,.00556637,.998112,.00106394,0,.00895889,.994496,.00102228,0,.0131827,.992806,.00108586,0,.0182277,.991211,.0011759,0,.0240795,.989415,.00128955,0,.030723,.986499,.00139038,0,.0381418,.982679,.00144539,0,.046321,.978839,.00153954,0,.0552459,.974295,.00164417,0,.0649034,.968784,.00171517,0,.0752814,.962324,.00180282,0,.0863693,.954956,.00186387,0,.0981578,.94624,.00193817,0,.110639,.936517,.00198156,0,.123806,.925186,.00203042,0,.137655,.91252,.0020664,0,.15218,.898441,.00207822,0,.16738,.884394,.0020992,0,.183253,.871273,.00208748,0,.199799,.859057,.00208686,0,.21702,.845243,.00205519,0,.234918,.830723,.00202868,0,.253496,.815801,.00199501,0,.272761,.79914,.00194193,0,.292719,.782372,.00188824,0,.313377,.76482,.00183695,0,.334745,.746586,.00177418,0,.356833,.7281,.00170628,0,.379654,.709842,.00164063,0,.403221,.692019,.00157355,0,.427548,.67364,.00150262,0,.452651,.655277,.00143473,0,.478545,.636438,.00136371,0,.505246,.617364,.00129911,0,.532768,.598603,.00123014,0,.561122,.580195,.00116587,0,.590309,.561786,.00110398,0,.620318,.543377,.00104148,0,.651102,.525093,983984e-9,0,.682545,.506791,92667e-8,0,.714286,.489291,874326e-9,0,.746032,.471811,821734e-9,0,.777778,.454435,774698e-9,0,.809524,.437493,727302e-9,0,.84127,.420977,684039e-9,0,.873016,.404729,64373e-8,0,.904762,.388756,60285e-8,0,.936508,.373344,56765e-8,0,.968254,.358191,531929e-9,0,1,1,832169e-9,0,0,1,832178e-9,0,0,1,83231e-8,0,0,.999998,832893e-9,0,0,.999995,834465e-9,0,0,.999985,837791e-9,0,0,.999969,843893e-9,0,0,.999944,854086e-9,0,0,.999903,870071e-9,0,0,.999843,894042e-9,0,0,.999759,928865e-9,0,531805e-10,.999643,978242e-9,0,579365e-9,.99948,.00104684,0,.00182774,.999255,.00114012,0,.00387804,.998885,.00126188,0,.00675709,.997405,.00135888,0,.010468,.99424,.00133626,0,.0150018,.992458,.00140905,0,.0203443,.990929,.00152305,0,.0264786,.989116,.00165882,0,.0333875,.985624,.00174128,0,.0410536,.982003,.00182108,0,.0494609,.978336,.00194498,0,.0585941,.973184,.00202708,0,.0684396,.9678,.00212166,0,.0789851,.961348,.00221366,0,.0902199,.953841,.00228219,0,.102134,.94534,.00235662,0,.114721,.935552,.00240572,0,.127972,.924064,.00244405,0,.141884,.911827,.00247557,0,.156451,.897731,.00248374,0,.171672,.883409,.00249863,0,.187545,.868625,.00246688,0,.20407,.856529,.00246523,0,.221249,.842999,.00242368,0,.239083,.828505,.00237354,0,.257578,.813825,.00232588,0,.276738,.797813,.00226731,0,.296569,.781097,.00219704,0,.31708,.764038,.00212394,0,.338281,.746067,.00204786,0,.360181,.727687,.00196728,0,.382794,.709571,.00188779,0,.406133,.691503,.00180532,0,.430213,.673673,.00171849,0,.45505,.655732,.00164147,0,.480662,.637399,.00155858,0,.507065,.618616,.00147641,0,.534278,.60005,.00140125,0,.562313,.581713,.00132441,0,.59118,.563546,.00125014,0,.620875,.545605,.00118249,0,.651373,.527559,.0011116,0,.682593,.509764,.00104979,0,.714286,.49193,985977e-9,0,.746032,.475011,928592e-9,0,.777778,.457878,873466e-9,0,.809524,.440979,819585e-9,0,.84127,.424613,772365e-9,0,.873016,.408549,722195e-9,0,.904762,.392771,680014e-9,0,.936508,.377317,636797e-9,0,.968254,.362352,598318e-9,0,1,1,.00114313,0,0,1,.00114314,0,0,.999999,.00114331,0,0,.999998,.00114404,0,0,.999994,.00114601,0,0,.999984,.00115019,0,0,.999967,.00115784,0,0,.999937,.0011706,0,0,.999894,.00119054,0,0,.999828,.00122031,0,0,.999735,.00126331,0,169263e-9,.999606,.00132382,0,949167e-9,.999426,.0014071,0,.00249668,.999173,.00151895,0,.00486392,.99873,.00166102,0,.00806323,.996243,.0017023,0,.0120895,.993779,.00172782,0,.0169288,.9919,.0018108,0,.0225633,.990524,.00196028,0,.028974,.98868,.00212014,0,.036142,.984663,.00217598,0,.044049,.981457,.00230563,0,.0526781,.977608,.00243966,0,.0620137,.972215,.00251336,0,.0720418,.966798,.0026285,0,.0827499,.960241,.00271409,0,.0941271,.952489,.00278381,0,.106164,.944127,.00285399,0,.118852,.934282,.00290994,0,.132185,.923271,.00294558,0,.146157,.910803,.00296269,0,.160766,.896705,.00296803,0,.176007,.88238,.00296637,0,.19188,.867116,.00293163,0,.208385,.853636,.00289418,0,.225523,.840469,.00284663,0,.243296,.82639,.00278594,0,.261709,.811759,.00271618,0,.280767,.796113,.00263187,0,.300476,.779518,.00254589,0,.320845,.763142,.00246003,0,.341883,.745464,.00236529,0,.363601,.727491,.00226536,0,.386011,.709414,.00216375,0,.409128,.691396,.00207127,0,.432967,.67368,.00197106,0,.457545,.656049,.00187022,0,.482881,.638188,.00177605,0,.508992,.620177,.00168482,0,.535899,.601506,.00158909,0,.563619,.58362,.00150583,0,.592165,.565496,.00141791,0,.621544,.54789,.00133693,0,.651743,.530323,.00126038,0,.682709,.512795,.00118556,0,.714286,.495199,.00111527,0,.746032,.478101,.0010489,0,.777778,.461511,984264e-9,0,.809524,.444879,92591e-8,0,.84127,.428424,866582e-9,0,.873016,.412495,814463e-9,0,.904762,.396975,764498e-9,0,.936508,.381614,715967e-9,0,.968254,.366732,672483e-9,0,1,1,.00155501,0,0,1,.00155503,0,0,1,.00155524,0,0,.999998,.00155615,0,0,.999994,.0015586,0,0,.999983,.00156379,0,0,.999963,.0015733,0,0,.999932,.00158911,0,0,.999882,.00161376,0,0,.99981,.00165041,0,100875e-10,.999708,.00170304,0,367658e-9,.999565,.00177658,0,.0014234,.999368,.00187688,0,.00327939,.999081,.00200989,0,.00596629,.99852,.00217177,0,.0094852,.99549,.0021745,0,.013824,.993252,.00222357,0,.0189642,.991727,.00235022,0,.0248856,.989951,.00250561,0,.0315669,.988029,.00268829,0,.0389882,.984029,.0027496,0,.0471302,.980683,.00289793,0,.0559754,.976554,.00303315,0,.0655081,.97139,.00313257,0,.0757138,.965544,.00323656,0,.08658,.95912,.00333432,0,.0980954,.951183,.0034039,0,.110251,.942974,.00347515,0,.123038,.932642,.00350381,0,.13645,.922158,.00354519,0,.150482,.909404,.00353851,0,.165129,.896071,.0035435,0,.18039,.881206,.00349936,0,.196263,.866077,.00347256,0,.212748,.85093,.003415,0,.229847,.837703,.00333367,0,.247561,.823878,.003249,0,.265895,.809449,.00316347,0,.284854,.794379,.00306351,0,.304445,.778138,.0029499,0,.324675,.761997,.00284099,0,.345555,.744938,.00272104,0,.367095,.727212,.00260715,0,.389309,.709549,.00248855,0,.41221,.691704,.00236783,0,.435814,.673689,.00225178,0,.460138,.656453,.00213765,0,.485203,.639128,.00202178,0,.511028,.621512,.00191443,0,.537634,.603598,.00180977,0,.565041,.58559,.00170456,0,.593268,.567852,.00160927,0,.622327,.5503,.00151395,0,.652217,.533033,.00142499,0,.682907,.515942,.00133955,0,.714296,.498814,.0012602,0,.746032,.481595,.00118188,0,.777778,.465117,.00111171,0,.809524,.448865,.00104091,0,.84127,.432711,976618e-9,0,.873016,.416822,91859e-8,0,.904762,.401272,857704e-9,0,.936508,.386226,807172e-9,0,.968254,.371321,75464e-8,0,1,1,.00209596,0,0,1,.00209598,0,0,1,.00209624,0,0,.999997,.00209736,0,0,.999991,.00210039,0,0,.999979,.00210678,0,0,.999959,.00211847,0,0,.999925,.0021379,0,0,.99987,.00216809,0,0,.999791,.00221281,0,681487e-10,.999677,.00227669,0,658161e-9,.999521,.00236533,0,.00200635,.999301,.00248514,0,.0041779,.998977,.00264185,0,.00718648,.998191,.00281695,0,.0110239,.994801,.00278518,0,.015672,.993091,.00288774,0,.0211091,.991571,.00303931,0,.0273123,.9897,.00321643,0,.034259,.987023,.00337332,0,.0419282,.983289,.00346146,0,.0502998,.979892,.00363704,0,.0593562,.975111,.00373601,0,.069081,.970351,.0038842,0,.0794598,.964131,.00397053,0,.0904798,.957747,.00408078,0,.10213,.949536,.00413533,0,.1144,.941372,.00420305,0,.127284,.931049,.00422815,0,.140772,.920647,.00425048,0,.154862,.908033,.0042281,0,.169548,.895028,.00422026,0,.184828,.879968,.00415042,0,.200701,.864875,.00408821,0,.217167,.84918,.00400909,0,.234227,.834934,.00391178,0,.251884,.821397,.00380066,0,.270141,.807135,.00367974,0,.289004,.792363,.00355172,0,.308479,.776661,.003411,0,.328575,.760705,.00328123,0,.349301,.744408,.00314003,0,.370668,.726994,.0029906,0,.392689,.709598,.00285034,0,.415379,.692112,.00271179,0,.438754,.674435,.00257185,0,.46283,.65676,.00243425,0,.48763,.639982,.00230351,0,.513173,.622983,.0021777,0,.539482,.605471,.00204991,0,.566579,.58796,.00193759,0,.594488,.570463,.00181976,0,.623226,.553058,.00171497,0,.6528,.535894,.00161109,0,.683198,.519089,.00151394,0,.714354,.502454,.00142122,0,.746032,.485681,.00133488,0,.777778,.468935,.00124975,0,.809524,.452951,.00117309,0,.84127,.437139,.00110155,0,.873016,.421446,.00103124,0,.904762,.405951,966387e-9,0,.936508,.391003,908119e-9,0,.968254,.376198,848057e-9,0,1,1,.00280076,0,0,1,.00280078,0,0,.999999,.00280109,0,0,.999997,.00280246,0,0,.999992,.00280616,0,0,.999979,.00281396,0,0,.999956,.00282822,0,0,.999916,.00285186,0,0,.999857,.0028885,0,0,.999768,.00294259,0,196026e-9,.999645,.00301946,0,.00104842,.99947,.00312541,0,.00270199,.999229,.00326733,0,.00519449,.998852,.00344992,0,.00852602,.997558,.00361052,0,.0126804,.994417,.0035898,0,.017635,.992824,.00372393,0,.023365,.991344,.00390695,0,.0298456,.989337,.00410392,0,.0370529,.985811,.00420987,0,.0449651,.982772,.00437488,0,.0535615,.979001,.00455069,0,.0628243,.974102,.00464462,0,.0727368,.969197,.00480577,0,.0832844,.962759,.00487818,0,.0944545,.956207,.00498176,0,.106236,.947909,.00503392,0,.118619,.939596,.00507474,0,.131595,.929642,.00509798,0,.145159,.918807,.00508476,0,.159305,.906921,.00505634,0,.174028,.893312,.00498845,0,.189327,.878933,.0049133,0,.2052,.863986,.0048259,0,.221647,.847936,.00470848,0,.23867,.832253,.00456889,0,.25627,.818619,.00442726,0,.274453,.804788,.00427677,0,.293222,.790241,.00411906,0,.312585,.775162,.00394833,0,.33255,.759463,.00377366,0,.353126,.743598,.00361026,0,.374324,.72697,.00343627,0,.396158,.709646,.00326422,0,.418641,.69277,.00309717,0,.44179,.675371,.0029356,0,.465624,.657863,.00277712,0,.490163,.640772,.00261738,0,.515429,.624441,.0024737,0,.541445,.607497,.00233125,0,.568236,.590438,.00218994,0,.595828,.573224,.0020664,0,.624242,.556168,.00193526,0,.653496,.539232,.00182463,0,.683588,.522352,.00170735,0,.714482,.506172,.00160555,0,.746032,.489842,.00150451,0,.777778,.473463,.00140938,0,.809524,.457266,.00132568,0,.84127,.441609,.0012376,0,.873016,.426348,.00116265,0,.904762,.411002,.00108935,0,.936508,.396045,.00101946,0,.968254,.381448,955665e-9,0,1,1,.0037121,0,0,1,.00371213,0,0,1,.00371251,0,0,.999997,.00371417,0,0,.99999,.00371863,0,0,.999977,.00372807,0,0,.99995,.00374529,0,0,.999908,.0037738,0,0,.999843,.00381789,0,123596e-10,.999745,.00388273,0,407442e-9,.999608,.00397443,0,.0015447,.999415,.00409998,0,.00351385,.999143,.00426662,0,.0063316,.9987,.00447625,0,.00998679,.996363,.00455323,0,.0144569,.994021,.00461052,0,.0197151,.992372,.00476359,0,.0257344,.991007,.00499101,0,.0324882,.988767,.0051972,0,.0399517,.984872,.00528407,0,.0481022,.982004,.00548926,0,.0569191,.977714,.00564385,0,.0663839,.973076,.0057693,0,.0764801,.967565,.0058924,0,.0871928,.961384,.00599629,0,.0985095,.954435,.00605998,0,.110419,.946303,.0061133,0,.122912,.937662,.00612028,0,.13598,.927867,.00612209,0,.149617,.916475,.00604813,0,.163817,.90541,.00603088,0,.178577,.891591,.00592218,0,.193894,.877573,.00578854,0,.209767,.862511,.00566648,0,.226196,.846861,.00551481,0,.243182,.83068,.00533754,0,.260728,.815725,.00515487,0,.278837,.802321,.0049655,0,.297515,.787826,.00475421,0,.316768,.773454,.00456002,0,.336605,.758224,.00434727,0,.357034,.74265,.00414444,0,.378067,.726729,.00393738,0,.399717,.710155,.00373575,0,.421998,.693312,.00353736,0,.444928,.67653,.00334368,0,.468523,.659444,.00315981,0,.492806,.642051,.00297809,0,.517798,.625758,.00280592,0,.543525,.609615,.00264254,0,.570012,.592919,.00248459,0,.597288,.576298,.00233327,0,.625379,.559489,.00219519,0,.654307,.542891,.00205441,0,.684084,.526255,.00193385,0,.714693,.509853,.00180745,0,.746044,.494131,.00169817,0,.777778,.478114,.0015913,0,.809524,.462274,.00148981,0,.84127,.446412,.00139537,0,.873016,.431274,.00130984,0,.904762,.41635,.00122403,0,.936508,.401476,.00114809,0,.968254,.386993,.00107563,0,1,1,.00488216,0,0,1,.0048822,0,0,1,.00488265,0,0,.999997,.00488463,0,0,.999988,.00488999,0,0,.999974,.00490129,0,0,.999946,.00492191,0,0,.999897,.00495598,0,0,.999825,.00500855,0,744791e-10,.999718,.00508559,0,712744e-9,.999565,.005194,0,.00215249,.999352,.00534147,0,.00444576,.999046,.00553523,0,.00759218,.998492,.00577016,0,.0115714,.995564,.00578487,0,.0163557,.993339,.00586414,0,.021915,.991834,.00606002,0,.0282201,.990496,.00633312,0,.0352433,.987826,.00651941,0,.042959,.98383,.00660842,0,.0513439,.98109,.00685523,0,.0603772,.976131,.00695778,0,.0700402,.971922,.00714236,0,.0803163,.965901,.00721437,0,.0911908,.959606,.00732017,0,.102651,.952504,.00735788,0,.114686,.944365,.00738493,0,.127286,.935652,.00737969,0,.140443,.925813,.00733612,0,.154151,.914397,.00723094,0,.168405,.903257,.00714002,0,.183201,.890015,.00700149,0,.198536,.876014,.00682813,0,.214409,.861436,.00665567,0,.23082,.845752,.00644526,0,.24777,.829169,.00621635,0,.265263,.813435,.00597789,0,.283301,.799701,.00575694,0,.301889,.785726,.00549866,0,.321035,.77152,.0052503,0,.340746,.75683,.00499619,0,.361032,.741951,.0047543,0,.381904,.726367,.0045084,0,.403374,.710537,.00426784,0,.425457,.693965,.00403487,0,.448169,.677724,.0038075,0,.47153,.66117,.00359431,0,.495561,.644274,.00338354,0,.520284,.627449,.00318163,0,.545725,.611645,.00299672,0,.571911,.595614,.00281016,0,.598873,.579426,.00264252,0,.62664,.563016,.00247509,0,.655239,.546728,.00232647,0,.684692,.530539,.00217803,0,.714999,.514164,.00204216,0,.746106,.498344,.00191403,0,.777778,.482957,.00179203,0,.809524,.467336,.00167695,0,.84127,.451994,.00157567,0,.873016,.436514,.00147113,0,.904762,.42178,.00138034,0,.936508,.407271,.00129219,0,.968254,.392822,.0012098,0,1,1,.00637427,0,0,1,.00637431,0,0,.999999,.00637485,0,0,.999996,.00637721,0,0,.999987,.00638357,0,0,.999971,.006397,0,0,.999939,.00642142,0,0,.999888,.00646177,0,0,.999807,.00652387,0,207916e-9,.999689,.00661454,0,.00112051,.99952,.00674155,0,.00287719,.999283,.00691313,0,.00550145,.998936,.00713598,0,.00897928,.998165,.00738501,0,.0132829,.994847,.00734388,0,.01838,.993182,.00749991,0,.0242381,.991665,.0077246,0,.030826,.989708,.00797579,0,.0381152,.986663,.00813011,0,.0460794,.983288,.00830365,0,.0546951,.980104,.00853496,0,.0639411,.974855,.00861045,0,.0737988,.97045,.00879133,0,.0842516,.964509,.00886377,0,.0952848,.957594,.00890346,0,.106886,.950546,.00893289,0,.119044,.942225,.00890074,0,.131749,.933365,.00886826,0,.144994,.923202,.0087316,0,.158772,.912605,.00863082,0,.173078,.901099,.00847403,0,.187908,.888177,.00825838,0,.203261,.873955,.00801834,0,.219134,.860091,.00779026,0,.235527,.84434,.00752478,0,.252443,.828517,.00724074,0,.269883,.81239,.00693769,0,.287851,.79721,.00664817,0,.306352,.783489,.00634763,0,.325393,.769514,.00604221,0,.344981,.755419,.00573568,0,.365126,.741083,.00544359,0,.385839,.726059,.00515515,0,.407132,.710809,.00487139,0,.42902,.695052,.00459846,0,.45152,.678886,.00433412,0,.474651,.663042,.00407981,0,.498433,.646634,.00384264,0,.52289,.630117,.00360897,0,.548048,.613804,.00338863,0,.573936,.598338,.00318486,0,.600584,.582687,.00298377,0,.628027,.566809,.00280082,0,.656295,.550817,.00262255,0,.685417,.534937,.00245835,0,.715406,.519151,.00230574,0,.74624,.503118,.0021549,0,.777778,.487723,.00202008,0,.809524,.472725,.00189355,0,.84127,.457599,.00177108,0,.873016,.442558,.00165843,0,.904762,.427624,.00155494,0,.936508,.413171,.00145273,0,.968254,.399122,.00136454,0,1,1,.00826496,0,0,1,.00826499,0,0,1,.00826564,0,0,.999996,.00826842,0,0,.999987,.00827589,0,0,.999967,.00829167,0,0,.999933,.00832037,0,0,.999876,.00836768,0,109338e-10,.999786,.00844031,0,427145e-9,.999655,.00854603,0,.0016384,.999468,.00869337,0,.00372392,.999203,.008891,0,.00668513,.998803,.00914387,0,.0104968,.99748,.00935838,0,.015125,.994446,.00933309,0,.0205338,.99292,.00953084,0,.0266884,.991414,.0097893,0,.0335565,.989049,.0100228,0,.0411086,.98582,.0101664,0,.0493181,.982441,.0103582,0,.0581613,.978595,.0105292,0,.0676169,.973495,.0106274,0,.0776661,.968405,.0107261,0,.0882926,.962717,.0108234,0,.0994817,.955478,.0108102,0,.111221,.948275,.0107914,0,.123499,.940006,.0107161,0,.136308,.930831,.0106309,0,.149639,.920648,.0104083,0,.163485,.910205,.0102312,0,.177843,.898445,.0100051,0,.192707,.885986,.00971928,0,.208077,.872204,.00940747,0,.22395,.858436,.0091085,0,.240326,.843454,.00876595,0,.257208,.827437,.00839794,0,.274596,.811488,.00803692,0,.292496,.796039,.00767352,0,.310911,.781083,.0073097,0,.329849,.767642,.00694032,0,.349316,.753901,.00657476,0,.369323,.740131,.00622699,0,.38988,.725845,.0058838,0,.410999,.710991,.00555586,0,.432696,.696002,.00523089,0,.454987,.680461,.00492494,0,.47789,.664875,.00463464,0,.501426,.649273,.00435422,0,.52562,.63302,.0040875,0,.550498,.61705,.00384075,0,.576089,.601154,.00359557,0,.602427,.586008,.00337636,0,.629544,.570699,.00316019,0,.657479,.555166,.00296033,0,.686264,.539645,.00277552,0,.715924,.524159,.00259499,0,.746459,.508682,.00243257,0,.777789,.493163,.00227851,0,.809524,.478004,.00213083,0,.84127,.46347,.00199502,0,.873016,.448778,.00186967,0,.904762,.434105,.00174732,0,.936508,.419576,.00163861,0,.968254,.405541,.00153341,0,1,1,.0106462,0,0,1,.0106462,0,0,.999999,.010647,0,0,.999995,.0106502,0,0,.999985,.0106589,0,0,.999964,.0106773,0,0,.999925,.0107106,0,0,.999861,.0107655,0,712986e-10,.999763,.0108497,0,743959e-9,.999616,.0109716,0,.00227361,.999408,.0111408,0,.0046983,.999112,.0113659,0,.00800158,.998637,.0116475,0,.0121493,.996223,.0117231,0,.0171023,.994006,.0118064,0,.0228218,.992444,.0120254,0,.0292711,.991028,.0123314,0,.036417,.98803,.0124954,0,.0442295,.984816,.0126538,0,.0526815,.981399,.0128537,0,.0617492,.977085,.0129694,0,.0714114,.972154,.013091,0,.0816495,.966617,.0131166,0,.0924472,.960628,.0131583,0,.10379,.953295,.0131094,0,.115665,.94575,.0129966,0,.128062,.937654,.0128796,0,.140972,.927716,.0126477,0,.154387,.917932,.0123889,0,.168301,.907719,.012131,0,.182709,.89584,.0118013,0,.197608,.883526,.0114145,0,.212994,.870301,.0110075,0,.228867,.856272,.0106019,0,.245227,.842251,.0101938,0,.262074,.826466,.00973254,0,.279412,.810859,.0092846,0,.297244,.795051,.00883304,0,.315575,.780053,.00840272,0,.334412,.76575,.00796438,0,.35376,.752298,.00752526,0,.373631,.739153,.00711486,0,.394034,.725514,.00670361,0,.414983,.711473,.00632656,0,.436491,.696936,.00595206,0,.458575,.682126,.00559191,0,.481253,.667027,.00525362,0,.504547,.651875,.00493805,0,.528481,.636463,.00462848,0,.553081,.620641,.00433936,0,.578377,.604931,.00407,0,.604404,.589549,.00380864,0,.631197,.574712,.00357049,0,.658795,.559775,.00334466,0,.687238,.544514,.00312505,0,.716559,.529555,.00293199,0,.746776,.514402,.00274204,0,.777849,.499302,.00256647,0,.809524,.484114,.00239901,0,.84127,.469308,.00225148,0,.873016,.455133,.00210178,0,.904762,.440939,.0019727,0,.936508,.426627,.00184382,0,.968254,.412509,.00172548,0,1,1,.013628,0,0,1,.0136281,0,0,.999999,.0136289,0,0,.999995,.0136327,0,0,.999983,.0136427,0,0,.99996,.0136638,0,0,.999917,.0137022,0,0,.999846,.0137652,0,204597e-9,.999736,.0138615,0,.00116837,.999573,.0140007,0,.00303325,.99934,.0141927,0,.00580613,.999004,.0144457,0,.00945626,.998407,.0147489,0,.0139421,.995464,.014731,0,.0192202,.993328,.0148283,0,.0252495,.991799,.0150797,0,.0319921,.990397,.0154316,0,.0394138,.986835,.0155005,0,.0474843,.983938,.0157308,0,.0561763,.980154,.0158753,0,.0654661,.975659,.0159581,0,.0753326,.970171,.0159832,0,.0857571,.964803,.0160084,0,.0967236,.958366,.0159484,0,.108218,.950613,.0158001,0,.120227,.942874,.0155845,0,.132741,.935005,.0154292,0,.145751,.924991,.0150742,0,.159249,.914814,.0146757,0,.17323,.904743,.0143097,0,.187687,.893216,.0138695,0,.202619,.880769,.0133706,0,.218021,.868136,.0128606,0,.233894,.85469,.0123403,0,.250238,.840593,.0118091,0,.267052,.825808,.011253,0,.284341,.81009,.0107099,0,.302106,.79504,.0101636,0,.320354,.779757,.00964041,0,.33909,.764697,.00911896,0,.358322,.750913,.00859533,0,.378059,.738175,.00811592,0,.398311,.725242,.00764504,0,.41909,.711864,.00718885,0,.440412,.698009,.00675843,0,.462292,.683841,.00634984,0,.484748,.669391,.00595502,0,.507802,.654731,.00558671,0,.531477,.639805,.00523578,0,.555802,.624789,.00490834,0,.580805,.609325,.00459448,0,.606522,.593975,.00430342,0,.63299,.578983,.00403019,0,.66025,.564442,.0037707,0,.688346,.549835,.0035316,0,.717319,.535039,.00330255,0,.7472,.520403,.00308932,0,.777982,.505687,.00289335,0,.809524,.490939,.00270818,0,.84127,.476233,.0025343,0,.873016,.461624,.00237097,0,.904762,.447833,.00222065,0,.936508,.433992,.00207561,0,.968254,.420147,.00194955,0,1,1,.0173415,0,0,1,.0173416,0,0,.999999,.0173426,0,0,.999995,.0173468,0,0,.999983,.0173582,0,0,.999954,.0173822,0,0,.999908,.0174258,0,669501e-11,.999828,.0174973,0,427399e-9,.999705,.0176063,0,.00171019,.999524,.0177631,0,.0039248,.999263,.0179781,0,.00705382,.998878,.018258,0,.0110552,.998012,.0185551,0,.0158812,.994614,.0184264,0,.0214852,.993132,.0186385,0,.0278239,.991563,.0189067,0,.0348585,.989298,.0191577,0,.0425544,.986036,.0192522,0,.050881,.982558,.0194063,0,.059811,.978531,.019486,0,.0693209,.974198,.0195847,0,.0793895,.968148,.0194749,0,.0899984,.962565,.0194277,0,.101132,.956041,.0192991,0,.112775,.947749,.0189893,0,.124917,.94018,.018704,0,.137547,.93165,.0183458,0,.150655,.921798,.0178775,0,.164236,.911573,.0173618,0,.178281,.901569,.0168482,0,.192788,.890341,.016265,0,.207752,.877835,.0156199,0,.223171,.865472,.0149516,0,.239044,.852905,.0143274,0,.255371,.838906,.0136643,0,.272153,.824888,.0129903,0,.289393,.809977,.0123218,0,.307093,.794697,.0116572,0,.325259,.780028,.0110307,0,.343896,.765124,.0104236,0,.363012,.750411,.0098219,0,.382617,.737264,.00924397,0,.402719,.724799,.00868719,0,.423332,.712253,.00816476,0,.444469,.699267,.00767262,0,.466146,.685618,.00719746,0,.488383,.671736,.00673916,0,.511199,.657777,.00631937,0,.534618,.643497,.00592411,0,.558668,.62889,.00553928,0,.58338,.614299,.0051934,0,.608787,.599197,.00485985,0,.634929,.584175,.00454357,0,.661849,.569541,.00425787,0,.689594,.555193,.00397905,0,.718211,.540947,.00372364,0,.747742,.526593,.00348599,0,.778205,.512335,.00326103,0,.80953,.498017,.00305137,0,.84127,.483609,.00285485,0,.873016,.469368,.00267472,0,.904762,.455037,.00249945,0,.936508,.441493,.00234792,0,.968254,.428147,.00219936,0,1,1,.0219422,0,0,1,.0219423,0,0,.999998,.0219434,0,0,.999993,.0219481,0,0,.999981,.021961,0,0,.999949,.0219879,0,0,.999896,.0220367,0,593194e-10,.999808,.0221167,0,75364e-8,.99967,.0222383,0,.00237884,.999466,.0224125,0,.00495612,.999174,.0226495,0,.00844887,.998725,.0229525,0,.0128058,.996979,.0231123,0,.0179742,.994317,.0230742,0,.0239047,.992781,.0232895,0,.0305526,.991191,.0235734,0,.0378786,.987787,.0236152,0,.0458475,.985092,.0237994,0,.0544287,.981121,.0238553,0,.0635952,.976924,.0238706,0,.0733233,.97218,.0238704,0,.0835922,.965956,.0236598,0,.0943839,.959998,.0234735,0,.105682,.953245,.0232277,0,.117474,.944445,.0226973,0,.129747,.937087,.0223527,0,.142491,.928341,.0218144,0,.155697,.9184,.0211516,0,.169358,.907959,.0204553,0,.183469,.89808,.0197673,0,.198024,.887047,.0189915,0,.21302,.875221,.0182082,0,.228455,.86269,.0173584,0,.244329,.850735,.0165718,0,.260639,.837545,.0157524,0,.277389,.823639,.0149482,0,.29458,.809699,.0141431,0,.312216,.794797,.0133527,0,.3303,.780578,.0126193,0,.34884,.766019,.0118914,0,.367842,.751447,.0111839,0,.387315,.737275,.010514,0,.40727,.724545,.00987277,0,.427717,.712644,.00926569,0,.448671,.700432,.00869029,0,.470149,.687664,.00814691,0,.492167,.674288,.00763012,0,.514746,.660966,.00714437,0,.537911,.647264,.00668457,0,.561688,.633431,.00626581,0,.586108,.619133,.00585593,0,.611206,.604935,.00548188,0,.637022,.590236,.00513288,0,.663599,.575473,.0047906,0,.690989,.561228,.00448895,0,.719242,.547054,.00420233,0,.748411,.533175,.00392869,0,.778531,.519163,.00367445,0,.809583,.505328,.00344097,0,.84127,.491446,.00322003,0,.873016,.477356,.00301283,0,.904762,.46356,.00282592,0,.936508,.449623,.00264956,0,.968254,.436068,.00246956,0,1,1,.0276135,0,0,1,.0276136,0,0,.999998,.0276148,0,0,.999993,.0276201,0,0,.999976,.0276342,0,0,.999945,.027664,0,0,.999884,.0277179,0,18679e-8,.999784,.027806,0,.00119607,.99963,.0279394,0,.00318407,.999401,.0281295,0,.00613601,.999066,.0283858,0,.00999963,.998524,.0287027,0,.0147164,.995702,.0286256,0,.0202295,.993593,.0286733,0,.0264876,.992067,.0288989,0,.0334452,.990548,.0292135,0,.0410621,.986775,.0291296,0,.0493032,.984054,.0293099,0,.0581381,.979481,.0291881,0,.0675397,.975297,.0291598,0,.0774848,.96981,.028954,0,.0879528,.963524,.028628,0,.0989258,.957398,.0283135,0,.110388,.950088,.0278469,0,.122327,.941538,.0271798,0,.134729,.933332,.0265388,0,.147587,.924392,.0257776,0,.160889,.914581,.024916,0,.174631,.904347,.0240242,0,.188806,.894324,.0231229,0,.203409,.883724,.022153,0,.218437,.872207,.0211355,0,.233888,.859927,.0201048,0,.249761,.848373,.0191263,0,.266056,.836023,.0181306,0,.282774,.82289,.0171718,0,.299917,.809324,.0162196,0,.317488,.795361,.0152622,0,.335493,.781253,.01439,0,.353936,.767338,.013533,0,.372825,.753156,.0127244,0,.392168,.739122,.0119454,0,.411976,.725358,.0112054,0,.432259,.712949,.010487,0,.453032,.701621,.00984032,0,.47431,.689703,.00921495,0,.496111,.677216,.00862492,0,.518456,.664217,.00806882,0,.541367,.65137,.00755922,0,.564872,.638,.00705705,0,.589001,.62453,.00661266,0,.613789,.610601,.00618432,0,.639277,.59676,.00578033,0,.66551,.582433,.00540927,0,.692539,.568026,.00506104,0,.720422,.55414,.0047353,0,.749216,.540178,.00442889,0,.778974,.526513,.00414363,0,.809711,.512954,.00388237,0,.84127,.499403,.00362875,0,.873016,.486026,.00340827,0,.904762,.472345,.00318598,0,.936508,.458828,.00297635,0,.968254,.445379,.00279447,0,1,1,.0345716,0,0,1,.0345717,0,0,.999999,.034573,0,0,.999991,.0345787,0,0,.999974,.0345941,0,0,.999937,.0346263,0,188589e-11,.999869,.0346847,0,409238e-9,.999757,.0347798,0,.0017674,.999582,.0349233,0,.00413658,.999322,.0351265,0,.00747408,.998939,.0353967,0,.0117157,.998219,.0357018,0,.0167966,.994974,.0354726,0,.0226572,.993201,.0355621,0,.0292445,.991573,.0357641,0,.0365123,.989301,.0359252,0,.0444203,.985712,.0358017,0,.0529334,.982411,.0358353,0,.0620214,.977827,.035617,0,.0716574,.973278,.0354398,0,.0818186,.967397,.0350483,0,.0924846,.960696,.0344795,0,.103638,.954349,.0339861,0,.115263,.946066,.0331323,0,.127348,.938012,.032359,0,.13988,.929413,.0314413,0,.152849,.920355,.0304103,0,.166248,.910586,.0292785,0,.18007,.900609,.0281391,0,.194308,.890093,.0269103,0,.208958,.880013,.0257269,0,.224018,.869001,.0244671,0,.239485,.85751,.0232252,0,.255359,.84582,.0220117,0,.271638,.834383,.0208274,0,.288324,.822158,.0196628,0,.305419,.809056,.0185306,0,.322927,.795832,.0174174,0,.340851,.782547,.0163758,0,.359199,.7689,.015391,0,.377975,.755526,.0144488,0,.397189,.741681,.0135372,0,.416851,.728178,.0126957,0,.436971,.714642,.0118812,0,.457564,.702756,.0111165,0,.478644,.69175,.0104145,0,.500229,.680159,.00974439,0,.522339,.668073,.00911926,0,.544997,.655405,.00851393,0,.56823,.642921,.00797637,0,.592068,.629993,.00745119,0,.616546,.616828,.00696972,0,.641705,.603305,.00652425,0,.66759,.589833,.00610188,0,.694255,.575945,.00570834,0,.72176,.561745,.00533384,0,.750168,.548277,.00500001,0,.779545,.534467,.00467582,0,.809933,.521032,.00438092,0,.841272,.507877,.00410348,0,.873016,.494654,.00383618,0,.904762,.481592,.00358699,0,.936508,.468509,.00337281,0,.968254,.455293,.00316196,0,1,1,.0430698,0,0,1,.0430699,0,0,.999998,.0430713,0,0,.999991,.0430773,0,0,.99997,.0430936,0,0,.999928,.0431277,0,406396e-10,.999852,.0431893,0,744376e-9,.999724,.0432895,0,.0024806,.999527,.0434397,0,.00524779,.99923,.0436507,0,.00898164,.998783,.0439255,0,.0136083,.997507,.0441104,0,.0190582,.994418,.0438225,0,.0252694,.992864,.0439396,0,.0321879,.991127,.0440962,0,.039767,.987331,.0438408,0,.0479667,.984819,.0438991,0,.056752,.980384,.0435906,0,.0660929,.975846,.0432543,0,.075963,.970748,.0428293,0,.0863398,.964303,.042153,0,.0972035,.95772,.0414111,0,.108537,.950747,.0405893,0,.120325,.942533,.0394887,0,.132554,.934045,.0383544,0,.145215,.924942,.037057,0,.158296,.915811,.0356993,0,.17179,.90612,.0342401,0,.185691,.896434,.0328078,0,.199993,.886021,.031288,0,.214691,.876081,.0297776,0,.229782,.865608,.0282334,0,.245265,.854924,.026749,0,.261138,.843607,.02526,0,.277401,.832456,.0238214,0,.294056,.821342,.0224682,0,.311104,.809303,.0211297,0,.328548,.796468,.0198387,0,.346394,.784046,.0186227,0,.364645,.771262,.0174561,0,.38331,.758118,.0163806,0,.402396,.745075,.0153287,0,.421912,.731926,.0143647,0,.44187,.71863,.0134363,0,.462283,.705414,.0125603,0,.483165,.693792,.0117508,0,.504535,.683108,.0110016,0,.52641,.67183,.0102757,0,.548816,.66015,.00962044,0,.571776,.647907,.00898031,0,.595323,.635734,.00840811,0,.619489,.623208,.00786211,0,.644317,.610438,.00734953,0,.669852,.597345,.00687688,0,.696148,.584138,.00643469,0,.723267,.5707,.00602236,0,.75128,.556966,.0056324,0,.780258,.543607,.00528277,0,.810268,.530213,.00493999,0,.841311,.516912,.00462265,0,.873016,.503916,.0043307,0,.904762,.491146,.00406858,0,.936508,.478439,.00381436,0,.968254,.465834,.00358003,0,1,1,.0534039,0,0,1,.053404,0,0,.999998,.0534055,0,0,.999989,.0534116,0,0,.999968,.0534283,0,0,.999918,.0534633,0,155895e-9,.99983,.0535262,0,.00120914,.999685,.0536281,0,.00334944,.999461,.0537799,0,.00653077,.999119,.0539902,0,.0106718,.998582,.0542524,0,.0156907,.995919,.0540318,0,.0215147,.993735,.0538914,0,.0280801,.992126,.0539557,0,.0353323,.990266,.0540401,0,.0432247,.986317,.0536064,0,.0517172,.983213,.0534425,0,.0607754,.978303,.0528622,0,.0703698,.973665,.0523363,0,.0804742,.968091,.0516165,0,.0910667,.961026,.0505434,0,.102128,.954333,.049523,0,.113641,.946372,.0481698,0,.125591,.938254,.0467674,0,.137965,.929516,.0452341,0,.150754,.920106,.0435083,0,.163947,.910899,.0417399,0,.177537,.901532,.0399389,0,.191516,.891919,.0380901,0,.205881,.882006,.0362341,0,.220626,.871965,.0343444,0,.235749,.862145,.0324832,0,.251248,.852058,.0306681,0,.267121,.84161,.0289097,0,.283368,.830806,.0272079,0,.299992,.820476,.0256089,0,.316992,.809514,.0240394,0,.334374,.797865,.0225379,0,.35214,.785621,.0211235,0,.370296,.773765,.0197908,0,.388849,.761629,.0185235,0,.407807,.748891,.0173358,0,.427178,.736437,.0162305,0,.446974,.723707,.0151778,0,.467207,.710606,.0141791,0,.487892,.698019,.0132592,0,.509046,.686203,.0123887,0,.530687,.675692,.0115976,0,.552839,.664826,.0108325,0,.575527,.65349,.0101348,0,.59878,.641774,.00947756,0,.622634,.629794,.00886058,0,.647128,.617647,.00828526,0,.672308,.60534,.00775312,0,.698231,.592718,.00726033,0,.724958,.579746,.00679731,0,.752563,.566763,.00636111,0,.781127,.553515,.00595228,0,.810733,.540118,.00556876,0,.841426,.527325,.00523051,0,.873016,.514265,.00490712,0,.904762,.501406,.00460297,0,.936508,.488922,.00431247,0,.968254,.476541,.0040472,0,1,1,.0659184,0,0,1,.0659185,0,0,.999998,.06592,0,0,.999988,.0659259,0,0,.999963,.0659423,0,0,.999907,.0659764,0,374198e-9,.999806,.0660376,0,.00182071,.999639,.0661361,0,.0043894,.999378,.0662814,0,.00800055,.998985,.0664779,0,.0125594,.998285,.0666914,0,.0179786,.995071,.0661989,0,.0241822,.993172,.0660454,0,.031106,.991438,.0660105,0,.0386952,.988428,.0656875,0,.0469032,.985218,.0652913,0,.0556905,.981128,.0647107,0,.065023,.976015,.0638491,0,.0748717,.97097,.062993,0,.0852112,.964582,.0617927,0,.0960199,.957383,.0603626,0,.107279,.949969,.0588128,0,.118971,.941843,.0570274,0,.131084,.933624,.0551885,0,.143604,.924543,.053122,0,.156521,.914919,.0508897,0,.169825,.905773,.0486418,0,.18351,.896434,.0463364,0,.197569,.887195,.0440623,0,.211997,.877706,.0417799,0,.226789,.867719,.03945,0,.241944,.858587,.037243,0,.257458,.849317,.0350956,0,.273331,.839585,.0329852,0,.289563,.829856,.0310028,0,.306154,.819589,.0290953,0,.323108,.809714,.0272738,0,.340426,.79934,.0255631,0,.358113,.788224,.0239175,0,.376175,.776619,.0223831,0,.394616,.76521,.0209298,0,.413445,.753716,.0195786,0,.432671,.741564,.0183001,0,.452305,.729413,.0171259,0,.472358,.717146,.0159933,0,.492845,.70436,.0149495,0,.513783,.69219,.0139681,0,.535189,.680289,.0130577,0,.557087,.669611,.0122198,0,.5795,.659113,.0114174,0,.602459,.648148,.0106729,0,.625997,.636905,.00998997,0,.650154,.625154,.00934313,0,.674976,.613481,.00874839,0,.700518,.60154,.00818265,0,.726845,.58943,.00766889,0,.754032,.576828,.00717153,0,.782167,.564194,.00672696,0,.811344,.551501,.00630863,0,.841644,.538635,.00592177,0,.873016,.525724,.00554888,0,.904762,.513209,.00520225,0,.936508,.500457,.00488231,0,.968254,.48799,.00457153,0,1,1,.0810131,0,0,1,.0810133,0,0,.999997,.0810145,0,0,.999985,.08102,0,0,.999956,.0810347,0,195026e-10,.999893,.0810656,0,719316e-9,.999777,.0811205,0,.00259774,.999583,.081208,0,.00561807,.999281,.0813343,0,.00967472,.998813,.0814969,0,.0146627,.997597,.0815217,0,.0204902,.994379,.0808502,0,.0270802,.992744,.0806792,0,.0343674,.990745,.0804589,0,.0422974,.986646,.0796107,0,.0508242,.983611,.0790913,0,.0599087,.978869,.0780746,0,.0695175,.973475,.0768218,0,.0796223,.967845,.0754926,0,.0901983,.960778,.0737063,0,.101224,.953333,.0718052,0,.112682,.945274,.0695946,0,.124555,.936955,.0672492,0,.136831,.928319,.0647732,0,.149496,.919075,.0620947,0,.162542,.909114,.0591816,0,.175958,.900137,.0563917,0,.189739,.891069,.0535392,0,.203877,.882262,.0507642,0,.218368,.873232,.0479793,0,.233208,.864042,.045226,0,.248393,.855002,.0425413,0,.263923,.846569,.0400126,0,.279796,.837714,.0375269,0,.296012,.828918,.0352027,0,.312573,.819783,.0330011,0,.329479,.810129,.0308908,0,.346734,.800866,.0289112,0,.364342,.79093,.0270255,0,.382307,.780593,.0252758,0,.400637,.769511,.0236178,0,.419337,.758558,.0220652,0,.438418,.747632,.0206289,0,.457889,.736146,.0192873,0,.477761,.724093,.0180333,0,.49805,.71234,.0168264,0,.51877,.700201,.015746,0,.53994,.687949,.0147027,0,.561581,.676163,.0137512,0,.583718,.665001,.0128655,0,.60638,.65472,.0120366,0,.629599,.644213,.0112604,0,.653415,.633382,.0105413,0,.677874,.62212,.00986498,0,.70303,.610631,.00923308,0,.728948,.599078,.00864206,0,.755706,.587519,.00811784,0,.783396,.575505,.00761237,0,.812121,.563148,.00713949,0,.841989,.550828,.00668379,0,.873035,.538458,.00627715,0,.904762,.525905,.00588336,0,.936508,.513517,.00552687,0,.968254,.501395,.00519681,0,1,1,.0991506,0,0,1,.0991504,0,0,.999996,.0991515,0,0,.999984,.0991558,0,0,.999947,.0991672,0,114389e-9,.999874,.0991912,0,.00121503,.999739,.0992331,0,.00356108,.999514,.0992983,0,.00705578,.999159,.0993877,0,.011574,.998586,.0994837,0,.017003,.995731,.0988425,0,.0232484,.993384,.098276,0,.0302318,.991615,.0979269,0,.0378884,.989029,.0973432,0,.0461641,.985373,.0963539,0,.0550136,.981278,.0952306,0,.0643988,.975777,.0936233,0,.0742868,.970526,.0920219,0,.0846501,.963755,.0898912,0,.0954644,.956676,.0876064,0,.106709,.948099,.0847751,0,.118367,.939718,.0818638,0,.130423,.931305,.078857,0,.142862,.922342,.0756127,0,.155674,.912842,.0721473,0,.168849,.903304,.0686195,0,.182378,.89411,.0650589,0,.196255,.885512,.0616022,0,.210473,.877193,.0582434,0,.225027,.86877,.0548979,0,.239915,.860267,.0516095,0,.255132,.851915,.048468,0,.270678,.843912,.0454447,0,.286551,.83604,.0425612,0,.302751,.828245,.0398752,0,.31928,.820159,.0373198,0,.336138,.81167,.034916,0,.35333,.802659,.0326402,0,.370858,.793921,.0304901,0,.388728,.784713,.0284857,0,.406944,.774946,.0266186,0,.425515,.76448,.0248593,0,.444449,.753793,.0232114,0,.463756,.743506,.0217039,0,.483447,.732555,.0202841,0,.503535,.720965,.0189648,0,.524036,.709422,.0177189,0,.544968,.697756,.0165626,0,.56635,.685565,.015483,0,.588208,.673987,.0144892,0,.610569,.66244,.0135607,0,.633466,.651675,.0126956,0,.656936,.641598,.0118788,0,.681025,.63121,.0111261,0,.705788,.620514,.010437,0,.731289,.609366,.00978747,0,.757606,.598137,.00917257,0,.784834,.586966,.00859778,0,.813085,.575549,.00806803,0,.842485,.563797,.00757294,0,.87313,.551758,.00710592,0,.904762,.539894,.0066841,0,.936508,.527901,.00627901,0,.968254,.515819,.00590506,0,1,1,.120864,0,0,1,.120864,0,0,.999996,.120864,0,0,.99998,.120867,0,0,.99994,.120872,0,323781e-9,.999852,.120884,0,.00188693,.999693,.120903,0,.00473489,.999426,.120929,0,.00872704,.999002,.120955,0,.0137237,.998235,.120918,0,.0196068,.994608,.119764,0,.0262803,.992997,.119265,0,.0336657,.990968,.11863,0,.0416987,.987002,.117261,0,.0503261,.983524,.116009,0,.0595035,.97875,.114252,0,.0691935,.972652,.11193,0,.0793645,.966613,.109555,0,.0899894,.959275,.106612,0,.101045,.951272,.103375,0,.112512,.942323,.0996594,0,.124372,.933679,.0958841,0,.136611,.924822,.0919265,0,.149216,.915742,.0878061,0,.162176,.906348,.0834894,0,.175482,.896883,.079085,0,.189125,.88774,.0746745,0,.203098,.87986,.0705773,0,.217396,.871998,.0665005,0,.232015,.864325,.0625413,0,.24695,.856685,.0586781,0,.2622,.84925,.0550063,0,.277761,.841719,.0514727,0,.293634,.834755,.0481398,0,.309819,.827853,.0450172,0,.326315,.820888,.0420969,0,.343126,.813616,.0393702,0,.360254,.805767,.0367771,0,.377701,.797338,.0343274,0,.395474,.789122,.0320529,0,.413577,.780601,.0299485,0,.432018,.771424,.0279812,0,.450804,.761502,.0261054,0,.469944,.751166,.0243942,0,.489451,.741276,.0228087,0,.509337,.730898,.0213265,0,.529617,.719878,.0199307,0,.550307,.708379,.0186574,0,.571428,.697165,.0174446,0,.593003,.685554,.0163144,0,.615059,.673631,.015276,0,.637628,.662385,.0143003,0,.660746,.651059,.0134112,0,.68446,.640451,.0125794,0,.70882,.630536,.011793,0,.733893,.620316,.0110547,0,.759756,.609722,.0103668,0,.786505,.598804,.00973009,0,.814259,.587871,.00912812,0,.843157,.577121,.00858916,0,.87334,.566019,.00807333,0,.904762,.554664,.00759687,0,.936508,.543101,.00714759,0,.968254,.531558,.00673418,0,1,1,.146767,0,0,1,.146767,0,0,.999997,.146767,0,0,.999977,.146765,0,320658e-11,.999929,.146762,0,682576e-9,.999823,.146753,0,.00276402,.999633,.146735,0,.00614771,.999314,.146699,0,.0106613,.998796,.14662,0,.0161546,.997124,.146107,0,.0225063,.994062,.144857,0,.0296198,.992154,.144011,0,.037417,.989186,.142712,0,.0458348,.985279,.140926,0,.0548211,.980826,.13885,0,.0643326,.975056,.136168,0,.074333,.969005,.133217,0,.0847917,.961554,.12959,0,.0956828,.954206,.125886,0,.106984,.945046,.121335,0,.118675,.935678,.116492,0,.130741,.926748,.111635,0,.143166,.917764,.106625,0,.155939,.908358,.101325,0,.169049,.899219,.0960249,0,.182487,.890089,.0906527,0,.196245,.881488,.0853905,0,.210317,.874031,.0804177,0,.224697,.866932,.0756005,0,.23938,.859976,.0709019,0,.254364,.853375,.0664391,0,.269646,.846971,.0622012,0,.285223,.840483,.058129,0,.301096,.833969,.0542762,0,.317265,.82806,.0507042,0,.333729,.822128,.047368,0,.350491,.815989,.044272,0,.367554,.809336,.0413444,0,.38492,.802177,.038601,0,.402594,.79441,.0360227,0,.420582,.786573,.0336383,0,.438891,.778619,.0314321,0,.457527,.77,.029362,0,.476499,.760698,.0274102,0,.49582,.750932,.0256146,0,.5155,.740993,.023974,0,.535555,.731159,.0224182,0,.556,.720836,.0209889,0,.576855,.709913,.0196411,0,.598143,.698415,.0183824,0,.619888,.68745,.0172222,0,.642123,.676154,.0161509,0,.664883,.664383,.0151397,0,.688211,.6533,.0141873,0,.71216,.642072,.0133105,0,.736792,.631412,.0124932,0,.762186,.621622,.0117408,0,.788439,.611681,.0110358,0,.815672,.60142,.0103775,0,.844034,.59083,.00975623,0,.873699,.580254,.00918084,0,.904765,.569841,.00864721,0,.936508,.559224,.00815731,0,.968254,.548315,.00767924,0,1,1,.177563,0,0,1,.177563,0,0,.999994,.177562,0,0,.999972,.177555,0,664171e-10,.999914,.177536,0,.0012276,.999787,.177496,0,.00388025,.999556,.17742,0,.00783463,.999165,.177285,0,.0128953,.9985,.177037,0,.0189053,.995388,.175634,0,.025742,.993102,.174375,0,.033309,.990992,.173121,0,.0415298,.986932,.170896,0,.0503425,.982786,.16847,0,.0596964,.977592,.165455,0,.0695498,.971075,.161676,0,.0798676,.963967,.157458,0,.0906201,.956397,.152836,0,.101783,.947489,.147467,0,.113333,.937564,.14145,0,.125254,.928182,.135383,0,.137529,.919027,.129212,0,.150144,.909618,.12276,0,.163088,.900492,.116273,0,.176351,.891671,.1098,0,.189924,.883146,.103362,0,.203799,.875151,.0970799,0,.21797,.868338,.0911732,0,.232433,.862033,.0854966,0,.247182,.856107,.0800691,0,.262216,.850644,.0749618,0,.27753,.845261,.070079,0,.293124,.839885,.0654321,0,.308997,.834609,.0610975,0,.325149,.829083,.0569741,0,.341581,.82404,.0531736,0,.358294,.818968,.049665,0,.37529,.813496,.0463856,0,.392573,.807533,.0433217,0,.410148,.80099,.0404402,0,.428019,.793891,.0377578,0,.446192,.786281,.0352616,0,.464676,.778773,.0329577,0,.483478,.770737,.030808,0,.502608,.762094,.0287964,0,.522079,.752898,.0269254,0,.541905,.743306,.0251926,0,.5621,.733416,.023595,0,.582684,.723742,.0221155,0,.603677,.713542,.0207435,0,.625106,.702755,.019434,0,.646998,.691484,.0182046,0,.66939,.680531,.0170771,0,.692324,.66953,.0160339,0,.715849,.658126,.0150677,0,.740028,.646933,.0141551,0,.764937,.636107,.0133179,0,.790673,.625271,.0125284,0,.817358,.615225,.0117937,0,.84515,.605678,.0111181,0,.874244,.59583,.0104759,0,.904828,.585704,.00986672,0,.936508,.575413,.00929712,0,.968254,.565373,.00876713,0,1,1,.214058,0,0,.999999,.214058,0,0,.999994,.214055,0,0,.999966,.214039,0,259642e-9,.999893,.213998,0,.00200075,.999737,.21391,0,.00527775,.999449,.213745,0,.00983959,.99896,.213458,0,.0154755,.9979,.212855,0,.0220249,.994278,.210779,0,.0293654,.992254,.20926,0,.0374021,.98881,.206908,0,.0460604,.984715,.204009,0,.0552802,.979738,.200471,0,.0650127,.972884,.195813,0,.0752175,.965996,.190856,0,.0858612,.957974,.185077,0,.0969155,.949155,.17868,0,.108356,.939288,.171513,0,.120163,.928996,.163838,0,.132319,.919563,.156246,0,.144808,.910004,.148359,0,.157618,.900791,.140417,0,.170737,.892135,.132569,0,.184155,.883803,.124741,0,.197866,.876034,.117091,0,.211861,.869219,.109835,0,.226134,.863062,.102859,0,.240682,.857795,.0962928,0,.255499,.853009,.0900725,0,.270583,.848603,.0842101,0,.285931,.844335,.0786527,0,.301542,.840208,.0734397,0,.317415,.836035,.0685334,0,.33355,.83172,.0639275,0,.349948,.827135,.0595909,0,.36661,.822797,.0556204,0,.383539,.818387,.0519394,0,.400738,.813565,.0485317,0,.41821,.808142,.0453138,0,.435961,.802212,.0423354,0,.453997,.79573,.0395553,0,.472324,.788741,.036988,0,.490951,.781093,.0345688,0,.509887,.773597,.0323297,0,.529144,.765622,.0302719,0,.548735,.757083,.0283477,0,.568674,.747992,.0265562,0,.588979,.738591,.0248844,0,.609671,.728719,.0233342,0,.630773,.719146,.0219081,0,.652314,.709165,.0205711,0,.674328,.69875,.0193248,0,.696854,.687884,.0181582,0,.719942,.676818,.0170746,0,.743651,.666247,.0160718,0,.768057,.655284,.0151262,0,.793253,.64401,.0142561,0,.819363,.633353,.0134327,0,.846547,.622674,.012653,0,.875017,.612265,.0119354,0,.905021,.602455,.0112533,0,.936508,.593147,.0106234,0,.968254,.583592,.0100213,0,1,1,.25717,0,0,1,.25717,0,0,.999992,.257164,0,0,.999958,.257135,0,641715e-9,.999864,.25706,0,.00305314,.999666,.256897,0,.00700975,.999302,.256596,0,.0122194,.998663,.25607,0,.0184622,.995607,.254123,0,.0255773,.993094,.252081,0,.0334439,.9907,.249867,0,.0419696,.98594,.246118,0,.0510823,.981214,.242049,0,.0607242,.974966,.236869,0,.0708486,.967589,.230724,0,.081417,.95915,.223635,0,.0923974,.950257,.21596,0,.103763,.940165,.207296,0,.115491,.929396,.197901,0,.127562,.919288,.188437,0,.13996,.909428,.178762,0,.15267,.900105,.169072,0,.165679,.891418,.159478,0,.178979,.883347,.15002,0,.192558,.875992,.140813,0,.20641,.869466,.13196,0,.220529,.863699,.123501,0,.234907,.858553,.115436,0,.249542,.854379,.107901,0,.264428,.850894,.10088,0,.279564,.847632,.0942296,0,.294947,.844571,.0879861,0,.310575,.84163,.0821534,0,.326448,.838542,.0766409,0,.342566,.835412,.0715322,0,.358929,.831899,.0666883,0,.37554,.828177,.0622175,0,.392399,.82416,.0580452,0,.409511,.820393,.054267,0,.426878,.816068,.0507172,0,.444506,.811201,.0474041,0,.4624,.805785,.0443174,0,.480566,.799878,.0414562,0,.499013,.793469,.0388147,0,.517749,.786473,.0363453,0,.536785,.778874,.0340225,0,.556134,.771277,.0318599,0,.575809,.763426,.0298859,0,.595827,.755044,.0280357,0,.616207,.746161,.0262979,0,.636973,.737124,.0247295,0,.65815,.72761,.0232514,0,.679772,.717822,.0218755,0,.701876,.708279,.0205942,0,.724509,.698333,.0193947,0,.74773,.68802,.0182717,0,.771609,.677321,.0172044,0,.79624,.666504,.0162122,0,.821743,.656184,.0152924,0,.84828,.64556,.0144326,0,.876069,.634636,.0136157,0,.905404,.624124,.0128612,0,.936508,.613914,.0121435,0,.968254,.603589,.0114887,0,1,1,.307946,0,0,.999999,.307945,0,0,.999988,.307934,0,204479e-10,.999944,.307886,0,.00127833,.999824,.307756,0,.00445047,.999565,.30748,0,.00914673,.999085,.306966,0,.0150498,.998103,.306004,0,.0219367,.994249,.303028,0,.0296485,.991807,.300435,0,.038068,.987773,.296554,0,.0471062,.982673,.2916,0,.0566942,.976623,.285641,0,.0667768,.968757,.27815,0,.0773099,.959849,.269529,0,.088257,.950663,.260248,0,.0995879,.940129,.249704,0,.111277,.92895,.238291,0,.123304,.917996,.226501,0,.13565,.907813,.214669,0,.148299,.898305,.202835,0,.161237,.889626,.191158,0,.174455,.88175,.179695,0,.187941,.874715,.168548,0,.201687,.868746,.15792,0,.215687,.863703,.147807,0,.229933,.859315,.138149,0,.24442,.855538,.128993,0,.259145,.852428,.120414,0,.274103,.850168,.112498,0,.289293,.848132,.105054,0,.304711,.846291,.0981087,0,.320357,.844431,.0915942,0,.33623,.842493,.0855056,0,.35233,.840368,.0798204,0,.368658,.83798,.0745097,0,.385214,.83523,.0695424,0,.402002,.832091,.0649092,0,.419023,.828667,.0606291,0,.436282,.824805,.0566523,0,.453782,.820988,.0530229,0,.471529,.816635,.0496364,0,.489528,.811725,.0464658,0,.507788,.806316,.0435082,0,.526317,.800469,.0407873,0,.545124,.794107,.038255,0,.564221,.787218,.0358825,0,.583621,.779872,.0336785,0,.603341,.772097,.0316379,0,.623397,.764484,.0297379,0,.643812,.756428,.0279581,0,.664611,.748022,.0263153,0,.685824,.739268,.0247799,0,.707488,.73024,.0233385,0,.729646,.720893,.0220035,0,.752354,.71119,.0207555,0,.77568,.701791,.0195843,0,.799715,.692184,.0184891,0,.824574,.682258,.0174541,0,.850417,.67206,.0164873,0,.877466,.661717,.0155959,0,.90604,.651462,.0147519,0,.936528,.641467,.0139727,0,.968254,.631229,.0132363,0,1,1,.367573,0,0,.999999,.367571,0,0,.999984,.367553,0,183382e-9,.999925,.367473,0,.00225254,.999759,.367259,0,.00628165,.99941,.366801,0,.0117858,.998739,.365946,0,.0184359,.995529,.363191,0,.0260114,.992875,.360171,0,.0343581,.989135,.355981,0,.0433637,.984166,.350401,0,.0529438,.977871,.343348,0,.0630334,.96951,.334341,0,.0735805,.959964,.323862,0,.0845437,.950162,.312521,0,.095889,.938882,.299577,0,.107588,.926992,.285573,0,.119617,.915589,.271212,0,.131957,.904791,.256611,0,.144591,.895177,.242224,0,.157503,.886403,.227952,0,.170682,.878957,.214192,0,.184117,.872418,.200795,0,.197799,.867029,.188015,0,.21172,.862835,.175975,0,.225873,.859411,.164526,0,.240253,.856655,.153693,0,.254854,.854519,.14352,0,.269673,.852828,.13397,0,.284707,.851412,.124984,0,.299953,.850609,.116748,0,.315408,.849855,.10905,0,.331073,.849017,.101839,0,.346946,.848079,.0951359,0,.363028,.846911,.0888774,0,.379318,.845445,.0830375,0,.395818,.84362,.0775844,0,.41253,.841411,.0725054,0,.429457,.838768,.0677691,0,.446602,.835801,.0634016,0,.463968,.832341,.0593095,0,.481561,.828424,.0555121,0,.499386,.824312,.052024,0,.51745,.819918,.0487865,0,.535761,.815072,.0457801,0,.554328,.809863,.0430184,0,.573162,.804164,.0404245,0,.592275,.798034,.0380146,0,.611681,.791436,.0357436,0,.631398,.784498,.0336475,0,.651445,.777125,.0316666,0,.671845,.769365,.0298122,0,.692628,.761579,.0281001,0,.713827,.753746,.0265049,0,.735484,.745573,.0250067,0,.75765,.737083,.0236026,0,.78039,.728545,.0223302,0,.803789,.719691,.0211243,0,.82796,.710569,.0199983,0,.853056,.701216,.0189569,0,.879298,.692094,.0179702,0,.907014,.682909,.0170418,0,.936691,.673509,.0161732,0,.968254,.663863,.0153406,0,1,1,.437395,0,0,.999998,.437394,0,0,.99998,.437363,0,616704e-9,.999891,.437232,0,.00367925,.999656,.436877,0,.00867446,.999148,.436121,0,.0150679,.997959,.434564,0,.022531,.993464,.430134,0,.0308507,.990606,.426077,0,.0398805,.985027,.419397,0,.0495148,.978491,.41118,0,.0596749,.969643,.40048,0,.0703001,.959189,.38769,0,.0813427,.948223,.373575,0,.0927641,.935955,.357622,0,.104533,.923237,.34043,0,.116624,.911074,.322735,0,.129015,.899724,.30479,0,.141687,.890189,.287392,0,.154626,.881796,.270248,0,.167818,.874781,.253659,0,.181252,.869166,.237786,0,.194918,.864725,.222618,0,.208807,.861565,.208356,0,.222913,.859284,.194867,0,.237229,.857677,.18212,0,.25175,.856714,.17018,0,.266473,.856155,.158969,0,.281392,.8558,.148413,0,.296505,.855672,.138578,0,.311811,.855538,.129345,0,.327306,.855689,.120861,0,.342991,.855767,.112969,0,.358864,.855618,.105593,0,.374925,.85525,.0987451,0,.391176,.854583,.0923727,0,.407616,.853534,.0864143,0,.424249,.852061,.0808338,0,.441076,.850253,.0756771,0,.4581,.848004,.0708612,0,.475324,.845333,.0663784,0,.492754,.842376,.0622631,0,.510394,.838956,.0584112,0,.528251,.835121,.0548328,0,.546331,.830842,.0514838,0,.564644,.826212,.048355,0,.583198,.821522,.0454714,0,.602005,.816551,.0428263,0,.621078,.811211,.0403612,0,.640434,.805479,.038039,0,.660089,.799409,.0358739,0,.680066,.79306,.0338727,0,.70039,.786395,.0319985,0,.721094,.779416,.030241,0,.742215,.77214,.0285951,0,.7638,.764636,.0270747,0,.785912,.756836,.0256354,0,.808628,.749315,.0243027,0,.832055,.741561,.0230497,0,.856338,.733589,.0218801,0,.88169,.725479,.020784,0,.908441,.717255,.0197702,0,.937125,.708829,.0188168,0,.968254,.700191,.0179113,0,1,1,.518937,0,0,.999998,.518933,0,0,.999967,.518883,0,.00147741,.999832,.51866,0,.00573221,.999466,.518057,0,.011826,.998644,.516752,0,.0192116,.994458,.512347,0,.027573,.991223,.507675,0,.0367099,.985515,.500188,0,.046487,.978308,.490408,0,.0568071,.968359,.477357,0,.0675984,.95682,.461752,0,.0788059,.943929,.443796,0,.090386,.930224,.423893,0,.102304,.916514,.402682,0,.114532,.903653,.380914,0,.127047,.892315,.359212,0,.139828,.882942,.338102,0,.152861,.875438,.31773,0,.16613,.869642,.298186,0,.179624,.865304,.279491,0,.193332,.862382,.261804,0,.207247,.860666,.245146,0,.22136,.859788,.229406,0,.235666,.859608,.214605,0,.250158,.859912,.200691,0,.264832,.86053,.187623,0,.279684,.861368,.17539,0,.294711,.862237,.163901,0,.309911,.863127,.153175,0,.32528,.863923,.143147,0,.340819,.864567,.133781,0,.356524,.865013,.125042,0,.372397,.86539,.116952,0,.388438,.865591,.109476,0,.404645,.865517,.102542,0,.421022,.865084,.0960688,0,.437569,.864309,.0900499,0,.454287,.863151,.0844328,0,.471181,.861649,.0792218,0,.488253,.859742,.0743482,0,.505507,.857446,.0697963,0,.522947,.854757,.0655364,0,.54058,.851783,.061608,0,.558412,.848516,.0579701,0,.576449,.844897,.0545742,0,.594701,.840956,.0514167,0,.613178,.836676,.0484598,0,.631892,.832075,.0456934,0,.650856,.827191,.0431178,0,.670088,.822295,.0407718,0,.689606,.817294,.0386032,0,.709434,.812013,.0365675,0,.7296,.806465,.0346547,0,.750138,.800691,.0328717,0,.771093,.794709,.031211,0,.792519,.788493,.0296504,0,.814488,.782049,.0281782,0,.837097,.775403,.0267965,0,.860481,.76857,.0255002,0,.884842,.761536,.0242759,0,.910494,.754303,.0231142,0,.937985,.74692,.0220305,0,.968254,.739745,.0210192,0,1,1,.613914,0,0,.999996,.613907,0,963597e-10,.999942,.613814,0,.00301247,.999704,.613407,0,.00870385,.999046,.612302,0,.0160714,.995516,.608266,0,.0245899,.991726,.602863,0,.0339681,.985157,.593956,0,.0440254,.97642,.581748,0,.0546409,.964404,.565183,0,.0657284,.950601,.545273,0,.0772246,.935158,.522129,0,.0890812,.919364,.496782,0,.10126,.904754,.470571,0,.113731,.89176,.444037,0,.126469,.881492,.418322,0,.139454,.873656,.393522,0,.15267,.868053,.369795,0,.166101,.864336,.347171,0,.179736,.862259,.325737,0,.193565,.861556,.305532,0,.207578,.861776,.286416,0,.221769,.862661,.268355,0,.23613,.864015,.251334,0,.250656,.865711,.235352,0,.265343,.867519,.220302,0,.280187,.869351,.206161,0,.295183,.871144,.192908,0,.31033,.872839,.180505,0,.325624,.874307,.168848,0,.341065,.875667,.158021,0,.35665,.876758,.147877,0,.37238,.87764,.138441,0,.388253,.878237,.129627,0,.404269,.878563,.121415,0,.42043,.878572,.113741,0,.436735,.87842,.106652,0,.453187,.878057,.100097,0,.469786,.877413,.0940128,0,.486536,.87646,.0883462,0,.503439,.875233,.0830924,0,.520498,.8737,.0781975,0,.537717,.871873,.07364,0,.555102,.86978,.0694103,0,.572657,.867405,.0654696,0,.59039,.864751,.0617914,0,.608307,.861818,.0583491,0,.626419,.858645,.0551443,0,.644733,.855307,.0521894,0,.663264,.851736,.0494334,0,.682025,.847927,.0468504,0,.701032,.843888,.0444261,0,.720308,.839629,.0421497,0,.739875,.835158,.0400082,0,.759764,.830509,.0380076,0,.780014,.825714,.0361488,0,.800673,.820729,.0343956,0,.821803,.815751,.0327781,0,.843492,.810752,.031275,0,.86586,.805587,.0298542,0,.889087,.800317,.0285397,0,.913466,.79489,.0272948,0,.93952,.789314,.0261139,0,.96835,.783593,.0249938,0,1,1,.724258,0,0,.999992,.724243,0,726889e-9,.99987,.724044,0,.00569574,.999336,.72317,0,.0131702,.996271,.719432,0,.0220738,.991159,.712576,0,.0319405,.982465,.700927,0,.0425202,.97049,.684297,0,.0536599,.953973,.661244,0,.065258,.935546,.633804,0,.0772427,.916596,.603071,0,.0895616,.899353,.57105,0,.102175,.885216,.539206,0,.11505,.875076,.508714,0,.128164,.868334,.479571,0,.141495,.864414,.451796,0,.155026,.862678,.425328,0,.168745,.862835,.400352,0,.182639,.864067,.376532,0,.196699,.866086,.35391,0,.210915,.868557,.332424,0,.225282,.871271,.312053,0,.239792,.874058,.292764,0,.25444,.8768,.27453,0,.269223,.87939,.257297,0,.284135,.8819,.24114,0,.299174,.884187,.225934,0,.314337,.886262,.211669,0,.329622,.888119,.198311,0,.345026,.889709,.185783,0,.360549,.891054,.174063,0,.376189,.892196,.163143,0,.391946,.893101,.152952,0,.407819,.893803,.143475,0,.423808,.894277,.134647,0,.439914,.894532,.126434,0,.456137,.894576,.1188,0,.472479,.894393,.111694,0,.48894,.893976,.105069,0,.505523,.893346,.0989077,0,.52223,.892502,.0931724,0,.539064,.891441,.0878276,0,.556028,.890276,.082903,0,.573125,.888972,.0783505,0,.590361,.887469,.0741083,0,.607741,.885785,.0701633,0,.62527,.883914,.0664835,0,.642957,.881872,.0630567,0,.660809,.879651,.0598527,0,.678836,.877267,.0568615,0,.69705,.874717,.05406,0,.715465,.872012,.0514378,0,.734098,.869157,.0489805,0,.752968,.866155,.0466727,0,.772101,.863014,.0445056,0,.791529,.859748,.0424733,0,.81129,.856416,.0405957,0,.831438,.852958,.0388273,0,.852044,.849382,.0371619,0,.87321,.845694,.0355959,0,.89509,.841893,.0341155,0,.917932,.837981,.0327141,0,.942204,.833963,.0313856,0,.968981,.829847,.0301275,0,1,1,.85214,0,0,.999969,.852095,0,.00279627,.999483,.851408,0,.0107635,.994545,.84579,0,.0206454,.986188,.835231,0,.0315756,.969847,.814687,0,.0432021,.945951,.783735,0,.0553396,.91917,.746074,0,.0678766,.895488,.706938,0,.0807395,.878232,.669534,0,.0938767,.868252,.635168,0,.10725,.863873,.603069,0,.120832,.863369,.572514,0,.134598,.86545,.543169,0,.148533,.868803,.514578,0,.16262,.872794,.486762,0,.176849,.87702,.459811,0,.19121,.881054,.433654,0,.205694,.884974,.408574,0,.220294,.888587,.384525,0,.235005,.891877,.36156,0,.24982,.894793,.339661,0,.264737,.89743,.318913,0,.279751,.899796,.299302,0,.294859,.901943,.280843,0,.310058,.903858,.263481,0,.325346,.905574,.247197,0,.340721,.907069,.231915,0,.356181,.908379,.217614,0,.371725,.90952,.20425,0,.387353,.910483,.191758,0,.403063,.91128,.180092,0,.418854,.911936,.169222,0,.434727,.912454,.159098,0,.450682,.912835,.149668,0,.466718,.913078,.140884,0,.482837,.913192,.132709,0,.499038,.913175,.125095,0,.515324,.91304,.118012,0,.531695,.912781,.111417,0,.548153,.91241,.105281,0,.5647,.911924,.0995691,0,.581338,.911331,.0942531,0,.59807,.910637,.0893076,0,.6149,.90984,.0846998,0,.63183,.908941,.0804044,0,.648865,.907944,.0763984,0,.666011,.906857,.0726638,0,.683273,.90568,.0691783,0,.700659,.904416,.0659222,0,.718176,.903067,.0628782,0,.735834,.901637,.0600307,0,.753646,.900128,.0573647,0,.771625,.898544,.0548668,0,.78979,.89689,.052527,0,.808162,.895165,.0503306,0,.826771,.893371,.0482668,0,.845654,.891572,.0463605,0,.864863,.889763,.0445998,0,.884472,.887894,.0429451,0,.904592,.885967,.0413884,0,.925407,.883984,.0399225,0,.947271,.881945,.0385405,0,.97105,.879854,.0372362,0,1,.999804,.995833,0,0,.938155,.933611,0,.0158731,.864755,.854311,0,.0317461,.888594,.865264,0,.0476191,.905575,.863922,0,.0634921,.915125,.850558,0,.0793651,.920665,.829254,0,.0952381,.924073,.802578,0,.111111,.926304,.772211,0,.126984,.927829,.739366,0,.142857,.928924,.705033,0,.15873,.92973,.670019,0,.174603,.930339,.634993,0,.190476,.930811,.600485,0,.206349,.931191,.566897,0,.222222,.93149,.534485,0,.238095,.931737,.503429,0,.253968,.931939,.473811,0,.269841,.932108,.445668,0,.285714,.93225,.418993,0,.301587,.932371,.393762,0,.31746,.932474,.369939,0,.333333,.932562,.347479,0,.349206,.932638,.326336,0,.365079,.932703,.306462,0,.380952,.93276,.287805,0,.396825,.932809,.270313,0,.412698,.932851,.253933,0,.428571,.932887,.23861,0,.444444,.932917,.224289,0,.460317,.932943,.210917,0,.47619,.932965,.19844,0,.492063,.932982,.186807,0,.507937,.932995,.175966,0,.52381,.933005,.165869,0,.539683,.933011,.156468,0,.555556,.933013,.147719,0,.571429,.933013,.139579,0,.587302,.93301,.132007,0,.603175,.933004,.124965,0,.619048,.932994,.118416,0,.634921,.932982,.112326,0,.650794,.932968,.106663,0,.666667,.93295,.101397,0,.68254,.932931,.0964993,0,.698413,.932908,.0919438,0,.714286,.932883,.0877057,0,.730159,.932856,.0837623,0,.746032,.932827,.0800921,0,.761905,.932796,.0766754,0,.777778,.932762,.0734936,0,.793651,.932727,.0705296,0,.809524,.932689,.0677676,0,.825397,.93265,.0651929,0,.84127,.932609,.0627917,0,.857143,.932565,.0605515,0,.873016,.932521,.0584606,0,.888889,.932474,.0565082,0,.904762,.932427,.0546841,0,.920635,.932377,.0529793,0,.936508,.932326,.0513851,0,.952381,.932274,.0498936,0,.968254,.93222,.0484975,0,.984127,.932164,.0471899,0,1];function Aa(r){let e=(i,s)=>r.createTexture({id:i,width:64,height:64,format:"rgba16float",data:Uint16Array.from(s,Ia.toHalfFloat),mipLevels:1,sampler:{minFilter:"nearest",magFilter:"nearest"}}),t=e("ltc-matrix",Sa),n=e("ltc-amplitude",wa);return{bindings:{areaLTCMatrix:t,areaLTCAmplitude:n},destroy(){t.destroy(),n.destroy()}}}var a7=c0;return Ca(Yt);})();
|
|
915
922
|
return __exports__;
|
|
916
923
|
});
|