@gmgis/gm-sdk 1.12.5 → 2.0.2

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 (159) hide show
  1. package/dist/dist/index.js +1848 -0
  2. package/dist/gm.min.js +16983 -16483
  3. package/dist/index.js +1436 -1434
  4. package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +1 -2
  5. package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +1 -2
  6. package/dist/resources/ThirdParty/Workers/z-worker-pako.js +1 -1
  7. package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +1 -8337
  8. package/dist/resources/ThirdParty/wasm_splats_bg.wasm +0 -0
  9. package/dist/resources/Workers/chunk-35SHYARM.js +26 -0
  10. package/dist/resources/Workers/chunk-37F5JSTI.js +26 -0
  11. package/dist/resources/Workers/chunk-3SSKC3VN.js +26 -0
  12. package/dist/resources/Workers/chunk-3W4GT7KQ.js +26 -0
  13. package/dist/resources/Workers/chunk-4IW2T6GF.js +26 -0
  14. package/dist/resources/Workers/chunk-5YEWO3HT.js +26 -0
  15. package/dist/resources/Workers/chunk-64RSHJUE.js +28 -0
  16. package/dist/resources/Workers/chunk-77IHZJJ3.js +26 -0
  17. package/dist/resources/Workers/chunk-7HTKERZY.js +26 -0
  18. package/dist/resources/Workers/{chunk-I2ITFFPX.js → chunk-A56XVLQR.js} +2 -13
  19. package/dist/resources/Workers/chunk-AJYK4IVJ.js +26 -0
  20. package/dist/resources/Workers/{chunk-PRGYLLJT.js → chunk-ARG42DC4.js} +2 -31
  21. package/dist/resources/Workers/chunk-AU7IKHOH.js +26 -0
  22. package/dist/resources/Workers/chunk-B4AA3ARO.js +26 -0
  23. package/dist/resources/Workers/chunk-CNCV5UL7.js +26 -0
  24. package/dist/resources/Workers/chunk-CYCB63OH.js +26 -0
  25. package/dist/resources/Workers/{chunk-DI5NGJUP.js → chunk-D6AA5QVT.js} +2 -20
  26. package/dist/resources/Workers/chunk-D6C66QON.js +26 -0
  27. package/dist/resources/Workers/chunk-DEPHB2WM.js +26 -0
  28. package/dist/resources/Workers/chunk-DMEY62ID.js +26 -0
  29. package/dist/resources/Workers/chunk-DQQ63PYM.js +26 -0
  30. package/dist/resources/Workers/chunk-ED5JPB3S.js +27 -0
  31. package/dist/resources/Workers/chunk-EZUYS2JF.js +26 -0
  32. package/dist/resources/Workers/chunk-FEVXJ54I.js +26 -0
  33. package/dist/resources/Workers/chunk-G5AGHVVC.js +26 -0
  34. package/dist/resources/Workers/{chunk-7JO7GPJN.js → chunk-GBYLG25F.js} +2 -15
  35. package/dist/resources/Workers/chunk-GILIDQNQ.js +26 -0
  36. package/dist/resources/Workers/chunk-HMIYSTF6.js +26 -0
  37. package/dist/resources/Workers/chunk-HTFSEEMT.js +26 -0
  38. package/dist/resources/Workers/chunk-HWXX4CWK.js +26 -0
  39. package/dist/resources/Workers/chunk-IYTZ52EY.js +26 -0
  40. package/dist/resources/Workers/chunk-J6UP6FLE.js +26 -0
  41. package/dist/resources/Workers/chunk-LEYMRMBK.js +27 -0
  42. package/dist/resources/Workers/chunk-M3MGYQSL.js +26 -0
  43. package/dist/resources/Workers/chunk-N4VJKXZS.js +26 -0
  44. package/dist/resources/Workers/chunk-NB3ML6JO.js +26 -0
  45. package/dist/resources/Workers/chunk-OFUUQVMR.js +26 -0
  46. package/dist/resources/Workers/chunk-OSW76XDF.js +26 -0
  47. package/dist/resources/Workers/chunk-PSPPBZWI.js +66 -0
  48. package/dist/resources/Workers/chunk-QN3VOORQ.js +26 -0
  49. package/dist/resources/Workers/chunk-QOUAJ6TL.js +26 -0
  50. package/dist/resources/Workers/chunk-RCV6KWXS.js +26 -0
  51. package/dist/resources/Workers/chunk-TCGIRNHN.js +26 -0
  52. package/dist/resources/Workers/chunk-U4IEOH5K.js +26 -0
  53. package/dist/resources/Workers/chunk-UP6I5URU.js +26 -0
  54. package/dist/resources/Workers/chunk-VTAIKJXX.js +26 -0
  55. package/dist/resources/Workers/chunk-VTBDSFTG.js +26 -0
  56. package/dist/resources/Workers/chunk-VW6VD53G.js +26 -0
  57. package/dist/resources/Workers/chunk-WGGIH7QW.js +26 -0
  58. package/dist/resources/Workers/chunk-WWA5PL4H.js +26 -0
  59. package/dist/resources/Workers/{chunk-6CHGCNMW.js → chunk-WZDE3RYP.js} +4 -34
  60. package/dist/resources/Workers/chunk-XRL4AVS5.js +26 -0
  61. package/dist/resources/Workers/combineGeometry.js +2 -40
  62. package/dist/resources/Workers/createBoxGeometry.js +2 -32
  63. package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -209
  64. package/dist/resources/Workers/createCircleGeometry.js +2 -175
  65. package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -121
  66. package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -481
  67. package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -199
  68. package/dist/resources/Workers/createCorridorGeometry.js +2 -1237
  69. package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -542
  70. package/dist/resources/Workers/createCylinderGeometry.js +2 -34
  71. package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -205
  72. package/dist/resources/Workers/createEllipseGeometry.js +2 -45
  73. package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -38
  74. package/dist/resources/Workers/createEllipsoidGeometry.js +2 -33
  75. package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -35
  76. package/dist/resources/Workers/createFrustumGeometry.js +2 -32
  77. package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -210
  78. package/dist/resources/Workers/createGeometry.js +2 -144
  79. package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -1582
  80. package/dist/resources/Workers/createPlaneGeometry.js +2 -198
  81. package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -98
  82. package/dist/resources/Workers/createPolygonGeometry.js +2 -1381
  83. package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -509
  84. package/dist/resources/Workers/createPolylineGeometry.js +2 -470
  85. package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -354
  86. package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -251
  87. package/dist/resources/Workers/createRectangleGeometry.js +2 -1246
  88. package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -453
  89. package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -374
  90. package/dist/resources/Workers/createSphereGeometry.js +2 -92
  91. package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -92
  92. package/dist/resources/Workers/createTaskProcessorWorker.js +2 -8
  93. package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -466
  94. package/dist/resources/Workers/createVectorTileGeometries.js +2 -361
  95. package/dist/resources/Workers/createVectorTilePoints.js +2 -88
  96. package/dist/resources/Workers/createVectorTilePolygons.js +2 -359
  97. package/dist/resources/Workers/createVectorTilePolylines.js +2 -236
  98. package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -539
  99. package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -2252
  100. package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -729
  101. package/dist/resources/Workers/createWallGeometry.js +2 -464
  102. package/dist/resources/Workers/createWallOutlineGeometry.js +2 -312
  103. package/dist/resources/Workers/decodeDraco.js +2 -345
  104. package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2642
  105. package/dist/resources/Workers/decodeI3S.js +2 -1319
  106. package/dist/resources/Workers/gaussianSplatSorter.js +26 -0
  107. package/dist/resources/Workers/gaussianSplatTextureGenerator.js +26 -0
  108. package/dist/resources/Workers/transcodeKTX2.js +29 -3360
  109. package/dist/resources/Workers/transferTypedArrayTest.js +2 -17
  110. package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -793
  111. package/package.json +74 -74
  112. package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -21
  113. package/dist/resources/Workers/chunk-26GA3JAM.js +0 -139
  114. package/dist/resources/Workers/chunk-27HUZ7SA.js +0 -305
  115. package/dist/resources/Workers/chunk-2ZGOQXYU.js +0 -171
  116. package/dist/resources/Workers/chunk-3Q2L65QU.js +0 -1258
  117. package/dist/resources/Workers/chunk-472HQ3EH.js +0 -100
  118. package/dist/resources/Workers/chunk-5ODQSF26.js +0 -101
  119. package/dist/resources/Workers/chunk-5OOFQLKF.js +0 -634
  120. package/dist/resources/Workers/chunk-5PTXS2GO.js +0 -10390
  121. package/dist/resources/Workers/chunk-76BYBWHP.js +0 -122
  122. package/dist/resources/Workers/chunk-7BMOHCPM.js +0 -390
  123. package/dist/resources/Workers/chunk-7KTQP4VB.js +0 -59
  124. package/dist/resources/Workers/chunk-7O373FFS.js +0 -665
  125. package/dist/resources/Workers/chunk-AD63PIY6.js +0 -163
  126. package/dist/resources/Workers/chunk-BHQJ2NT7.js +0 -353
  127. package/dist/resources/Workers/chunk-C6YYBQXW.js +0 -102
  128. package/dist/resources/Workers/chunk-CKY7HOHV.js +0 -287
  129. package/dist/resources/Workers/chunk-DHYHSFFJ.js +0 -73
  130. package/dist/resources/Workers/chunk-E27BLMDD.js +0 -115
  131. package/dist/resources/Workers/chunk-E63IIM5T.js +0 -75
  132. package/dist/resources/Workers/chunk-E6V6SQZW.js +0 -456
  133. package/dist/resources/Workers/chunk-EJZTDTUH.js +0 -138
  134. package/dist/resources/Workers/chunk-FDOV2LBJ.js +0 -220
  135. package/dist/resources/Workers/chunk-FIGIZHAQ.js +0 -684
  136. package/dist/resources/Workers/chunk-GESF4OXQ.js +0 -1800
  137. package/dist/resources/Workers/chunk-GGZJN2TI.js +0 -2717
  138. package/dist/resources/Workers/chunk-GNBFYG7F.js +0 -1481
  139. package/dist/resources/Workers/chunk-GWCFU2SA.js +0 -300
  140. package/dist/resources/Workers/chunk-IBLIYJZR.js +0 -196
  141. package/dist/resources/Workers/chunk-JW4FOI6M.js +0 -476
  142. package/dist/resources/Workers/chunk-K4GQUNB5.js +0 -262
  143. package/dist/resources/Workers/chunk-M3GMB5OP.js +0 -834
  144. package/dist/resources/Workers/chunk-MXIZJAPH.js +0 -629
  145. package/dist/resources/Workers/chunk-N5KJGGCM.js +0 -1073
  146. package/dist/resources/Workers/chunk-NGPPMXRM.js +0 -435
  147. package/dist/resources/Workers/chunk-O3E4OAOE.js +0 -511
  148. package/dist/resources/Workers/chunk-PGRPDNHG.js +0 -1048
  149. package/dist/resources/Workers/chunk-S6MRMMQU.js +0 -157
  150. package/dist/resources/Workers/chunk-SMDOP47J.js +0 -945
  151. package/dist/resources/Workers/chunk-TGONEMZO.js +0 -421
  152. package/dist/resources/Workers/chunk-TKVT5GQM.js +0 -781
  153. package/dist/resources/Workers/chunk-U72QNFOJ.js +0 -758
  154. package/dist/resources/Workers/chunk-VJZB3WAV.js +0 -963
  155. package/dist/resources/Workers/chunk-VU2MNO7L.js +0 -239
  156. package/dist/resources/Workers/chunk-XY4BATBS.js +0 -500
  157. package/dist/resources/Workers/chunk-YFXQECWV.js +0 -2857
  158. package/dist/resources/Workers/chunk-YSGTGQQO.js +0 -398
  159. package/dist/resources/Workers/chunk-YZ733KKS.js +0 -368
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.122
4
+ * Version 1.132
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -23,201 +23,4 @@
23
23
  * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
24
  */
25
25
 
26
- import {
27
- CoplanarPolygonGeometryLibrary_default
28
- } from "./chunk-76BYBWHP.js";
29
- import "./chunk-M3GMB5OP.js";
30
- import {
31
- PolygonGeometryLibrary_default
32
- } from "./chunk-PGRPDNHG.js";
33
- import "./chunk-PRGYLLJT.js";
34
- import {
35
- GeometryInstance_default
36
- } from "./chunk-7KTQP4VB.js";
37
- import {
38
- GeometryPipeline_default
39
- } from "./chunk-GGZJN2TI.js";
40
- import "./chunk-NGPPMXRM.js";
41
- import "./chunk-C6YYBQXW.js";
42
- import "./chunk-CKY7HOHV.js";
43
- import "./chunk-S6MRMMQU.js";
44
- import "./chunk-SMDOP47J.js";
45
- import {
46
- arrayRemoveDuplicates_default
47
- } from "./chunk-472HQ3EH.js";
48
- import "./chunk-E6V6SQZW.js";
49
- import "./chunk-3Q2L65QU.js";
50
- import "./chunk-2ZGOQXYU.js";
51
- import {
52
- IndexDatatype_default
53
- } from "./chunk-26GA3JAM.js";
54
- import {
55
- GeometryAttributes_default
56
- } from "./chunk-DI5NGJUP.js";
57
- import {
58
- GeometryAttribute_default,
59
- Geometry_default,
60
- PrimitiveType_default
61
- } from "./chunk-GWCFU2SA.js";
62
- import {
63
- BoundingSphere_default
64
- } from "./chunk-VJZB3WAV.js";
65
- import "./chunk-5PTXS2GO.js";
66
- import {
67
- ComponentDatatype_default
68
- } from "./chunk-K4GQUNB5.js";
69
- import {
70
- Cartesian3_default,
71
- Ellipsoid_default
72
- } from "./chunk-YFXQECWV.js";
73
- import "./chunk-XY4BATBS.js";
74
- import "./chunk-MXIZJAPH.js";
75
- import "./chunk-6CHGCNMW.js";
76
- import {
77
- defaultValue_default
78
- } from "./chunk-7JO7GPJN.js";
79
- import {
80
- Check_default
81
- } from "./chunk-AD63PIY6.js";
82
- import {
83
- defined_default
84
- } from "./chunk-E63IIM5T.js";
85
-
86
- // packages/engine/Source/Core/CoplanarPolygonOutlineGeometry.js
87
- function createGeometryFromPositions(positions) {
88
- const length = positions.length;
89
- const flatPositions = new Float64Array(length * 3);
90
- const indices = IndexDatatype_default.createTypedArray(length, length * 2);
91
- let positionIndex = 0;
92
- let index = 0;
93
- for (let i = 0; i < length; i++) {
94
- const position = positions[i];
95
- flatPositions[positionIndex++] = position.x;
96
- flatPositions[positionIndex++] = position.y;
97
- flatPositions[positionIndex++] = position.z;
98
- indices[index++] = i;
99
- indices[index++] = (i + 1) % length;
100
- }
101
- const attributes = new GeometryAttributes_default({
102
- position: new GeometryAttribute_default({
103
- componentDatatype: ComponentDatatype_default.DOUBLE,
104
- componentsPerAttribute: 3,
105
- values: flatPositions
106
- })
107
- });
108
- return new Geometry_default({
109
- attributes,
110
- indices,
111
- primitiveType: PrimitiveType_default.LINES
112
- });
113
- }
114
- function CoplanarPolygonOutlineGeometry(options) {
115
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
116
- const polygonHierarchy = options.polygonHierarchy;
117
- Check_default.defined("options.polygonHierarchy", polygonHierarchy);
118
- this._polygonHierarchy = polygonHierarchy;
119
- this._workerName = "createCoplanarPolygonOutlineGeometry";
120
- this.packedLength = PolygonGeometryLibrary_default.computeHierarchyPackedLength(
121
- polygonHierarchy,
122
- Cartesian3_default
123
- ) + 1;
124
- }
125
- CoplanarPolygonOutlineGeometry.fromPositions = function(options) {
126
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
127
- Check_default.defined("options.positions", options.positions);
128
- const newOptions = {
129
- polygonHierarchy: {
130
- positions: options.positions
131
- }
132
- };
133
- return new CoplanarPolygonOutlineGeometry(newOptions);
134
- };
135
- CoplanarPolygonOutlineGeometry.pack = function(value, array, startingIndex) {
136
- Check_default.typeOf.object("value", value);
137
- Check_default.defined("array", array);
138
- startingIndex = defaultValue_default(startingIndex, 0);
139
- startingIndex = PolygonGeometryLibrary_default.packPolygonHierarchy(
140
- value._polygonHierarchy,
141
- array,
142
- startingIndex,
143
- Cartesian3_default
144
- );
145
- array[startingIndex] = value.packedLength;
146
- return array;
147
- };
148
- var scratchOptions = {
149
- polygonHierarchy: {}
150
- };
151
- CoplanarPolygonOutlineGeometry.unpack = function(array, startingIndex, result) {
152
- Check_default.defined("array", array);
153
- startingIndex = defaultValue_default(startingIndex, 0);
154
- const polygonHierarchy = PolygonGeometryLibrary_default.unpackPolygonHierarchy(
155
- array,
156
- startingIndex,
157
- Cartesian3_default
158
- );
159
- startingIndex = polygonHierarchy.startingIndex;
160
- delete polygonHierarchy.startingIndex;
161
- const packedLength = array[startingIndex];
162
- if (!defined_default(result)) {
163
- result = new CoplanarPolygonOutlineGeometry(scratchOptions);
164
- }
165
- result._polygonHierarchy = polygonHierarchy;
166
- result.packedLength = packedLength;
167
- return result;
168
- };
169
- CoplanarPolygonOutlineGeometry.createGeometry = function(polygonGeometry) {
170
- const polygonHierarchy = polygonGeometry._polygonHierarchy;
171
- let outerPositions = polygonHierarchy.positions;
172
- outerPositions = arrayRemoveDuplicates_default(
173
- outerPositions,
174
- Cartesian3_default.equalsEpsilon,
175
- true
176
- );
177
- if (outerPositions.length < 3) {
178
- return;
179
- }
180
- const isValid = CoplanarPolygonGeometryLibrary_default.validOutline(outerPositions);
181
- if (!isValid) {
182
- return void 0;
183
- }
184
- const polygons = PolygonGeometryLibrary_default.polygonOutlinesFromHierarchy(
185
- polygonHierarchy,
186
- false
187
- );
188
- if (polygons.length === 0) {
189
- return void 0;
190
- }
191
- const geometries = [];
192
- for (let i = 0; i < polygons.length; i++) {
193
- const geometryInstance = new GeometryInstance_default({
194
- geometry: createGeometryFromPositions(polygons[i])
195
- });
196
- geometries.push(geometryInstance);
197
- }
198
- const geometry = GeometryPipeline_default.combineInstances(geometries)[0];
199
- const boundingSphere = BoundingSphere_default.fromPoints(polygonHierarchy.positions);
200
- return new Geometry_default({
201
- attributes: geometry.attributes,
202
- indices: geometry.indices,
203
- primitiveType: geometry.primitiveType,
204
- boundingSphere
205
- });
206
- };
207
- var CoplanarPolygonOutlineGeometry_default = CoplanarPolygonOutlineGeometry;
208
-
209
- // packages/engine/Source/Workers/createCoplanarPolygonOutlineGeometry.js
210
- function createCoplanarPolygonOutlineGeometry(polygonGeometry, offset) {
211
- if (defined_default(offset)) {
212
- polygonGeometry = CoplanarPolygonOutlineGeometry_default.unpack(
213
- polygonGeometry,
214
- offset
215
- );
216
- }
217
- polygonGeometry._ellipsoid = Ellipsoid_default.clone(polygonGeometry._ellipsoid);
218
- return CoplanarPolygonOutlineGeometry_default.createGeometry(polygonGeometry);
219
- }
220
- var createCoplanarPolygonOutlineGeometry_default = createCoplanarPolygonOutlineGeometry;
221
- export {
222
- createCoplanarPolygonOutlineGeometry_default as default
223
- };
26
+ import{a as T}from"./chunk-EZUYS2JF.js";import"./chunk-CNCV5UL7.js";import{a as l}from"./chunk-AJYK4IVJ.js";import"./chunk-J6UP6FLE.js";import{a as G}from"./chunk-D6AA5QVT.js";import{a as C}from"./chunk-VW6VD53G.js";import"./chunk-DEPHB2WM.js";import"./chunk-QOUAJ6TL.js";import"./chunk-TCGIRNHN.js";import"./chunk-N4VJKXZS.js";import"./chunk-77IHZJJ3.js";import{a as L}from"./chunk-3W4GT7KQ.js";import"./chunk-G5AGHVVC.js";import"./chunk-DMEY62ID.js";import"./chunk-HTFSEEMT.js";import{a as w}from"./chunk-OFUUQVMR.js";import{a as O}from"./chunk-A56XVLQR.js";import{b,c as d,d as k}from"./chunk-RCV6KWXS.js";import{d as P}from"./chunk-4IW2T6GF.js";import"./chunk-PSPPBZWI.js";import{a as H}from"./chunk-AU7IKHOH.js";import{a as y,d as g,f as u}from"./chunk-64RSHJUE.js";import"./chunk-3SSKC3VN.js";import"./chunk-OSW76XDF.js";import"./chunk-ED5JPB3S.js";import{b as m}from"./chunk-LEYMRMBK.js";import{e as f}from"./chunk-VTAIKJXX.js";function E(o){let e=o.length,t=new Float64Array(e*3),i=w.createTypedArray(e,e*2),r=0,a=0;for(let n=0;n<e;n++){let p=o[n];t[r++]=p.x,t[r++]=p.y,t[r++]=p.z,i[a++]=n,i[a++]=(n+1)%e}let s=new O({position:new k({componentDatatype:H.DOUBLE,componentsPerAttribute:3,values:t})});return new d({attributes:s,indices:i,primitiveType:b.LINES})}function c(o){o=o??u.EMPTY_OBJECT;let e=o.polygonHierarchy;m.defined("options.polygonHierarchy",e),this._polygonHierarchy=e,this._workerName="createCoplanarPolygonOutlineGeometry",this.packedLength=l.computeHierarchyPackedLength(e,y)+1}c.fromPositions=function(o){o=o??u.EMPTY_OBJECT,m.defined("options.positions",o.positions);let e={polygonHierarchy:{positions:o.positions}};return new c(e)};c.pack=function(o,e,t){return m.typeOf.object("value",o),m.defined("array",e),t=t??0,t=l.packPolygonHierarchy(o._polygonHierarchy,e,t,y),e[t]=o.packedLength,e};var v={polygonHierarchy:{}};c.unpack=function(o,e,t){m.defined("array",o),e=e??0;let i=l.unpackPolygonHierarchy(o,e,y);e=i.startingIndex,delete i.startingIndex;let r=o[e];return f(t)||(t=new c(v)),t._polygonHierarchy=i,t.packedLength=r,t};c.createGeometry=function(o){let e=o._polygonHierarchy,t=e.positions;if(t=L(t,y.equalsEpsilon,!0),t.length<3||!T.validOutline(t))return;let r=l.polygonOutlinesFromHierarchy(e,!1);if(r.length===0)return;let a=[];for(let p=0;p<r.length;p++){let _=new G({geometry:E(r[p])});a.push(_)}let s=C.combineInstances(a)[0],n=P.fromPoints(e.positions);return new d({attributes:s.attributes,indices:s.indices,primitiveType:s.primitiveType,boundingSphere:n})};var h=c;function A(o,e){return f(e)&&(o=h.unpack(o,e)),o._ellipsoid=g.clone(o._ellipsoid),h.createGeometry(o)}var Z=A;export{Z as default};