@mappedin/mappedin-js 6.0.1-beta.3 → 6.0.1-beta.30

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.
Files changed (36) hide show
  1. package/README.md +6 -6
  2. package/THIRD_PARTY_LICENSES.txt +362 -4
  3. package/lib/esm/GLTFExporter-2HAV72SJ.js +1 -0
  4. package/lib/esm/GLTFLoader-IS3L5KUS.js +1 -0
  5. package/lib/esm/browser-64MRL2ZR.js +1 -0
  6. package/lib/esm/chunk-A3CEQIQD.js +1 -0
  7. package/lib/esm/chunk-H2E2454S.js +1 -0
  8. package/lib/esm/chunk-JNSM5T55.js +1 -0
  9. package/lib/esm/chunk-ODQ3775R.js +1 -0
  10. package/lib/esm/chunk-OFHRQORP.js +1 -0
  11. package/lib/esm/chunk-OSMCRNNF.js +1 -0
  12. package/lib/esm/chunk-VD44EZOA.js +1 -0
  13. package/lib/esm/index.css +1 -1
  14. package/lib/esm/index.d.ts +9210 -3869
  15. package/lib/esm/index.js +1 -1
  16. package/lib/esm/inspector-D2RCHDOY.css +1 -0
  17. package/lib/esm/inspector-RQUC7XBE.js +1 -0
  18. package/lib/esm/internal-55777EMI.css +1 -0
  19. package/lib/esm/internal-FFMF4P2Y.js +1 -0
  20. package/lib/esm/outdoor-context-v4-E3KR4IBA.js +1 -0
  21. package/lib/esm/roboto-regular-YXLENGLP.js +1 -0
  22. package/lib/esm/text3d-7MFD4QFJ.js +1 -0
  23. package/lib/esm/text3d-Q7FFP3YS.css +1 -0
  24. package/lib/index.css +1 -1
  25. package/package.json +9 -10
  26. package/lib/esm/GLTFExporter-DJTLMZRS.js +0 -18
  27. package/lib/esm/GLTFLoader-EMLQBTUW.js +0 -1
  28. package/lib/esm/browser-VJJYXKCR.js +0 -1
  29. package/lib/esm/chunk-5TYPWFBI.js +0 -1
  30. package/lib/esm/chunk-5VLYPNGJ.js +0 -950
  31. package/lib/esm/chunk-AIZ6PN4T.js +0 -577
  32. package/lib/esm/chunk-BCE6HB4T.js +0 -1
  33. package/lib/esm/chunk-YPHGW2KF.js +0 -3799
  34. package/lib/esm/inspector-GIOP4ZXY.js +0 -425
  35. package/lib/esm/inspector-XYNFPRUR.css +0 -1
  36. package/lib/esm/outdoor-context-v4-DXPG5QBY.js +0 -1
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # Mappedin Web SDK
1
+ # Mappedin JS
2
2
 
3
3
  ## Resources
4
4
 
5
5
  - [Mappedin Developer Portal](https://developer.mappedin.com)
6
- - [Releases and Roadmap](https://developer.mappedin.com/releases/)
7
- - [Getting Started Guide](https://developer.mappedin.com/web/v6/guides/getting-started/)
8
- - [API Reference](https://developer.mappedin.com/web/v6/api-reference/)
9
- - [Trial Keys](https://developer.mappedin.com/web/v6/trial-keys-and-maps/)
6
+ - [Releases and Roadmap](https://developer.mappedin.com/docs/roadmap)
7
+ - [Getting Started Guide](https://developer.mappedin.com/web-sdk/getting-started)
8
+ - [API Reference](https://developer.mappedin.com/web-sdk/api-reference)
9
+ - [Demo Keys & Maps](https://developer.mappedin.com/docs/demo-keys-and-maps)
10
10
  - [License](https://info.mappedin.com/terms/sdk)
11
11
 
12
12
  ## Usage
@@ -42,4 +42,4 @@ async function init() {
42
42
  init();
43
43
  ```
44
44
 
45
- For full documentation, read our [Getting Started guide on the Developer Portal](https://developer.mappedin.com/web/v6/guides/getting-started/).
45
+ For full documentation, read our [Getting Started guide on the Developer Portal](https://developer.mappedin.com/web-sdk/getting-started).
@@ -1,4 +1,4 @@
1
- THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THE WORKSPACE AGGREGATOR E18D6AB7 1744 4CD0 B210 93A5CC9A8086 PRODUCT.
1
+ THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THE WORKSPACE AGGREGATOR 168576C5 42C6 4938 88B3 291C09BC2F43 PRODUCT.
2
2
 
3
3
  -----
4
4
 
@@ -373,6 +373,32 @@ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR I
373
373
 
374
374
  -----
375
375
 
376
+ The following software may be included in this product: @gerrit0/mini-shiki. A copy of the source code may be downloaded from git+https://github.com/Gerrit0/mini-shiki.git. This software contains the following license and notice below:
377
+
378
+ MIT License
379
+
380
+ Copyright (c) 2024 Gerrit Birkeland
381
+
382
+ Permission is hereby granted, free of charge, to any person obtaining a copy
383
+ of this software and associated documentation files (the "Software"), to deal
384
+ in the Software without restriction, including without limitation the rights
385
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
386
+ copies of the Software, and to permit persons to whom the Software is
387
+ furnished to do so, subject to the following conditions:
388
+
389
+ The above copyright notice and this permission notice shall be included in all
390
+ copies or substantial portions of the Software.
391
+
392
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
393
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
394
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
395
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
396
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
397
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
398
+ SOFTWARE.
399
+
400
+ -----
401
+
376
402
  The following software may be included in this product: @hapi/hoek. A copy of the source code may be downloaded from git://github.com/hapijs/hoek. This software contains the following license and notice below:
377
403
 
378
404
  Copyright (c) 2011-2020, Sideway Inc, and project contributors
@@ -1326,7 +1352,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1326
1352
 
1327
1353
  -----
1328
1354
 
1329
- The following software may be included in this product: @mappedin/mappedin-js, @mappedin/react-sdk. A copy of the source code may be downloaded from git+https://github.com/MappedIn/sdk.git (@mappedin/mappedin-js), git+https://github.com/MappedIn/sdk.git (@mappedin/react-sdk). This software contains the following license and notice below:
1355
+ The following software may be included in this product: @mappedin/mappedin-js, @mappedin/react-sdk. This software contains the following license and notice below:
1330
1356
 
1331
1357
  Mappedin Inc.
1332
1358
 
@@ -1885,7 +1911,7 @@ THE SOFTWARE.
1885
1911
 
1886
1912
  -----
1887
1913
 
1888
- The following software may be included in this product: @shikijs/core, shiki. A copy of the source code may be downloaded from git+https://github.com/shikijs/shiki.git (@shikijs/core), git+https://github.com/shikijs/shiki.git (shiki). This software contains the following license and notice below:
1914
+ The following software may be included in this product: @shikijs/engine-oniguruma, @shikijs/types. A copy of the source code may be downloaded from git+https://github.com/shikijs/shiki.git (@shikijs/engine-oniguruma), git+https://github.com/shikijs/shiki.git (@shikijs/types). This software contains the following license and notice below:
1889
1915
 
1890
1916
  MIT License
1891
1917
 
@@ -1912,6 +1938,32 @@ SOFTWARE.
1912
1938
 
1913
1939
  -----
1914
1940
 
1941
+ The following software may be included in this product: @shikijs/vscode-textmate. A copy of the source code may be downloaded from https://github.com/shikijs/vscode-textmate. This software contains the following license and notice below:
1942
+
1943
+ The MIT License (MIT)
1944
+
1945
+ Copyright (c) Microsoft Corporation
1946
+
1947
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1948
+ of this software and associated documentation files (the "Software"), to deal
1949
+ in the Software without restriction, including without limitation the rights
1950
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1951
+ copies of the Software, and to permit persons to whom the Software is
1952
+ furnished to do so, subject to the following conditions:
1953
+
1954
+ The above copyright notice and this permission notice shall be included in all
1955
+ copies or substantial portions of the Software.
1956
+
1957
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1958
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1959
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1960
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1961
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1962
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1963
+ SOFTWARE.
1964
+
1965
+ -----
1966
+
1915
1967
  The following software may be included in this product: @sideway/address. A copy of the source code may be downloaded from git://github.com/sideway/address. This software contains the following license and notice below:
1916
1968
 
1917
1969
  Copyright (c) 2019-2020, Sideway, Inc. and Project contributors
@@ -2394,7 +2446,7 @@ THE SOFTWARE.
2394
2446
 
2395
2447
  -----
2396
2448
 
2397
- The following software may be included in this product: @types/babel__core, @types/babel__generator, @types/babel__template, @types/babel__traverse, @types/benchmark, @types/brotli, @types/caseless, @types/crypto-js, @types/cssnano, @types/d3, @types/d3-array, @types/d3-axis, @types/d3-brush, @types/d3-chord, @types/d3-color, @types/d3-contour, @types/d3-delaunay, @types/d3-dispatch, @types/d3-drag, @types/d3-dsv, @types/d3-ease, @types/d3-fetch, @types/d3-force, @types/d3-format, @types/d3-geo, @types/d3-hierarchy, @types/d3-interpolate, @types/d3-path, @types/d3-polygon, @types/d3-quadtree, @types/d3-random, @types/d3-scale, @types/d3-scale-chromatic, @types/d3-selection, @types/d3-shape, @types/d3-time, @types/d3-time-format, @types/d3-timer, @types/d3-transition, @types/d3-zoom, @types/eslint, @types/estree, @types/geojson, @types/geojson-vt, @types/google.maps, @types/graceful-fs, @types/hammerjs, @types/istanbul-lib-coverage, @types/istanbul-lib-report, @types/istanbul-reports, @types/jest, @types/jsdom, @types/json-schema, @types/junit-report-builder, @types/lodash, @types/lodash.defaultsdeep, @types/mapbox__point-geometry, @types/mapbox__vector-tile, @types/minimatch, @types/minimist, @types/nise, @types/node, @types/normalize-package-data, @types/offscreencanvas, @types/pako, @types/parse-json, @types/pbf, @types/prettier, @types/request, @types/semver, @types/stack-utils, @types/stats.js, @types/supercluster, @types/three, @types/tinycolor2, @types/tough-cookie, @types/ua-parser-js, @types/webxr, @types/yargs, @types/yargs-parser. A copy of the source code may be downloaded from https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/babel__core), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/babel__generator), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/babel__template), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/babel__traverse), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/benchmark), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/brotli), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/caseless), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/crypto-js), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-array), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-axis), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-brush), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-chord), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-color), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-contour), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-delaunay), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-dispatch), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-drag), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-dsv), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-ease), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-fetch), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-force), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-format), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-geo), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-hierarchy), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-interpolate), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-path), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-polygon), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-quadtree), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-random), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-scale), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-scale-chromatic), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-selection), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-shape), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-time), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-time-format), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-timer), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-transition), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-zoom), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/eslint), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/estree), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/geojson), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/geojson-vt), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/google.maps), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/graceful-fs), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/hammerjs), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/istanbul-lib-coverage), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/istanbul-lib-report), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/istanbul-reports), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/jest), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/jsdom), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/json-schema), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/junit-report-builder), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/lodash), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/lodash.defaultsdeep), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/mapbox__point-geometry), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/mapbox__vector-tile), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/minimatch), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/minimist), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/nise), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/node), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/normalize-package-data), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/offscreencanvas), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/pako), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/parse-json), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/pbf), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/prettier), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/request), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/semver), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/stack-utils), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/stats.js), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/supercluster), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/three), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/tinycolor2), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/tough-cookie), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/ua-parser-js), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/webxr), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/yargs), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/yargs-parser). This software contains the following license and notice below:
2449
+ The following software may be included in this product: @types/babel__core, @types/babel__generator, @types/babel__template, @types/babel__traverse, @types/benchmark, @types/brotli, @types/caseless, @types/crypto-js, @types/cssnano, @types/d3, @types/d3-array, @types/d3-axis, @types/d3-brush, @types/d3-chord, @types/d3-color, @types/d3-contour, @types/d3-delaunay, @types/d3-dispatch, @types/d3-drag, @types/d3-dsv, @types/d3-ease, @types/d3-fetch, @types/d3-force, @types/d3-format, @types/d3-geo, @types/d3-hierarchy, @types/d3-interpolate, @types/d3-path, @types/d3-polygon, @types/d3-quadtree, @types/d3-random, @types/d3-scale, @types/d3-scale-chromatic, @types/d3-selection, @types/d3-shape, @types/d3-time, @types/d3-time-format, @types/d3-timer, @types/d3-transition, @types/d3-zoom, @types/eslint, @types/estree, @types/geojson, @types/geojson-vt, @types/google.maps, @types/graceful-fs, @types/hammerjs, @types/hast, @types/istanbul-lib-coverage, @types/istanbul-lib-report, @types/istanbul-reports, @types/jest, @types/jsdom, @types/json-schema, @types/junit-report-builder, @types/lodash, @types/lodash.defaultsdeep, @types/mapbox__point-geometry, @types/mapbox__vector-tile, @types/minimatch, @types/minimist, @types/nise, @types/node, @types/normalize-package-data, @types/offscreencanvas, @types/pako, @types/parse-json, @types/pbf, @types/prettier, @types/request, @types/semver, @types/stack-utils, @types/stats.js, @types/supercluster, @types/three, @types/tinycolor2, @types/tough-cookie, @types/ua-parser-js, @types/unist, @types/webxr, @types/yargs, @types/yargs-parser. A copy of the source code may be downloaded from https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/babel__core), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/babel__generator), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/babel__template), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/babel__traverse), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/benchmark), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/brotli), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/caseless), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/crypto-js), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-array), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-axis), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-brush), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-chord), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-color), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-contour), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-delaunay), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-dispatch), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-drag), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-dsv), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-ease), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-fetch), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-force), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-format), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-geo), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-hierarchy), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-interpolate), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-path), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-polygon), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-quadtree), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-random), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-scale), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-scale-chromatic), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-selection), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-shape), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-time), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-time-format), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-timer), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-transition), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/d3-zoom), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/eslint), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/estree), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/geojson), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/geojson-vt), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/google.maps), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/graceful-fs), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/hammerjs), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/hast), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/istanbul-lib-coverage), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/istanbul-lib-report), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/istanbul-reports), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/jest), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/jsdom), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/json-schema), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/junit-report-builder), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/lodash), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/lodash.defaultsdeep), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/mapbox__point-geometry), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/mapbox__vector-tile), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/minimatch), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/minimist), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/nise), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/node), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/normalize-package-data), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/offscreencanvas), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/pako), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/parse-json), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/pbf), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/prettier), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/request), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/semver), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/stack-utils), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/stats.js), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/supercluster), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/three), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/tinycolor2), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/tough-cookie), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/ua-parser-js), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/unist), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/webxr), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/yargs), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/yargs-parser). This software contains the following license and notice below:
2398
2450
 
2399
2451
  MIT License
2400
2452
 
@@ -4038,6 +4090,33 @@ Apache License
4038
4090
 
4039
4091
  -----
4040
4092
 
4093
+ The following software may be included in this product: bidi-js, webgl-sdf-generator. A copy of the source code may be downloaded from https://github.com/lojjic/bidi-js.git (bidi-js), https://github.com/lojjic/webgl-sdf-generator.git (webgl-sdf-generator). This software contains the following license and notice below:
4094
+
4095
+ Copyright (c) 2021 Jason Johnston
4096
+
4097
+ MIT License
4098
+
4099
+ Permission is hereby granted, free of charge, to any person obtaining
4100
+ a copy of this software and associated documentation files (the
4101
+ "Software"), to deal in the Software without restriction, including
4102
+ without limitation the rights to use, copy, modify, merge, publish,
4103
+ distribute, sublicense, and/or sell copies of the Software, and to
4104
+ permit persons to whom the Software is furnished to do so, subject to
4105
+ the following conditions:
4106
+
4107
+ The above copyright notice and this permission notice shall be
4108
+ included in all copies or substantial portions of the Software.
4109
+
4110
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
4111
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4112
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
4113
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
4114
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
4115
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
4116
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4117
+
4118
+ -----
4119
+
4041
4120
  The following software may be included in this product: binary-extensions. A copy of the source code may be downloaded from https://github.com/sindresorhus/binary-extensions.git. This software contains the following license and notice below:
4042
4121
 
4043
4122
  MIT License
@@ -6817,6 +6896,232 @@ Apache License
6817
6896
 
6818
6897
  -----
6819
6898
 
6899
+ The following software may be included in this product: dexie. A copy of the source code may be downloaded from https://github.com/dexie/Dexie.js.git. This software contains the following license and notice below:
6900
+
6901
+ Apache License
6902
+ Version 2.0, January 2004
6903
+ http://www.apache.org/licenses/
6904
+
6905
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6906
+
6907
+ 1. Definitions.
6908
+
6909
+ "License" shall mean the terms and conditions for use, reproduction,
6910
+ and distribution as defined by Sections 1 through 9 of this document.
6911
+
6912
+ "Licensor" shall mean the copyright owner or entity authorized by
6913
+ the copyright owner that is granting the License.
6914
+
6915
+ "Legal Entity" shall mean the union of the acting entity and all
6916
+ other entities that control, are controlled by, or are under common
6917
+ control with that entity. For the purposes of this definition,
6918
+ "control" means (i) the power, direct or indirect, to cause the
6919
+ direction or management of such entity, whether by contract or
6920
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
6921
+ outstanding shares, or (iii) beneficial ownership of such entity.
6922
+
6923
+ "You" (or "Your") shall mean an individual or Legal Entity
6924
+ exercising permissions granted by this License.
6925
+
6926
+ "Source" form shall mean the preferred form for making modifications,
6927
+ including but not limited to software source code, documentation
6928
+ source, and configuration files.
6929
+
6930
+ "Object" form shall mean any form resulting from mechanical
6931
+ transformation or translation of a Source form, including but
6932
+ not limited to compiled object code, generated documentation,
6933
+ and conversions to other media types.
6934
+
6935
+ "Work" shall mean the work of authorship, whether in Source or
6936
+ Object form, made available under the License, as indicated by a
6937
+ copyright notice that is included in or attached to the work
6938
+ (an example is provided in the Appendix below).
6939
+
6940
+ "Derivative Works" shall mean any work, whether in Source or Object
6941
+ form, that is based on (or derived from) the Work and for which the
6942
+ editorial revisions, annotations, elaborations, or other modifications
6943
+ represent, as a whole, an original work of authorship. For the purposes
6944
+ of this License, Derivative Works shall not include works that remain
6945
+ separable from, or merely link (or bind by name) to the interfaces of,
6946
+ the Work and Derivative Works thereof.
6947
+
6948
+ "Contribution" shall mean any work of authorship, including
6949
+ the original version of the Work and any modifications or additions
6950
+ to that Work or Derivative Works thereof, that is intentionally
6951
+ submitted to Licensor for inclusion in the Work by the copyright owner
6952
+ or by an individual or Legal Entity authorized to submit on behalf of
6953
+ the copyright owner. For the purposes of this definition, "submitted"
6954
+ means any form of electronic, verbal, or written communication sent
6955
+ to the Licensor or its representatives, including but not limited to
6956
+ communication on electronic mailing lists, source code control systems,
6957
+ and issue tracking systems that are managed by, or on behalf of, the
6958
+ Licensor for the purpose of discussing and improving the Work, but
6959
+ excluding communication that is conspicuously marked or otherwise
6960
+ designated in writing by the copyright owner as "Not a Contribution."
6961
+
6962
+ "Contributor" shall mean Licensor and any individual or Legal Entity
6963
+ on behalf of whom a Contribution has been received by Licensor and
6964
+ subsequently incorporated within the Work.
6965
+
6966
+ 2. Grant of Copyright License. Subject to the terms and conditions of
6967
+ this License, each Contributor hereby grants to You a perpetual,
6968
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
6969
+ copyright license to reproduce, prepare Derivative Works of,
6970
+ publicly display, publicly perform, sublicense, and distribute the
6971
+ Work and such Derivative Works in Source or Object form.
6972
+
6973
+ 3. Grant of Patent License. Subject to the terms and conditions of
6974
+ this License, each Contributor hereby grants to You a perpetual,
6975
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
6976
+ (except as stated in this section) patent license to make, have made,
6977
+ use, offer to sell, sell, import, and otherwise transfer the Work,
6978
+ where such license applies only to those patent claims licensable
6979
+ by such Contributor that are necessarily infringed by their
6980
+ Contribution(s) alone or by combination of their Contribution(s)
6981
+ with the Work to which such Contribution(s) was submitted. If You
6982
+ institute patent litigation against any entity (including a
6983
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
6984
+ or a Contribution incorporated within the Work constitutes direct
6985
+ or contributory patent infringement, then any patent licenses
6986
+ granted to You under this License for that Work shall terminate
6987
+ as of the date such litigation is filed.
6988
+
6989
+ 4. Redistribution. You may reproduce and distribute copies of the
6990
+ Work or Derivative Works thereof in any medium, with or without
6991
+ modifications, and in Source or Object form, provided that You
6992
+ meet the following conditions:
6993
+
6994
+ (a) You must give any other recipients of the Work or
6995
+ Derivative Works a copy of this License; and
6996
+
6997
+ (b) You must cause any modified files to carry prominent notices
6998
+ stating that You changed the files; and
6999
+
7000
+ (c) You must retain, in the Source form of any Derivative Works
7001
+ that You distribute, all copyright, patent, trademark, and
7002
+ attribution notices from the Source form of the Work,
7003
+ excluding those notices that do not pertain to any part of
7004
+ the Derivative Works; and
7005
+
7006
+ (d) If the Work includes a "NOTICE" text file as part of its
7007
+ distribution, then any Derivative Works that You distribute must
7008
+ include a readable copy of the attribution notices contained
7009
+ within such NOTICE file, excluding those notices that do not
7010
+ pertain to any part of the Derivative Works, in at least one
7011
+ of the following places: within a NOTICE text file distributed
7012
+ as part of the Derivative Works; within the Source form or
7013
+ documentation, if provided along with the Derivative Works; or,
7014
+ within a display generated by the Derivative Works, if and
7015
+ wherever such third-party notices normally appear. The contents
7016
+ of the NOTICE file are for informational purposes only and
7017
+ do not modify the License. You may add Your own attribution
7018
+ notices within Derivative Works that You distribute, alongside
7019
+ or as an addendum to the NOTICE text from the Work, provided
7020
+ that such additional attribution notices cannot be construed
7021
+ as modifying the License.
7022
+
7023
+ You may add Your own copyright statement to Your modifications and
7024
+ may provide additional or different license terms and conditions
7025
+ for use, reproduction, or distribution of Your modifications, or
7026
+ for any such Derivative Works as a whole, provided Your use,
7027
+ reproduction, and distribution of the Work otherwise complies with
7028
+ the conditions stated in this License.
7029
+
7030
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
7031
+ any Contribution intentionally submitted for inclusion in the Work
7032
+ by You to the Licensor shall be under the terms and conditions of
7033
+ this License, without any additional terms or conditions.
7034
+ Notwithstanding the above, nothing herein shall supersede or modify
7035
+ the terms of any separate license agreement you may have executed
7036
+ with Licensor regarding such Contributions.
7037
+
7038
+ 6. Trademarks. This License does not grant permission to use the trade
7039
+ names, trademarks, service marks, or product names of the Licensor,
7040
+ except as required for reasonable and customary use in describing the
7041
+ origin of the Work and reproducing the content of the NOTICE file.
7042
+
7043
+ 7. Disclaimer of Warranty. Unless required by applicable law or
7044
+ agreed to in writing, Licensor provides the Work (and each
7045
+ Contributor provides its Contributions) on an "AS IS" BASIS,
7046
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
7047
+ implied, including, without limitation, any warranties or conditions
7048
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
7049
+ PARTICULAR PURPOSE. You are solely responsible for determining the
7050
+ appropriateness of using or redistributing the Work and assume any
7051
+ risks associated with Your exercise of permissions under this License.
7052
+
7053
+ 8. Limitation of Liability. In no event and under no legal theory,
7054
+ whether in tort (including negligence), contract, or otherwise,
7055
+ unless required by applicable law (such as deliberate and grossly
7056
+ negligent acts) or agreed to in writing, shall any Contributor be
7057
+ liable to You for damages, including any direct, indirect, special,
7058
+ incidental, or consequential damages of any character arising as a
7059
+ result of this License or out of the use or inability to use the
7060
+ Work (including but not limited to damages for loss of goodwill,
7061
+ work stoppage, computer failure or malfunction, or any and all
7062
+ other commercial damages or losses), even if such Contributor
7063
+ has been advised of the possibility of such damages.
7064
+
7065
+ 9. Accepting Warranty or Additional Liability. While redistributing
7066
+ the Work or Derivative Works thereof, You may choose to offer,
7067
+ and charge a fee for, acceptance of support, warranty, indemnity,
7068
+ or other liability obligations and/or rights consistent with this
7069
+ License. However, in accepting such obligations, You may act only
7070
+ on Your own behalf and on Your sole responsibility, not on behalf
7071
+ of any other Contributor, and only if You agree to indemnify,
7072
+ defend, and hold each Contributor harmless for any liability
7073
+ incurred by, or claims asserted against, such Contributor by reason
7074
+ of your accepting any such warranty or additional liability.
7075
+
7076
+ END OF TERMS AND CONDITIONS
7077
+
7078
+ APPENDIX: How to apply the Apache License to your work.
7079
+
7080
+ To apply the Apache License to your work, attach the following
7081
+ boilerplate notice, with the fields enclosed by brackets "{}"
7082
+ replaced with your own identifying information. (Don't include
7083
+ the brackets!) The text should be enclosed in the appropriate
7084
+ comment syntax for the file format. We also recommend that a
7085
+ file or class name and description of purpose be included on the
7086
+ same "printed page" as the copyright notice for easier
7087
+ identification within third-party archives.
7088
+
7089
+ Copyright {yyyy} {name of copyright owner}
7090
+
7091
+ Licensed under the Apache License, Version 2.0 (the "License");
7092
+ you may not use this file except in compliance with the License.
7093
+ You may obtain a copy of the License at
7094
+
7095
+ http://www.apache.org/licenses/LICENSE-2.0
7096
+
7097
+ Unless required by applicable law or agreed to in writing, software
7098
+ distributed under the License is distributed on an "AS IS" BASIS,
7099
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
7100
+ See the License for the specific language governing permissions and
7101
+ limitations under the License.
7102
+
7103
+
7104
+
7105
+ NOTICE
7106
+
7107
+ Dexie.js
7108
+
7109
+ Copyright (c) 2014-2017 David Fahlander
7110
+
7111
+ Licensed under the Apache License, Version 2.0 (the "License");
7112
+ you may not use this file except in compliance with the License.
7113
+ You may obtain a copy of the License at
7114
+
7115
+ http://www.apache.org/licenses/LICENSE-2.0
7116
+
7117
+ Unless required by applicable law or agreed to in writing, software
7118
+ distributed under the License is distributed on an "AS IS" BASIS,
7119
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
7120
+ See the License for the specific language governing permissions and
7121
+ limitations under the License.
7122
+
7123
+ -----
7124
+
6820
7125
  The following software may be included in this product: doctrine. A copy of the source code may be downloaded from https://github.com/eslint/doctrine.git. This software contains the following license and notice below:
6821
7126
 
6822
7127
  Apache License
@@ -11985,6 +12290,32 @@ SOFTWARE.
11985
12290
 
11986
12291
  -----
11987
12292
 
12293
+ The following software may be included in this product: jwt-decode. A copy of the source code may be downloaded from git://github.com/auth0/jwt-decode. This software contains the following license and notice below:
12294
+
12295
+ The MIT License (MIT)
12296
+
12297
+ Copyright (c) 2015 Auth0, Inc. <support@auth0.com> (http://auth0.com)
12298
+
12299
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12300
+ of this software and associated documentation files (the "Software"), to deal
12301
+ in the Software without restriction, including without limitation the rights
12302
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12303
+ copies of the Software, and to permit persons to whom the Software is
12304
+ furnished to do so, subject to the following conditions:
12305
+
12306
+ The above copyright notice and this permission notice shall be included in all
12307
+ copies or substantial portions of the Software.
12308
+
12309
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12310
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12311
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
12312
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
12313
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
12314
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
12315
+ SOFTWARE.
12316
+
12317
+ -----
12318
+
11988
12319
  The following software may be included in this product: kdbush, quickselect. A copy of the source code may be downloaded from git://github.com/mourner/kdbush.git (kdbush). This software contains the following license and notice below:
11989
12320
 
11990
12321
  ISC License
@@ -24651,6 +24982,33 @@ SOFTWARE.
24651
24982
 
24652
24983
  -----
24653
24984
 
24985
+ The following software may be included in this product: troika-three-text, troika-three-utils, troika-worker-utils. A copy of the source code may be downloaded from https://github.com/protectwise/troika.git (troika-three-text), https://github.com/protectwise/troika.git (troika-three-utils), https://github.com/protectwise/troika.git (troika-worker-utils). This software contains the following license and notice below:
24986
+
24987
+ MIT License
24988
+
24989
+ Copyright (c) 2019 ProtectWise
24990
+ Copyright (c) 2021 Jason Johnston
24991
+
24992
+ Permission is hereby granted, free of charge, to any person obtaining a copy
24993
+ of this software and associated documentation files (the "Software"), to deal
24994
+ in the Software without restriction, including without limitation the rights
24995
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
24996
+ copies of the Software, and to permit persons to whom the Software is
24997
+ furnished to do so, subject to the following conditions:
24998
+
24999
+ The above copyright notice and this permission notice shall be included in all
25000
+ copies or substantial portions of the Software.
25001
+
25002
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25003
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25004
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25005
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25006
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25007
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25008
+ SOFTWARE.
25009
+
25010
+ -----
25011
+
24654
25012
  The following software may be included in this product: ts-jest. A copy of the source code may be downloaded from git+https://github.com/kulshekhar/ts-jest.git. This software contains the following license and notice below:
24655
25013
 
24656
25014
  MIT License
@@ -0,0 +1 @@
1
+ import{D as Ne,G as Se,H as O,K as X,N as _e,Q as S,S as Ce,V as Le,X as Ue,Ya as D,Z as ve,Za as De,d as pe,da as Oe,e as de,f as ge,fa as F,g as xe,h as me,i as Te,j as ye,k as we,l as Me,m as Ee,o as Ie,p as Ae,q as Re,v as be,va as V,w as H,wa as Fe,z as G}from"./chunk-JNSM5T55.js";import{a as k}from"./chunk-OSMCRNNF.js";import"./chunk-H2E2454S.js";k();k();var P,W,C,Y;function K(a,e=1/0,s=null){W||(W=new ve(2,2,1,1)),C||(C=new Le({uniforms:{blitTexture:new De(a)},vertexShader:"\n varying vec2 vUv;\n void main(){\n vUv = uv;\n gl_Position = vec4(position.xy * 1.0,0.,.999999);\n }",fragmentShader:"\n uniform sampler2D blitTexture; \n varying vec2 vUv;\n\n void main(){ \n gl_FragColor = vec4(vUv.xy, 0, 1);\n \n #ifdef IS_SRGB\n gl_FragColor = LinearTosRGB( texture2D( blitTexture, vUv) );\n #else\n gl_FragColor = texture2D( blitTexture, vUv);\n #endif\n }"})),C.uniforms.blitTexture.value=a,C.defines.IS_SRGB=a.colorSpace==H,C.needsUpdate=!0,Y||(Y=new Ce(W,C),Y.frustrumCulled=!1);let i=new Ue,t=new F;t.add(Y),s===null&&(s=P=new Oe({antialias:!1}));let r=Math.min(a.image.width,e),n=Math.min(a.image.height,e);s.setSize(r,n),s.clear(),s.render(t,i);let o=document.createElement("canvas"),c=o.getContext("2d");o.width=r,o.height=n,c.drawImage(s.domElement,0,0,r,n);let u=new Fe(o);return u.minFilter=a.minFilter,u.magFilter=a.magFilter,u.wrapS=a.wrapS,u.wrapT=a.wrapT,u.name=a.name,P&&(P.forceContextLoss(),P.dispose(),P=null),u}var Pe={POSITION:["byte","byte normalized","unsigned byte","unsigned byte normalized","short","short normalized","unsigned short","unsigned short normalized"],NORMAL:["byte normalized","short normalized"],TANGENT:["byte normalized","short normalized"],TEXCOORD:["byte","byte normalized","unsigned byte","short","short normalized","unsigned short"]},j=class{constructor(){this.pluginCallbacks=[],this.register(function(e){return new $(e)}),this.register(function(e){return new ee(e)}),this.register(function(e){return new ne(e)}),this.register(function(e){return new ie(e)}),this.register(function(e){return new re(e)}),this.register(function(e){return new oe(e)}),this.register(function(e){return new se(e)}),this.register(function(e){return new te(e)}),this.register(function(e){return new ae(e)}),this.register(function(e){return new ce(e)}),this.register(function(e){return new ue(e)}),this.register(function(e){return new le(e)}),this.register(function(e){return new fe(e)})}register(e){return this.pluginCallbacks.indexOf(e)===-1&&this.pluginCallbacks.push(e),this}unregister(e){return this.pluginCallbacks.indexOf(e)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,s,i,t){let r=new Z,n=[];for(let o=0,c=this.pluginCallbacks.length;o<c;o++)n.push(this.pluginCallbacks[o](r));r.setPlugins(n),r.write(e,s,t).catch(i)}parseAsync(e,s){let i=this;return new Promise(function(t,r){i.parse(e,t,r,s)})}},x={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,REPEAT:10497},J="KHR_mesh_quantization",R={};R[me]=x.NEAREST;R[Te]=x.NEAREST_MIPMAP_NEAREST;R[ye]=x.NEAREST_MIPMAP_LINEAR;R[we]=x.LINEAR;R[Me]=x.LINEAR_MIPMAP_NEAREST;R[Ee]=x.LINEAR_MIPMAP_LINEAR;R[ge]=x.CLAMP_TO_EDGE;R[de]=x.REPEAT;R[xe]=x.MIRRORED_REPEAT;var ze={scale:"scale",position:"translation",quaternion:"rotation",morphTargetInfluences:"weights"},je=new _e,Be=12,qe=1179937895,Xe=2,ke=8,We=1313821514,Je=5130562;function z(a,e){return a.length===e.length&&a.every(function(s,i){return s===e[i]})}function Qe(a){return new TextEncoder().encode(a).buffer}function Ze(a){return z(a.elements,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}function $e(a,e,s){let i={min:new Array(a.itemSize).fill(Number.POSITIVE_INFINITY),max:new Array(a.itemSize).fill(Number.NEGATIVE_INFINITY)};for(let t=e;t<e+s;t++)for(let r=0;r<a.itemSize;r++){let n;a.itemSize>4?n=a.array[t*a.itemSize+r]:(r===0?n=a.getX(t):r===1?n=a.getY(t):r===2?n=a.getZ(t):r===3&&(n=a.getW(t)),a.normalized===!0&&(n=G.normalize(n,a.array))),i.min[r]=Math.min(i.min[r],n),i.max[r]=Math.max(i.max[r],n)}return i}function Ve(a){return Math.ceil(a/4)*4}function Q(a,e=0){let s=Ve(a.byteLength);if(s!==a.byteLength){let i=new Uint8Array(s);if(i.set(new Uint8Array(a)),e!==0)for(let t=a.byteLength;t<s;t++)i[t]=e;return i.buffer}return a}function He(){return typeof document>"u"&&typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1):document.createElement("canvas")}function Ge(a,e){if(a.toBlob!==void 0)return new Promise(i=>a.toBlob(i,e));let s;return e==="image/jpeg"?s=.92:e==="image/webp"&&(s=.8),a.convertToBlob({type:e,quality:s})}var Z=class{constructor(){this.plugins=[],this.options={},this.pending=[],this.buffers=[],this.byteOffset=0,this.buffers=[],this.nodeMap=new Map,this.skins=[],this.extensionsUsed={},this.extensionsRequired={},this.uids=new Map,this.uid=0,this.json={asset:{version:"2.0",generator:"THREE.GLTFExporter"}},this.cache={meshes:new Map,attributes:new Map,attributesNormalized:new Map,materials:new Map,textures:new Map,images:new Map}}setPlugins(e){this.plugins=e}async write(e,s,i={}){this.options=Object.assign({binary:!1,trs:!1,onlyVisible:!0,maxTextureSize:1/0,animations:[],includeCustomExtensions:!1},i),this.options.animations.length>0&&(this.options.trs=!0),this.processInput(e),await Promise.all(this.pending);let t=this,r=t.buffers,n=t.json;i=t.options;let o=t.extensionsUsed,c=t.extensionsRequired,u=new Blob(r,{type:"application/octet-stream"}),p=Object.keys(o),f=Object.keys(c);if(p.length>0&&(n.extensionsUsed=p),f.length>0&&(n.extensionsRequired=f),n.buffers&&n.buffers.length>0&&(n.buffers[0].byteLength=u.size),i.binary===!0){let m=new FileReader;m.readAsArrayBuffer(u),m.onloadend=function(){let l=Q(m.result),d=new DataView(new ArrayBuffer(ke));d.setUint32(0,l.byteLength,!0),d.setUint32(4,Je,!0);let h=Q(Qe(JSON.stringify(n)),32),y=new DataView(new ArrayBuffer(ke));y.setUint32(0,h.byteLength,!0),y.setUint32(4,We,!0);let w=new ArrayBuffer(Be),b=new DataView(w);b.setUint32(0,qe,!0),b.setUint32(4,Xe,!0);let B=Be+y.byteLength+h.byteLength+d.byteLength+l.byteLength;b.setUint32(8,B,!0);let g=new Blob([w,y,h,d,l],{type:"application/octet-stream"}),T=new FileReader;T.readAsArrayBuffer(g),T.onloadend=function(){s(T.result)}}}else if(n.buffers&&n.buffers.length>0){let m=new FileReader;m.readAsDataURL(u),m.onloadend=function(){let l=m.result;n.buffers[0].uri=l,s(n)}}else s(n)}serializeUserData(e,s){if(Object.keys(e.userData).length===0)return;let i=this.options,t=this.extensionsUsed;try{let r=JSON.parse(JSON.stringify(e.userData));if(i.includeCustomExtensions&&r.gltfExtensions){s.extensions===void 0&&(s.extensions={});for(let n in r.gltfExtensions)s.extensions[n]=r.gltfExtensions[n],t[n]=!0;delete r.gltfExtensions}Object.keys(r).length>0&&(s.extras=r)}catch(r){console.warn("THREE.GLTFExporter: userData of '"+e.name+"' won't be serialized because of JSON.stringify error - "+r.message)}}getUID(e,s=!1){if(this.uids.has(e)===!1){let t=new Map;t.set(!0,this.uid++),t.set(!1,this.uid++),this.uids.set(e,t)}return this.uids.get(e).get(s)}isNormalizedNormalAttribute(e){if(this.cache.attributesNormalized.has(e))return!1;let i=new O;for(let t=0,r=e.count;t<r;t++)if(Math.abs(i.fromBufferAttribute(e,t).length()-1)>5e-4)return!1;return!0}createNormalizedNormalAttribute(e){let s=this.cache;if(s.attributesNormalized.has(e))return s.attributesNormalized.get(e);let i=e.clone(),t=new O;for(let r=0,n=i.count;r<n;r++)t.fromBufferAttribute(i,r),t.x===0&&t.y===0&&t.z===0?t.setX(1):t.normalize(),i.setXYZ(r,t.x,t.y,t.z);return s.attributesNormalized.set(e,i),i}applyTextureTransform(e,s){let i=!1,t={};(s.offset.x!==0||s.offset.y!==0)&&(t.offset=s.offset.toArray(),i=!0),s.rotation!==0&&(t.rotation=s.rotation,i=!0),(s.repeat.x!==1||s.repeat.y!==1)&&(t.scale=s.repeat.toArray(),i=!0),i&&(e.extensions=e.extensions||{},e.extensions.KHR_texture_transform=t,this.extensionsUsed.KHR_texture_transform=!0)}buildMetalRoughTexture(e,s){if(e===s)return e;function i(l){return l.colorSpace===H?function(h){return h<.04045?h*.0773993808:Math.pow(h*.9478672986+.0521327014,2.4)}:function(h){return h}}console.warn("THREE.GLTFExporter: Merged metalnessMap and roughnessMap textures."),e instanceof V&&(e=K(e)),s instanceof V&&(s=K(s));let t=e?e.image:null,r=s?s.image:null,n=Math.max(t?t.width:0,r?r.width:0),o=Math.max(t?t.height:0,r?r.height:0),c=He();c.width=n,c.height=o;let u=c.getContext("2d");u.fillStyle="#00ffff",u.fillRect(0,0,n,o);let p=u.getImageData(0,0,n,o);if(t){u.drawImage(t,0,0,n,o);let l=i(e),d=u.getImageData(0,0,n,o).data;for(let h=2;h<d.length;h+=4)p.data[h]=l(d[h]/256)*256}if(r){u.drawImage(r,0,0,n,o);let l=i(s),d=u.getImageData(0,0,n,o).data;for(let h=1;h<d.length;h+=4)p.data[h]=l(d[h]/256)*256}u.putImageData(p,0,0);let m=(e||s).clone();return m.source=new Ne(c),m.colorSpace=be,m.channel=(e||s).channel,e&&s&&e.channel!==s.channel&&console.warn("THREE.GLTFExporter: UV channels for metalnessMap and roughnessMap textures must match."),m}processBuffer(e){let s=this.json,i=this.buffers;return s.buffers||(s.buffers=[{byteLength:0}]),i.push(e),0}processBufferView(e,s,i,t,r){let n=this.json;n.bufferViews||(n.bufferViews=[]);let o;switch(s){case x.BYTE:case x.UNSIGNED_BYTE:o=1;break;case x.SHORT:case x.UNSIGNED_SHORT:o=2;break;default:o=4}let c=Ve(t*e.itemSize*o),u=new DataView(new ArrayBuffer(c)),p=0;for(let l=i;l<i+t;l++)for(let d=0;d<e.itemSize;d++){let h;e.itemSize>4?h=e.array[l*e.itemSize+d]:(d===0?h=e.getX(l):d===1?h=e.getY(l):d===2?h=e.getZ(l):d===3&&(h=e.getW(l)),e.normalized===!0&&(h=G.normalize(h,e.array))),s===x.FLOAT?u.setFloat32(p,h,!0):s===x.INT?u.setInt32(p,h,!0):s===x.UNSIGNED_INT?u.setUint32(p,h,!0):s===x.SHORT?u.setInt16(p,h,!0):s===x.UNSIGNED_SHORT?u.setUint16(p,h,!0):s===x.BYTE?u.setInt8(p,h):s===x.UNSIGNED_BYTE&&u.setUint8(p,h),p+=o}let f={buffer:this.processBuffer(u.buffer),byteOffset:this.byteOffset,byteLength:c};return r!==void 0&&(f.target=r),r===x.ARRAY_BUFFER&&(f.byteStride=e.itemSize*o),this.byteOffset+=c,n.bufferViews.push(f),{id:n.bufferViews.length-1,byteLength:0}}processBufferViewImage(e){let s=this,i=s.json;return i.bufferViews||(i.bufferViews=[]),new Promise(function(t){let r=new FileReader;r.readAsArrayBuffer(e),r.onloadend=function(){let n=Q(r.result),o={buffer:s.processBuffer(n),byteOffset:s.byteOffset,byteLength:n.byteLength};s.byteOffset+=n.byteLength,t(i.bufferViews.push(o)-1)}})}processAccessor(e,s,i,t){let r=this.json,n={1:"SCALAR",2:"VEC2",3:"VEC3",4:"VEC4",9:"MAT3",16:"MAT4"},o;if(e.array.constructor===Float32Array)o=x.FLOAT;else if(e.array.constructor===Int32Array)o=x.INT;else if(e.array.constructor===Uint32Array)o=x.UNSIGNED_INT;else if(e.array.constructor===Int16Array)o=x.SHORT;else if(e.array.constructor===Uint16Array)o=x.UNSIGNED_SHORT;else if(e.array.constructor===Int8Array)o=x.BYTE;else if(e.array.constructor===Uint8Array)o=x.UNSIGNED_BYTE;else throw new Error("THREE.GLTFExporter: Unsupported bufferAttribute component type: "+e.array.constructor.name);if(i===void 0&&(i=0),(t===void 0||t===1/0)&&(t=e.count),t===0)return null;let c=$e(e,i,t),u;s!==void 0&&(u=e===s.index?x.ELEMENT_ARRAY_BUFFER:x.ARRAY_BUFFER);let p=this.processBufferView(e,o,i,t,u),f={bufferView:p.id,byteOffset:p.byteOffset,componentType:o,count:t,max:c.max,min:c.min,type:n[e.itemSize]};return e.normalized===!0&&(f.normalized=!0),r.accessors||(r.accessors=[]),r.accessors.push(f)-1}processImage(e,s,i,t="image/png"){if(e!==null){let r=this,n=r.cache,o=r.json,c=r.options,u=r.pending;n.images.has(e)||n.images.set(e,{});let p=n.images.get(e),f=t+":flipY/"+i.toString();if(p[f]!==void 0)return p[f];o.images||(o.images=[]);let m={mimeType:t},l=He();l.width=Math.min(e.width,c.maxTextureSize),l.height=Math.min(e.height,c.maxTextureSize);let d=l.getContext("2d");if(i===!0&&(d.translate(0,l.height),d.scale(1,-1)),e.data!==void 0){s!==Ie&&console.error("GLTFExporter: Only RGBAFormat is supported.",s),(e.width>c.maxTextureSize||e.height>c.maxTextureSize)&&console.warn("GLTFExporter: Image size is bigger than maxTextureSize",e);let y=new Uint8ClampedArray(e.height*e.width*4);for(let w=0;w<y.length;w+=4)y[w+0]=e.data[w+0],y[w+1]=e.data[w+1],y[w+2]=e.data[w+2],y[w+3]=e.data[w+3];d.putImageData(new ImageData(y,e.width,e.height),0,0)}else if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap)d.drawImage(e,0,0,l.width,l.height);else throw new Error("THREE.GLTFExporter: Invalid image type. Use HTMLImageElement, HTMLCanvasElement or ImageBitmap.");c.binary===!0?u.push(Ge(l,t).then(y=>r.processBufferViewImage(y)).then(y=>{m.bufferView=y})):l.toDataURL!==void 0?m.uri=l.toDataURL(t):u.push(Ge(l,t).then(y=>new FileReader().readAsDataURL(y)).then(y=>{m.uri=y}));let h=o.images.push(m)-1;return p[f]=h,h}else throw new Error("THREE.GLTFExporter: No valid image data found. Unable to process texture.")}processSampler(e){let s=this.json;s.samplers||(s.samplers=[]);let i={magFilter:R[e.magFilter],minFilter:R[e.minFilter],wrapS:R[e.wrapS],wrapT:R[e.wrapT]};return s.samplers.push(i)-1}processTexture(e){let i=this.options,t=this.cache,r=this.json;if(t.textures.has(e))return t.textures.get(e);r.textures||(r.textures=[]),e instanceof V&&(e=K(e,i.maxTextureSize));let n=e.userData.mimeType;n==="image/webp"&&(n="image/png");let o={sampler:this.processSampler(e),source:this.processImage(e.image,e.format,e.flipY,n)};e.name&&(o.name=e.name),this._invokeAll(function(u){u.writeTexture&&u.writeTexture(e,o)});let c=r.textures.push(o)-1;return t.textures.set(e,c),c}processMaterial(e){let s=this.cache,i=this.json;if(s.materials.has(e))return s.materials.get(e);if(e.isShaderMaterial)return console.warn("GLTFExporter: THREE.ShaderMaterial not supported."),null;i.materials||(i.materials=[]);let t={pbrMetallicRoughness:{}};e.isMeshStandardMaterial!==!0&&e.isMeshBasicMaterial!==!0&&console.warn("GLTFExporter: Use MeshStandardMaterial or MeshBasicMaterial for best results.");let r=e.color.toArray().concat([e.opacity]);if(z(r,[1,1,1,1])||(t.pbrMetallicRoughness.baseColorFactor=r),e.isMeshStandardMaterial?(t.pbrMetallicRoughness.metallicFactor=e.metalness,t.pbrMetallicRoughness.roughnessFactor=e.roughness):(t.pbrMetallicRoughness.metallicFactor=.5,t.pbrMetallicRoughness.roughnessFactor=.5),e.metalnessMap||e.roughnessMap){let o=this.buildMetalRoughTexture(e.metalnessMap,e.roughnessMap),c={index:this.processTexture(o),channel:o.channel};this.applyTextureTransform(c,o),t.pbrMetallicRoughness.metallicRoughnessTexture=c}if(e.map){let o={index:this.processTexture(e.map),texCoord:e.map.channel};this.applyTextureTransform(o,e.map),t.pbrMetallicRoughness.baseColorTexture=o}if(e.emissive){let o=e.emissive;if(Math.max(o.r,o.g,o.b)>0&&(t.emissiveFactor=e.emissive.toArray()),e.emissiveMap){let u={index:this.processTexture(e.emissiveMap),texCoord:e.emissiveMap.channel};this.applyTextureTransform(u,e.emissiveMap),t.emissiveTexture=u}}if(e.normalMap){let o={index:this.processTexture(e.normalMap),texCoord:e.normalMap.channel};e.normalScale&&e.normalScale.x!==1&&(o.scale=e.normalScale.x),this.applyTextureTransform(o,e.normalMap),t.normalTexture=o}if(e.aoMap){let o={index:this.processTexture(e.aoMap),texCoord:e.aoMap.channel};e.aoMapIntensity!==1&&(o.strength=e.aoMapIntensity),this.applyTextureTransform(o,e.aoMap),t.occlusionTexture=o}e.transparent?t.alphaMode="BLEND":e.alphaTest>0&&(t.alphaMode="MASK",t.alphaCutoff=e.alphaTest),e.side===pe&&(t.doubleSided=!0),e.name!==""&&(t.name=e.name),this.serializeUserData(e,t),this._invokeAll(function(o){o.writeMaterial&&o.writeMaterial(e,t)});let n=i.materials.push(t)-1;return s.materials.set(e,n),n}processMesh(e){let s=this.cache,i=this.json,t=[e.geometry.uuid];if(Array.isArray(e.material))for(let g=0,T=e.material.length;g<T;g++)t.push(e.material[g].uuid);else t.push(e.material.uuid);let r=t.join(":");if(s.meshes.has(r))return s.meshes.get(r);let n=e.geometry,o;e.isLineSegments?o=x.LINES:e.isLineLoop?o=x.LINE_LOOP:e.isLine?o=x.LINE_STRIP:e.isPoints?o=x.POINTS:o=e.material.wireframe?x.LINES:x.TRIANGLES;let c={},u={},p=[],f=[],m={uv:"TEXCOORD_0",uv1:"TEXCOORD_1",uv2:"TEXCOORD_2",uv3:"TEXCOORD_3",color:"COLOR_0",skinWeight:"WEIGHTS_0",skinIndex:"JOINTS_0"},l=n.getAttribute("normal");l!==void 0&&!this.isNormalizedNormalAttribute(l)&&(console.warn("THREE.GLTFExporter: Creating normalized normal attribute from the non-normalized one."),n.setAttribute("normal",this.createNormalizedNormalAttribute(l)));let d=null;for(let g in n.attributes){if(g.slice(0,5)==="morph")continue;let T=n.attributes[g];if(g=m[g]||g.toUpperCase(),/^(POSITION|NORMAL|TANGENT|TEXCOORD_\d+|COLOR_\d+|JOINTS_\d+|WEIGHTS_\d+)$/.test(g)||(g="_"+g),s.attributes.has(this.getUID(T))){u[g]=s.attributes.get(this.getUID(T));continue}d=null;let E=T.array;g==="JOINTS_0"&&!(E instanceof Uint16Array)&&!(E instanceof Uint8Array)&&(console.warn('GLTFExporter: Attribute "skinIndex" converted to type UNSIGNED_SHORT.'),d=new S(new Uint16Array(E),T.itemSize,T.normalized));let A=this.processAccessor(d||T,n);A!==null&&(g.startsWith("_")||this.detectMeshQuantization(g,T),u[g]=A,s.attributes.set(this.getUID(T),A))}if(l!==void 0&&n.setAttribute("normal",l),Object.keys(u).length===0)return null;if(e.morphTargetInfluences!==void 0&&e.morphTargetInfluences.length>0){let g=[],T=[],M={};if(e.morphTargetDictionary!==void 0)for(let E in e.morphTargetDictionary)M[e.morphTargetDictionary[E]]=E;for(let E=0;E<e.morphTargetInfluences.length;++E){let A={},he=!1;for(let L in n.morphAttributes){if(L!=="position"&&L!=="normal"){he||(console.warn("GLTFExporter: Only POSITION and NORMAL morph are supported."),he=!0);continue}let N=n.morphAttributes[L][E],q=L.toUpperCase(),U=n.attributes[L];if(s.attributes.has(this.getUID(N,!0))){A[q]=s.attributes.get(this.getUID(N,!0));continue}let v=N.clone();if(!n.morphTargetsRelative)for(let I=0,Ye=N.count;I<Ye;I++)for(let _=0;_<N.itemSize;_++)_===0&&v.setX(I,N.getX(I)-U.getX(I)),_===1&&v.setY(I,N.getY(I)-U.getY(I)),_===2&&v.setZ(I,N.getZ(I)-U.getZ(I)),_===3&&v.setW(I,N.getW(I)-U.getW(I));A[q]=this.processAccessor(v,n),s.attributes.set(this.getUID(U,!0),A[q])}f.push(A),g.push(e.morphTargetInfluences[E]),e.morphTargetDictionary!==void 0&&T.push(M[E])}c.weights=g,T.length>0&&(c.extras={},c.extras.targetNames=T)}let h=Array.isArray(e.material);if(h&&n.groups.length===0)return null;let y=!1;if(h&&n.index===null){let g=[];for(let T=0,M=n.attributes.position.count;T<M;T++)g[T]=T;n.setIndex(g),y=!0}let w=h?e.material:[e.material],b=h?n.groups:[{materialIndex:0,start:void 0,count:void 0}];for(let g=0,T=b.length;g<T;g++){let M={mode:o,attributes:u};if(this.serializeUserData(n,M),f.length>0&&(M.targets=f),n.index!==null){let A=this.getUID(n.index);(b[g].start!==void 0||b[g].count!==void 0)&&(A+=":"+b[g].start+":"+b[g].count),s.attributes.has(A)?M.indices=s.attributes.get(A):(M.indices=this.processAccessor(n.index,n,b[g].start,b[g].count),s.attributes.set(A,M.indices)),M.indices===null&&delete M.indices}let E=this.processMaterial(w[b[g].materialIndex]);E!==null&&(M.material=E),p.push(M)}y===!0&&n.setIndex(null),c.primitives=p,i.meshes||(i.meshes=[]),this._invokeAll(function(g){g.writeMesh&&g.writeMesh(e,c)});let B=i.meshes.push(c)-1;return s.meshes.set(r,B),B}detectMeshQuantization(e,s){if(this.extensionsUsed[J])return;let i;switch(s.array.constructor){case Int8Array:i="byte";break;case Uint8Array:i="unsigned byte";break;case Int16Array:i="short";break;case Uint16Array:i="unsigned short";break;default:return}s.normalized&&(i+=" normalized");let t=e.split("_",1)[0];Pe[t]&&Pe[t].includes(i)&&(this.extensionsUsed[J]=!0,this.extensionsRequired[J]=!0)}processCamera(e){let s=this.json;s.cameras||(s.cameras=[]);let i=e.isOrthographicCamera,t={type:i?"orthographic":"perspective"};return i?t.orthographic={xmag:e.right*2,ymag:e.top*2,zfar:e.far<=0?.001:e.far,znear:e.near<0?0:e.near}:t.perspective={aspectRatio:e.aspect,yfov:G.degToRad(e.fov),zfar:e.far<=0?.001:e.far,znear:e.near<0?0:e.near},e.name!==""&&(t.name=e.type),s.cameras.push(t)-1}processAnimation(e,s){let i=this.json,t=this.nodeMap;i.animations||(i.animations=[]),e=j.Utils.mergeMorphTargetTracks(e.clone(),s);let r=e.tracks,n=[],o=[];for(let c=0;c<r.length;++c){let u=r[c],p=D.parseTrackName(u.name),f=D.findNode(s,p.nodeName),m=ze[p.propertyName];if(p.objectName==="bones"&&(f.isSkinnedMesh===!0?f=f.skeleton.getBoneByName(p.objectIndex):f=void 0),!f||!m)return console.warn('THREE.GLTFExporter: Could not export animation track "%s".',u.name),null;let l=1,d=u.values.length/u.times.length;m===ze.morphTargetInfluences&&(d/=f.morphTargetInfluences.length);let h;u.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline===!0?(h="CUBICSPLINE",d/=3):u.getInterpolation()===Ae?h="STEP":h="LINEAR",o.push({input:this.processAccessor(new S(u.times,l)),output:this.processAccessor(new S(u.values,d)),interpolation:h}),n.push({sampler:o.length-1,target:{node:t.get(f),path:m}})}return i.animations.push({name:e.name||"clip_"+i.animations.length,samplers:o,channels:n}),i.animations.length-1}processSkin(e){let s=this.json,i=this.nodeMap,t=s.nodes[i.get(e)],r=e.skeleton;if(r===void 0)return null;let n=e.skeleton.bones[0];if(n===void 0)return null;let o=[],c=new Float32Array(r.bones.length*16),u=new X;for(let f=0;f<r.bones.length;++f)o.push(i.get(r.bones[f])),u.copy(r.boneInverses[f]),u.multiply(e.bindMatrix).toArray(c,f*16);return s.skins===void 0&&(s.skins=[]),s.skins.push({inverseBindMatrices:this.processAccessor(new S(c,16)),joints:o,skeleton:i.get(n)}),t.skin=s.skins.length-1}processNode(e){let s=this.json,i=this.options,t=this.nodeMap;s.nodes||(s.nodes=[]);let r={};if(i.trs){let o=e.quaternion.toArray(),c=e.position.toArray(),u=e.scale.toArray();z(o,[0,0,0,1])||(r.rotation=o),z(c,[0,0,0])||(r.translation=c),z(u,[1,1,1])||(r.scale=u)}else e.matrixAutoUpdate&&e.updateMatrix(),Ze(e.matrix)===!1&&(r.matrix=e.matrix.elements);if(e.name!==""&&(r.name=String(e.name)),this.serializeUserData(e,r),e.isMesh||e.isLine||e.isPoints){let o=this.processMesh(e);o!==null&&(r.mesh=o)}else e.isCamera&&(r.camera=this.processCamera(e));if(e.isSkinnedMesh&&this.skins.push(e),e.children.length>0){let o=[];for(let c=0,u=e.children.length;c<u;c++){let p=e.children[c];if(p.visible||i.onlyVisible===!1){let f=this.processNode(p);f!==null&&o.push(f)}}o.length>0&&(r.children=o)}this._invokeAll(function(o){o.writeNode&&o.writeNode(e,r)});let n=s.nodes.push(r)-1;return t.set(e,n),n}processScene(e){let s=this.json,i=this.options;s.scenes||(s.scenes=[],s.scene=0);let t={};e.name!==""&&(t.name=e.name),s.scenes.push(t);let r=[];for(let n=0,o=e.children.length;n<o;n++){let c=e.children[n];if(c.visible||i.onlyVisible===!1){let u=this.processNode(c);u!==null&&r.push(u)}}r.length>0&&(t.nodes=r),this.serializeUserData(e,t)}processObjects(e){let s=new F;s.name="AuxScene";for(let i=0;i<e.length;i++)s.children.push(e[i]);this.processScene(s)}processInput(e){let s=this.options;e=e instanceof Array?e:[e],this._invokeAll(function(t){t.beforeParse&&t.beforeParse(e)});let i=[];for(let t=0;t<e.length;t++)e[t]instanceof F?this.processScene(e[t]):i.push(e[t]);i.length>0&&this.processObjects(i);for(let t=0;t<this.skins.length;++t)this.processSkin(this.skins[t]);for(let t=0;t<s.animations.length;++t)this.processAnimation(s.animations[t],e[0]);this._invokeAll(function(t){t.afterParse&&t.afterParse(e)})}_invokeAll(e){for(let s=0,i=this.plugins.length;s<i;s++)e(this.plugins[s])}},$=class{constructor(e){this.writer=e,this.name="KHR_lights_punctual"}writeNode(e,s){if(!e.isLight)return;if(!e.isDirectionalLight&&!e.isPointLight&&!e.isSpotLight){console.warn("THREE.GLTFExporter: Only directional, point, and spot lights are supported.",e);return}let i=this.writer,t=i.json,r=i.extensionsUsed,n={};e.name&&(n.name=e.name),n.color=e.color.toArray(),n.intensity=e.intensity,e.isDirectionalLight?n.type="directional":e.isPointLight?(n.type="point",e.distance>0&&(n.range=e.distance)):e.isSpotLight&&(n.type="spot",e.distance>0&&(n.range=e.distance),n.spot={},n.spot.innerConeAngle=(1-e.penumbra)*e.angle,n.spot.outerConeAngle=e.angle),e.decay!==void 0&&e.decay!==2&&console.warn("THREE.GLTFExporter: Light decay may be lost. glTF is physically-based, and expects light.decay=2."),e.target&&(e.target.parent!==e||e.target.position.x!==0||e.target.position.y!==0||e.target.position.z!==-1)&&console.warn("THREE.GLTFExporter: Light direction may be lost. For best results, make light.target a child of the light with position 0,0,-1."),r[this.name]||(t.extensions=t.extensions||{},t.extensions[this.name]={lights:[]},r[this.name]=!0);let o=t.extensions[this.name].lights;o.push(n),s.extensions=s.extensions||{},s.extensions[this.name]={light:o.length-1}}},ee=class{constructor(e){this.writer=e,this.name="KHR_materials_unlit"}writeMaterial(e,s){if(!e.isMeshBasicMaterial)return;let t=this.writer.extensionsUsed;s.extensions=s.extensions||{},s.extensions[this.name]={},t[this.name]=!0,s.pbrMetallicRoughness.metallicFactor=0,s.pbrMetallicRoughness.roughnessFactor=.9}},se=class{constructor(e){this.writer=e,this.name="KHR_materials_clearcoat"}writeMaterial(e,s){if(!e.isMeshPhysicalMaterial||e.clearcoat===0)return;let i=this.writer,t=i.extensionsUsed,r={};if(r.clearcoatFactor=e.clearcoat,e.clearcoatMap){let n={index:i.processTexture(e.clearcoatMap),texCoord:e.clearcoatMap.channel};i.applyTextureTransform(n,e.clearcoatMap),r.clearcoatTexture=n}if(r.clearcoatRoughnessFactor=e.clearcoatRoughness,e.clearcoatRoughnessMap){let n={index:i.processTexture(e.clearcoatRoughnessMap),texCoord:e.clearcoatRoughnessMap.channel};i.applyTextureTransform(n,e.clearcoatRoughnessMap),r.clearcoatRoughnessTexture=n}if(e.clearcoatNormalMap){let n={index:i.processTexture(e.clearcoatNormalMap),texCoord:e.clearcoatNormalMap.channel};i.applyTextureTransform(n,e.clearcoatNormalMap),r.clearcoatNormalTexture=n}s.extensions=s.extensions||{},s.extensions[this.name]=r,t[this.name]=!0}},te=class{constructor(e){this.writer=e,this.name="KHR_materials_iridescence"}writeMaterial(e,s){if(!e.isMeshPhysicalMaterial||e.iridescence===0)return;let i=this.writer,t=i.extensionsUsed,r={};if(r.iridescenceFactor=e.iridescence,e.iridescenceMap){let n={index:i.processTexture(e.iridescenceMap),texCoord:e.iridescenceMap.channel};i.applyTextureTransform(n,e.iridescenceMap),r.iridescenceTexture=n}if(r.iridescenceIor=e.iridescenceIOR,r.iridescenceThicknessMinimum=e.iridescenceThicknessRange[0],r.iridescenceThicknessMaximum=e.iridescenceThicknessRange[1],e.iridescenceThicknessMap){let n={index:i.processTexture(e.iridescenceThicknessMap),texCoord:e.iridescenceThicknessMap.channel};i.applyTextureTransform(n,e.iridescenceThicknessMap),r.iridescenceThicknessTexture=n}s.extensions=s.extensions||{},s.extensions[this.name]=r,t[this.name]=!0}},ne=class{constructor(e){this.writer=e,this.name="KHR_materials_transmission"}writeMaterial(e,s){if(!e.isMeshPhysicalMaterial||e.transmission===0)return;let i=this.writer,t=i.extensionsUsed,r={};if(r.transmissionFactor=e.transmission,e.transmissionMap){let n={index:i.processTexture(e.transmissionMap),texCoord:e.transmissionMap.channel};i.applyTextureTransform(n,e.transmissionMap),r.transmissionTexture=n}s.extensions=s.extensions||{},s.extensions[this.name]=r,t[this.name]=!0}},ie=class{constructor(e){this.writer=e,this.name="KHR_materials_volume"}writeMaterial(e,s){if(!e.isMeshPhysicalMaterial||e.transmission===0)return;let i=this.writer,t=i.extensionsUsed,r={};if(r.thicknessFactor=e.thickness,e.thicknessMap){let n={index:i.processTexture(e.thicknessMap),texCoord:e.thicknessMap.channel};i.applyTextureTransform(n,e.thicknessMap),r.thicknessTexture=n}r.attenuationDistance=e.attenuationDistance,r.attenuationColor=e.attenuationColor.toArray(),s.extensions=s.extensions||{},s.extensions[this.name]=r,t[this.name]=!0}},re=class{constructor(e){this.writer=e,this.name="KHR_materials_ior"}writeMaterial(e,s){if(!e.isMeshPhysicalMaterial||e.ior===1.5)return;let t=this.writer.extensionsUsed,r={};r.ior=e.ior,s.extensions=s.extensions||{},s.extensions[this.name]=r,t[this.name]=!0}},oe=class{constructor(e){this.writer=e,this.name="KHR_materials_specular"}writeMaterial(e,s){if(!e.isMeshPhysicalMaterial||e.specularIntensity===1&&e.specularColor.equals(je)&&!e.specularIntensityMap&&!e.specularColorMap)return;let i=this.writer,t=i.extensionsUsed,r={};if(e.specularIntensityMap){let n={index:i.processTexture(e.specularIntensityMap),texCoord:e.specularIntensityMap.channel};i.applyTextureTransform(n,e.specularIntensityMap),r.specularTexture=n}if(e.specularColorMap){let n={index:i.processTexture(e.specularColorMap),texCoord:e.specularColorMap.channel};i.applyTextureTransform(n,e.specularColorMap),r.specularColorTexture=n}r.specularFactor=e.specularIntensity,r.specularColorFactor=e.specularColor.toArray(),s.extensions=s.extensions||{},s.extensions[this.name]=r,t[this.name]=!0}},ae=class{constructor(e){this.writer=e,this.name="KHR_materials_sheen"}writeMaterial(e,s){if(!e.isMeshPhysicalMaterial||e.sheen==0)return;let i=this.writer,t=i.extensionsUsed,r={};if(e.sheenRoughnessMap){let n={index:i.processTexture(e.sheenRoughnessMap),texCoord:e.sheenRoughnessMap.channel};i.applyTextureTransform(n,e.sheenRoughnessMap),r.sheenRoughnessTexture=n}if(e.sheenColorMap){let n={index:i.processTexture(e.sheenColorMap),texCoord:e.sheenColorMap.channel};i.applyTextureTransform(n,e.sheenColorMap),r.sheenColorTexture=n}r.sheenRoughnessFactor=e.sheenRoughness,r.sheenColorFactor=e.sheenColor.toArray(),s.extensions=s.extensions||{},s.extensions[this.name]=r,t[this.name]=!0}},ce=class{constructor(e){this.writer=e,this.name="KHR_materials_anisotropy"}writeMaterial(e,s){if(!e.isMeshPhysicalMaterial||e.anisotropy==0)return;let i=this.writer,t=i.extensionsUsed,r={};if(e.anisotropyMap){let n={index:i.processTexture(e.anisotropyMap)};i.applyTextureTransform(n,e.anisotropyMap),r.anisotropyTexture=n}r.anisotropyStrength=e.anisotropy,r.anisotropyRotation=e.anisotropyRotation,s.extensions=s.extensions||{},s.extensions[this.name]=r,t[this.name]=!0}},ue=class{constructor(e){this.writer=e,this.name="KHR_materials_emissive_strength"}writeMaterial(e,s){if(!e.isMeshStandardMaterial||e.emissiveIntensity===1)return;let t=this.writer.extensionsUsed,r={};r.emissiveStrength=e.emissiveIntensity,s.extensions=s.extensions||{},s.extensions[this.name]=r,t[this.name]=!0}},le=class{constructor(e){this.writer=e,this.name="EXT_materials_bump"}writeMaterial(e,s){if(!e.isMeshStandardMaterial||e.bumpScale===1&&!e.bumpMap)return;let i=this.writer,t=i.extensionsUsed,r={};if(e.bumpMap){let n={index:i.processTexture(e.bumpMap),texCoord:e.bumpMap.channel};i.applyTextureTransform(n,e.bumpMap),r.bumpTexture=n}r.bumpFactor=e.bumpScale,s.extensions=s.extensions||{},s.extensions[this.name]=r,t[this.name]=!0}},fe=class{constructor(e){this.writer=e,this.name="EXT_mesh_gpu_instancing"}writeNode(e,s){if(!e.isInstancedMesh)return;let i=this.writer,t=e,r=new Float32Array(t.count*3),n=new Float32Array(t.count*4),o=new Float32Array(t.count*3),c=new X,u=new O,p=new Se,f=new O;for(let l=0;l<t.count;l++)t.getMatrixAt(l,c),c.decompose(u,p,f),u.toArray(r,l*3),p.toArray(n,l*4),f.toArray(o,l*3);let m={TRANSLATION:i.processAccessor(new S(r,3)),ROTATION:i.processAccessor(new S(n,4)),SCALE:i.processAccessor(new S(o,3))};t.instanceColor&&(m._COLOR_0=i.processAccessor(t.instanceColor)),s.extensions=s.extensions||{},s.extensions[this.name]={attributes:m},i.extensionsUsed[this.name]=!0,i.extensionsRequired[this.name]=!0}};j.Utils={insertKeyframe:function(a,e){let i=a.getValueSize(),t=new a.TimeBufferType(a.times.length+1),r=new a.ValueBufferType(a.values.length+i),n=a.createInterpolant(new a.ValueBufferType(i)),o;if(a.times.length===0){t[0]=e;for(let c=0;c<i;c++)r[c]=0;o=0}else if(e<a.times[0]){if(Math.abs(a.times[0]-e)<.001)return 0;t[0]=e,t.set(a.times,1),r.set(n.evaluate(e),0),r.set(a.values,i),o=0}else if(e>a.times[a.times.length-1]){if(Math.abs(a.times[a.times.length-1]-e)<.001)return a.times.length-1;t[t.length-1]=e,t.set(a.times,0),r.set(a.values,0),r.set(n.evaluate(e),a.values.length),o=t.length-1}else for(let c=0;c<a.times.length;c++){if(Math.abs(a.times[c]-e)<.001)return c;if(a.times[c]<e&&a.times[c+1]>e){t.set(a.times.slice(0,c+1),0),t[c+1]=e,t.set(a.times.slice(c+1),c+2),r.set(a.values.slice(0,(c+1)*i),0),r.set(n.evaluate(e),(c+1)*i),r.set(a.values.slice((c+1)*i),(c+2)*i),o=c+1;break}}return a.times=t,a.values=r,o},mergeMorphTargetTracks:function(a,e){let s=[],i={},t=a.tracks;for(let r=0;r<t.length;++r){let n=t[r],o=D.parseTrackName(n.name),c=D.findNode(e,o.nodeName);if(o.propertyName!=="morphTargetInfluences"||o.propertyIndex===void 0){s.push(n);continue}if(n.createInterpolant!==n.InterpolantFactoryMethodDiscrete&&n.createInterpolant!==n.InterpolantFactoryMethodLinear){if(n.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline)throw new Error("THREE.GLTFExporter: Cannot merge tracks with glTF CUBICSPLINE interpolation.");console.warn("THREE.GLTFExporter: Morph target interpolation mode not yet supported. Using LINEAR instead."),n=n.clone(),n.setInterpolation(Re)}let u=c.morphTargetInfluences.length,p=c.morphTargetDictionary[o.propertyIndex];if(p===void 0)throw new Error("THREE.GLTFExporter: Morph target name not found: "+o.propertyIndex);let f;if(i[c.uuid]===void 0){f=n.clone();let l=new f.ValueBufferType(u*f.times.length);for(let d=0;d<f.times.length;d++)l[d*u+p]=f.values[d];f.name=(o.nodeName||"")+".morphTargetInfluences",f.values=l,i[c.uuid]=f,s.push(f);continue}let m=n.createInterpolant(new n.ValueBufferType(1));f=i[c.uuid];for(let l=0;l<f.times.length;l++)f.values[l*u+p]=m.evaluate(f.times[l]);for(let l=0;l<n.times.length;l++){let d=this.insertKeyframe(f,n.times[l]);f.values[d*u+p]=n.values[l]}}return a.tracks=s,a}};export{j as GLTFExporter};